diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java index af7c058705c4..864b0e043ee5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java @@ -67,7 +67,7 @@ * *
GetAdBreak
API to retrieve an `AdBreak` object. + *
Retrieves an `AdBreak` object. *
Query an ad break by its resource name or custom asset key. Check the resource's `breakState` field to determine its state.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -87,7 +87,7 @@ *ListAdBreaks
API to retrieve a list of `AdBreak` objects. + *
Lists `AdBreak` objects. *
By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are prioritized and appear first.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -108,7 +108,7 @@ *CreateAdBreak
API to create an `AdBreak` object. + *
Creates an `AdBreak` object. *
Informs DAI of an upcoming ad break for a live stream event, with an optional expected start time. DAI will begin decisioning ads for the break shortly before the expected start time, if provided. Each live stream event can only have one incomplete ad break at any given time. The next ad break can be scheduled after the previous ad break has started serving, indicated by its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], or it has been deleted. *
This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break and before the ad break is complete, the ad break is discarded. *
An ad break's state is complete when the following occurs: - Full service DAI: after a matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break sequence.
UpdateAdBreak
API to update an `AdBreak` object. + *
Updates an `AdBreak` object. *
Modify an ad break when its state is [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -149,7 +149,7 @@ *DeleteAdBreak
API to delete an `AdBreak` object. + *
Deletes an `AdBreak` object. *
Deletes and cancels an incomplete ad break, mitigating the need to wait for the current break to serve before recreating an ad break. You can delete an ad break that has not started serving or seen in manifests, indicated by its state being [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -261,7 +261,7 @@ public AdBreakServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AdBreak` object. + * Retrieves an `AdBreak` object. * *Query an ad break by its resource name or custom asset key. Check the resource's * `breakState` field to determine its state. @@ -294,7 +294,7 @@ public final AdBreak getAdBreak(@Nullable AdBreakName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AdBreak` object. + * Retrieves an `AdBreak` object. * *
Query an ad break by its resource name or custom asset key. Check the resource's * `breakState` field to determine its state. @@ -326,7 +326,7 @@ public final AdBreak getAdBreak(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AdBreak` object. + * Retrieves an `AdBreak` object. * *
Query an ad break by its resource name or custom asset key. Check the resource's * `breakState` field to determine its state. @@ -357,7 +357,7 @@ public final AdBreak getAdBreak(GetAdBreakRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AdBreak` object. + * Retrieves an `AdBreak` object. * *
Query an ad break by its resource name or custom asset key. Check the resource's
* `breakState` field to determine its state.
@@ -387,7 +387,7 @@ public final UnaryCallable By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse
* chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are
@@ -424,7 +424,7 @@ public final ListAdBreaksPagedResponse listAdBreaks(@Nullable LiveStreamEventNam
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `AdBreak` objects.
+ * Lists `AdBreak` objects.
*
* By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse
* chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are
@@ -458,7 +458,7 @@ public final ListAdBreaksPagedResponse listAdBreaks(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `AdBreak` objects.
+ * Lists `AdBreak` objects.
*
* By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse
* chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are
@@ -497,7 +497,7 @@ public final ListAdBreaksPagedResponse listAdBreaks(ListAdBreaksRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `AdBreak` objects.
+ * Lists `AdBreak` objects.
*
* By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse
* chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are
@@ -537,7 +537,7 @@ public final ListAdBreaksPagedResponse listAdBreaks(ListAdBreaksRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `AdBreak` objects.
+ * Lists `AdBreak` objects.
*
* By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse
* chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are
@@ -582,7 +582,7 @@ public final UnaryCallable Informs DAI of an upcoming ad break for a live stream event, with an optional expected start
* time. DAI will begin decisioning ads for the break shortly before the expected start time, if
@@ -634,7 +634,7 @@ public final AdBreak createAdBreak(@Nullable LiveStreamEventName parent, AdBreak
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdBreak` object.
+ * Creates an `AdBreak` object.
*
* Informs DAI of an upcoming ad break for a live stream event, with an optional expected start
* time. DAI will begin decisioning ads for the break shortly before the expected start time, if
@@ -683,7 +683,7 @@ public final AdBreak createAdBreak(String parent, AdBreak adBreak) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdBreak` object.
+ * Creates an `AdBreak` object.
*
* Informs DAI of an upcoming ad break for a live stream event, with an optional expected start
* time. DAI will begin decisioning ads for the break shortly before the expected start time, if
@@ -729,7 +729,7 @@ public final AdBreak createAdBreak(CreateAdBreakRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdBreak` object.
+ * Creates an `AdBreak` object.
*
* Informs DAI of an upcoming ad break for a live stream event, with an optional expected start
* time. DAI will begin decisioning ads for the break shortly before the expected start time, if
@@ -774,7 +774,7 @@ public final UnaryCallable Modify an ad break when its state is
* [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED].
@@ -807,7 +807,7 @@ public final AdBreak updateAdBreak(AdBreak adBreak, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `AdBreak` object.
+ * Updates an `AdBreak` object.
*
* Modify an ad break when its state is
* [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED].
@@ -839,7 +839,7 @@ public final AdBreak updateAdBreak(UpdateAdBreakRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `AdBreak` object.
+ * Updates an `AdBreak` object.
*
* Modify an ad break when its state is
* [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED].
@@ -870,7 +870,7 @@ public final UnaryCallable Deletes and cancels an incomplete ad break, mitigating the need to wait for the current
* break to serve before recreating an ad break. You can delete an ad break that has not started
@@ -905,7 +905,7 @@ public final void deleteAdBreak(@Nullable AdBreakName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to delete an `AdBreak` object.
+ * Deletes an `AdBreak` object.
*
* Deletes and cancels an incomplete ad break, mitigating the need to wait for the current
* break to serve before recreating an ad break. You can delete an ad break that has not started
@@ -939,7 +939,7 @@ public final void deleteAdBreak(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to delete an `AdBreak` object.
+ * Deletes an `AdBreak` object.
*
* Deletes and cancels an incomplete ad break, mitigating the need to wait for the current
* break to serve before recreating an ad break. You can delete an ad break that has not started
@@ -973,7 +973,7 @@ public final void deleteAdBreak(DeleteAdBreakRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to delete an `AdBreak` object.
+ * Deletes an `AdBreak` object.
*
* Deletes and cancels an incomplete ad break, mitigating the need to wait for the current
* break to serve before recreating an ad break. You can delete an ad break that has not started
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java
index 516123735008..82c5b5d95d83 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java
@@ -74,7 +74,7 @@
*
SearchAdReviewCenterAds
API to search for AdReviewCenterAds.
Searches for AdReviewCenterAds.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchAllowAdReviewCenterAds
API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.
Batch allows AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchBlockAdReviewCenterAds
API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.
Batch blocks AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -282,7 +282,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to search for AdReviewCenterAds. + * Searches for AdReviewCenterAds. * *
Sample code: * @@ -321,7 +321,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to search for AdReviewCenterAds. + * Searches for AdReviewCenterAds. * *
Sample code: * @@ -360,7 +360,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to search for AdReviewCenterAds. + * Searches for AdReviewCenterAds. * *
Sample code: * @@ -398,7 +398,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to search for AdReviewCenterAds. + * Searches for AdReviewCenterAds. * *
Sample code: * @@ -443,7 +443,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * Batch allows AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -486,7 +486,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * Batch allows AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -527,7 +527,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * Batch allows AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -562,7 +562,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * Batch allows AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -601,7 +601,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * Batch allows AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -634,7 +634,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * Batch blocks AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -677,7 +677,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * Batch blocks AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -718,7 +718,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * Batch blocks AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -753,7 +753,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * Batch blocks AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * @@ -792,7 +792,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * Batch blocks AdReviewCenterAds. This method supports partial success. Some operations may * succeed while others fail. Callers should check the failedRequests field in the response to * determine which operations failed. * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdRuleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdRuleServiceClient.java new file mode 100644 index 000000000000..34974abc1d29 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdRuleServiceClient.java @@ -0,0 +1,1552 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import com.google.ads.admanager.v1.stub.AdRuleServiceStub; +import com.google.ads.admanager.v1.stub.AdRuleServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `AdRule` objects. + * + *
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * AdRuleName name = AdRuleName.of("[NETWORK_CODE]", "[AD_RULE]");
+ * AdRule response = adRuleServiceClient.getAdRule(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the AdRuleServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
GetAdRule |
+ * Retrieves an `AdRule` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAdRules |
+ * Lists `AdRule` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateAdRule |
+ * Creates a `AdRule` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchCreateAdRules |
+ * Batch creates `AdRule` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateAdRule |
+ * Updates a `AdRule` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchUpdateAdRules |
+ * Batch updates `AdRule` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchActivateAdRules |
+ * Activates a list of `AdRule` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchDeactivateAdRules |
+ * Deactivates a list of `AdRule` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchDeleteAdRules |
+ * Deletes a list of `AdRule` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of AdRuleServiceSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdRuleServiceSettings adRuleServiceSettings =
+ * AdRuleServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create(adRuleServiceSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdRuleServiceSettings adRuleServiceSettings =
+ * AdRuleServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create(adRuleServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AdRuleServiceClient implements BackgroundResource { + private final @Nullable AdRuleServiceSettings settings; + private final AdRuleServiceStub stub; + + /** Constructs an instance of AdRuleServiceClient with default settings. */ + public static final AdRuleServiceClient create() throws IOException { + return create(AdRuleServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdRuleServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AdRuleServiceClient create(AdRuleServiceSettings settings) + throws IOException { + return new AdRuleServiceClient(settings); + } + + /** + * Constructs an instance of AdRuleServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AdRuleServiceSettings). + */ + public static final AdRuleServiceClient create(AdRuleServiceStub stub) { + return new AdRuleServiceClient(stub); + } + + /** + * Constructs an instance of AdRuleServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AdRuleServiceClient(AdRuleServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AdRuleServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AdRuleServiceClient(AdRuleServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable AdRuleServiceSettings getSettings() { + return settings; + } + + public AdRuleServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an `AdRule` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * AdRuleName name = AdRuleName.of("[NETWORK_CODE]", "[AD_RULE]");
+ * AdRule response = adRuleServiceClient.getAdRule(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule getAdRule(@Nullable AdRuleName name) {
+ GetAdRuleRequest request =
+ GetAdRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAdRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String name = AdRuleName.of("[NETWORK_CODE]", "[AD_RULE]").toString();
+ * AdRule response = adRuleServiceClient.getAdRule(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule getAdRule(String name) {
+ GetAdRuleRequest request = GetAdRuleRequest.newBuilder().setName(name).build();
+ return getAdRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * GetAdRuleRequest request =
+ * GetAdRuleRequest.newBuilder()
+ * .setName(AdRuleName.of("[NETWORK_CODE]", "[AD_RULE]").toString())
+ * .build();
+ * AdRule response = adRuleServiceClient.getAdRule(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule getAdRule(GetAdRuleRequest request) {
+ return getAdRuleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * GetAdRuleRequest request =
+ * GetAdRuleRequest.newBuilder()
+ * .setName(AdRuleName.of("[NETWORK_CODE]", "[AD_RULE]").toString())
+ * .build();
+ * ApiFuture future = adRuleServiceClient.getAdRuleCallable().futureCall(request);
+ * // Do something.
+ * AdRule response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (AdRule element : adRuleServiceClient.listAdRules(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdRules. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAdRulesPagedResponse listAdRules(@Nullable NetworkName parent) {
+ ListAdRulesRequest request =
+ ListAdRulesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAdRules(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (AdRule element : adRuleServiceClient.listAdRules(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdRules. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAdRulesPagedResponse listAdRules(String parent) {
+ ListAdRulesRequest request = ListAdRulesRequest.newBuilder().setParent(parent).build();
+ return listAdRules(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * ListAdRulesRequest request =
+ * ListAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (AdRule element : adRuleServiceClient.listAdRules(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAdRulesPagedResponse listAdRules(ListAdRulesRequest request) {
+ return listAdRulesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * ListAdRulesRequest request =
+ * ListAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture future = adRuleServiceClient.listAdRulesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AdRule element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * ListAdRulesRequest request =
+ * ListAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListAdRulesResponse response = adRuleServiceClient.listAdRulesCallable().call(request);
+ * for (AdRule element : response.getAdRulesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * AdRule adRule = AdRule.newBuilder().build();
+ * AdRule response = adRuleServiceClient.createAdRule(parent, adRule);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `AdRule` will be created. Format:
+ * `networks/{network_code}`
+ * @param adRule Required. The `AdRule` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule createAdRule(@Nullable NetworkName parent, AdRule adRule) {
+ CreateAdRuleRequest request =
+ CreateAdRuleRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setAdRule(adRule)
+ .build();
+ return createAdRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * AdRule adRule = AdRule.newBuilder().build();
+ * AdRule response = adRuleServiceClient.createAdRule(parent, adRule);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `AdRule` will be created. Format:
+ * `networks/{network_code}`
+ * @param adRule Required. The `AdRule` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule createAdRule(String parent, AdRule adRule) {
+ CreateAdRuleRequest request =
+ CreateAdRuleRequest.newBuilder().setParent(parent).setAdRule(adRule).build();
+ return createAdRule(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * CreateAdRuleRequest request =
+ * CreateAdRuleRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setAdRule(AdRule.newBuilder().build())
+ * .build();
+ * AdRule response = adRuleServiceClient.createAdRule(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule createAdRule(CreateAdRuleRequest request) {
+ return createAdRuleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * CreateAdRuleRequest request =
+ * CreateAdRuleRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setAdRule(AdRule.newBuilder().build())
+ * .build();
+ * ApiFuture future = adRuleServiceClient.createAdRuleCallable().futureCall(request);
+ * // Do something.
+ * AdRule response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchCreateAdRulesResponse response =
+ * adRuleServiceClient.batchCreateAdRules(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `AdRules` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateAdRuleRequest must match this
+ * field.
+ * @param requests Required. The `AdRule` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateAdRulesResponse batchCreateAdRules(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateAdRulesResponse response =
+ * adRuleServiceClient.batchCreateAdRules(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `AdRules` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateAdRuleRequest must match this
+ * field.
+ * @param requests Required. The `AdRule` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateAdRulesResponse batchCreateAdRules(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchCreateAdRulesRequest request =
+ * BatchCreateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateAdRulesResponse response = adRuleServiceClient.batchCreateAdRules(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateAdRulesResponse batchCreateAdRules(BatchCreateAdRulesRequest request) {
+ return batchCreateAdRulesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchCreateAdRulesRequest request =
+ * BatchCreateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adRuleServiceClient.batchCreateAdRulesCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateAdRulesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * AdRule adRule = AdRule.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * AdRule response = adRuleServiceClient.updateAdRule(adRule, updateMask);
+ * }
+ * }
+ *
+ * @param adRule Required. The `AdRule` to update.
+ * The `AdRule`'s `name` is used to identify the `AdRule` to update. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdRule updateAdRule(AdRule adRule, FieldMask updateMask) { + UpdateAdRuleRequest request = + UpdateAdRuleRequest.newBuilder().setAdRule(adRule).setUpdateMask(updateMask).build(); + return updateAdRule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `AdRule` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * UpdateAdRuleRequest request =
+ * UpdateAdRuleRequest.newBuilder()
+ * .setAdRule(AdRule.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * AdRule response = adRuleServiceClient.updateAdRule(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdRule updateAdRule(UpdateAdRuleRequest request) {
+ return updateAdRuleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `AdRule` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * UpdateAdRuleRequest request =
+ * UpdateAdRuleRequest.newBuilder()
+ * .setAdRule(AdRule.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = adRuleServiceClient.updateAdRuleCallable().futureCall(request);
+ * // Do something.
+ * AdRule response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchUpdateAdRulesResponse response =
+ * adRuleServiceClient.batchUpdateAdRules(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `AdRules` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateAdRuleRequest must match this
+ * field.
+ * @param requests Required. The `AdRule` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateAdRulesResponse batchUpdateAdRules(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchUpdateAdRulesResponse response =
+ * adRuleServiceClient.batchUpdateAdRules(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `AdRules` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateAdRuleRequest must match this
+ * field.
+ * @param requests Required. The `AdRule` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateAdRulesResponse batchUpdateAdRules(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchUpdateAdRulesRequest request =
+ * BatchUpdateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchUpdateAdRulesResponse response = adRuleServiceClient.batchUpdateAdRules(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateAdRulesResponse batchUpdateAdRules(BatchUpdateAdRulesRequest request) {
+ return batchUpdateAdRulesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchUpdateAdRulesRequest request =
+ * BatchUpdateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adRuleServiceClient.batchUpdateAdRulesCallable().futureCall(request);
+ * // Do something.
+ * BatchUpdateAdRulesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchActivateAdRulesResponse response =
+ * adRuleServiceClient.batchActivateAdRules(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateAdRulesResponse batchActivateAdRules(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchActivateAdRulesResponse response =
+ * adRuleServiceClient.batchActivateAdRules(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateAdRulesResponse batchActivateAdRules(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchActivateAdRulesRequest request =
+ * BatchActivateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchActivateAdRulesResponse response = adRuleServiceClient.batchActivateAdRules(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateAdRulesResponse batchActivateAdRules(
+ BatchActivateAdRulesRequest request) {
+ return batchActivateAdRulesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Activates a list of `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchActivateAdRulesRequest request =
+ * BatchActivateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adRuleServiceClient.batchActivateAdRulesCallable().futureCall(request);
+ * // Do something.
+ * BatchActivateAdRulesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchDeactivateAdRulesResponse response =
+ * adRuleServiceClient.batchDeactivateAdRules(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateAdRulesResponse batchDeactivateAdRules(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchDeactivateAdRulesResponse response =
+ * adRuleServiceClient.batchDeactivateAdRules(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateAdRulesResponse batchDeactivateAdRules(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchDeactivateAdRulesRequest request =
+ * BatchDeactivateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchDeactivateAdRulesResponse response = adRuleServiceClient.batchDeactivateAdRules(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateAdRulesResponse batchDeactivateAdRules(
+ BatchDeactivateAdRulesRequest request) {
+ return batchDeactivateAdRulesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchDeactivateAdRulesRequest request =
+ * BatchDeactivateAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adRuleServiceClient.batchDeactivateAdRulesCallable().futureCall(request);
+ * // Do something.
+ * BatchDeactivateAdRulesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * adRuleServiceClient.batchDeleteAdRules(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void batchDeleteAdRules(@Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * adRuleServiceClient.batchDeleteAdRules(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the AdRule. Format:
+ * `networks/{network_code}/adRules/{ad_rule}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void batchDeleteAdRules(String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchDeleteAdRulesRequest request =
+ * BatchDeleteAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * adRuleServiceClient.batchDeleteAdRules(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void batchDeleteAdRules(BatchDeleteAdRulesRequest request) {
+ batchDeleteAdRulesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a list of `AdRule` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * BatchDeleteAdRulesRequest request =
+ * BatchDeleteAdRulesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adRuleServiceClient.batchDeleteAdRulesCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAdRule: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdRuleServiceSettings.Builder adRuleServiceSettingsBuilder = AdRuleServiceSettings.newBuilder();
+ * adRuleServiceSettingsBuilder
+ * .getAdRuleSettings()
+ * .setRetrySettings(
+ * adRuleServiceSettingsBuilder
+ * .getAdRuleSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AdRuleServiceSettings adRuleServiceSettings = adRuleServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class AdRuleServiceSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the AdSpotServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * GetAdSpot Retrieves an `AdSpot` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getAdSpot(GetAdSpotRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getAdSpot(AdSpotName name)
+ * getAdSpot(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getAdSpotCallable()
+ * ListAdSpots Lists `AdSpot` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listAdSpots(ListAdSpotsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listAdSpots(NetworkName parent)
+ * listAdSpots(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listAdSpotsPagedCallable()
+ * listAdSpotsCallable()
+ * CreateAdSpot Creates an `AdSpot` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createAdSpot(CreateAdSpotRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createAdSpot(NetworkName parent, AdSpot adSpot)
+ * createAdSpot(String parent, AdSpot adSpot)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createAdSpotCallable()
+ * BatchCreateAdSpots Batch creates `AdSpot` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateAdSpots(NetworkName parent, List<CreateAdSpotRequest> requests)
+ * batchCreateAdSpots(String parent, List<CreateAdSpotRequest> requests)
+ * batchCreateAdSpots(BatchCreateAdSpotsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateAdSpotsCallable()
+ * UpdateAdSpot Updates an `AdSpot` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateAdSpot(UpdateAdSpotRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateAdSpot(AdSpot adSpot, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateAdSpotCallable()
+ * BatchUpdateAdSpots Batch updates `AdSpot` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateAdSpots(NetworkName parent, List<UpdateAdSpotRequest> requests)
+ * batchUpdateAdSpots(String parent, List<UpdateAdSpotRequest> requests)
+ * batchUpdateAdSpots(BatchUpdateAdSpotsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateAdSpotsCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of AdSpotServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class AdSpotServiceClient implements BackgroundResource {
+ private final @Nullable AdSpotServiceSettings settings;
+ private final AdSpotServiceStub stub;
+
+ /** Constructs an instance of AdSpotServiceClient with default settings. */
+ public static final AdSpotServiceClient create() throws IOException {
+ return create(AdSpotServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of AdSpotServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final AdSpotServiceClient create(AdSpotServiceSettings settings)
+ throws IOException {
+ return new AdSpotServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of AdSpotServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(AdSpotServiceSettings).
+ */
+ public static final AdSpotServiceClient create(AdSpotServiceStub stub) {
+ return new AdSpotServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of AdSpotServiceClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected AdSpotServiceClient(AdSpotServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((AdSpotServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected AdSpotServiceClient(AdSpotServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable AdSpotServiceSettings getSettings() {
+ return settings;
+ }
+
+ public AdSpotServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdSpot` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The `AdSpot`'s `name` is used to identify the `AdSpot` to update.
+ * @param updateMask Optional. The list of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot updateAdSpot(AdSpot adSpot, FieldMask updateMask) {
+ UpdateAdSpotRequest request =
+ UpdateAdSpotRequest.newBuilder().setAdSpot(adSpot).setUpdateMask(updateMask).build();
+ return updateAdSpot(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an `AdSpot` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getAdSpot:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * AdSpotName name = AdSpotName.of("[NETWORK_CODE]", "[AD_SPOT]");
+ * AdSpot response = adSpotServiceClient.getAdSpot(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdSpotServiceSettings adSpotServiceSettings =
+ * AdSpotServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create(adSpotServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdSpotServiceSettings adSpotServiceSettings =
+ * AdSpotServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create(adSpotServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * AdSpotName name = AdSpotName.of("[NETWORK_CODE]", "[AD_SPOT]");
+ * AdSpot response = adSpotServiceClient.getAdSpot(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AdSpot. Format:
+ * `networks/{network_code}/adSpots/{ad_spot_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot getAdSpot(@Nullable AdSpotName name) {
+ GetAdSpotRequest request =
+ GetAdSpotRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAdSpot(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * String name = AdSpotName.of("[NETWORK_CODE]", "[AD_SPOT]").toString();
+ * AdSpot response = adSpotServiceClient.getAdSpot(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AdSpot. Format:
+ * `networks/{network_code}/adSpots/{ad_spot_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot getAdSpot(String name) {
+ GetAdSpotRequest request = GetAdSpotRequest.newBuilder().setName(name).build();
+ return getAdSpot(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * GetAdSpotRequest request =
+ * GetAdSpotRequest.newBuilder()
+ * .setName(AdSpotName.of("[NETWORK_CODE]", "[AD_SPOT]").toString())
+ * .build();
+ * AdSpot response = adSpotServiceClient.getAdSpot(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot getAdSpot(GetAdSpotRequest request) {
+ return getAdSpotCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * GetAdSpotRequest request =
+ * GetAdSpotRequest.newBuilder()
+ * .setName(AdSpotName.of("[NETWORK_CODE]", "[AD_SPOT]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (AdSpot element : adSpotServiceClient.listAdSpots(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdSpots. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAdSpotsPagedResponse listAdSpots(@Nullable NetworkName parent) {
+ ListAdSpotsRequest request =
+ ListAdSpotsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAdSpots(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `AdSpot` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (AdSpot element : adSpotServiceClient.listAdSpots(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdSpots. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAdSpotsPagedResponse listAdSpots(String parent) {
+ ListAdSpotsRequest request = ListAdSpotsRequest.newBuilder().setParent(parent).build();
+ return listAdSpots(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `AdSpot` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * ListAdSpotsRequest request =
+ * ListAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (AdSpot element : adSpotServiceClient.listAdSpots(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAdSpotsPagedResponse listAdSpots(ListAdSpotsRequest request) {
+ return listAdSpotsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `AdSpot` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * ListAdSpotsRequest request =
+ * ListAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * ListAdSpotsRequest request =
+ * ListAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListAdSpotsResponse response = adSpotServiceClient.listAdSpotsCallable().call(request);
+ * for (AdSpot element : response.getAdSpotsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * AdSpot adSpot = AdSpot.newBuilder().build();
+ * AdSpot response = adSpotServiceClient.createAdSpot(parent, adSpot);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `AdSpot` will be created. Format:
+ * `networks/{network_code}`
+ * @param adSpot Required. The `AdSpot` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot createAdSpot(@Nullable NetworkName parent, AdSpot adSpot) {
+ CreateAdSpotRequest request =
+ CreateAdSpotRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setAdSpot(adSpot)
+ .build();
+ return createAdSpot(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * AdSpot adSpot = AdSpot.newBuilder().build();
+ * AdSpot response = adSpotServiceClient.createAdSpot(parent, adSpot);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `AdSpot` will be created. Format:
+ * `networks/{network_code}`
+ * @param adSpot Required. The `AdSpot` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot createAdSpot(String parent, AdSpot adSpot) {
+ CreateAdSpotRequest request =
+ CreateAdSpotRequest.newBuilder().setParent(parent).setAdSpot(adSpot).build();
+ return createAdSpot(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * CreateAdSpotRequest request =
+ * CreateAdSpotRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setAdSpot(AdSpot.newBuilder().build())
+ * .build();
+ * AdSpot response = adSpotServiceClient.createAdSpot(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot createAdSpot(CreateAdSpotRequest request) {
+ return createAdSpotCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * CreateAdSpotRequest request =
+ * CreateAdSpotRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setAdSpot(AdSpot.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `AdSpots` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateAdSpotRequest must match this
+ * field.
+ * @param requests Required. The `AdSpot` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateAdSpotsResponse batchCreateAdSpots(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `AdSpots` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateAdSpotRequest must match this
+ * field.
+ * @param requests Required. The `AdSpot` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateAdSpotsResponse batchCreateAdSpots(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * BatchCreateAdSpotsRequest request =
+ * BatchCreateAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateAdSpotsResponse batchCreateAdSpots(BatchCreateAdSpotsRequest request) {
+ return batchCreateAdSpotsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `AdSpot` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * BatchCreateAdSpotsRequest request =
+ * BatchCreateAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * AdSpot adSpot = AdSpot.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * AdSpot response = adSpotServiceClient.updateAdSpot(adSpot, updateMask);
+ * }
+ * }
+ *
+ * @param adSpot Required. The `AdSpot` to update.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * UpdateAdSpotRequest request =
+ * UpdateAdSpotRequest.newBuilder()
+ * .setAdSpot(AdSpot.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * AdSpot response = adSpotServiceClient.updateAdSpot(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AdSpot updateAdSpot(UpdateAdSpotRequest request) {
+ return updateAdSpotCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an `AdSpot` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * UpdateAdSpotRequest request =
+ * UpdateAdSpotRequest.newBuilder()
+ * .setAdSpot(AdSpot.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `AdSpots` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateAdSpotRequest must match this
+ * field.
+ * @param requests Required. The `AdSpot` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateAdSpotsResponse batchUpdateAdSpots(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `AdSpots` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateAdSpotRequest must match this
+ * field.
+ * @param requests Required. The `AdSpot` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateAdSpotsResponse batchUpdateAdSpots(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * BatchUpdateAdSpotsRequest request =
+ * BatchUpdateAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateAdSpotsResponse batchUpdateAdSpots(BatchUpdateAdSpotsRequest request) {
+ return batchUpdateAdSpotsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `AdSpot` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * BatchUpdateAdSpotsRequest request =
+ * BatchUpdateAdSpotsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdSpotServiceSettings.Builder adSpotServiceSettingsBuilder = AdSpotServiceSettings.newBuilder();
+ * adSpotServiceSettingsBuilder
+ * .getAdSpotSettings()
+ * .setRetrySettings(
+ * adSpotServiceSettingsBuilder
+ * .getAdSpotSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AdSpotServiceSettings adSpotServiceSettings = adSpotServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class AdSpotServiceSettings extends ClientSettings
GetAdUnit
API to retrieve an AdUnit object.
Retrieves an `AdUnit` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListAdUnits
API to retrieve a list of AdUnit objects.
Lists `AdUnit` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListAdUnitSizes
API to retrieve a list of AdUnitSize objects.
Lists `AdUnitSize` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateAdUnit
API to create an `AdUnit` object.
Creates an `AdUnit` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateAdUnit
API to update an `AdUnit` object.
Updates an `AdUnit` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreateAdUnits
API to batch create `AdUnit` objects.
Creates `AdUnit` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdateAdUnits
API to batch update `AdUnit` objects.
Batch updates `AdUnit` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchActivateAdUnits
API to batch activate `AdUnit` objects.
Batch activates `AdUnit` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -371,7 +371,7 @@ public final AdUnit getAdUnit(@Nullable AdUnitName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an AdUnit object. + * Retrieves an `AdUnit` object. * *
Sample code: * @@ -398,7 +398,7 @@ public final AdUnit getAdUnit(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an AdUnit object. + * Retrieves an `AdUnit` object. * *
Sample code: * @@ -426,7 +426,7 @@ public final AdUnit getAdUnit(GetAdUnitRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an AdUnit object. + * Retrieves an `AdUnit` object. * *
Sample code:
*
@@ -453,7 +453,7 @@ public final UnaryCallable Sample code:
*
@@ -485,7 +485,7 @@ public final ListAdUnitsPagedResponse listAdUnits(@Nullable NetworkName parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnit objects.
+ * Lists `AdUnit` objects.
*
* Sample code:
*
@@ -514,7 +514,7 @@ public final ListAdUnitsPagedResponse listAdUnits(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnit objects.
+ * Lists `AdUnit` objects.
*
* Sample code:
*
@@ -549,7 +549,7 @@ public final ListAdUnitsPagedResponse listAdUnits(ListAdUnitsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnit objects.
+ * Lists `AdUnit` objects.
*
* Sample code:
*
@@ -584,7 +584,7 @@ public final ListAdUnitsPagedResponse listAdUnits(ListAdUnitsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnit objects.
+ * Lists `AdUnit` objects.
*
* Sample code:
*
@@ -625,7 +625,7 @@ public final UnaryCallable Sample code:
*
@@ -657,7 +657,7 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(@Nullable NetworkName
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnitSize objects.
+ * Lists `AdUnitSize` objects.
*
* Sample code:
*
@@ -686,7 +686,7 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnitSize objects.
+ * Lists `AdUnitSize` objects.
*
* Sample code:
*
@@ -721,7 +721,7 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(ListAdUnitSizesRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnitSize objects.
+ * Lists `AdUnitSize` objects.
*
* Sample code:
*
@@ -757,7 +757,7 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(ListAdUnitSizesRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of AdUnitSize objects.
+ * Lists `AdUnitSize` objects.
*
* Sample code:
*
@@ -800,7 +800,7 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(ListAdUnitSizesRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdUnit` object.
+ * Creates an `AdUnit` object.
*
* Sample code:
*
@@ -833,7 +833,7 @@ public final AdUnit createAdUnit(@Nullable NetworkName parent, AdUnit adUnit) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdUnit` object.
+ * Creates an `AdUnit` object.
*
* Sample code:
*
@@ -863,7 +863,7 @@ public final AdUnit createAdUnit(String parent, AdUnit adUnit) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdUnit` object.
+ * Creates an `AdUnit` object.
*
* Sample code:
*
@@ -892,7 +892,7 @@ public final AdUnit createAdUnit(CreateAdUnitRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `AdUnit` object.
+ * Creates an `AdUnit` object.
*
* Sample code:
*
@@ -920,7 +920,7 @@ public final UnaryCallable Sample code:
*
@@ -951,7 +951,7 @@ public final AdUnit updateAdUnit(AdUnit adUnit, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `AdUnit` object.
+ * Updates an `AdUnit` object.
*
* Sample code:
*
@@ -980,7 +980,7 @@ public final AdUnit updateAdUnit(UpdateAdUnitRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `AdUnit` object.
+ * Updates an `AdUnit` object.
*
* Sample code:
*
@@ -1008,7 +1008,7 @@ public final UnaryCallable Sample code:
*
@@ -1045,7 +1045,7 @@ public final BatchCreateAdUnitsResponse batchCreateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `AdUnit` objects.
+ * Creates `AdUnit` objects.
*
* Sample code:
*
@@ -1079,7 +1079,7 @@ public final BatchCreateAdUnitsResponse batchCreateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `AdUnit` objects.
+ * Creates `AdUnit` objects.
*
* Sample code:
*
@@ -1108,7 +1108,7 @@ public final BatchCreateAdUnitsResponse batchCreateAdUnits(BatchCreateAdUnitsReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `AdUnit` objects.
+ * Creates `AdUnit` objects.
*
* Sample code:
*
@@ -1138,7 +1138,7 @@ public final BatchCreateAdUnitsResponse batchCreateAdUnits(BatchCreateAdUnitsReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `AdUnit` objects.
+ * Batch updates `AdUnit` objects.
*
* Sample code:
*
@@ -1175,7 +1175,7 @@ public final BatchUpdateAdUnitsResponse batchUpdateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `AdUnit` objects.
+ * Batch updates `AdUnit` objects.
*
* Sample code:
*
@@ -1209,7 +1209,7 @@ public final BatchUpdateAdUnitsResponse batchUpdateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `AdUnit` objects.
+ * Batch updates `AdUnit` objects.
*
* Sample code:
*
@@ -1238,7 +1238,7 @@ public final BatchUpdateAdUnitsResponse batchUpdateAdUnits(BatchUpdateAdUnitsReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `AdUnit` objects.
+ * Batch updates `AdUnit` objects.
*
* Sample code:
*
@@ -1268,7 +1268,7 @@ public final BatchUpdateAdUnitsResponse batchUpdateAdUnits(BatchUpdateAdUnitsReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `AdUnit` objects.
+ * Batch activates `AdUnit` objects.
*
* Sample code:
*
@@ -1303,7 +1303,7 @@ public final BatchActivateAdUnitsResponse batchActivateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `AdUnit` objects.
+ * Batch activates `AdUnit` objects.
*
* Sample code:
*
@@ -1335,7 +1335,7 @@ public final BatchActivateAdUnitsResponse batchActivateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `AdUnit` objects.
+ * Batch activates `AdUnit` objects.
*
* Sample code:
*
@@ -1365,7 +1365,7 @@ public final BatchActivateAdUnitsResponse batchActivateAdUnits(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `AdUnit` objects.
+ * Batch activates `AdUnit` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java
index ef920f29b535..f21910fc7318 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java
@@ -67,7 +67,7 @@
*
GetApplication
API to retrieve a `Application` object.
Retrieves a `Application` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListApplications
API to retrieve a list of `Application` objects.
Lists `Application` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateApplication
API to create a `Application` object.
Creates a `Application` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreateApplications
API to batch create `Application` objects.
Creates `Application` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateApplication
API to update a `Application` object.
Updates a `Application` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdateApplications
API to batch update `Application` objects.
Batch updates `Application` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchArchiveApplications
/ API to batch archive `Application` objects.
Batch archives `Application` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUnarchiveApplications
/ API to batch unarchive `Application` objects.
Batch unarchives `Application` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -335,7 +335,7 @@ public final Application getApplication(@Nullable ApplicationName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Application` object. + * Retrieves a `Application` object. * *
Sample code: * @@ -362,7 +362,7 @@ public final Application getApplication(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Application` object. + * Retrieves a `Application` object. * *
Sample code: * @@ -390,7 +390,7 @@ public final Application getApplication(GetApplicationRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Application` object. + * Retrieves a `Application` object. * *
Sample code:
*
@@ -418,7 +418,7 @@ public final UnaryCallable Sample code:
*
@@ -450,7 +450,7 @@ public final ListApplicationsPagedResponse listApplications(@Nullable NetworkNam
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Application` objects.
+ * Lists `Application` objects.
*
* Sample code:
*
@@ -480,7 +480,7 @@ public final ListApplicationsPagedResponse listApplications(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Application` objects.
+ * Lists `Application` objects.
*
* Sample code:
*
@@ -515,7 +515,7 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Application` objects.
+ * Lists `Application` objects.
*
* Sample code:
*
@@ -551,7 +551,7 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Application` objects.
+ * Lists `Application` objects.
*
* Sample code:
*
@@ -594,7 +594,7 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Application` object.
+ * Creates a `Application` object.
*
* Sample code:
*
@@ -628,7 +628,7 @@ public final Application createApplication(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Application` object.
+ * Creates a `Application` object.
*
* Sample code:
*
@@ -658,7 +658,7 @@ public final Application createApplication(String parent, Application applicatio
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Application` object.
+ * Creates a `Application` object.
*
* Sample code:
*
@@ -687,7 +687,7 @@ public final Application createApplication(CreateApplicationRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Application` object.
+ * Creates a `Application` object.
*
* Sample code:
*
@@ -716,7 +716,7 @@ public final UnaryCallable Sample code:
*
@@ -752,7 +752,7 @@ public final BatchCreateApplicationsResponse batchCreateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Application` objects.
+ * Creates `Application` objects.
*
* Sample code:
*
@@ -788,7 +788,7 @@ public final BatchCreateApplicationsResponse batchCreateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Application` objects.
+ * Creates `Application` objects.
*
* Sample code:
*
@@ -819,7 +819,7 @@ public final BatchCreateApplicationsResponse batchCreateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Application` objects.
+ * Creates `Application` objects.
*
* Sample code:
*
@@ -849,7 +849,7 @@ public final BatchCreateApplicationsResponse batchCreateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Application` object.
+ * Updates a `Application` object.
*
* Sample code:
*
@@ -882,7 +882,7 @@ public final Application updateApplication(Application application, FieldMask up
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Application` object.
+ * Updates a `Application` object.
*
* Sample code:
*
@@ -911,7 +911,7 @@ public final Application updateApplication(UpdateApplicationRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Application` object.
+ * Updates a `Application` object.
*
* Sample code:
*
@@ -940,7 +940,7 @@ public final UnaryCallable Sample code:
*
@@ -976,7 +976,7 @@ public final BatchUpdateApplicationsResponse batchUpdateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Application` objects.
+ * Batch updates `Application` objects.
*
* Sample code:
*
@@ -1012,7 +1012,7 @@ public final BatchUpdateApplicationsResponse batchUpdateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Application` objects.
+ * Batch updates `Application` objects.
*
* Sample code:
*
@@ -1043,7 +1043,7 @@ public final BatchUpdateApplicationsResponse batchUpdateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Application` objects.
+ * Batch updates `Application` objects.
*
* Sample code:
*
@@ -1073,7 +1073,7 @@ public final BatchUpdateApplicationsResponse batchUpdateApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch archive `Application` objects.
+ * Batch archives `Application` objects.
*
* Sample code:
*
@@ -1108,7 +1108,7 @@ public final BatchArchiveApplicationsResponse batchArchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch archive `Application` objects.
+ * Batch archives `Application` objects.
*
* Sample code:
*
@@ -1140,7 +1140,7 @@ public final BatchArchiveApplicationsResponse batchArchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch archive `Application` objects.
+ * Batch archives `Application` objects.
*
* Sample code:
*
@@ -1171,7 +1171,7 @@ public final BatchArchiveApplicationsResponse batchArchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch archive `Application` objects.
+ * Batch archives `Application` objects.
*
* Sample code:
*
@@ -1201,7 +1201,7 @@ public final BatchArchiveApplicationsResponse batchArchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch unarchive `Application` objects.
+ * Batch unarchives `Application` objects.
*
* Sample code:
*
@@ -1236,7 +1236,7 @@ public final BatchUnarchiveApplicationsResponse batchUnarchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch unarchive `Application` objects.
+ * Batch unarchives `Application` objects.
*
* Sample code:
*
@@ -1268,7 +1268,7 @@ public final BatchUnarchiveApplicationsResponse batchUnarchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch unarchive `Application` objects.
+ * Batch unarchives `Application` objects.
*
* Sample code:
*
@@ -1299,7 +1299,7 @@ public final BatchUnarchiveApplicationsResponse batchUnarchiveApplications(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * / API to batch unarchive `Application` objects.
+ * Batch unarchives `Application` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java
index 679c6926484f..75240453c740 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java
@@ -67,7 +67,7 @@
*
GetBandwidthGroup
API to retrieve a `BandwidthGroup` object.
Retrieves a `BandwidthGroup` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListBandwidthGroups
API to retrieve a list of `BandwidthGroup` objects.
Lists `BandwidthGroup` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -231,7 +231,7 @@ public final BandwidthGroup getBandwidthGroup(@Nullable BandwidthGroupName name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `BandwidthGroup` object. + * Retrieves a `BandwidthGroup` object. * *
Sample code: * @@ -259,7 +259,7 @@ public final BandwidthGroup getBandwidthGroup(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `BandwidthGroup` object. + * Retrieves a `BandwidthGroup` object. * *
Sample code: * @@ -288,7 +288,7 @@ public final BandwidthGroup getBandwidthGroup(GetBandwidthGroupRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `BandwidthGroup` object. + * Retrieves a `BandwidthGroup` object. * *
Sample code:
*
@@ -317,7 +317,7 @@ public final UnaryCallable Sample code:
*
@@ -351,7 +351,7 @@ public final ListBandwidthGroupsPagedResponse listBandwidthGroups(@Nullable Netw
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `BandwidthGroup` objects.
+ * Lists `BandwidthGroup` objects.
*
* Sample code:
*
@@ -383,7 +383,7 @@ public final ListBandwidthGroupsPagedResponse listBandwidthGroups(String parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `BandwidthGroup` objects.
+ * Lists `BandwidthGroup` objects.
*
* Sample code:
*
@@ -421,7 +421,7 @@ public final ListBandwidthGroupsPagedResponse listBandwidthGroups(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `BandwidthGroup` objects.
+ * Lists `BandwidthGroup` objects.
*
* Sample code:
*
@@ -458,7 +458,7 @@ public final ListBandwidthGroupsPagedResponse listBandwidthGroups(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `BandwidthGroup` objects.
+ * Lists `BandwidthGroup` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java
index e913b770d9f9..bba9b8689609 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java
@@ -67,7 +67,7 @@
*
GetBrowserLanguage
API to retrieve a `BrowserLanguage` object.
Retrieves a `BrowserLanguage` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListBrowserLanguages
API to retrieve a list of `BrowserLanguage` objects.
Lists `BrowserLanguage` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -232,7 +232,7 @@ public final BrowserLanguage getBrowserLanguage(@Nullable BrowserLanguageName na // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `BrowserLanguage` object. + * Retrieves a `BrowserLanguage` object. * *
Sample code: * @@ -261,7 +261,7 @@ public final BrowserLanguage getBrowserLanguage(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `BrowserLanguage` object. + * Retrieves a `BrowserLanguage` object. * *
Sample code: * @@ -290,7 +290,7 @@ public final BrowserLanguage getBrowserLanguage(GetBrowserLanguageRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `BrowserLanguage` object. + * Retrieves a `BrowserLanguage` object. * *
Sample code: * @@ -320,7 +320,7 @@ public final BrowserLanguage getBrowserLanguage(GetBrowserLanguageRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `BrowserLanguage` objects. + * Lists `BrowserLanguage` objects. * *
Sample code: * @@ -355,7 +355,7 @@ public final ListBrowserLanguagesPagedResponse listBrowserLanguages( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `BrowserLanguage` objects. + * Lists `BrowserLanguage` objects. * *
Sample code: * @@ -387,7 +387,7 @@ public final ListBrowserLanguagesPagedResponse listBrowserLanguages(String paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `BrowserLanguage` objects. + * Lists `BrowserLanguage` objects. * *
Sample code: * @@ -425,7 +425,7 @@ public final ListBrowserLanguagesPagedResponse listBrowserLanguages( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `BrowserLanguage` objects. + * Lists `BrowserLanguage` objects. * *
Sample code: * @@ -462,7 +462,7 @@ public final ListBrowserLanguagesPagedResponse listBrowserLanguages( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `BrowserLanguage` objects. + * Lists `BrowserLanguage` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java index afefc08139fa..a26596b5ac56 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java @@ -65,7 +65,7 @@ *
GetBrowser
API to retrieve a `Browser` object.
Retrieves a `Browser` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListBrowsers
API to retrieve a list of `Browser` objects.
Lists `Browser` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -224,7 +224,7 @@ public final Browser getBrowser(@Nullable BrowserName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Browser` object. + * Retrieves a `Browser` object. * *
Sample code: * @@ -251,7 +251,7 @@ public final Browser getBrowser(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Browser` object. + * Retrieves a `Browser` object. * *
Sample code: * @@ -279,7 +279,7 @@ public final Browser getBrowser(GetBrowserRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Browser` object. + * Retrieves a `Browser` object. * *
Sample code:
*
@@ -306,7 +306,7 @@ public final UnaryCallable Sample code:
*
@@ -338,7 +338,7 @@ public final ListBrowsersPagedResponse listBrowsers(@Nullable NetworkName parent
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Browser` objects.
+ * Lists `Browser` objects.
*
* Sample code:
*
@@ -367,7 +367,7 @@ public final ListBrowsersPagedResponse listBrowsers(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Browser` objects.
+ * Lists `Browser` objects.
*
* Sample code:
*
@@ -402,7 +402,7 @@ public final ListBrowsersPagedResponse listBrowsers(ListBrowsersRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Browser` objects.
+ * Lists `Browser` objects.
*
* Sample code:
*
@@ -438,7 +438,7 @@ public final ListBrowsersPagedResponse listBrowsers(ListBrowsersRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Browser` objects.
+ * Lists `Browser` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CdnConfigServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CdnConfigServiceClient.java
new file mode 100644
index 000000000000..2aff165959ea
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CdnConfigServiceClient.java
@@ -0,0 +1,1438 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.admanager.v1;
+
+import com.google.ads.admanager.v1.stub.CdnConfigServiceStub;
+import com.google.ads.admanager.v1.stub.CdnConfigServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+import org.jspecify.annotations.Nullable;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `CdnConfig` objects.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the CdnConfigServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * GetCdnConfig Retrieves a `CdnConfig` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCdnConfig(GetCdnConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCdnConfig(CdnConfigName name)
+ * getCdnConfig(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCdnConfigCallable()
+ * ListCdnConfigs Lists `CdnConfig` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCdnConfigs(ListCdnConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCdnConfigs(NetworkName parent)
+ * listCdnConfigs(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listCdnConfigsPagedCallable()
+ * listCdnConfigsCallable()
+ * CreateCdnConfig Creates a `CdnConfig` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createCdnConfig(CreateCdnConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createCdnConfig(NetworkName parent, CdnConfig cdnConfig)
+ * createCdnConfig(String parent, CdnConfig cdnConfig)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createCdnConfigCallable()
+ * BatchCreateCdnConfigs Batch creates `CdnConfig` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateCdnConfigs(NetworkName parent, List<CreateCdnConfigRequest> requests)
+ * batchCreateCdnConfigs(String parent, List<CreateCdnConfigRequest> requests)
+ * batchCreateCdnConfigs(BatchCreateCdnConfigsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateCdnConfigsCallable()
+ * UpdateCdnConfig Updates a `CdnConfig` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateCdnConfig(UpdateCdnConfigRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateCdnConfig(CdnConfig cdnConfig, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateCdnConfigCallable()
+ * BatchUpdateCdnConfigs Batch updates `CdnConfig` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateCdnConfigs(NetworkName parent, List<UpdateCdnConfigRequest> requests)
+ * batchUpdateCdnConfigs(String parent, List<UpdateCdnConfigRequest> requests)
+ * batchUpdateCdnConfigs(BatchUpdateCdnConfigsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateCdnConfigsCallable()
+ * BatchActivateCdnConfigs Batch activates `CdnConfig` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchActivateCdnConfigs(BatchActivateCdnConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchActivateCdnConfigs(NetworkName parent, List<String> names)
+ * batchActivateCdnConfigs(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchActivateCdnConfigsCallable()
+ * BatchArchiveCdnConfigs Batch archives `CdnConfig` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchArchiveCdnConfigs(BatchArchiveCdnConfigsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchArchiveCdnConfigs(NetworkName parent, List<String> names)
+ * batchArchiveCdnConfigs(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchArchiveCdnConfigsCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of CdnConfigServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class CdnConfigServiceClient implements BackgroundResource {
+ private final @Nullable CdnConfigServiceSettings settings;
+ private final CdnConfigServiceStub stub;
+
+ /** Constructs an instance of CdnConfigServiceClient with default settings. */
+ public static final CdnConfigServiceClient create() throws IOException {
+ return create(CdnConfigServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of CdnConfigServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final CdnConfigServiceClient create(CdnConfigServiceSettings settings)
+ throws IOException {
+ return new CdnConfigServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of CdnConfigServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(CdnConfigServiceSettings).
+ */
+ public static final CdnConfigServiceClient create(CdnConfigServiceStub stub) {
+ return new CdnConfigServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of CdnConfigServiceClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected CdnConfigServiceClient(CdnConfigServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((CdnConfigServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected CdnConfigServiceClient(CdnConfigServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable CdnConfigServiceSettings getSettings() {
+ return settings;
+ }
+
+ public CdnConfigServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CdnConfig` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The `CdnConfig`'s `name` is used to identify the `CdnConfig` to update.
+ * @param updateMask Optional. The list of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig updateCdnConfig(CdnConfig cdnConfig, FieldMask updateMask) {
+ UpdateCdnConfigRequest request =
+ UpdateCdnConfigRequest.newBuilder()
+ .setCdnConfig(cdnConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateCdnConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CdnConfig` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getCdnConfig:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * CdnConfigName name = CdnConfigName.of("[NETWORK_CODE]", "[CDN_CONFIG]");
+ * CdnConfig response = cdnConfigServiceClient.getCdnConfig(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CdnConfigServiceSettings cdnConfigServiceSettings =
+ * CdnConfigServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CdnConfigServiceClient cdnConfigServiceClient =
+ * CdnConfigServiceClient.create(cdnConfigServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CdnConfigServiceSettings cdnConfigServiceSettings =
+ * CdnConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CdnConfigServiceClient cdnConfigServiceClient =
+ * CdnConfigServiceClient.create(cdnConfigServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * CdnConfigName name = CdnConfigName.of("[NETWORK_CODE]", "[CDN_CONFIG]");
+ * CdnConfig response = cdnConfigServiceClient.getCdnConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CdnConfig. Format:
+ * `networks/{network_code}/cdnConfigs/{cdn_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig getCdnConfig(@Nullable CdnConfigName name) {
+ GetCdnConfigRequest request =
+ GetCdnConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getCdnConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String name = CdnConfigName.of("[NETWORK_CODE]", "[CDN_CONFIG]").toString();
+ * CdnConfig response = cdnConfigServiceClient.getCdnConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CdnConfig. Format:
+ * `networks/{network_code}/cdnConfigs/{cdn_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig getCdnConfig(String name) {
+ GetCdnConfigRequest request = GetCdnConfigRequest.newBuilder().setName(name).build();
+ return getCdnConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * GetCdnConfigRequest request =
+ * GetCdnConfigRequest.newBuilder()
+ * .setName(CdnConfigName.of("[NETWORK_CODE]", "[CDN_CONFIG]").toString())
+ * .build();
+ * CdnConfig response = cdnConfigServiceClient.getCdnConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig getCdnConfig(GetCdnConfigRequest request) {
+ return getCdnConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * GetCdnConfigRequest request =
+ * GetCdnConfigRequest.newBuilder()
+ * .setName(CdnConfigName.of("[NETWORK_CODE]", "[CDN_CONFIG]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (CdnConfig element : cdnConfigServiceClient.listCdnConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CdnConfigs. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCdnConfigsPagedResponse listCdnConfigs(@Nullable NetworkName parent) {
+ ListCdnConfigsRequest request =
+ ListCdnConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCdnConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (CdnConfig element : cdnConfigServiceClient.listCdnConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CdnConfigs. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCdnConfigsPagedResponse listCdnConfigs(String parent) {
+ ListCdnConfigsRequest request = ListCdnConfigsRequest.newBuilder().setParent(parent).build();
+ return listCdnConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * ListCdnConfigsRequest request =
+ * ListCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (CdnConfig element : cdnConfigServiceClient.listCdnConfigs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCdnConfigsPagedResponse listCdnConfigs(ListCdnConfigsRequest request) {
+ return listCdnConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * ListCdnConfigsRequest request =
+ * ListCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * ListCdnConfigsRequest request =
+ * ListCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListCdnConfigsResponse response =
+ * cdnConfigServiceClient.listCdnConfigsCallable().call(request);
+ * for (CdnConfig element : response.getCdnConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * CdnConfig cdnConfig = CdnConfig.newBuilder().build();
+ * CdnConfig response = cdnConfigServiceClient.createCdnConfig(parent, cdnConfig);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `CdnConfig` will be created. Format:
+ * `networks/{network_code}`
+ * @param cdnConfig Required. The `CdnConfig` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig createCdnConfig(@Nullable NetworkName parent, CdnConfig cdnConfig) {
+ CreateCdnConfigRequest request =
+ CreateCdnConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCdnConfig(cdnConfig)
+ .build();
+ return createCdnConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * CdnConfig cdnConfig = CdnConfig.newBuilder().build();
+ * CdnConfig response = cdnConfigServiceClient.createCdnConfig(parent, cdnConfig);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `CdnConfig` will be created. Format:
+ * `networks/{network_code}`
+ * @param cdnConfig Required. The `CdnConfig` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig createCdnConfig(String parent, CdnConfig cdnConfig) {
+ CreateCdnConfigRequest request =
+ CreateCdnConfigRequest.newBuilder().setParent(parent).setCdnConfig(cdnConfig).build();
+ return createCdnConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * CreateCdnConfigRequest request =
+ * CreateCdnConfigRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCdnConfig(CdnConfig.newBuilder().build())
+ * .build();
+ * CdnConfig response = cdnConfigServiceClient.createCdnConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig createCdnConfig(CreateCdnConfigRequest request) {
+ return createCdnConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * CreateCdnConfigRequest request =
+ * CreateCdnConfigRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCdnConfig(CdnConfig.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `CdnConfigs` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateCdnConfigRequest must match this
+ * field.
+ * @param requests Required. The `CdnConfig` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateCdnConfigsResponse batchCreateCdnConfigs(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `CdnConfigs` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateCdnConfigRequest must match this
+ * field.
+ * @param requests Required. The `CdnConfig` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateCdnConfigsResponse batchCreateCdnConfigs(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchCreateCdnConfigsRequest request =
+ * BatchCreateCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateCdnConfigsResponse batchCreateCdnConfigs(
+ BatchCreateCdnConfigsRequest request) {
+ return batchCreateCdnConfigsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchCreateCdnConfigsRequest request =
+ * BatchCreateCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * CdnConfig cdnConfig = CdnConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CdnConfig response = cdnConfigServiceClient.updateCdnConfig(cdnConfig, updateMask);
+ * }
+ * }
+ *
+ * @param cdnConfig Required. The `CdnConfig` to update.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * UpdateCdnConfigRequest request =
+ * UpdateCdnConfigRequest.newBuilder()
+ * .setCdnConfig(CdnConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CdnConfig response = cdnConfigServiceClient.updateCdnConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CdnConfig updateCdnConfig(UpdateCdnConfigRequest request) {
+ return updateCdnConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CdnConfig` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * UpdateCdnConfigRequest request =
+ * UpdateCdnConfigRequest.newBuilder()
+ * .setCdnConfig(CdnConfig.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `CdnConfigs` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateCdnConfigRequest must match this
+ * field.
+ * @param requests Required. The `CdnConfig` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateCdnConfigsResponse batchUpdateCdnConfigs(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `CdnConfigs` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateCdnConfigRequest must match this
+ * field.
+ * @param requests Required. The `CdnConfig` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateCdnConfigsResponse batchUpdateCdnConfigs(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchUpdateCdnConfigsRequest request =
+ * BatchUpdateCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateCdnConfigsResponse batchUpdateCdnConfigs(
+ BatchUpdateCdnConfigsRequest request) {
+ return batchUpdateCdnConfigsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchUpdateCdnConfigsRequest request =
+ * BatchUpdateCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CdnConfig` objects to activate. Format:
+ * `networks/{network_code}/cdnConfigs/{cdn_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCdnConfigsResponse batchActivateCdnConfigs(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CdnConfig` objects to activate. Format:
+ * `networks/{network_code}/cdnConfigs/{cdn_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCdnConfigsResponse batchActivateCdnConfigs(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchActivateCdnConfigsRequest request =
+ * BatchActivateCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCdnConfigsResponse batchActivateCdnConfigs(
+ BatchActivateCdnConfigsRequest request) {
+ return batchActivateCdnConfigsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch activates `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchActivateCdnConfigsRequest request =
+ * BatchActivateCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CdnConfig` objects to archive. Format:
+ * `networks/{network_code}/cdnConfigs/{cdn_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveCdnConfigsResponse batchArchiveCdnConfigs(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CdnConfig` objects to archive. Format:
+ * `networks/{network_code}/cdnConfigs/{cdn_config_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveCdnConfigsResponse batchArchiveCdnConfigs(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchArchiveCdnConfigsRequest request =
+ * BatchArchiveCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveCdnConfigsResponse batchArchiveCdnConfigs(
+ BatchArchiveCdnConfigsRequest request) {
+ return batchArchiveCdnConfigsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch archives `CdnConfig` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * BatchArchiveCdnConfigsRequest request =
+ * BatchArchiveCdnConfigsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CdnConfigServiceSettings.Builder cdnConfigServiceSettingsBuilder =
+ * CdnConfigServiceSettings.newBuilder();
+ * cdnConfigServiceSettingsBuilder
+ * .getCdnConfigSettings()
+ * .setRetrySettings(
+ * cdnConfigServiceSettingsBuilder
+ * .getCdnConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * CdnConfigServiceSettings cdnConfigServiceSettings = cdnConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class CdnConfigServiceSettings extends ClientSettings
GetCmsMetadataKey
API to retrieve a `CmsMetadataKey` object.
Retrieves a `CmsMetadataKey` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCmsMetadataKeys
API to retrieve a list of `CmsMetadataKey` objects.
Lists `CmsMetadataKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchActivateCmsMetadataKeys
API to activate a list of `CmsMetadataKey` objects.
Activates a list of `CmsMetadataKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchDeactivateCmsMetadataKeys
API to deactivate a list of `CmsMetadataKey` objects.
Deactivates a list of `CmsMetadataKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -269,7 +269,7 @@ public final CmsMetadataKey getCmsMetadataKey(@Nullable CmsMetadataKeyName name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * Retrieves a `CmsMetadataKey` object. * *
Sample code: * @@ -297,7 +297,7 @@ public final CmsMetadataKey getCmsMetadataKey(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * Retrieves a `CmsMetadataKey` object. * *
Sample code: * @@ -326,7 +326,7 @@ public final CmsMetadataKey getCmsMetadataKey(GetCmsMetadataKeyRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * Retrieves a `CmsMetadataKey` object. * *
Sample code:
*
@@ -355,7 +355,7 @@ public final UnaryCallable Sample code:
*
@@ -389,7 +389,7 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(@Nullable Netw
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CmsMetadataKey` objects.
+ * Lists `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -421,7 +421,7 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(String parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CmsMetadataKey` objects.
+ * Lists `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -459,7 +459,7 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CmsMetadataKey` objects.
+ * Lists `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -496,7 +496,7 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CmsMetadataKey` objects.
+ * Lists `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -540,7 +540,7 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate a list of `CmsMetadataKey` objects.
+ * Activates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -577,7 +577,7 @@ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate a list of `CmsMetadataKey` objects.
+ * Activates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -614,7 +614,7 @@ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate a list of `CmsMetadataKey` objects.
+ * Activates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -646,7 +646,7 @@ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate a list of `CmsMetadataKey` objects.
+ * Activates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -678,7 +678,7 @@ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate a list of `CmsMetadataKey` objects.
+ * Deactivates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -715,7 +715,7 @@ public final BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKe
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate a list of `CmsMetadataKey` objects.
+ * Deactivates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -752,7 +752,7 @@ public final BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKe
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate a list of `CmsMetadataKey` objects.
+ * Deactivates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
@@ -784,7 +784,7 @@ public final BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKe
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate a list of `CmsMetadataKey` objects.
+ * Deactivates a list of `CmsMetadataKey` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java
index 516e29f47c1b..9c9c510f7b8a 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java
@@ -67,7 +67,7 @@
*
GetCmsMetadataValue
API to retrieve a `CmsMetadataValue` object.
Retrieves a `CmsMetadataValue` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCmsMetadataValues
API to retrieve a list of `CmsMetadataValue` objects.
Lists `CmsMetadataValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchActivateCmsMetadataValues
API to activate a list of `CmsMetadataValue` objects.
Activates a list of `CmsMetadataValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchDeactivateCmsMetadataValues
API to deactivate a list of `CmsMetadataValue` objects.
Deactivates a list of `CmsMetadataValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -270,7 +270,7 @@ public final CmsMetadataValue getCmsMetadataValue(@Nullable CmsMetadataValueName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataValue` object. + * Retrieves a `CmsMetadataValue` object. * *
Sample code: * @@ -299,7 +299,7 @@ public final CmsMetadataValue getCmsMetadataValue(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataValue` object. + * Retrieves a `CmsMetadataValue` object. * *
Sample code: * @@ -328,7 +328,7 @@ public final CmsMetadataValue getCmsMetadataValue(GetCmsMetadataValueRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataValue` object. + * Retrieves a `CmsMetadataValue` object. * *
Sample code: * @@ -358,7 +358,7 @@ public final CmsMetadataValue getCmsMetadataValue(GetCmsMetadataValueRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CmsMetadataValue` objects. + * Lists `CmsMetadataValue` objects. * *
Sample code: * @@ -393,7 +393,7 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CmsMetadataValue` objects. + * Lists `CmsMetadataValue` objects. * *
Sample code: * @@ -425,7 +425,7 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(String par // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CmsMetadataValue` objects. + * Lists `CmsMetadataValue` objects. * *
Sample code: * @@ -463,7 +463,7 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CmsMetadataValue` objects. + * Lists `CmsMetadataValue` objects. * *
Sample code: * @@ -500,7 +500,7 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CmsMetadataValue` objects. + * Lists `CmsMetadataValue` objects. * *
Sample code: * @@ -544,7 +544,7 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to activate a list of `CmsMetadataValue` objects. + * Activates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -581,7 +581,7 @@ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValu // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to activate a list of `CmsMetadataValue` objects. + * Activates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -618,7 +618,7 @@ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValu // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to activate a list of `CmsMetadataValue` objects. + * Activates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -650,7 +650,7 @@ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValu // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to activate a list of `CmsMetadataValue` objects. + * Activates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -684,7 +684,7 @@ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValu // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to deactivate a list of `CmsMetadataValue` objects. + * Deactivates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -721,7 +721,7 @@ public final BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadata // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to deactivate a list of `CmsMetadataValue` objects. + * Deactivates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -758,7 +758,7 @@ public final BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadata // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to deactivate a list of `CmsMetadataValue` objects. + * Deactivates a list of `CmsMetadataValue` objects. * *
Sample code: * @@ -790,7 +790,7 @@ public final BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadata // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to deactivate a list of `CmsMetadataValue` objects. + * Deactivates a list of `CmsMetadataValue` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java index 27ad977fe229..4fc202d4690a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java @@ -67,7 +67,7 @@ *
GetContentBundle
API to retrieve a `ContentBundle` object.
Retrieves a `ContentBundle` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListContentBundles
API to retrieve a list of `ContentBundle` objects.
Lists `ContentBundle` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -229,7 +229,7 @@ public final ContentBundle getContentBundle(@Nullable ContentBundleName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ContentBundle` object. + * Retrieves a `ContentBundle` object. * *
Sample code: * @@ -257,7 +257,7 @@ public final ContentBundle getContentBundle(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ContentBundle` object. + * Retrieves a `ContentBundle` object. * *
Sample code: * @@ -286,7 +286,7 @@ public final ContentBundle getContentBundle(GetContentBundleRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ContentBundle` object. + * Retrieves a `ContentBundle` object. * *
Sample code:
*
@@ -315,7 +315,7 @@ public final UnaryCallable Sample code:
*
@@ -349,7 +349,7 @@ public final ListContentBundlesPagedResponse listContentBundles(@Nullable Networ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentBundle` objects.
+ * Lists `ContentBundle` objects.
*
* Sample code:
*
@@ -381,7 +381,7 @@ public final ListContentBundlesPagedResponse listContentBundles(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentBundle` objects.
+ * Lists `ContentBundle` objects.
*
* Sample code:
*
@@ -419,7 +419,7 @@ public final ListContentBundlesPagedResponse listContentBundles(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentBundle` objects.
+ * Lists `ContentBundle` objects.
*
* Sample code:
*
@@ -456,7 +456,7 @@ public final ListContentBundlesPagedResponse listContentBundles(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentBundle` objects.
+ * Lists `ContentBundle` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java
index fa6c6993dada..e85934c145b0 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java
@@ -66,7 +66,7 @@
*
GetContentLabel
API to retrieve a `ContentLabel` object.
Retrieves a `ContentLabel` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListContentLabels
API to retrieve a list of `ContentLabel` objects.
Lists `ContentLabel` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -227,7 +227,7 @@ public final ContentLabel getContentLabel(@Nullable ContentLabelName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ContentLabel` object. + * Retrieves a `ContentLabel` object. * *
Sample code: * @@ -254,7 +254,7 @@ public final ContentLabel getContentLabel(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ContentLabel` object. + * Retrieves a `ContentLabel` object. * *
Sample code: * @@ -282,7 +282,7 @@ public final ContentLabel getContentLabel(GetContentLabelRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ContentLabel` object. + * Retrieves a `ContentLabel` object. * *
Sample code:
*
@@ -310,7 +310,7 @@ public final UnaryCallable Sample code:
*
@@ -343,7 +343,7 @@ public final ListContentLabelsPagedResponse listContentLabels(@Nullable NetworkN
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentLabel` objects.
+ * Lists `ContentLabel` objects.
*
* Sample code:
*
@@ -374,7 +374,7 @@ public final ListContentLabelsPagedResponse listContentLabels(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentLabel` objects.
+ * Lists `ContentLabel` objects.
*
* Sample code:
*
@@ -410,7 +410,7 @@ public final ListContentLabelsPagedResponse listContentLabels(ListContentLabelsR
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentLabel` objects.
+ * Lists `ContentLabel` objects.
*
* Sample code:
*
@@ -446,7 +446,7 @@ public final ListContentLabelsPagedResponse listContentLabels(ListContentLabelsR
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ContentLabel` objects.
+ * Lists `ContentLabel` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java
index 767505dd0724..8bfc2628d40a 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java
@@ -65,7 +65,7 @@
*
GetContent
API to retrieve a `Content` object.
Retrieves a `Content` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListContent
API to retrieve a list of `Content` objects.
Lists `Content` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -224,7 +224,7 @@ public final Content getContent(@Nullable ContentName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Content` object. + * Retrieves a `Content` object. * *
Sample code: * @@ -251,7 +251,7 @@ public final Content getContent(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Content` object. + * Retrieves a `Content` object. * *
Sample code: * @@ -279,7 +279,7 @@ public final Content getContent(GetContentRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Content` object. + * Retrieves a `Content` object. * *
Sample code:
*
@@ -306,7 +306,7 @@ public final UnaryCallable Sample code:
*
@@ -338,7 +338,7 @@ public final ListContentPagedResponse listContent(@Nullable NetworkName parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Content` objects.
+ * Lists `Content` objects.
*
* Sample code:
*
@@ -367,7 +367,7 @@ public final ListContentPagedResponse listContent(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Content` objects.
+ * Lists `Content` objects.
*
* Sample code:
*
@@ -402,7 +402,7 @@ public final ListContentPagedResponse listContent(ListContentRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Content` objects.
+ * Lists `Content` objects.
*
* Sample code:
*
@@ -438,7 +438,7 @@ public final ListContentPagedResponse listContent(ListContentRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Content` objects.
+ * Lists `Content` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java
index 956b1191f827..258ae1c338c7 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java
@@ -67,7 +67,7 @@
*
GetCreativeTemplate
API to retrieve a `CreativeTemplate` object.
Retrieves a `CreativeTemplate` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCreativeTemplates
API to retrieve a list of `CreativeTemplate` objects.
Lists `CreativeTemplate` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -232,7 +232,7 @@ public final CreativeTemplate getCreativeTemplate(@Nullable CreativeTemplateName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CreativeTemplate` object. + * Retrieves a `CreativeTemplate` object. * *
Sample code: * @@ -261,7 +261,7 @@ public final CreativeTemplate getCreativeTemplate(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CreativeTemplate` object. + * Retrieves a `CreativeTemplate` object. * *
Sample code: * @@ -290,7 +290,7 @@ public final CreativeTemplate getCreativeTemplate(GetCreativeTemplateRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CreativeTemplate` object. + * Retrieves a `CreativeTemplate` object. * *
Sample code: * @@ -320,7 +320,7 @@ public final CreativeTemplate getCreativeTemplate(GetCreativeTemplateRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CreativeTemplate` objects. + * Lists `CreativeTemplate` objects. * *
Sample code: * @@ -355,7 +355,7 @@ public final ListCreativeTemplatesPagedResponse listCreativeTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CreativeTemplate` objects. + * Lists `CreativeTemplate` objects. * *
Sample code: * @@ -387,7 +387,7 @@ public final ListCreativeTemplatesPagedResponse listCreativeTemplates(String par // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CreativeTemplate` objects. + * Lists `CreativeTemplate` objects. * *
Sample code: * @@ -425,7 +425,7 @@ public final ListCreativeTemplatesPagedResponse listCreativeTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CreativeTemplate` objects. + * Lists `CreativeTemplate` objects. * *
Sample code: * @@ -462,7 +462,7 @@ public final ListCreativeTemplatesPagedResponse listCreativeTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CreativeTemplate` objects. + * Lists `CreativeTemplate` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java index 1a441541eef4..9a90f40edcc8 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java @@ -67,7 +67,7 @@ *
GetCustomField
API to retrieve a `CustomField` object.
Retrieves a `CustomField` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCustomFields
API to retrieve a list of `CustomField` objects.
Lists `CustomField` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateCustomField
API to create a `CustomField` object.
Creates a `CustomField` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreateCustomFields
API to batch create `CustomField` objects.
Creates `CustomField` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateCustomField
API to update a `CustomField` object.
Updates a `CustomField` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdateCustomFields
API to batch update `CustomField` objects.
Batch updates `CustomField` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -335,7 +335,7 @@ public final CustomField getCustomField(@Nullable CustomFieldName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomField` object. + * Retrieves a `CustomField` object. * *
Sample code: * @@ -362,7 +362,7 @@ public final CustomField getCustomField(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomField` object. + * Retrieves a `CustomField` object. * *
Sample code: * @@ -390,7 +390,7 @@ public final CustomField getCustomField(GetCustomFieldRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomField` object. + * Retrieves a `CustomField` object. * *
Sample code:
*
@@ -418,7 +418,7 @@ public final UnaryCallable Sample code:
*
@@ -450,7 +450,7 @@ public final ListCustomFieldsPagedResponse listCustomFields(@Nullable NetworkNam
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CustomField` objects.
+ * Lists `CustomField` objects.
*
* Sample code:
*
@@ -480,7 +480,7 @@ public final ListCustomFieldsPagedResponse listCustomFields(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CustomField` objects.
+ * Lists `CustomField` objects.
*
* Sample code:
*
@@ -515,7 +515,7 @@ public final ListCustomFieldsPagedResponse listCustomFields(ListCustomFieldsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CustomField` objects.
+ * Lists `CustomField` objects.
*
* Sample code:
*
@@ -551,7 +551,7 @@ public final ListCustomFieldsPagedResponse listCustomFields(ListCustomFieldsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `CustomField` objects.
+ * Lists `CustomField` objects.
*
* Sample code:
*
@@ -594,7 +594,7 @@ public final ListCustomFieldsPagedResponse listCustomFields(ListCustomFieldsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `CustomField` object.
+ * Creates a `CustomField` object.
*
* Sample code:
*
@@ -628,7 +628,7 @@ public final CustomField createCustomField(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `CustomField` object.
+ * Creates a `CustomField` object.
*
* Sample code:
*
@@ -658,7 +658,7 @@ public final CustomField createCustomField(String parent, CustomField customFiel
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `CustomField` object.
+ * Creates a `CustomField` object.
*
* Sample code:
*
@@ -687,7 +687,7 @@ public final CustomField createCustomField(CreateCustomFieldRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `CustomField` object.
+ * Creates a `CustomField` object.
*
* Sample code:
*
@@ -716,7 +716,7 @@ public final UnaryCallable Sample code:
*
@@ -753,7 +753,7 @@ public final BatchCreateCustomFieldsResponse batchCreateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `CustomField` objects.
+ * Creates `CustomField` objects.
*
* Sample code:
*
@@ -790,7 +790,7 @@ public final BatchCreateCustomFieldsResponse batchCreateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `CustomField` objects.
+ * Creates `CustomField` objects.
*
* Sample code:
*
@@ -821,7 +821,7 @@ public final BatchCreateCustomFieldsResponse batchCreateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `CustomField` objects.
+ * Creates `CustomField` objects.
*
* Sample code:
*
@@ -851,7 +851,7 @@ public final BatchCreateCustomFieldsResponse batchCreateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `CustomField` object.
+ * Updates a `CustomField` object.
*
* Sample code:
*
@@ -884,7 +884,7 @@ public final CustomField updateCustomField(CustomField customField, FieldMask up
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `CustomField` object.
+ * Updates a `CustomField` object.
*
* Sample code:
*
@@ -913,7 +913,7 @@ public final CustomField updateCustomField(UpdateCustomFieldRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `CustomField` object.
+ * Updates a `CustomField` object.
*
* Sample code:
*
@@ -942,7 +942,7 @@ public final UnaryCallable Sample code:
*
@@ -979,7 +979,7 @@ public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `CustomField` objects.
+ * Batch updates `CustomField` objects.
*
* Sample code:
*
@@ -1016,7 +1016,7 @@ public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `CustomField` objects.
+ * Batch updates `CustomField` objects.
*
* Sample code:
*
@@ -1047,7 +1047,7 @@ public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `CustomField` objects.
+ * Batch updates `CustomField` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java
index 98580d160512..c77b633266a2 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java
@@ -69,7 +69,7 @@
*
GetCustomTargetingKey
API to retrieve a `CustomTargetingKey` object.
Retrieves a `CustomTargetingKey` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCustomTargetingKeys
API to retrieve a list of `CustomTargetingKey` objects.
Lists `CustomTargetingKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateCustomTargetingKey
API to create a `CustomTargetingKey` object.
Creates a `CustomTargetingKey` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreateCustomTargetingKeys
API to batch create `CustomTargetingKey` objects.
Creates `CustomTargetingKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateCustomTargetingKey
API to update a `CustomTargetingKey` object.
Updates a `CustomTargetingKey` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdateCustomTargetingKeys
API to batch update `CustomTargetingKey` objects.
Batch updates `CustomTargetingKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchActivateCustomTargetingKeys
API to batch activate `CustomTargetingKey` objects.
Batch activates `CustomTargetingKey` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -343,7 +343,7 @@ public final CustomTargetingKey getCustomTargetingKey(@Nullable CustomTargetingK // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingKey` object. + * Retrieves a `CustomTargetingKey` object. * *
Sample code: * @@ -373,7 +373,7 @@ public final CustomTargetingKey getCustomTargetingKey(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingKey` object. + * Retrieves a `CustomTargetingKey` object. * *
Sample code: * @@ -403,7 +403,7 @@ public final CustomTargetingKey getCustomTargetingKey(GetCustomTargetingKeyReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingKey` object. + * Retrieves a `CustomTargetingKey` object. * *
Sample code: * @@ -434,7 +434,7 @@ public final CustomTargetingKey getCustomTargetingKey(GetCustomTargetingKeyReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingKey` objects. + * Lists `CustomTargetingKey` objects. * *
Sample code: * @@ -469,7 +469,7 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingKey` objects. + * Lists `CustomTargetingKey` objects. * *
Sample code: * @@ -501,7 +501,7 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingKey` objects. + * Lists `CustomTargetingKey` objects. * *
Sample code: * @@ -539,7 +539,7 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingKey` objects. + * Lists `CustomTargetingKey` objects. * *
Sample code: * @@ -578,7 +578,7 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingKey` objects. + * Lists `CustomTargetingKey` objects. * *
Sample code: * @@ -622,7 +622,7 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `CustomTargetingKey` object. + * Creates a `CustomTargetingKey` object. * *
Sample code: * @@ -658,7 +658,7 @@ public final CustomTargetingKey createCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `CustomTargetingKey` object. + * Creates a `CustomTargetingKey` object. * *
Sample code: * @@ -694,7 +694,7 @@ public final CustomTargetingKey createCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `CustomTargetingKey` object. + * Creates a `CustomTargetingKey` object. * *
Sample code: * @@ -726,7 +726,7 @@ public final CustomTargetingKey createCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `CustomTargetingKey` object. + * Creates a `CustomTargetingKey` object. * *
Sample code: * @@ -757,7 +757,7 @@ public final CustomTargetingKey createCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch create `CustomTargetingKey` objects. + * Creates `CustomTargetingKey` objects. * *
Sample code: * @@ -795,7 +795,7 @@ public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch create `CustomTargetingKey` objects. + * Creates `CustomTargetingKey` objects. * *
Sample code: * @@ -833,7 +833,7 @@ public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch create `CustomTargetingKey` objects. + * Creates `CustomTargetingKey` objects. * *
Sample code: * @@ -865,7 +865,7 @@ public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch create `CustomTargetingKey` objects. + * Creates `CustomTargetingKey` objects. * *
Sample code: * @@ -899,7 +899,7 @@ public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to update a `CustomTargetingKey` object. + * Updates a `CustomTargetingKey` object. * *
Sample code: * @@ -936,7 +936,7 @@ public final CustomTargetingKey updateCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to update a `CustomTargetingKey` object. + * Updates a `CustomTargetingKey` object. * *
Sample code: * @@ -968,7 +968,7 @@ public final CustomTargetingKey updateCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to update a `CustomTargetingKey` object. + * Updates a `CustomTargetingKey` object. * *
Sample code: * @@ -999,7 +999,7 @@ public final CustomTargetingKey updateCustomTargetingKey( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch update `CustomTargetingKey` objects. + * Batch updates `CustomTargetingKey` objects. * *
Sample code: * @@ -1037,7 +1037,7 @@ public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch update `CustomTargetingKey` objects. + * Batch updates `CustomTargetingKey` objects. * *
Sample code: * @@ -1075,7 +1075,7 @@ public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch update `CustomTargetingKey` objects. + * Batch updates `CustomTargetingKey` objects. * *
Sample code: * @@ -1107,7 +1107,7 @@ public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch update `CustomTargetingKey` objects. + * Batch updates `CustomTargetingKey` objects. * *
Sample code: * @@ -1141,7 +1141,7 @@ public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch activate `CustomTargetingKey` objects. + * Batch activates `CustomTargetingKey` objects. * *
Sample code: * @@ -1177,7 +1177,7 @@ public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargeti // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch activate `CustomTargetingKey` objects. + * Batch activates `CustomTargetingKey` objects. * *
Sample code: * @@ -1213,7 +1213,7 @@ public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargeti // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch activate `CustomTargetingKey` objects. + * Batch activates `CustomTargetingKey` objects. * *
Sample code: * @@ -1245,7 +1245,7 @@ public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargeti // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to batch activate `CustomTargetingKey` objects. + * Batch activates `CustomTargetingKey` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java index e22b14965491..be34c5c7ddbb 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -69,7 +70,7 @@ *
GetCustomTargetingValue
API to retrieve a `CustomTargetingValue` object.
Retrieves a `CustomTargetingValue` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCustomTargetingValues
API to retrieve a list of `CustomTargetingValue` objects.
Lists `CustomTargetingValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateCustomTargetingValue
Creates a `CustomTargetingValue` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createCustomTargetingValue(CreateCustomTargetingValueRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *createCustomTargetingValue(NetworkName parent, CustomTargetingValue customTargetingValue) + *
createCustomTargetingValue(String parent, CustomTargetingValue customTargetingValue) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createCustomTargetingValueCallable() + *
BatchCreateCustomTargetingValues
Creates `CustomTargetingValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchCreateCustomTargetingValues(NetworkName parent, List<CreateCustomTargetingValueRequest> requests) + *
batchCreateCustomTargetingValues(String parent, List<CreateCustomTargetingValueRequest> requests) + *
batchCreateCustomTargetingValues(BatchCreateCustomTargetingValuesRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchCreateCustomTargetingValuesCallable() + *
UpdateCustomTargetingValue
Updates a `CustomTargetingValue` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateCustomTargetingValue(UpdateCustomTargetingValueRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *updateCustomTargetingValue(CustomTargetingValue customTargetingValue, FieldMask updateMask) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *updateCustomTargetingValueCallable() + *
BatchUpdateCustomTargetingValues
Batch updates `CustomTargetingValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchUpdateCustomTargetingValues(NetworkName parent, List<UpdateCustomTargetingValueRequest> requests) + *
batchUpdateCustomTargetingValues(String parent, List<UpdateCustomTargetingValueRequest> requests) + *
batchUpdateCustomTargetingValues(BatchUpdateCustomTargetingValuesRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchUpdateCustomTargetingValuesCallable() + *
BatchActivateCustomTargetingValues
Batch activates `CustomTargetingValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchActivateCustomTargetingValues(NetworkName parent, List<ActivateCustomTargetingValueRequest> requests) + *
batchActivateCustomTargetingValues(String parent, List<ActivateCustomTargetingValueRequest> requests) + *
batchActivateCustomTargetingValues(BatchActivateCustomTargetingValuesRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchActivateCustomTargetingValuesCallable() + *
BatchDeactivateCustomTargetingValues
Deactivates a list of `CustomTargetingValue` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchDeactivateCustomTargetingValues(NetworkName parent, List<DeactivateCustomTargetingValueRequest> requests) + *
batchDeactivateCustomTargetingValues(String parent, List<DeactivateCustomTargetingValueRequest> requests) + *
batchDeactivateCustomTargetingValues(BatchDeactivateCustomTargetingValuesRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchDeactivateCustomTargetingValuesCallable() + *
See the individual methods for example code. @@ -205,7 +307,7 @@ public CustomTargetingValueServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingValue` object. + * Retrieves a `CustomTargetingValue` object. * *
Sample code: * @@ -239,7 +341,7 @@ public final CustomTargetingValue getCustomTargetingValue( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingValue` object. + * Retrieves a `CustomTargetingValue` object. * *
Sample code: * @@ -270,7 +372,7 @@ public final CustomTargetingValue getCustomTargetingValue(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingValue` object. + * Retrieves a `CustomTargetingValue` object. * *
Sample code: * @@ -303,7 +405,7 @@ public final CustomTargetingValue getCustomTargetingValue( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CustomTargetingValue` object. + * Retrieves a `CustomTargetingValue` object. * *
Sample code: * @@ -335,7 +437,7 @@ public final CustomTargetingValue getCustomTargetingValue( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingValue` objects. + * Lists `CustomTargetingValue` objects. * *
Sample code: * @@ -370,7 +472,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingValue` objects. + * Lists `CustomTargetingValue` objects. * *
Sample code: * @@ -402,7 +504,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues(St // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingValue` objects. + * Lists `CustomTargetingValue` objects. * *
Sample code: * @@ -440,7 +542,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingValue` objects. + * Lists `CustomTargetingValue` objects. * *
Sample code: * @@ -480,7 +582,7 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `CustomTargetingValue` objects. + * Lists `CustomTargetingValue` objects. * *
Sample code: * @@ -522,6 +624,806 @@ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( return stub.listCustomTargetingValuesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `CustomTargetingValue` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * CustomTargetingValue customTargetingValue = CustomTargetingValue.newBuilder().build();
+ * CustomTargetingValue response =
+ * customTargetingValueServiceClient.createCustomTargetingValue(
+ * parent, customTargetingValue);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param customTargetingValue Required. The `CustomTargetingValue` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomTargetingValue createCustomTargetingValue(
+ @Nullable NetworkName parent, CustomTargetingValue customTargetingValue) {
+ CreateCustomTargetingValueRequest request =
+ CreateCustomTargetingValueRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCustomTargetingValue(customTargetingValue)
+ .build();
+ return createCustomTargetingValue(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CustomTargetingValue` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * CustomTargetingValue customTargetingValue = CustomTargetingValue.newBuilder().build();
+ * CustomTargetingValue response =
+ * customTargetingValueServiceClient.createCustomTargetingValue(
+ * parent, customTargetingValue);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param customTargetingValue Required. The `CustomTargetingValue` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomTargetingValue createCustomTargetingValue(
+ String parent, CustomTargetingValue customTargetingValue) {
+ CreateCustomTargetingValueRequest request =
+ CreateCustomTargetingValueRequest.newBuilder()
+ .setParent(parent)
+ .setCustomTargetingValue(customTargetingValue)
+ .build();
+ return createCustomTargetingValue(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CustomTargetingValue` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * CreateCustomTargetingValueRequest request =
+ * CreateCustomTargetingValueRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCustomTargetingValue(CustomTargetingValue.newBuilder().build())
+ * .build();
+ * CustomTargetingValue response =
+ * customTargetingValueServiceClient.createCustomTargetingValue(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomTargetingValue createCustomTargetingValue(
+ CreateCustomTargetingValueRequest request) {
+ return createCustomTargetingValueCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CustomTargetingValue` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * CreateCustomTargetingValueRequest request =
+ * CreateCustomTargetingValueRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCustomTargetingValue(CustomTargetingValue.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * customTargetingValueServiceClient
+ * .createCustomTargetingValueCallable()
+ * .futureCall(request);
+ * // Do something.
+ * CustomTargetingValue response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchCreateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchCreateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param requests Required. The `CustomTargetingValue` objects to create. A maximum of 100
+ * objects can be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateCustomTargetingValuesResponse batchCreateCustomTargetingValues(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchCreateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param requests Required. The `CustomTargetingValue` objects to create. A maximum of 100
+ * objects can be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateCustomTargetingValuesResponse batchCreateCustomTargetingValues(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchCreateCustomTargetingValuesRequest request =
+ * BatchCreateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchCreateCustomTargetingValues(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateCustomTargetingValuesResponse batchCreateCustomTargetingValues(
+ BatchCreateCustomTargetingValuesRequest request) {
+ return batchCreateCustomTargetingValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates `CustomTargetingValue` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchCreateCustomTargetingValuesRequest request =
+ * BatchCreateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * customTargetingValueServiceClient
+ * .batchCreateCustomTargetingValuesCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchCreateCustomTargetingValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchCreateCustomTargetingValuesRequest, BatchCreateCustomTargetingValuesResponse>
+ batchCreateCustomTargetingValuesCallable() {
+ return stub.batchCreateCustomTargetingValuesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CustomTargetingValue` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * CustomTargetingValue customTargetingValue = CustomTargetingValue.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CustomTargetingValue response =
+ * customTargetingValueServiceClient.updateCustomTargetingValue(
+ * customTargetingValue, updateMask);
+ * }
+ * }
+ *
+ * @param customTargetingValue Required. The `CustomTargetingValue` to update.
+ * The `CustomTargetingValue`'s `name` is used to identify the `CustomTargetingValue` to + * update. + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetingValue updateCustomTargetingValue( + CustomTargetingValue customTargetingValue, FieldMask updateMask) { + UpdateCustomTargetingValueRequest request = + UpdateCustomTargetingValueRequest.newBuilder() + .setCustomTargetingValue(customTargetingValue) + .setUpdateMask(updateMask) + .build(); + return updateCustomTargetingValue(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `CustomTargetingValue` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * UpdateCustomTargetingValueRequest request =
+ * UpdateCustomTargetingValueRequest.newBuilder()
+ * .setCustomTargetingValue(CustomTargetingValue.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CustomTargetingValue response =
+ * customTargetingValueServiceClient.updateCustomTargetingValue(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomTargetingValue updateCustomTargetingValue(
+ UpdateCustomTargetingValueRequest request) {
+ return updateCustomTargetingValueCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CustomTargetingValue` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * UpdateCustomTargetingValueRequest request =
+ * UpdateCustomTargetingValueRequest.newBuilder()
+ * .setCustomTargetingValue(CustomTargetingValue.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * customTargetingValueServiceClient
+ * .updateCustomTargetingValueCallable()
+ * .futureCall(request);
+ * // Do something.
+ * CustomTargetingValue response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchUpdateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchUpdateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param requests Required. The `CustomTargetingValue` objects to update. A maximum of 100
+ * objects can be updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateCustomTargetingValuesResponse batchUpdateCustomTargetingValues(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchUpdateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchUpdateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param requests Required. The `CustomTargetingValue` objects to update. A maximum of 100
+ * objects can be updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateCustomTargetingValuesResponse batchUpdateCustomTargetingValues(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchUpdateCustomTargetingValuesRequest request =
+ * BatchUpdateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchUpdateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchUpdateCustomTargetingValues(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateCustomTargetingValuesResponse batchUpdateCustomTargetingValues(
+ BatchUpdateCustomTargetingValuesRequest request) {
+ return batchUpdateCustomTargetingValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `CustomTargetingValue` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchUpdateCustomTargetingValuesRequest request =
+ * BatchUpdateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * customTargetingValueServiceClient
+ * .batchUpdateCustomTargetingValuesCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchUpdateCustomTargetingValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchUpdateCustomTargetingValuesRequest, BatchUpdateCustomTargetingValuesResponse>
+ batchUpdateCustomTargetingValuesCallable() {
+ return stub.batchUpdateCustomTargetingValuesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch activates `CustomTargetingValue` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchActivateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchActivateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param requests Required. The `CustomTargetingValue` objects to activate. A maximum of 100
+ * objects can be activated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCustomTargetingValuesResponse batchActivateCustomTargetingValues(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchActivateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchActivateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}`
+ * @param requests Required. The `CustomTargetingValue` objects to activate. A maximum of 100
+ * objects can be activated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCustomTargetingValuesResponse batchActivateCustomTargetingValues(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchActivateCustomTargetingValuesRequest request =
+ * BatchActivateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchActivateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchActivateCustomTargetingValues(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCustomTargetingValuesResponse batchActivateCustomTargetingValues(
+ BatchActivateCustomTargetingValuesRequest request) {
+ return batchActivateCustomTargetingValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch activates `CustomTargetingValue` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchActivateCustomTargetingValuesRequest request =
+ * BatchActivateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * customTargetingValueServiceClient
+ * .batchActivateCustomTargetingValuesCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchActivateCustomTargetingValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchActivateCustomTargetingValuesRequest, BatchActivateCustomTargetingValuesResponse>
+ batchActivateCustomTargetingValuesCallable() {
+ return stub.batchActivateCustomTargetingValuesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `CustomTargetingValue` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchDeactivateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchDeactivateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}/`
+ * @param requests Required. The `CustomTargetingValue` objects to deactivate.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCustomTargetingValuesResponse batchDeactivateCustomTargetingValues(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchDeactivateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchDeactivateCustomTargetingValues(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CustomTargetingValues.
+ * Format: `networks/{network_code}/`
+ * @param requests Required. The `CustomTargetingValue` objects to deactivate.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCustomTargetingValuesResponse batchDeactivateCustomTargetingValues(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchDeactivateCustomTargetingValuesRequest request =
+ * BatchDeactivateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchDeactivateCustomTargetingValuesResponse response =
+ * customTargetingValueServiceClient.batchDeactivateCustomTargetingValues(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCustomTargetingValuesResponse batchDeactivateCustomTargetingValues(
+ BatchDeactivateCustomTargetingValuesRequest request) {
+ return batchDeactivateCustomTargetingValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `CustomTargetingValue` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
+ * CustomTargetingValueServiceClient.create()) {
+ * BatchDeactivateCustomTargetingValuesRequest request =
+ * BatchDeactivateCustomTargetingValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * customTargetingValueServiceClient
+ * .batchDeactivateCustomTargetingValuesCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchDeactivateCustomTargetingValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchDeactivateCustomTargetingValuesRequest, BatchDeactivateCustomTargetingValuesResponse>
+ batchDeactivateCustomTargetingValuesCallable() {
+ return stub.batchDeactivateCustomTargetingValuesCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java
index 5694b8bdc421..7173aa72324d 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java
@@ -108,6 +108,54 @@ public class CustomTargetingValueServiceSettings
.listCustomTargetingValuesSettings();
}
+ /** Returns the object with the settings used for calls to createCustomTargetingValue. */
+ public UnaryCallSettingsGetDeviceCapability
API to retrieve a `DeviceCapability` object.
Retrieves a `DeviceCapability` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListDeviceCapabilities
API to retrieve a list of `DeviceCapability` objects.
Lists `DeviceCapability` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -232,7 +232,7 @@ public final DeviceCapability getDeviceCapability(@Nullable DeviceCapabilityName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceCapability` object. + * Retrieves a `DeviceCapability` object. * *
Sample code: * @@ -261,7 +261,7 @@ public final DeviceCapability getDeviceCapability(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceCapability` object. + * Retrieves a `DeviceCapability` object. * *
Sample code: * @@ -290,7 +290,7 @@ public final DeviceCapability getDeviceCapability(GetDeviceCapabilityRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceCapability` object. + * Retrieves a `DeviceCapability` object. * *
Sample code: * @@ -320,7 +320,7 @@ public final DeviceCapability getDeviceCapability(GetDeviceCapabilityRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceCapability` objects. + * Lists `DeviceCapability` objects. * *
Sample code: * @@ -355,7 +355,7 @@ public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceCapability` objects. + * Lists `DeviceCapability` objects. * *
Sample code: * @@ -387,7 +387,7 @@ public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities(String p // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceCapability` objects. + * Lists `DeviceCapability` objects. * *
Sample code: * @@ -425,7 +425,7 @@ public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceCapability` objects. + * Lists `DeviceCapability` objects. * *
Sample code: * @@ -462,7 +462,7 @@ public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceCapability` objects. + * Lists `DeviceCapability` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java index 6d5fff7ff1fe..148245dff154 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java @@ -67,7 +67,7 @@ *
GetDeviceCategory
API to retrieve a `DeviceCategory` object.
Retrieves a `DeviceCategory` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListDeviceCategories
API to retrieve a list of `DeviceCategory` objects.
Lists `DeviceCategory` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -231,7 +231,7 @@ public final DeviceCategory getDeviceCategory(@Nullable DeviceCategoryName name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceCategory` object. + * Retrieves a `DeviceCategory` object. * *
Sample code: * @@ -259,7 +259,7 @@ public final DeviceCategory getDeviceCategory(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceCategory` object. + * Retrieves a `DeviceCategory` object. * *
Sample code: * @@ -288,7 +288,7 @@ public final DeviceCategory getDeviceCategory(GetDeviceCategoryRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceCategory` object. + * Retrieves a `DeviceCategory` object. * *
Sample code:
*
@@ -317,7 +317,7 @@ public final UnaryCallable Sample code:
*
@@ -352,7 +352,7 @@ public final ListDeviceCategoriesPagedResponse listDeviceCategories(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `DeviceCategory` objects.
+ * Lists `DeviceCategory` objects.
*
* Sample code:
*
@@ -384,7 +384,7 @@ public final ListDeviceCategoriesPagedResponse listDeviceCategories(String paren
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `DeviceCategory` objects.
+ * Lists `DeviceCategory` objects.
*
* Sample code:
*
@@ -422,7 +422,7 @@ public final ListDeviceCategoriesPagedResponse listDeviceCategories(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `DeviceCategory` objects.
+ * Lists `DeviceCategory` objects.
*
* Sample code:
*
@@ -459,7 +459,7 @@ public final ListDeviceCategoriesPagedResponse listDeviceCategories(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `DeviceCategory` objects.
+ * Lists `DeviceCategory` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java
index 20f25e6bffa7..714d6c7699d6 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java
@@ -68,7 +68,7 @@
*
GetDeviceManufacturer
API to retrieve a `DeviceManufacturer` object.
Retrieves a `DeviceManufacturer` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListDeviceManufacturers
API to retrieve a list of `DeviceManufacturer` objects.
Lists `DeviceManufacturer` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -235,7 +235,7 @@ public final DeviceManufacturer getDeviceManufacturer(@Nullable DeviceManufactur // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceManufacturer` object. + * Retrieves a `DeviceManufacturer` object. * *
Sample code: * @@ -264,7 +264,7 @@ public final DeviceManufacturer getDeviceManufacturer(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceManufacturer` object. + * Retrieves a `DeviceManufacturer` object. * *
Sample code: * @@ -294,7 +294,7 @@ public final DeviceManufacturer getDeviceManufacturer(GetDeviceManufacturerReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `DeviceManufacturer` object. + * Retrieves a `DeviceManufacturer` object. * *
Sample code: * @@ -325,7 +325,7 @@ public final DeviceManufacturer getDeviceManufacturer(GetDeviceManufacturerReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceManufacturer` objects. + * Lists `DeviceManufacturer` objects. * *
Sample code: * @@ -360,7 +360,7 @@ public final ListDeviceManufacturersPagedResponse listDeviceManufacturers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceManufacturer` objects. + * Lists `DeviceManufacturer` objects. * *
Sample code: * @@ -392,7 +392,7 @@ public final ListDeviceManufacturersPagedResponse listDeviceManufacturers(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceManufacturer` objects. + * Lists `DeviceManufacturer` objects. * *
Sample code: * @@ -430,7 +430,7 @@ public final ListDeviceManufacturersPagedResponse listDeviceManufacturers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceManufacturer` objects. + * Lists `DeviceManufacturer` objects. * *
Sample code: * @@ -469,7 +469,7 @@ public final ListDeviceManufacturersPagedResponse listDeviceManufacturers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `DeviceManufacturer` objects. + * Lists `DeviceManufacturer` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java index 8e1d7955647c..8acf736cc707 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java @@ -66,7 +66,7 @@ *
GetGeoTarget
API to retrieve a `GeoTarget` object.
Retrieves a `GeoTarget` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListGeoTargets
API to retrieve a list of `GeoTarget` objects.
Lists `GeoTarget` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -227,7 +227,7 @@ public final GeoTarget getGeoTarget(@Nullable GeoTargetName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `GeoTarget` object. + * Retrieves a `GeoTarget` object. * *
Sample code: * @@ -254,7 +254,7 @@ public final GeoTarget getGeoTarget(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `GeoTarget` object. + * Retrieves a `GeoTarget` object. * *
Sample code: * @@ -282,7 +282,7 @@ public final GeoTarget getGeoTarget(GetGeoTargetRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `GeoTarget` object. + * Retrieves a `GeoTarget` object. * *
Sample code:
*
@@ -310,7 +310,7 @@ public final UnaryCallable Sample code:
*
@@ -342,7 +342,7 @@ public final ListGeoTargetsPagedResponse listGeoTargets(@Nullable NetworkName pa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `GeoTarget` objects.
+ * Lists `GeoTarget` objects.
*
* Sample code:
*
@@ -371,7 +371,7 @@ public final ListGeoTargetsPagedResponse listGeoTargets(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `GeoTarget` objects.
+ * Lists `GeoTarget` objects.
*
* Sample code:
*
@@ -406,7 +406,7 @@ public final ListGeoTargetsPagedResponse listGeoTargets(ListGeoTargetsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `GeoTarget` objects.
+ * Lists `GeoTarget` objects.
*
* Sample code:
*
@@ -442,7 +442,7 @@ public final ListGeoTargetsPagedResponse listGeoTargets(ListGeoTargetsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `GeoTarget` objects.
+ * Lists `GeoTarget` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java
index 6e9d7e586559..c1f75950a415 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java
@@ -66,7 +66,7 @@
*
GetLabel
API to retrieve a `Label` object.
Retrieves a `Label` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListLabels
API to retrieve a list of `Label` objects.
Lists `Label` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateLabel
API to create a `Label` object.
Creates a `Label` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreateLabels
API to batch create `Label` objects.
Creates `Label` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateLabel
API to update a `Label` object.
Updates a `Label` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdateLabels
API to batch update `Label` objects.
Batch updates `Label` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchActivateLabels
API to activate `Label` objects.
Activates `Label` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchDeactivateLabels
API to deactivate `Label` objects.
Deactivates `Label` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -331,7 +331,7 @@ public final Label getLabel(@Nullable LabelName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Label` object. + * Retrieves a `Label` object. * *
Sample code: * @@ -358,7 +358,7 @@ public final Label getLabel(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Label` object. + * Retrieves a `Label` object. * *
Sample code: * @@ -386,7 +386,7 @@ public final Label getLabel(GetLabelRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Label` object. + * Retrieves a `Label` object. * *
Sample code:
*
@@ -413,7 +413,7 @@ public final UnaryCallable Sample code:
*
@@ -443,7 +443,7 @@ public final ListLabelsPagedResponse listLabels(@Nullable NetworkName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Label` objects.
+ * Lists `Label` objects.
*
* Sample code:
*
@@ -472,7 +472,7 @@ public final ListLabelsPagedResponse listLabels(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Label` objects.
+ * Lists `Label` objects.
*
* Sample code:
*
@@ -507,7 +507,7 @@ public final ListLabelsPagedResponse listLabels(ListLabelsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Label` objects.
+ * Lists `Label` objects.
*
* Sample code:
*
@@ -541,7 +541,7 @@ public final UnaryCallable Sample code:
*
@@ -582,7 +582,7 @@ public final UnaryCallable Sample code:
*
@@ -615,7 +615,7 @@ public final Label createLabel(@Nullable NetworkName parent, Label label) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Label` object.
+ * Creates a `Label` object.
*
* Sample code:
*
@@ -645,7 +645,7 @@ public final Label createLabel(String parent, Label label) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Label` object.
+ * Creates a `Label` object.
*
* Sample code:
*
@@ -674,7 +674,7 @@ public final Label createLabel(CreateLabelRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Label` object.
+ * Creates a `Label` object.
*
* Sample code:
*
@@ -702,7 +702,7 @@ public final UnaryCallable Sample code:
*
@@ -737,7 +737,7 @@ public final BatchCreateLabelsResponse batchCreateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Label` objects.
+ * Creates `Label` objects.
*
* Sample code:
*
@@ -769,7 +769,7 @@ public final BatchCreateLabelsResponse batchCreateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Label` objects.
+ * Creates `Label` objects.
*
* Sample code:
*
@@ -798,7 +798,7 @@ public final BatchCreateLabelsResponse batchCreateLabels(BatchCreateLabelsReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Label` objects.
+ * Creates `Label` objects.
*
* Sample code:
*
@@ -828,7 +828,7 @@ public final BatchCreateLabelsResponse batchCreateLabels(BatchCreateLabelsReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Label` object.
+ * Updates a `Label` object.
*
* Sample code:
*
@@ -858,7 +858,7 @@ public final Label updateLabel(Label label, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Label` object.
+ * Updates a `Label` object.
*
* Sample code:
*
@@ -887,7 +887,7 @@ public final Label updateLabel(UpdateLabelRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Label` object.
+ * Updates a `Label` object.
*
* Sample code:
*
@@ -915,7 +915,7 @@ public final UnaryCallable Sample code:
*
@@ -950,7 +950,7 @@ public final BatchUpdateLabelsResponse batchUpdateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Label` objects.
+ * Batch updates `Label` objects.
*
* Sample code:
*
@@ -982,7 +982,7 @@ public final BatchUpdateLabelsResponse batchUpdateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Label` objects.
+ * Batch updates `Label` objects.
*
* Sample code:
*
@@ -1011,7 +1011,7 @@ public final BatchUpdateLabelsResponse batchUpdateLabels(BatchUpdateLabelsReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Label` objects.
+ * Batch updates `Label` objects.
*
* Sample code:
*
@@ -1041,7 +1041,7 @@ public final BatchUpdateLabelsResponse batchUpdateLabels(BatchUpdateLabelsReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate `Label` objects.
+ * Activates `Label` objects.
*
* Sample code:
*
@@ -1075,7 +1075,7 @@ public final BatchActivateLabelsResponse batchActivateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate `Label` objects.
+ * Activates `Label` objects.
*
* Sample code:
*
@@ -1105,7 +1105,7 @@ public final BatchActivateLabelsResponse batchActivateLabels(String parent, List
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate `Label` objects.
+ * Activates `Label` objects.
*
* Sample code:
*
@@ -1134,7 +1134,7 @@ public final BatchActivateLabelsResponse batchActivateLabels(BatchActivateLabels
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to activate `Label` objects.
+ * Activates `Label` objects.
*
* Sample code:
*
@@ -1164,7 +1164,7 @@ public final BatchActivateLabelsResponse batchActivateLabels(BatchActivateLabels
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate `Label` objects.
+ * Deactivates `Label` objects.
*
* Sample code:
*
@@ -1199,7 +1199,7 @@ public final BatchDeactivateLabelsResponse batchDeactivateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate `Label` objects.
+ * Deactivates `Label` objects.
*
* Sample code:
*
@@ -1231,7 +1231,7 @@ public final BatchDeactivateLabelsResponse batchDeactivateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate `Label` objects.
+ * Deactivates `Label` objects.
*
* Sample code:
*
@@ -1261,7 +1261,7 @@ public final BatchDeactivateLabelsResponse batchDeactivateLabels(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to deactivate `Label` objects.
+ * Deactivates `Label` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java
index d03d4d13df70..2af963517e74 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java
@@ -66,7 +66,7 @@
*
GetLineItem
API to retrieve a `LineItem` object.
Retrieves a `LineItem` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListLineItems
API to retrieve a list of `LineItem` objects.
Lists `LineItem` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -227,7 +227,7 @@ public final LineItem getLineItem(@Nullable LineItemName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `LineItem` object. + * Retrieves a `LineItem` object. * *
Sample code: * @@ -254,7 +254,7 @@ public final LineItem getLineItem(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `LineItem` object. + * Retrieves a `LineItem` object. * *
Sample code: * @@ -282,7 +282,7 @@ public final LineItem getLineItem(GetLineItemRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `LineItem` object. + * Retrieves a `LineItem` object. * *
Sample code:
*
@@ -309,7 +309,7 @@ public final UnaryCallable Sample code:
*
@@ -341,7 +341,7 @@ public final ListLineItemsPagedResponse listLineItems(@Nullable NetworkName pare
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `LineItem` objects.
+ * Lists `LineItem` objects.
*
* Sample code:
*
@@ -370,7 +370,7 @@ public final ListLineItemsPagedResponse listLineItems(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `LineItem` objects.
+ * Lists `LineItem` objects.
*
* Sample code:
*
@@ -405,7 +405,7 @@ public final ListLineItemsPagedResponse listLineItems(ListLineItemsRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `LineItem` objects.
+ * Lists `LineItem` objects.
*
* Sample code:
*
@@ -441,7 +441,7 @@ public final ListLineItemsPagedResponse listLineItems(ListLineItemsRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `LineItem` objects.
+ * Lists `LineItem` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LiveStreamServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LiveStreamServiceClient.java
new file mode 100644
index 000000000000..f7afaabff500
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LiveStreamServiceClient.java
@@ -0,0 +1,1883 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.admanager.v1;
+
+import com.google.ads.admanager.v1.stub.LiveStreamServiceStub;
+import com.google.ads.admanager.v1.stub.LiveStreamServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+import org.jspecify.annotations.Nullable;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `LiveStream` objects.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the LiveStreamServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * GetLiveStream Retrieves a `LiveStream` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getLiveStream(GetLiveStreamRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getLiveStream(LiveStreamName name)
+ * getLiveStream(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getLiveStreamCallable()
+ * ListLiveStreams Lists `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listLiveStreams(ListLiveStreamsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listLiveStreams(NetworkName parent)
+ * listLiveStreams(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listLiveStreamsPagedCallable()
+ * listLiveStreamsCallable()
+ * CreateLiveStream Creates a `LiveStream` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createLiveStream(CreateLiveStreamRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createLiveStream(NetworkName parent, LiveStream liveStream)
+ * createLiveStream(String parent, LiveStream liveStream)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createLiveStreamCallable()
+ * BatchCreateLiveStreams Batch creates `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateLiveStreams(NetworkName parent, List<CreateLiveStreamRequest> requests)
+ * batchCreateLiveStreams(String parent, List<CreateLiveStreamRequest> requests)
+ * batchCreateLiveStreams(BatchCreateLiveStreamsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateLiveStreamsCallable()
+ * UpdateLiveStream Updates a `LiveStream` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateLiveStream(UpdateLiveStreamRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateLiveStream(LiveStream liveStream, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateLiveStreamCallable()
+ * BatchUpdateLiveStreams Batch updates `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateLiveStreams(NetworkName parent, List<UpdateLiveStreamRequest> requests)
+ * batchUpdateLiveStreams(String parent, List<UpdateLiveStreamRequest> requests)
+ * batchUpdateLiveStreams(BatchUpdateLiveStreamsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateLiveStreamsCallable()
+ * BatchActivateLiveStreams Batch activates `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchActivateLiveStreams(BatchActivateLiveStreamsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchActivateLiveStreams(NetworkName parent, List<String> names)
+ * batchActivateLiveStreams(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchActivateLiveStreamsCallable()
+ * BatchPauseLiveStreams Batch pauses `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchPauseLiveStreams(BatchPauseLiveStreamsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchPauseLiveStreams(NetworkName parent, List<String> names)
+ * batchPauseLiveStreams(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchPauseLiveStreamsCallable()
+ * BatchArchiveLiveStreams Batch archives `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchArchiveLiveStreams(BatchArchiveLiveStreamsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchArchiveLiveStreams(NetworkName parent, List<String> names)
+ * batchArchiveLiveStreams(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchArchiveLiveStreamsCallable()
+ * BatchPauseAdsLiveStreams Batch pauses ads on `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchPauseAdsLiveStreams(BatchPauseAdsLiveStreamsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchPauseAdsLiveStreams(NetworkName parent, List<String> names)
+ * batchPauseAdsLiveStreams(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchPauseAdsLiveStreamsCallable()
+ * BatchRefreshMasterPlaylists Batch refreshes master playlists on `LiveStream` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchRefreshMasterPlaylists(BatchRefreshMasterPlaylistsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchRefreshMasterPlaylists(NetworkName parent, List<String> names)
+ * batchRefreshMasterPlaylists(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchRefreshMasterPlaylistsCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of LiveStreamServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class LiveStreamServiceClient implements BackgroundResource {
+ private final @Nullable LiveStreamServiceSettings settings;
+ private final LiveStreamServiceStub stub;
+
+ /** Constructs an instance of LiveStreamServiceClient with default settings. */
+ public static final LiveStreamServiceClient create() throws IOException {
+ return create(LiveStreamServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of LiveStreamServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final LiveStreamServiceClient create(LiveStreamServiceSettings settings)
+ throws IOException {
+ return new LiveStreamServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of LiveStreamServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(LiveStreamServiceSettings).
+ */
+ public static final LiveStreamServiceClient create(LiveStreamServiceStub stub) {
+ return new LiveStreamServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of LiveStreamServiceClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected LiveStreamServiceClient(LiveStreamServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((LiveStreamServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected LiveStreamServiceClient(LiveStreamServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable LiveStreamServiceSettings getSettings() {
+ return settings;
+ }
+
+ public LiveStreamServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `LiveStream` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The `LiveStream`'s `name` is used to identify the `LiveStream` to update.
+ * @param updateMask Optional. The list of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream updateLiveStream(LiveStream liveStream, FieldMask updateMask) {
+ UpdateLiveStreamRequest request =
+ UpdateLiveStreamRequest.newBuilder()
+ .setLiveStream(liveStream)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateLiveStream(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `LiveStream` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getLiveStream:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * LiveStreamName name = LiveStreamName.of("[NETWORK_CODE]", "[LIVE_STREAM]");
+ * LiveStream response = liveStreamServiceClient.getLiveStream(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LiveStreamServiceSettings liveStreamServiceSettings =
+ * LiveStreamServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * LiveStreamServiceClient liveStreamServiceClient =
+ * LiveStreamServiceClient.create(liveStreamServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LiveStreamServiceSettings liveStreamServiceSettings =
+ * LiveStreamServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LiveStreamServiceClient liveStreamServiceClient =
+ * LiveStreamServiceClient.create(liveStreamServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * LiveStreamName name = LiveStreamName.of("[NETWORK_CODE]", "[LIVE_STREAM]");
+ * LiveStream response = liveStreamServiceClient.getLiveStream(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the LiveStream. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream getLiveStream(@Nullable LiveStreamName name) {
+ GetLiveStreamRequest request =
+ GetLiveStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getLiveStream(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String name = LiveStreamName.of("[NETWORK_CODE]", "[LIVE_STREAM]").toString();
+ * LiveStream response = liveStreamServiceClient.getLiveStream(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the LiveStream. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream getLiveStream(String name) {
+ GetLiveStreamRequest request = GetLiveStreamRequest.newBuilder().setName(name).build();
+ return getLiveStream(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * GetLiveStreamRequest request =
+ * GetLiveStreamRequest.newBuilder()
+ * .setName(LiveStreamName.of("[NETWORK_CODE]", "[LIVE_STREAM]").toString())
+ * .build();
+ * LiveStream response = liveStreamServiceClient.getLiveStream(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream getLiveStream(GetLiveStreamRequest request) {
+ return getLiveStreamCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * GetLiveStreamRequest request =
+ * GetLiveStreamRequest.newBuilder()
+ * .setName(LiveStreamName.of("[NETWORK_CODE]", "[LIVE_STREAM]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (LiveStream element : liveStreamServiceClient.listLiveStreams(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of LiveStreams. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLiveStreamsPagedResponse listLiveStreams(@Nullable NetworkName parent) {
+ ListLiveStreamsRequest request =
+ ListLiveStreamsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listLiveStreams(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (LiveStream element : liveStreamServiceClient.listLiveStreams(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of LiveStreams. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLiveStreamsPagedResponse listLiveStreams(String parent) {
+ ListLiveStreamsRequest request = ListLiveStreamsRequest.newBuilder().setParent(parent).build();
+ return listLiveStreams(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * ListLiveStreamsRequest request =
+ * ListLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (LiveStream element : liveStreamServiceClient.listLiveStreams(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLiveStreamsPagedResponse listLiveStreams(ListLiveStreamsRequest request) {
+ return listLiveStreamsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * ListLiveStreamsRequest request =
+ * ListLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * ListLiveStreamsRequest request =
+ * ListLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListLiveStreamsResponse response =
+ * liveStreamServiceClient.listLiveStreamsCallable().call(request);
+ * for (LiveStream element : response.getLiveStreamsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * LiveStream liveStream = LiveStream.newBuilder().build();
+ * LiveStream response = liveStreamServiceClient.createLiveStream(parent, liveStream);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `LiveStream` will be created. Format:
+ * `networks/{network_code}`
+ * @param liveStream Required. The `LiveStream` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream createLiveStream(@Nullable NetworkName parent, LiveStream liveStream) {
+ CreateLiveStreamRequest request =
+ CreateLiveStreamRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setLiveStream(liveStream)
+ .build();
+ return createLiveStream(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * LiveStream liveStream = LiveStream.newBuilder().build();
+ * LiveStream response = liveStreamServiceClient.createLiveStream(parent, liveStream);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `LiveStream` will be created. Format:
+ * `networks/{network_code}`
+ * @param liveStream Required. The `LiveStream` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream createLiveStream(String parent, LiveStream liveStream) {
+ CreateLiveStreamRequest request =
+ CreateLiveStreamRequest.newBuilder().setParent(parent).setLiveStream(liveStream).build();
+ return createLiveStream(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * CreateLiveStreamRequest request =
+ * CreateLiveStreamRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setLiveStream(LiveStream.newBuilder().build())
+ * .build();
+ * LiveStream response = liveStreamServiceClient.createLiveStream(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream createLiveStream(CreateLiveStreamRequest request) {
+ return createLiveStreamCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * CreateLiveStreamRequest request =
+ * CreateLiveStreamRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setLiveStream(LiveStream.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `LiveStreams` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateLiveStreamRequest must match this
+ * field.
+ * @param requests Required. The `LiveStream` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateLiveStreamsResponse batchCreateLiveStreams(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `LiveStreams` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateLiveStreamRequest must match this
+ * field.
+ * @param requests Required. The `LiveStream` objects to create. A maximum of 100 objects can be
+ * created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateLiveStreamsResponse batchCreateLiveStreams(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchCreateLiveStreamsRequest request =
+ * BatchCreateLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateLiveStreamsResponse batchCreateLiveStreams(
+ BatchCreateLiveStreamsRequest request) {
+ return batchCreateLiveStreamsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchCreateLiveStreamsRequest request =
+ * BatchCreateLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * LiveStream liveStream = LiveStream.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * LiveStream response = liveStreamServiceClient.updateLiveStream(liveStream, updateMask);
+ * }
+ * }
+ *
+ * @param liveStream Required. The `LiveStream` to update.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * UpdateLiveStreamRequest request =
+ * UpdateLiveStreamRequest.newBuilder()
+ * .setLiveStream(LiveStream.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * LiveStream response = liveStreamServiceClient.updateLiveStream(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LiveStream updateLiveStream(UpdateLiveStreamRequest request) {
+ return updateLiveStreamCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `LiveStream` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * UpdateLiveStreamRequest request =
+ * UpdateLiveStreamRequest.newBuilder()
+ * .setLiveStream(LiveStream.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `LiveStreams` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateLiveStreamRequest must match this
+ * field.
+ * @param requests Required. The `LiveStream` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateLiveStreamsResponse batchUpdateLiveStreams(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `LiveStreams` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateLiveStreamRequest must match this
+ * field.
+ * @param requests Required. The `LiveStream` objects to update. A maximum of 100 objects can be
+ * updated in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateLiveStreamsResponse batchUpdateLiveStreams(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchUpdateLiveStreamsRequest request =
+ * BatchUpdateLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateLiveStreamsResponse batchUpdateLiveStreams(
+ BatchUpdateLiveStreamsRequest request) {
+ return batchUpdateLiveStreamsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchUpdateLiveStreamsRequest request =
+ * BatchUpdateLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to activate. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateLiveStreamsResponse batchActivateLiveStreams(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to activate. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateLiveStreamsResponse batchActivateLiveStreams(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchActivateLiveStreamsRequest request =
+ * BatchActivateLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateLiveStreamsResponse batchActivateLiveStreams(
+ BatchActivateLiveStreamsRequest request) {
+ return batchActivateLiveStreamsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch activates `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchActivateLiveStreamsRequest request =
+ * BatchActivateLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to pause. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseLiveStreamsResponse batchPauseLiveStreams(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to pause. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseLiveStreamsResponse batchPauseLiveStreams(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchPauseLiveStreamsRequest request =
+ * BatchPauseLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseLiveStreamsResponse batchPauseLiveStreams(
+ BatchPauseLiveStreamsRequest request) {
+ return batchPauseLiveStreamsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch pauses `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchPauseLiveStreamsRequest request =
+ * BatchPauseLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to archive. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveLiveStreamsResponse batchArchiveLiveStreams(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to archive. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveLiveStreamsResponse batchArchiveLiveStreams(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchArchiveLiveStreamsRequest request =
+ * BatchArchiveLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveLiveStreamsResponse batchArchiveLiveStreams(
+ BatchArchiveLiveStreamsRequest request) {
+ return batchArchiveLiveStreamsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch archives `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchArchiveLiveStreamsRequest request =
+ * BatchArchiveLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to pause ads on. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseAdsLiveStreamsResponse batchPauseAdsLiveStreams(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to pause ads on. Format:
+ * `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseAdsLiveStreamsResponse batchPauseAdsLiveStreams(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchPauseAdsLiveStreamsRequest request =
+ * BatchPauseAdsLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseAdsLiveStreamsResponse batchPauseAdsLiveStreams(
+ BatchPauseAdsLiveStreamsRequest request) {
+ return batchPauseAdsLiveStreamsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch pauses ads on `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchPauseAdsLiveStreamsRequest request =
+ * BatchPauseAdsLiveStreamsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to refresh master playlists on.
+ * Format: `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRefreshMasterPlaylistsResponse batchRefreshMasterPlaylists(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `LiveStream`s to refresh master playlists on.
+ * Format: `networks/{network_code}/liveStreams/{live_stream_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRefreshMasterPlaylistsResponse batchRefreshMasterPlaylists(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchRefreshMasterPlaylistsRequest request =
+ * BatchRefreshMasterPlaylistsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRefreshMasterPlaylistsResponse batchRefreshMasterPlaylists(
+ BatchRefreshMasterPlaylistsRequest request) {
+ return batchRefreshMasterPlaylistsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch refreshes master playlists on `LiveStream` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * BatchRefreshMasterPlaylistsRequest request =
+ * BatchRefreshMasterPlaylistsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchRefreshMasterPlaylistsRequest, BatchRefreshMasterPlaylistsResponse>
+ batchRefreshMasterPlaylistsCallable() {
+ return stub.batchRefreshMasterPlaylistsCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListLiveStreamsPagedResponse
+ extends AbstractPagedListResponse<
+ ListLiveStreamsRequest,
+ ListLiveStreamsResponse,
+ LiveStream,
+ ListLiveStreamsPage,
+ ListLiveStreamsFixedSizeCollection> {
+
+ public static ApiFuture
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LiveStreamServiceSettings.Builder liveStreamServiceSettingsBuilder =
+ * LiveStreamServiceSettings.newBuilder();
+ * liveStreamServiceSettingsBuilder
+ * .getLiveStreamSettings()
+ * .setRetrySettings(
+ * liveStreamServiceSettingsBuilder
+ * .getLiveStreamSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * LiveStreamServiceSettings liveStreamServiceSettings = liveStreamServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class LiveStreamServiceSettings extends ClientSettings
GetMobileCarrier
API to retrieve a `MobileCarrier` object.
Retrieves a `MobileCarrier` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListMobileCarriers
API to retrieve a list of `MobileCarrier` objects.
Lists `MobileCarrier` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -229,7 +229,7 @@ public final MobileCarrier getMobileCarrier(@Nullable MobileCarrierName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileCarrier` object. + * Retrieves a `MobileCarrier` object. * *
Sample code: * @@ -257,7 +257,7 @@ public final MobileCarrier getMobileCarrier(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileCarrier` object. + * Retrieves a `MobileCarrier` object. * *
Sample code: * @@ -286,7 +286,7 @@ public final MobileCarrier getMobileCarrier(GetMobileCarrierRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileCarrier` object. + * Retrieves a `MobileCarrier` object. * *
Sample code:
*
@@ -315,7 +315,7 @@ public final UnaryCallable Sample code:
*
@@ -349,7 +349,7 @@ public final ListMobileCarriersPagedResponse listMobileCarriers(@Nullable Networ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileCarrier` objects.
+ * Lists `MobileCarrier` objects.
*
* Sample code:
*
@@ -381,7 +381,7 @@ public final ListMobileCarriersPagedResponse listMobileCarriers(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileCarrier` objects.
+ * Lists `MobileCarrier` objects.
*
* Sample code:
*
@@ -419,7 +419,7 @@ public final ListMobileCarriersPagedResponse listMobileCarriers(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileCarrier` objects.
+ * Lists `MobileCarrier` objects.
*
* Sample code:
*
@@ -456,7 +456,7 @@ public final ListMobileCarriersPagedResponse listMobileCarriers(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileCarrier` objects.
+ * Lists `MobileCarrier` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java
index da8a32842759..a859fdcb2152 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java
@@ -66,7 +66,7 @@
*
GetMobileDevice
API to retrieve a `MobileDevice` object.
Retrieves a `MobileDevice` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListMobileDevices
API to retrieve a list of `MobileDevice` objects.
Lists `MobileDevice` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -227,7 +227,7 @@ public final MobileDevice getMobileDevice(@Nullable MobileDeviceName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileDevice` object. + * Retrieves a `MobileDevice` object. * *
Sample code: * @@ -254,7 +254,7 @@ public final MobileDevice getMobileDevice(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileDevice` object. + * Retrieves a `MobileDevice` object. * *
Sample code: * @@ -282,7 +282,7 @@ public final MobileDevice getMobileDevice(GetMobileDeviceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileDevice` object. + * Retrieves a `MobileDevice` object. * *
Sample code:
*
@@ -310,7 +310,7 @@ public final UnaryCallable Sample code:
*
@@ -343,7 +343,7 @@ public final ListMobileDevicesPagedResponse listMobileDevices(@Nullable NetworkN
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileDevice` objects.
+ * Lists `MobileDevice` objects.
*
* Sample code:
*
@@ -374,7 +374,7 @@ public final ListMobileDevicesPagedResponse listMobileDevices(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileDevice` objects.
+ * Lists `MobileDevice` objects.
*
* Sample code:
*
@@ -410,7 +410,7 @@ public final ListMobileDevicesPagedResponse listMobileDevices(ListMobileDevicesR
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileDevice` objects.
+ * Lists `MobileDevice` objects.
*
* Sample code:
*
@@ -446,7 +446,7 @@ public final ListMobileDevicesPagedResponse listMobileDevices(ListMobileDevicesR
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `MobileDevice` objects.
+ * Lists `MobileDevice` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java
index ab7d9a4c7123..704c187e622b 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java
@@ -69,7 +69,7 @@
*
GetMobileDeviceSubmodel
API to retrieve a `MobileDeviceSubmodel` object.
Retrieves a `MobileDeviceSubmodel` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListMobileDeviceSubmodels
API to retrieve a list of `MobileDeviceSubmodel` objects.
Lists `MobileDeviceSubmodel` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -239,7 +239,7 @@ public final MobileDeviceSubmodel getMobileDeviceSubmodel( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileDeviceSubmodel` object. + * Retrieves a `MobileDeviceSubmodel` object. * *
Sample code: * @@ -270,7 +270,7 @@ public final MobileDeviceSubmodel getMobileDeviceSubmodel(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileDeviceSubmodel` object. + * Retrieves a `MobileDeviceSubmodel` object. * *
Sample code: * @@ -303,7 +303,7 @@ public final MobileDeviceSubmodel getMobileDeviceSubmodel( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `MobileDeviceSubmodel` object. + * Retrieves a `MobileDeviceSubmodel` object. * *
Sample code: * @@ -335,7 +335,7 @@ public final MobileDeviceSubmodel getMobileDeviceSubmodel( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `MobileDeviceSubmodel` objects. + * Lists `MobileDeviceSubmodel` objects. * *
Sample code: * @@ -370,7 +370,7 @@ public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `MobileDeviceSubmodel` objects. + * Lists `MobileDeviceSubmodel` objects. * *
Sample code: * @@ -402,7 +402,7 @@ public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels(St // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `MobileDeviceSubmodel` objects. + * Lists `MobileDeviceSubmodel` objects. * *
Sample code: * @@ -440,7 +440,7 @@ public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `MobileDeviceSubmodel` objects. + * Lists `MobileDeviceSubmodel` objects. * *
Sample code: * @@ -480,7 +480,7 @@ public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `MobileDeviceSubmodel` objects. + * Lists `MobileDeviceSubmodel` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java index f28fb77103d2..47e361d03731 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java @@ -67,7 +67,7 @@ *
GetOperatingSystem
API to retrieve a `OperatingSystem` object.
Retrieves a `OperatingSystem` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListOperatingSystems
API to retrieve a list of `OperatingSystem` objects.
Lists `OperatingSystem` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -232,7 +232,7 @@ public final OperatingSystem getOperatingSystem(@Nullable OperatingSystemName na // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `OperatingSystem` object. + * Retrieves a `OperatingSystem` object. * *
Sample code: * @@ -261,7 +261,7 @@ public final OperatingSystem getOperatingSystem(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `OperatingSystem` object. + * Retrieves a `OperatingSystem` object. * *
Sample code: * @@ -290,7 +290,7 @@ public final OperatingSystem getOperatingSystem(GetOperatingSystemRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `OperatingSystem` object. + * Retrieves a `OperatingSystem` object. * *
Sample code: * @@ -320,7 +320,7 @@ public final OperatingSystem getOperatingSystem(GetOperatingSystemRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystem` objects. + * Lists `OperatingSystem` objects. * *
Sample code: * @@ -355,7 +355,7 @@ public final ListOperatingSystemsPagedResponse listOperatingSystems( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystem` objects. + * Lists `OperatingSystem` objects. * *
Sample code: * @@ -387,7 +387,7 @@ public final ListOperatingSystemsPagedResponse listOperatingSystems(String paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystem` objects. + * Lists `OperatingSystem` objects. * *
Sample code: * @@ -425,7 +425,7 @@ public final ListOperatingSystemsPagedResponse listOperatingSystems( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystem` objects. + * Lists `OperatingSystem` objects. * *
Sample code: * @@ -462,7 +462,7 @@ public final ListOperatingSystemsPagedResponse listOperatingSystems( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystem` objects. + * Lists `OperatingSystem` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java index 3573f4974288..458742bdfb72 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java @@ -69,7 +69,7 @@ *
GetOperatingSystemVersion
API to retrieve a `OperatingSystemVersion` object.
Retrieves a `OperatingSystemVersion` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListOperatingSystemVersions
API to retrieve a list of `OperatingSystemVersion` objects.
Lists `OperatingSystemVersion` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -240,7 +240,7 @@ public final OperatingSystemVersion getOperatingSystemVersion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `OperatingSystemVersion` object. + * Retrieves a `OperatingSystemVersion` object. * *
Sample code: * @@ -271,7 +271,7 @@ public final OperatingSystemVersion getOperatingSystemVersion(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `OperatingSystemVersion` object. + * Retrieves a `OperatingSystemVersion` object. * *
Sample code: * @@ -304,7 +304,7 @@ public final OperatingSystemVersion getOperatingSystemVersion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `OperatingSystemVersion` object. + * Retrieves a `OperatingSystemVersion` object. * *
Sample code: * @@ -338,7 +338,7 @@ public final OperatingSystemVersion getOperatingSystemVersion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystemVersion` objects. + * Lists `OperatingSystemVersion` objects. * *
Sample code: * @@ -373,7 +373,7 @@ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystemVersion` objects. + * Lists `OperatingSystemVersion` objects. * *
Sample code: * @@ -405,7 +405,7 @@ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystemVersion` objects. + * Lists `OperatingSystemVersion` objects. * *
Sample code: * @@ -443,7 +443,7 @@ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystemVersion` objects. + * Lists `OperatingSystemVersion` objects. * *
Sample code: * @@ -483,7 +483,7 @@ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `OperatingSystemVersion` objects. + * Lists `OperatingSystemVersion` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java index c07c1d0279bd..dd5a3b4ccf05 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java @@ -65,7 +65,7 @@ *
GetOrder
API to retrieve an Order object.
Retrieves an `Order` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListOrders
API to retrieve a list of `Order` objects. + *
Lists `Order` objects. *
Fields used for literal matching in filter string: *
Sample code: * @@ -229,7 +229,7 @@ public final Order getOrder(@Nullable OrderName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an Order object. + * Retrieves an `Order` object. * *
Sample code: * @@ -256,7 +256,7 @@ public final Order getOrder(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an Order object. + * Retrieves an `Order` object. * *
Sample code: * @@ -284,7 +284,7 @@ public final Order getOrder(GetOrderRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an Order object. + * Retrieves an `Order` object. * *
Sample code:
*
@@ -311,7 +311,7 @@ public final UnaryCallable Fields used for literal matching in filter string:
*
@@ -349,7 +349,7 @@ public final ListOrdersPagedResponse listOrders(@Nullable NetworkName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Order` objects.
+ * Lists `Order` objects.
*
* Fields used for literal matching in filter string:
*
@@ -386,7 +386,7 @@ public final ListOrdersPagedResponse listOrders(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Order` objects.
+ * Lists `Order` objects.
*
* Fields used for literal matching in filter string:
*
@@ -429,7 +429,7 @@ public final ListOrdersPagedResponse listOrders(ListOrdersRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Order` objects.
+ * Lists `Order` objects.
*
* Fields used for literal matching in filter string:
*
@@ -471,7 +471,7 @@ public final UnaryCallable Fields used for literal matching in filter string:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java
index 17936fcaf52f..272c26229b40 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java
@@ -67,7 +67,7 @@
*
GetPlacement
API to retrieve a `Placement` object.
Retrieves a `Placement` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListPlacements
API to retrieve a list of `Placement` objects.
Lists `Placement` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreatePlacement
API to create an `Placement` object.
Creates an `Placement` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdatePlacement
API to update an `Placement` object.
Updates an `Placement` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreatePlacements
API to batch create `Placement` objects.
Creates `Placement` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdatePlacements
API to batch update `Placement` objects.
Batch updates `Placement` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -354,7 +354,7 @@ public final Placement getPlacement(@Nullable PlacementName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Placement` object. + * Retrieves a `Placement` object. * *
Sample code: * @@ -381,7 +381,7 @@ public final Placement getPlacement(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Placement` object. + * Retrieves a `Placement` object. * *
Sample code: * @@ -409,7 +409,7 @@ public final Placement getPlacement(GetPlacementRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Placement` object. + * Retrieves a `Placement` object. * *
Sample code:
*
@@ -437,7 +437,7 @@ public final UnaryCallable Sample code:
*
@@ -469,7 +469,7 @@ public final ListPlacementsPagedResponse listPlacements(@Nullable NetworkName pa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Placement` objects.
+ * Lists `Placement` objects.
*
* Sample code:
*
@@ -498,7 +498,7 @@ public final ListPlacementsPagedResponse listPlacements(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Placement` objects.
+ * Lists `Placement` objects.
*
* Sample code:
*
@@ -533,7 +533,7 @@ public final ListPlacementsPagedResponse listPlacements(ListPlacementsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Placement` objects.
+ * Lists `Placement` objects.
*
* Sample code:
*
@@ -569,7 +569,7 @@ public final ListPlacementsPagedResponse listPlacements(ListPlacementsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Placement` objects.
+ * Lists `Placement` objects.
*
* Sample code:
*
@@ -612,7 +612,7 @@ public final ListPlacementsPagedResponse listPlacements(ListPlacementsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `Placement` object.
+ * Creates an `Placement` object.
*
* Sample code:
*
@@ -645,7 +645,7 @@ public final Placement createPlacement(@Nullable NetworkName parent, Placement p
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `Placement` object.
+ * Creates an `Placement` object.
*
* Sample code:
*
@@ -675,7 +675,7 @@ public final Placement createPlacement(String parent, Placement placement) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `Placement` object.
+ * Creates an `Placement` object.
*
* Sample code:
*
@@ -704,7 +704,7 @@ public final Placement createPlacement(CreatePlacementRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `Placement` object.
+ * Creates an `Placement` object.
*
* Sample code:
*
@@ -733,7 +733,7 @@ public final UnaryCallable Sample code:
*
@@ -767,7 +767,7 @@ public final Placement updatePlacement(Placement placement, FieldMask updateMask
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `Placement` object.
+ * Updates an `Placement` object.
*
* Sample code:
*
@@ -796,7 +796,7 @@ public final Placement updatePlacement(UpdatePlacementRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `Placement` object.
+ * Updates an `Placement` object.
*
* Sample code:
*
@@ -825,7 +825,7 @@ public final UnaryCallable Sample code:
*
@@ -862,7 +862,7 @@ public final BatchCreatePlacementsResponse batchCreatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Placement` objects.
+ * Creates `Placement` objects.
*
* Sample code:
*
@@ -899,7 +899,7 @@ public final BatchCreatePlacementsResponse batchCreatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Placement` objects.
+ * Creates `Placement` objects.
*
* Sample code:
*
@@ -930,7 +930,7 @@ public final BatchCreatePlacementsResponse batchCreatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Placement` objects.
+ * Creates `Placement` objects.
*
* Sample code:
*
@@ -960,7 +960,7 @@ public final BatchCreatePlacementsResponse batchCreatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Placement` objects.
+ * Batch updates `Placement` objects.
*
* Sample code:
*
@@ -997,7 +997,7 @@ public final BatchUpdatePlacementsResponse batchUpdatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Placement` objects.
+ * Batch updates `Placement` objects.
*
* Sample code:
*
@@ -1034,7 +1034,7 @@ public final BatchUpdatePlacementsResponse batchUpdatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Placement` objects.
+ * Batch updates `Placement` objects.
*
* Sample code:
*
@@ -1065,7 +1065,7 @@ public final BatchUpdatePlacementsResponse batchUpdatePlacements(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Placement` objects.
+ * Batch updates `Placement` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java
index 7a7a874b6e98..5356924aa452 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java
@@ -69,7 +69,7 @@
*
GetPrivateAuctionDeal
API to retrieve a `PrivateAuctionDeal` object.
Retrieves a `PrivateAuctionDeal` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListPrivateAuctionDeals
API to retrieve a list of `PrivateAuctionDeal` objects.
Lists `PrivateAuctionDeal` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreatePrivateAuctionDeal
API to create a `PrivateAuctionDeal` object.
Creates a `PrivateAuctionDeal` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdatePrivateAuctionDeal
API to update a `PrivateAuctionDeal` object.
Updates a `PrivateAuctionDeal` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -273,7 +273,7 @@ public final PrivateAuctionDeal getPrivateAuctionDeal(@Nullable PrivateAuctionDe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `PrivateAuctionDeal` object. + * Retrieves a `PrivateAuctionDeal` object. * *
Sample code: * @@ -303,7 +303,7 @@ public final PrivateAuctionDeal getPrivateAuctionDeal(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `PrivateAuctionDeal` object. + * Retrieves a `PrivateAuctionDeal` object. * *
Sample code: * @@ -333,7 +333,7 @@ public final PrivateAuctionDeal getPrivateAuctionDeal(GetPrivateAuctionDealReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `PrivateAuctionDeal` object. + * Retrieves a `PrivateAuctionDeal` object. * *
Sample code: * @@ -364,7 +364,7 @@ public final PrivateAuctionDeal getPrivateAuctionDeal(GetPrivateAuctionDealReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `PrivateAuctionDeal` objects. + * Lists `PrivateAuctionDeal` objects. * *
Sample code: * @@ -399,7 +399,7 @@ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `PrivateAuctionDeal` objects. + * Lists `PrivateAuctionDeal` objects. * *
Sample code: * @@ -431,7 +431,7 @@ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `PrivateAuctionDeal` objects. + * Lists `PrivateAuctionDeal` objects. * *
Sample code: * @@ -469,7 +469,7 @@ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `PrivateAuctionDeal` objects. + * Lists `PrivateAuctionDeal` objects. * *
Sample code: * @@ -508,7 +508,7 @@ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `PrivateAuctionDeal` objects. + * Lists `PrivateAuctionDeal` objects. * *
Sample code: * @@ -552,7 +552,7 @@ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `PrivateAuctionDeal` object. + * Creates a `PrivateAuctionDeal` object. * *
Sample code: * @@ -588,7 +588,7 @@ public final PrivateAuctionDeal createPrivateAuctionDeal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `PrivateAuctionDeal` object. + * Creates a `PrivateAuctionDeal` object. * *
Sample code: * @@ -624,7 +624,7 @@ public final PrivateAuctionDeal createPrivateAuctionDeal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `PrivateAuctionDeal` object. + * Creates a `PrivateAuctionDeal` object. * *
Sample code: * @@ -656,7 +656,7 @@ public final PrivateAuctionDeal createPrivateAuctionDeal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to create a `PrivateAuctionDeal` object. + * Creates a `PrivateAuctionDeal` object. * *
Sample code: * @@ -687,7 +687,7 @@ public final PrivateAuctionDeal createPrivateAuctionDeal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to update a `PrivateAuctionDeal` object. + * Updates a `PrivateAuctionDeal` object. * *
Sample code: * @@ -724,7 +724,7 @@ public final PrivateAuctionDeal updatePrivateAuctionDeal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to update a `PrivateAuctionDeal` object. + * Updates a `PrivateAuctionDeal` object. * *
Sample code: * @@ -756,7 +756,7 @@ public final PrivateAuctionDeal updatePrivateAuctionDeal( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to update a `PrivateAuctionDeal` object. + * Updates a `PrivateAuctionDeal` object. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java index 1ba234bbbc69..b1adfb716d6c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java @@ -68,7 +68,7 @@ *
GetPrivateAuction
API to retrieve a `PrivateAuction` object.
Retrieves a `PrivateAuction` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListPrivateAuctions
API to retrieve a list of `PrivateAuction` objects.
Lists `PrivateAuction` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreatePrivateAuction
API to create a `PrivateAuction` object.
Creates a `PrivateAuction` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdatePrivateAuction
API to update a `PrivateAuction` object.
Updates a `PrivateAuction` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -269,7 +269,7 @@ public final PrivateAuction getPrivateAuction(@Nullable PrivateAuctionName name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `PrivateAuction` object. + * Retrieves a `PrivateAuction` object. * *
Sample code: * @@ -297,7 +297,7 @@ public final PrivateAuction getPrivateAuction(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `PrivateAuction` object. + * Retrieves a `PrivateAuction` object. * *
Sample code: * @@ -326,7 +326,7 @@ public final PrivateAuction getPrivateAuction(GetPrivateAuctionRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `PrivateAuction` object. + * Retrieves a `PrivateAuction` object. * *
Sample code:
*
@@ -355,7 +355,7 @@ public final UnaryCallable Sample code:
*
@@ -389,7 +389,7 @@ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(@Nullable Netw
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `PrivateAuction` objects.
+ * Lists `PrivateAuction` objects.
*
* Sample code:
*
@@ -421,7 +421,7 @@ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(String parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `PrivateAuction` objects.
+ * Lists `PrivateAuction` objects.
*
* Sample code:
*
@@ -459,7 +459,7 @@ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `PrivateAuction` objects.
+ * Lists `PrivateAuction` objects.
*
* Sample code:
*
@@ -496,7 +496,7 @@ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `PrivateAuction` objects.
+ * Lists `PrivateAuction` objects.
*
* Sample code:
*
@@ -540,7 +540,7 @@ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `PrivateAuction` object.
+ * Creates a `PrivateAuction` object.
*
* Sample code:
*
@@ -576,7 +576,7 @@ public final PrivateAuction createPrivateAuction(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `PrivateAuction` object.
+ * Creates a `PrivateAuction` object.
*
* Sample code:
*
@@ -611,7 +611,7 @@ public final PrivateAuction createPrivateAuction(String parent, PrivateAuction p
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `PrivateAuction` object.
+ * Creates a `PrivateAuction` object.
*
* Sample code:
*
@@ -641,7 +641,7 @@ public final PrivateAuction createPrivateAuction(CreatePrivateAuctionRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `PrivateAuction` object.
+ * Creates a `PrivateAuction` object.
*
* Sample code:
*
@@ -672,7 +672,7 @@ public final PrivateAuction createPrivateAuction(CreatePrivateAuctionRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `PrivateAuction` object.
+ * Updates a `PrivateAuction` object.
*
* Sample code:
*
@@ -708,7 +708,7 @@ public final PrivateAuction updatePrivateAuction(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `PrivateAuction` object.
+ * Updates a `PrivateAuction` object.
*
* Sample code:
*
@@ -738,7 +738,7 @@ public final PrivateAuction updatePrivateAuction(UpdatePrivateAuctionRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `PrivateAuction` object.
+ * Updates a `PrivateAuction` object.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java
index 568ee719638f..0e605b86985e 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java
@@ -68,7 +68,7 @@
*
GetProgrammaticBuyer
API to retrieve a `ProgrammaticBuyer` object.
Retrieves a `ProgrammaticBuyer` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListProgrammaticBuyers
API to retrieve a list of `ProgrammaticBuyer` objects.
Lists `ProgrammaticBuyer` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -235,7 +235,7 @@ public final ProgrammaticBuyer getProgrammaticBuyer(@Nullable ProgrammaticBuyerN // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ProgrammaticBuyer` object. + * Retrieves a `ProgrammaticBuyer` object. * *
Sample code: * @@ -264,7 +264,7 @@ public final ProgrammaticBuyer getProgrammaticBuyer(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ProgrammaticBuyer` object. + * Retrieves a `ProgrammaticBuyer` object. * *
Sample code: * @@ -294,7 +294,7 @@ public final ProgrammaticBuyer getProgrammaticBuyer(GetProgrammaticBuyerRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `ProgrammaticBuyer` object. + * Retrieves a `ProgrammaticBuyer` object. * *
Sample code: * @@ -325,7 +325,7 @@ public final ProgrammaticBuyer getProgrammaticBuyer(GetProgrammaticBuyerRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `ProgrammaticBuyer` objects. + * Lists `ProgrammaticBuyer` objects. * *
Sample code: * @@ -360,7 +360,7 @@ public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `ProgrammaticBuyer` objects. + * Lists `ProgrammaticBuyer` objects. * *
Sample code: * @@ -392,7 +392,7 @@ public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(String p // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `ProgrammaticBuyer` objects. + * Lists `ProgrammaticBuyer` objects. * *
Sample code: * @@ -430,7 +430,7 @@ public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `ProgrammaticBuyer` objects. + * Lists `ProgrammaticBuyer` objects. * *
Sample code: * @@ -467,7 +467,7 @@ public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `ProgrammaticBuyer` objects. + * Lists `ProgrammaticBuyer` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java index 75649a3b234c..9d5899c0a7c5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java @@ -68,7 +68,7 @@ *
GetRichMediaAdsCompany
API to retrieve a `RichMediaAdsCompany` object.
Retrieves a `RichMediaAdsCompany` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListRichMediaAdsCompanies
API to retrieve a list of `RichMediaAdsCompany` objects.
Lists `RichMediaAdsCompany` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -235,7 +235,7 @@ public final RichMediaAdsCompany getRichMediaAdsCompany(@Nullable RichMediaAdsCo // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `RichMediaAdsCompany` object. + * Retrieves a `RichMediaAdsCompany` object. * *
Sample code: * @@ -265,7 +265,7 @@ public final RichMediaAdsCompany getRichMediaAdsCompany(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `RichMediaAdsCompany` object. + * Retrieves a `RichMediaAdsCompany` object. * *
Sample code: * @@ -297,7 +297,7 @@ public final RichMediaAdsCompany getRichMediaAdsCompany(GetRichMediaAdsCompanyRe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `RichMediaAdsCompany` object. + * Retrieves a `RichMediaAdsCompany` object. * *
Sample code: * @@ -329,7 +329,7 @@ public final RichMediaAdsCompany getRichMediaAdsCompany(GetRichMediaAdsCompanyRe // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `RichMediaAdsCompany` objects. + * Lists `RichMediaAdsCompany` objects. * *
Sample code: * @@ -364,7 +364,7 @@ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `RichMediaAdsCompany` objects. + * Lists `RichMediaAdsCompany` objects. * *
Sample code: * @@ -396,7 +396,7 @@ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies(St // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `RichMediaAdsCompany` objects. + * Lists `RichMediaAdsCompany` objects. * *
Sample code: * @@ -434,7 +434,7 @@ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `RichMediaAdsCompany` objects. + * Lists `RichMediaAdsCompany` objects. * *
Sample code: * @@ -474,7 +474,7 @@ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `RichMediaAdsCompany` objects. + * Lists `RichMediaAdsCompany` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SuggestedAdUnitServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SuggestedAdUnitServiceClient.java new file mode 100644 index 000000000000..40dc7c93cd55 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SuggestedAdUnitServiceClient.java @@ -0,0 +1,778 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import com.google.ads.admanager.v1.stub.SuggestedAdUnitServiceStub; +import com.google.ads.admanager.v1.stub.SuggestedAdUnitServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `SuggestedAdUnit` objects. + * + *
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * SuggestedAdUnitName name = SuggestedAdUnitName.of("[NETWORK_CODE]", "[SUGGESTED_AD_UNIT]");
+ * SuggestedAdUnit response = suggestedAdUnitServiceClient.getSuggestedAdUnit(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the SuggestedAdUnitServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
GetSuggestedAdUnit |
+ * Get a `SuggestedAdUnit` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListSuggestedAdUnits |
+ * Retrieve a list of `SuggestedAdUnit` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchApproveSuggestedAdUnits |
+ * Bulk approve `SuggestedAdUnit` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of SuggestedAdUnitServiceSettings + * to create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SuggestedAdUnitServiceSettings suggestedAdUnitServiceSettings =
+ * SuggestedAdUnitServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create(suggestedAdUnitServiceSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SuggestedAdUnitServiceSettings suggestedAdUnitServiceSettings =
+ * SuggestedAdUnitServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create(suggestedAdUnitServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class SuggestedAdUnitServiceClient implements BackgroundResource { + private final @Nullable SuggestedAdUnitServiceSettings settings; + private final SuggestedAdUnitServiceStub stub; + + /** Constructs an instance of SuggestedAdUnitServiceClient with default settings. */ + public static final SuggestedAdUnitServiceClient create() throws IOException { + return create(SuggestedAdUnitServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SuggestedAdUnitServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SuggestedAdUnitServiceClient create(SuggestedAdUnitServiceSettings settings) + throws IOException { + return new SuggestedAdUnitServiceClient(settings); + } + + /** + * Constructs an instance of SuggestedAdUnitServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SuggestedAdUnitServiceSettings). + */ + public static final SuggestedAdUnitServiceClient create(SuggestedAdUnitServiceStub stub) { + return new SuggestedAdUnitServiceClient(stub); + } + + /** + * Constructs an instance of SuggestedAdUnitServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected SuggestedAdUnitServiceClient(SuggestedAdUnitServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((SuggestedAdUnitServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected SuggestedAdUnitServiceClient(SuggestedAdUnitServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable SuggestedAdUnitServiceSettings getSettings() { + return settings; + } + + public SuggestedAdUnitServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a `SuggestedAdUnit` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * SuggestedAdUnitName name = SuggestedAdUnitName.of("[NETWORK_CODE]", "[SUGGESTED_AD_UNIT]");
+ * SuggestedAdUnit response = suggestedAdUnitServiceClient.getSuggestedAdUnit(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `SuggestedAdUnit`. Format:
+ * `networks/{network_code}/suggestedAdUnits/{suggested_ad_unit_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SuggestedAdUnit getSuggestedAdUnit(@Nullable SuggestedAdUnitName name) {
+ GetSuggestedAdUnitRequest request =
+ GetSuggestedAdUnitRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getSuggestedAdUnit(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a `SuggestedAdUnit` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * String name = SuggestedAdUnitName.of("[NETWORK_CODE]", "[SUGGESTED_AD_UNIT]").toString();
+ * SuggestedAdUnit response = suggestedAdUnitServiceClient.getSuggestedAdUnit(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `SuggestedAdUnit`. Format:
+ * `networks/{network_code}/suggestedAdUnits/{suggested_ad_unit_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SuggestedAdUnit getSuggestedAdUnit(String name) {
+ GetSuggestedAdUnitRequest request =
+ GetSuggestedAdUnitRequest.newBuilder().setName(name).build();
+ return getSuggestedAdUnit(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a `SuggestedAdUnit` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * GetSuggestedAdUnitRequest request =
+ * GetSuggestedAdUnitRequest.newBuilder()
+ * .setName(SuggestedAdUnitName.of("[NETWORK_CODE]", "[SUGGESTED_AD_UNIT]").toString())
+ * .build();
+ * SuggestedAdUnit response = suggestedAdUnitServiceClient.getSuggestedAdUnit(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SuggestedAdUnit getSuggestedAdUnit(GetSuggestedAdUnitRequest request) {
+ return getSuggestedAdUnitCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a `SuggestedAdUnit` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * GetSuggestedAdUnitRequest request =
+ * GetSuggestedAdUnitRequest.newBuilder()
+ * .setName(SuggestedAdUnitName.of("[NETWORK_CODE]", "[SUGGESTED_AD_UNIT]").toString())
+ * .build();
+ * ApiFuture future =
+ * suggestedAdUnitServiceClient.getSuggestedAdUnitCallable().futureCall(request);
+ * // Do something.
+ * SuggestedAdUnit response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (SuggestedAdUnit element :
+ * suggestedAdUnitServiceClient.listSuggestedAdUnits(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of SuggestedAdUnits. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSuggestedAdUnitsPagedResponse listSuggestedAdUnits(
+ @Nullable NetworkName parent) {
+ ListSuggestedAdUnitsRequest request =
+ ListSuggestedAdUnitsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listSuggestedAdUnits(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a list of `SuggestedAdUnit` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (SuggestedAdUnit element :
+ * suggestedAdUnitServiceClient.listSuggestedAdUnits(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of SuggestedAdUnits. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSuggestedAdUnitsPagedResponse listSuggestedAdUnits(String parent) {
+ ListSuggestedAdUnitsRequest request =
+ ListSuggestedAdUnitsRequest.newBuilder().setParent(parent).build();
+ return listSuggestedAdUnits(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a list of `SuggestedAdUnit` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * ListSuggestedAdUnitsRequest request =
+ * ListSuggestedAdUnitsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (SuggestedAdUnit element :
+ * suggestedAdUnitServiceClient.listSuggestedAdUnits(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSuggestedAdUnitsPagedResponse listSuggestedAdUnits(
+ ListSuggestedAdUnitsRequest request) {
+ return listSuggestedAdUnitsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a list of `SuggestedAdUnit` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * ListSuggestedAdUnitsRequest request =
+ * ListSuggestedAdUnitsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture future =
+ * suggestedAdUnitServiceClient.listSuggestedAdUnitsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (SuggestedAdUnit element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * ListSuggestedAdUnitsRequest request =
+ * ListSuggestedAdUnitsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListSuggestedAdUnitsResponse response =
+ * suggestedAdUnitServiceClient.listSuggestedAdUnitsCallable().call(request);
+ * for (SuggestedAdUnit element : response.getSuggestedAdUnitsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchApproveSuggestedAdUnitsResponse response =
+ * suggestedAdUnitServiceClient.batchApproveSuggestedAdUnits(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the `SuggestedAdUnit` objects to approve. Format:
+ * `networks/{network_code}/suggestedAdUnits/{suggested_ad_unit_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveSuggestedAdUnitsResponse batchApproveSuggestedAdUnits(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchApproveSuggestedAdUnitsResponse response =
+ * suggestedAdUnitServiceClient.batchApproveSuggestedAdUnits(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the `SuggestedAdUnit` objects to approve. Format:
+ * `networks/{network_code}/suggestedAdUnits/{suggested_ad_unit_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveSuggestedAdUnitsResponse batchApproveSuggestedAdUnits(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * BatchApproveSuggestedAdUnitsRequest request =
+ * BatchApproveSuggestedAdUnitsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchApproveSuggestedAdUnitsResponse response =
+ * suggestedAdUnitServiceClient.batchApproveSuggestedAdUnits(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveSuggestedAdUnitsResponse batchApproveSuggestedAdUnits(
+ BatchApproveSuggestedAdUnitsRequest request) {
+ return batchApproveSuggestedAdUnitsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Bulk approve `SuggestedAdUnit` objects.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * BatchApproveSuggestedAdUnitsRequest request =
+ * BatchApproveSuggestedAdUnitsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * suggestedAdUnitServiceClient.batchApproveSuggestedAdUnitsCallable().futureCall(request);
+ * // Do something.
+ * BatchApproveSuggestedAdUnitsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchApproveSuggestedAdUnitsRequest, BatchApproveSuggestedAdUnitsResponse>
+ batchApproveSuggestedAdUnitsCallable() {
+ return stub.batchApproveSuggestedAdUnitsCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListSuggestedAdUnitsPagedResponse
+ extends AbstractPagedListResponse<
+ ListSuggestedAdUnitsRequest,
+ ListSuggestedAdUnitsResponse,
+ SuggestedAdUnit,
+ ListSuggestedAdUnitsPage,
+ ListSuggestedAdUnitsFixedSizeCollection> {
+
+ public static ApiFutureThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSuggestedAdUnit: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SuggestedAdUnitServiceSettings.Builder suggestedAdUnitServiceSettingsBuilder =
+ * SuggestedAdUnitServiceSettings.newBuilder();
+ * suggestedAdUnitServiceSettingsBuilder
+ * .getSuggestedAdUnitSettings()
+ * .setRetrySettings(
+ * suggestedAdUnitServiceSettingsBuilder
+ * .getSuggestedAdUnitSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * SuggestedAdUnitServiceSettings suggestedAdUnitServiceSettings =
+ * suggestedAdUnitServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class SuggestedAdUnitServiceSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the TargetingPresetServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetTargetingPreset Retrieves a `TargetingPreset` object. Note: Deactivated targeting presets are "logically deleted" (filtered out) by the get logic in the manager layer, so they will not be returned by the `GetTargetingPreset` RPC. Request object method variants only take one parameter, a request object, which must be constructed before the call. getTargetingPreset(GetTargetingPresetRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getTargetingPreset(TargetingPresetName name)
+ * getTargetingPreset(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getTargetingPresetCallable()
+ * ListTargetingPresets Lists `TargetingPreset` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listTargetingPresets(ListTargetingPresetsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listTargetingPresets(NetworkName parent)
+ * listTargetingPresets(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listTargetingPresetsPagedCallable()
+ * listTargetingPresetsCallable()
+ * CreateTargetingPreset Creates a `TargetingPreset` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createTargetingPreset(CreateTargetingPresetRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createTargetingPreset(NetworkName parent, TargetingPreset targetingPreset)
+ * createTargetingPreset(String parent, TargetingPreset targetingPreset)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createTargetingPresetCallable()
+ * BatchCreateTargetingPresets Creates `TargetingPreset` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateTargetingPresets(NetworkName parent, List<CreateTargetingPresetRequest> requests)
+ * batchCreateTargetingPresets(String parent, List<CreateTargetingPresetRequest> requests)
+ * batchCreateTargetingPresets(BatchCreateTargetingPresetsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateTargetingPresetsCallable()
+ * BatchDeactivateTargetingPresets Batch deactivates `TargetingPreset` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchDeactivateTargetingPresets(NetworkName parent, List<DeactivateTargetingPresetRequest> requests)
+ * batchDeactivateTargetingPresets(String parent, List<DeactivateTargetingPresetRequest> requests)
+ * batchDeactivateTargetingPresets(BatchDeactivateTargetingPresetsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchDeactivateTargetingPresetsCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of TargetingPresetServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class TargetingPresetServiceClient implements BackgroundResource {
+ private final @Nullable TargetingPresetServiceSettings settings;
+ private final TargetingPresetServiceStub stub;
+
+ /** Constructs an instance of TargetingPresetServiceClient with default settings. */
+ public static final TargetingPresetServiceClient create() throws IOException {
+ return create(TargetingPresetServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of TargetingPresetServiceClient, using the given settings. The channels
+ * are created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final TargetingPresetServiceClient create(TargetingPresetServiceSettings settings)
+ throws IOException {
+ return new TargetingPresetServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of TargetingPresetServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(TargetingPresetServiceSettings).
+ */
+ public static final TargetingPresetServiceClient create(TargetingPresetServiceStub stub) {
+ return new TargetingPresetServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of TargetingPresetServiceClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected TargetingPresetServiceClient(TargetingPresetServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((TargetingPresetServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected TargetingPresetServiceClient(TargetingPresetServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable TargetingPresetServiceSettings getSettings() {
+ return settings;
+ }
+
+ public TargetingPresetServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `TargetingPreset` object. Note: Deactivated targeting presets are "logically
+ * deleted" (filtered out) by the get logic in the manager layer, so they will not be returned by
+ * the `GetTargetingPreset` RPC.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getTargetingPreset:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ThirdPartyCompanyServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetThirdPartyCompany API to retrieve a `ThirdPartyCompany` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getThirdPartyCompany(GetThirdPartyCompanyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getThirdPartyCompany(ThirdPartyCompanyName name)
+ * getThirdPartyCompany(String name)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getThirdPartyCompanyCallable()
+ * ListThirdPartyCompanies API to retrieve a list of `ThirdPartyCompany` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listThirdPartyCompanies(ListThirdPartyCompaniesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listThirdPartyCompanies(NetworkName parent)
+ * listThirdPartyCompanies(String parent)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listThirdPartyCompaniesPagedCallable()
+ * listThirdPartyCompaniesCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of
+ * ThirdPartyCompanyServiceSettings to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class ThirdPartyCompanyServiceClient implements BackgroundResource {
+ private final @Nullable ThirdPartyCompanyServiceSettings settings;
+ private final ThirdPartyCompanyServiceStub stub;
+
+ /** Constructs an instance of ThirdPartyCompanyServiceClient with default settings. */
+ public static final ThirdPartyCompanyServiceClient create() throws IOException {
+ return create(ThirdPartyCompanyServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ThirdPartyCompanyServiceClient, using the given settings. The
+ * channels are created based on the settings passed in, or defaults for any settings that are not
+ * set.
+ */
+ public static final ThirdPartyCompanyServiceClient create(
+ ThirdPartyCompanyServiceSettings settings) throws IOException {
+ return new ThirdPartyCompanyServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ThirdPartyCompanyServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(ThirdPartyCompanyServiceSettings).
+ */
+ public static final ThirdPartyCompanyServiceClient create(ThirdPartyCompanyServiceStub stub) {
+ return new ThirdPartyCompanyServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ThirdPartyCompanyServiceClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected ThirdPartyCompanyServiceClient(ThirdPartyCompanyServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((ThirdPartyCompanyServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ThirdPartyCompanyServiceClient(ThirdPartyCompanyServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable ThirdPartyCompanyServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ThirdPartyCompanyServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ThirdPartyCompany` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getThirdPartyCompany:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction ======================= AdRuleServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `AdRule` objects.
+ *
+ * Sample for AdRuleServiceClient:
+ *
+ * ======================= AdSpotServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `AdSpot` objects.
+ *
+ * Sample for AdSpotServiceClient:
+ *
+ * ======================= AdUnitServiceClient =======================
*
* Service Description: Provides methods for handling AdUnit objects.
@@ -170,6 +206,24 @@
* }
* }
*
+ * ======================= CdnConfigServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `CdnConfig` objects.
+ *
+ * Sample for CdnConfigServiceClient:
+ *
+ * ======================= CmsMetadataKeyServiceClient =======================
*
* Service Description: Provides methods for handling `CmsMetadataKey` objects.
@@ -528,6 +582,24 @@
* }
* }
*
+ * ======================= LiveStreamServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `LiveStream` objects.
+ *
+ * Sample for LiveStreamServiceClient:
+ *
+ * ======================= McmEarningsServiceClient =======================
*
* Service Description: Provides methods for handling `McmEarnings` objects.
@@ -833,6 +905,44 @@
* }
* }
*
+ * ======================= SuggestedAdUnitServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `SuggestedAdUnit` objects.
+ *
+ * Sample for SuggestedAdUnitServiceClient:
+ *
+ * ======================= TargetingPresetServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `TargetingPreset` objects.
+ *
+ * Sample for TargetingPresetServiceClient:
+ *
+ * ======================= TaxonomyCategoryServiceClient =======================
*
* Service Description: Provides methods for handling `TaxonomyCategory` objects.
@@ -870,6 +980,27 @@
* }
* }
*
+ * ======================= ThirdPartyCompanyServiceClient =======================
+ *
+ * Service Description: Service to retrieve and list recognized third-party companies in Google
+ * Ad Manager.
+ *
+ * Sample for ThirdPartyCompanyServiceClient:
+ *
+ * ======================= UserServiceClient =======================
*
* Service Description: Provides methods for handling User objects.
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdRuleServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdRuleServiceStub.java
new file mode 100644
index 000000000000..0e00b8ba23e2
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdRuleServiceStub.java
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.admanager.v1.stub;
+
+import static com.google.ads.admanager.v1.AdRuleServiceClient.ListAdRulesPagedResponse;
+
+import com.google.ads.admanager.v1.AdRule;
+import com.google.ads.admanager.v1.BatchActivateAdRulesRequest;
+import com.google.ads.admanager.v1.BatchActivateAdRulesResponse;
+import com.google.ads.admanager.v1.BatchCreateAdRulesRequest;
+import com.google.ads.admanager.v1.BatchCreateAdRulesResponse;
+import com.google.ads.admanager.v1.BatchDeactivateAdRulesRequest;
+import com.google.ads.admanager.v1.BatchDeactivateAdRulesResponse;
+import com.google.ads.admanager.v1.BatchDeleteAdRulesRequest;
+import com.google.ads.admanager.v1.BatchUpdateAdRulesRequest;
+import com.google.ads.admanager.v1.BatchUpdateAdRulesResponse;
+import com.google.ads.admanager.v1.CreateAdRuleRequest;
+import com.google.ads.admanager.v1.GetAdRuleRequest;
+import com.google.ads.admanager.v1.ListAdRulesRequest;
+import com.google.ads.admanager.v1.ListAdRulesResponse;
+import com.google.ads.admanager.v1.UpdateAdRuleRequest;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the AdRuleService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class AdRuleServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getAdRule:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class AdSpotServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getAdSpot:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class CdnConfigServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getCdnConfig:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * TargetingPresetName name = TargetingPresetName.of("[NETWORK_CODE]", "[TARGETING_PRESET]");
+ * TargetingPreset response = targetingPresetServiceClient.getTargetingPreset(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TargetingPresetServiceSettings targetingPresetServiceSettings =
+ * TargetingPresetServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create(targetingPresetServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TargetingPresetServiceSettings targetingPresetServiceSettings =
+ * TargetingPresetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create(targetingPresetServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * TargetingPresetName name = TargetingPresetName.of("[NETWORK_CODE]", "[TARGETING_PRESET]");
+ * TargetingPreset response = targetingPresetServiceClient.getTargetingPreset(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the TargetingPreset. Format:
+ * `networks/{network_code}/targetingPresets/{targeting_preset_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset getTargetingPreset(@Nullable TargetingPresetName name) {
+ GetTargetingPresetRequest request =
+ GetTargetingPresetRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getTargetingPreset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `TargetingPreset` object. Note: Deactivated targeting presets are "logically
+ * deleted" (filtered out) by the get logic in the manager layer, so they will not be returned by
+ * the `GetTargetingPreset` RPC.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * String name = TargetingPresetName.of("[NETWORK_CODE]", "[TARGETING_PRESET]").toString();
+ * TargetingPreset response = targetingPresetServiceClient.getTargetingPreset(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the TargetingPreset. Format:
+ * `networks/{network_code}/targetingPresets/{targeting_preset_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset getTargetingPreset(String name) {
+ GetTargetingPresetRequest request =
+ GetTargetingPresetRequest.newBuilder().setName(name).build();
+ return getTargetingPreset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `TargetingPreset` object. Note: Deactivated targeting presets are "logically
+ * deleted" (filtered out) by the get logic in the manager layer, so they will not be returned by
+ * the `GetTargetingPreset` RPC.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * GetTargetingPresetRequest request =
+ * GetTargetingPresetRequest.newBuilder()
+ * .setName(TargetingPresetName.of("[NETWORK_CODE]", "[TARGETING_PRESET]").toString())
+ * .build();
+ * TargetingPreset response = targetingPresetServiceClient.getTargetingPreset(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset getTargetingPreset(GetTargetingPresetRequest request) {
+ return getTargetingPresetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `TargetingPreset` object. Note: Deactivated targeting presets are "logically
+ * deleted" (filtered out) by the get logic in the manager layer, so they will not be returned by
+ * the `GetTargetingPreset` RPC.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * GetTargetingPresetRequest request =
+ * GetTargetingPresetRequest.newBuilder()
+ * .setName(TargetingPresetName.of("[NETWORK_CODE]", "[TARGETING_PRESET]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (TargetingPreset element :
+ * targetingPresetServiceClient.listTargetingPresets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of TargetingPresets. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTargetingPresetsPagedResponse listTargetingPresets(
+ @Nullable NetworkName parent) {
+ ListTargetingPresetsRequest request =
+ ListTargetingPresetsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listTargetingPresets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (TargetingPreset element :
+ * targetingPresetServiceClient.listTargetingPresets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of TargetingPresets. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTargetingPresetsPagedResponse listTargetingPresets(String parent) {
+ ListTargetingPresetsRequest request =
+ ListTargetingPresetsRequest.newBuilder().setParent(parent).build();
+ return listTargetingPresets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * ListTargetingPresetsRequest request =
+ * ListTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (TargetingPreset element :
+ * targetingPresetServiceClient.listTargetingPresets(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTargetingPresetsPagedResponse listTargetingPresets(
+ ListTargetingPresetsRequest request) {
+ return listTargetingPresetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * ListTargetingPresetsRequest request =
+ * ListTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * ListTargetingPresetsRequest request =
+ * ListTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListTargetingPresetsResponse response =
+ * targetingPresetServiceClient.listTargetingPresetsCallable().call(request);
+ * for (TargetingPreset element : response.getTargetingPresetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * TargetingPreset targetingPreset = TargetingPreset.newBuilder().build();
+ * TargetingPreset response =
+ * targetingPresetServiceClient.createTargetingPreset(parent, targetingPreset);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `TargetingPreset` will be created.
+ * Format: `networks/{network_code}`
+ * @param targetingPreset Required. The `TargetingPreset` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset createTargetingPreset(
+ @Nullable NetworkName parent, TargetingPreset targetingPreset) {
+ CreateTargetingPresetRequest request =
+ CreateTargetingPresetRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTargetingPreset(targetingPreset)
+ .build();
+ return createTargetingPreset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `TargetingPreset` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * TargetingPreset targetingPreset = TargetingPreset.newBuilder().build();
+ * TargetingPreset response =
+ * targetingPresetServiceClient.createTargetingPreset(parent, targetingPreset);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `TargetingPreset` will be created.
+ * Format: `networks/{network_code}`
+ * @param targetingPreset Required. The `TargetingPreset` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset createTargetingPreset(
+ String parent, TargetingPreset targetingPreset) {
+ CreateTargetingPresetRequest request =
+ CreateTargetingPresetRequest.newBuilder()
+ .setParent(parent)
+ .setTargetingPreset(targetingPreset)
+ .build();
+ return createTargetingPreset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `TargetingPreset` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * CreateTargetingPresetRequest request =
+ * CreateTargetingPresetRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setTargetingPreset(TargetingPreset.newBuilder().build())
+ * .build();
+ * TargetingPreset response = targetingPresetServiceClient.createTargetingPreset(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset createTargetingPreset(CreateTargetingPresetRequest request) {
+ return createTargetingPresetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `TargetingPreset` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * CreateTargetingPresetRequest request =
+ * CreateTargetingPresetRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setTargetingPreset(TargetingPreset.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `TargetingPresets` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateTargetingPresetRequest must match
+ * this field.
+ * @param requests Required. The `TargetingPreset` objects to create. A maximum of 100 objects can
+ * be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTargetingPresetsResponse batchCreateTargetingPresets(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `TargetingPresets` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateTargetingPresetRequest must match
+ * this field.
+ * @param requests Required. The `TargetingPreset` objects to create. A maximum of 100 objects can
+ * be created in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTargetingPresetsResponse batchCreateTargetingPresets(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * BatchCreateTargetingPresetsRequest request =
+ * BatchCreateTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateTargetingPresetsResponse batchCreateTargetingPresets(
+ BatchCreateTargetingPresetsRequest request) {
+ return batchCreateTargetingPresetsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * BatchCreateTargetingPresetsRequest request =
+ * BatchCreateTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchCreateTargetingPresetsRequest, BatchCreateTargetingPresetsResponse>
+ batchCreateTargetingPresetsCallable() {
+ return stub.batchCreateTargetingPresetsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch deactivates `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param requests Required. The `TargetingPreset` objects to deactivate.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateTargetingPresetsResponse batchDeactivateTargetingPresets(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param requests Required. The `TargetingPreset` objects to deactivate.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateTargetingPresetsResponse batchDeactivateTargetingPresets(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * BatchDeactivateTargetingPresetsRequest request =
+ * BatchDeactivateTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateTargetingPresetsResponse batchDeactivateTargetingPresets(
+ BatchDeactivateTargetingPresetsRequest request) {
+ return batchDeactivateTargetingPresetsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch deactivates `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * BatchDeactivateTargetingPresetsRequest request =
+ * BatchDeactivateTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchDeactivateTargetingPresetsRequest, BatchDeactivateTargetingPresetsResponse>
+ batchDeactivateTargetingPresetsCallable() {
+ return stub.batchDeactivateTargetingPresetsCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListTargetingPresetsPagedResponse
+ extends AbstractPagedListResponse<
+ ListTargetingPresetsRequest,
+ ListTargetingPresetsResponse,
+ TargetingPreset,
+ ListTargetingPresetsPage,
+ ListTargetingPresetsFixedSizeCollection> {
+
+ public static ApiFuture
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * TargetingPresetServiceSettings.Builder targetingPresetServiceSettingsBuilder =
+ * TargetingPresetServiceSettings.newBuilder();
+ * targetingPresetServiceSettingsBuilder
+ * .getTargetingPresetSettings()
+ * .setRetrySettings(
+ * targetingPresetServiceSettingsBuilder
+ * .getTargetingPresetSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * TargetingPresetServiceSettings targetingPresetServiceSettings =
+ * targetingPresetServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class TargetingPresetServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * ThirdPartyCompanyName name =
+ * ThirdPartyCompanyName.of("[NETWORK_CODE]", "[THIRD_PARTY_COMPANY]");
+ * ThirdPartyCompany response = thirdPartyCompanyServiceClient.getThirdPartyCompany(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ThirdPartyCompanyServiceSettings thirdPartyCompanyServiceSettings =
+ * ThirdPartyCompanyServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create(thirdPartyCompanyServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ThirdPartyCompanyServiceSettings thirdPartyCompanyServiceSettings =
+ * ThirdPartyCompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create(thirdPartyCompanyServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * ThirdPartyCompanyName name =
+ * ThirdPartyCompanyName.of("[NETWORK_CODE]", "[THIRD_PARTY_COMPANY]");
+ * ThirdPartyCompany response = thirdPartyCompanyServiceClient.getThirdPartyCompany(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ThirdPartyCompany. Format:
+ * `networks/{network_code}/thirdPartyCompanies/{third_party_company_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ThirdPartyCompany getThirdPartyCompany(@Nullable ThirdPartyCompanyName name) {
+ GetThirdPartyCompanyRequest request =
+ GetThirdPartyCompanyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getThirdPartyCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ThirdPartyCompany` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * String name = ThirdPartyCompanyName.of("[NETWORK_CODE]", "[THIRD_PARTY_COMPANY]").toString();
+ * ThirdPartyCompany response = thirdPartyCompanyServiceClient.getThirdPartyCompany(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ThirdPartyCompany. Format:
+ * `networks/{network_code}/thirdPartyCompanies/{third_party_company_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ThirdPartyCompany getThirdPartyCompany(String name) {
+ GetThirdPartyCompanyRequest request =
+ GetThirdPartyCompanyRequest.newBuilder().setName(name).build();
+ return getThirdPartyCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ThirdPartyCompany` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * GetThirdPartyCompanyRequest request =
+ * GetThirdPartyCompanyRequest.newBuilder()
+ * .setName(
+ * ThirdPartyCompanyName.of("[NETWORK_CODE]", "[THIRD_PARTY_COMPANY]").toString())
+ * .build();
+ * ThirdPartyCompany response = thirdPartyCompanyServiceClient.getThirdPartyCompany(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ThirdPartyCompany getThirdPartyCompany(GetThirdPartyCompanyRequest request) {
+ return getThirdPartyCompanyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ThirdPartyCompany` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * GetThirdPartyCompanyRequest request =
+ * GetThirdPartyCompanyRequest.newBuilder()
+ * .setName(
+ * ThirdPartyCompanyName.of("[NETWORK_CODE]", "[THIRD_PARTY_COMPANY]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (ThirdPartyCompany element :
+ * thirdPartyCompanyServiceClient.listThirdPartyCompanies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ThirdPartyCompanies. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(
+ @Nullable NetworkName parent) {
+ ListThirdPartyCompaniesRequest request =
+ ListThirdPartyCompaniesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listThirdPartyCompanies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ThirdPartyCompany` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (ThirdPartyCompany element :
+ * thirdPartyCompanyServiceClient.listThirdPartyCompanies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ThirdPartyCompanies. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(String parent) {
+ ListThirdPartyCompaniesRequest request =
+ ListThirdPartyCompaniesRequest.newBuilder().setParent(parent).build();
+ return listThirdPartyCompanies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ThirdPartyCompany` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * ListThirdPartyCompaniesRequest request =
+ * ListThirdPartyCompaniesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (ThirdPartyCompany element :
+ * thirdPartyCompanyServiceClient.listThirdPartyCompanies(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(
+ ListThirdPartyCompaniesRequest request) {
+ return listThirdPartyCompaniesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ThirdPartyCompany` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * ListThirdPartyCompaniesRequest request =
+ * ListThirdPartyCompaniesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * ListThirdPartyCompaniesRequest request =
+ * ListThirdPartyCompaniesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListThirdPartyCompaniesResponse response =
+ * thirdPartyCompanyServiceClient.listThirdPartyCompaniesCallable().call(request);
+ * for (ThirdPartyCompany element : response.getThirdPartyCompaniesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ThirdPartyCompanyServiceSettings.Builder thirdPartyCompanyServiceSettingsBuilder =
+ * ThirdPartyCompanyServiceSettings.newBuilder();
+ * thirdPartyCompanyServiceSettingsBuilder
+ * .getThirdPartyCompanySettings()
+ * .setRetrySettings(
+ * thirdPartyCompanyServiceSettingsBuilder
+ * .getThirdPartyCompanySettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * ThirdPartyCompanyServiceSettings thirdPartyCompanyServiceSettings =
+ * thirdPartyCompanyServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class ThirdPartyCompanyServiceSettings
+ extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdRuleServiceClient adRuleServiceClient = AdRuleServiceClient.create()) {
+ * AdRuleName name = AdRuleName.of("[NETWORK_CODE]", "[AD_RULE]");
+ * AdRule response = adRuleServiceClient.getAdRule(name);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdSpotServiceClient adSpotServiceClient = AdSpotServiceClient.create()) {
+ * AdSpotName name = AdSpotName.of("[NETWORK_CODE]", "[AD_SPOT]");
+ * AdSpot response = adSpotServiceClient.getAdSpot(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.create()) {
+ * CdnConfigName name = CdnConfigName.of("[NETWORK_CODE]", "[CDN_CONFIG]");
+ * CdnConfig response = cdnConfigServiceClient.getCdnConfig(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LiveStreamServiceClient liveStreamServiceClient = LiveStreamServiceClient.create()) {
+ * LiveStreamName name = LiveStreamName.of("[NETWORK_CODE]", "[LIVE_STREAM]");
+ * LiveStream response = liveStreamServiceClient.getLiveStream(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SuggestedAdUnitServiceClient suggestedAdUnitServiceClient =
+ * SuggestedAdUnitServiceClient.create()) {
+ * SuggestedAdUnitName name = SuggestedAdUnitName.of("[NETWORK_CODE]", "[SUGGESTED_AD_UNIT]");
+ * SuggestedAdUnit response = suggestedAdUnitServiceClient.getSuggestedAdUnit(name);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * TargetingPresetName name = TargetingPresetName.of("[NETWORK_CODE]", "[TARGETING_PRESET]");
+ * TargetingPreset response = targetingPresetServiceClient.getTargetingPreset(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ThirdPartyCompanyServiceClient thirdPartyCompanyServiceClient =
+ * ThirdPartyCompanyServiceClient.create()) {
+ * ThirdPartyCompanyName name =
+ * ThirdPartyCompanyName.of("[NETWORK_CODE]", "[THIRD_PARTY_COMPANY]");
+ * ThirdPartyCompany response = thirdPartyCompanyServiceClient.getThirdPartyCompany(name);
+ * }
+ * }
+ *
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdRuleServiceStubSettings.Builder adRuleServiceSettingsBuilder =
+ * AdRuleServiceStubSettings.newBuilder();
+ * adRuleServiceSettingsBuilder
+ * .getAdRuleSettings()
+ * .setRetrySettings(
+ * adRuleServiceSettingsBuilder
+ * .getAdRuleSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AdRuleServiceStubSettings adRuleServiceSettings = adRuleServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class AdRuleServiceStubSettings extends StubSettings
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdSpotServiceStubSettings.Builder adSpotServiceSettingsBuilder =
+ * AdSpotServiceStubSettings.newBuilder();
+ * adSpotServiceSettingsBuilder
+ * .getAdSpotSettings()
+ * .setRetrySettings(
+ * adSpotServiceSettingsBuilder
+ * .getAdSpotSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AdSpotServiceStubSettings adSpotServiceSettings = adSpotServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class AdSpotServiceStubSettings extends StubSettings
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CdnConfigServiceStubSettings.Builder cdnConfigServiceSettingsBuilder =
+ * CdnConfigServiceStubSettings.newBuilder();
+ * cdnConfigServiceSettingsBuilder
+ * .getCdnConfigSettings()
+ * .setRetrySettings(
+ * cdnConfigServiceSettingsBuilder
+ * .getCdnConfigSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * CdnConfigServiceStubSettings cdnConfigServiceSettings = cdnConfigServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class CdnConfigServiceStubSettings extends StubSettings