diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java index 1a61a3c0aee8..1a028180bda7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java @@ -67,7 +67,7 @@ * *
GetAudienceSegment
API to retrieve an `AudienceSegment` object.
Retrieves an `AudienceSegment` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListAudienceSegments
API to retrieve a list of `AudienceSegment` objects.
Lists `AudienceSegment` 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 AudienceSegment getAudienceSegment(@Nullable AudienceSegmentName na // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AudienceSegment` object. + * Retrieves an `AudienceSegment` object. * *
Sample code: * @@ -261,7 +261,7 @@ public final AudienceSegment getAudienceSegment(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AudienceSegment` object. + * Retrieves an `AudienceSegment` object. * *
Sample code: * @@ -290,7 +290,7 @@ public final AudienceSegment getAudienceSegment(GetAudienceSegmentRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve an `AudienceSegment` object. + * Retrieves an `AudienceSegment` object. * *
Sample code: * @@ -320,7 +320,7 @@ public final AudienceSegment getAudienceSegment(GetAudienceSegmentRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * *
Sample code: * @@ -355,7 +355,7 @@ public final ListAudienceSegmentsPagedResponse listAudienceSegments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * *
Sample code: * @@ -387,7 +387,7 @@ public final ListAudienceSegmentsPagedResponse listAudienceSegments(String paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * *
Sample code: * @@ -425,7 +425,7 @@ public final ListAudienceSegmentsPagedResponse listAudienceSegments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * *
Sample code: * @@ -462,7 +462,7 @@ public final ListAudienceSegmentsPagedResponse listAudienceSegments( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * *
Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ChildPublisherServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ChildPublisherServiceClient.java new file mode 100644 index 000000000000..7e9724f5152b --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ChildPublisherServiceClient.java @@ -0,0 +1,1211 @@ +/* + * 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.ChildPublisherServiceStub; +import com.google.ads.admanager.v1.stub.ChildPublisherServiceStubSettings; +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 + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ChildPublisherName name = ChildPublisherName.of("[NETWORK_CODE]", "[CHILD_PUBLISHER]");
+ * ChildPublisher response = childPublisherServiceClient.getChildPublisher(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the ChildPublisherServiceClient 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 | + *
|---|---|---|
GetChildPublisher |
+ * Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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. + *
|
+ *
ListChildPublishers |
+ * Lists [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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. + *
|
+ *
CreateChildPublisher |
+ * Creates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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. + *
|
+ *
BatchCreateChildPublishers |
+ * Creates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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. + *
|
+ *
UpdateChildPublisher |
+ * Updates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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. + *
|
+ *
BatchUpdateChildPublishers |
+ * Batch updates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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. + *
|
+ *
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 ChildPublisherServiceSettings + * 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
+ * ChildPublisherServiceSettings childPublisherServiceSettings =
+ * ChildPublisherServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create(childPublisherServiceSettings);
+ * }
+ *
+ * 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
+ * ChildPublisherServiceSettings childPublisherServiceSettings =
+ * ChildPublisherServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create(childPublisherServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class ChildPublisherServiceClient implements BackgroundResource { + private final @Nullable ChildPublisherServiceSettings settings; + private final ChildPublisherServiceStub stub; + + /** Constructs an instance of ChildPublisherServiceClient with default settings. */ + public static final ChildPublisherServiceClient create() throws IOException { + return create(ChildPublisherServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ChildPublisherServiceClient, 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 ChildPublisherServiceClient create(ChildPublisherServiceSettings settings) + throws IOException { + return new ChildPublisherServiceClient(settings); + } + + /** + * Constructs an instance of ChildPublisherServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(ChildPublisherServiceSettings). + */ + public static final ChildPublisherServiceClient create(ChildPublisherServiceStub stub) { + return new ChildPublisherServiceClient(stub); + } + + /** + * Constructs an instance of ChildPublisherServiceClient, 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 ChildPublisherServiceClient(ChildPublisherServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ChildPublisherServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ChildPublisherServiceClient(ChildPublisherServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable ChildPublisherServiceSettings getSettings() { + return settings; + } + + public ChildPublisherServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ChildPublisherName name = ChildPublisherName.of("[NETWORK_CODE]", "[CHILD_PUBLISHER]");
+ * ChildPublisher response = childPublisherServiceClient.getChildPublisher(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format:
+ * `networks/{network_code}/childPublishers/{child_publisher_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ChildPublisher getChildPublisher(@Nullable ChildPublisherName name) {
+ GetChildPublisherRequest request =
+ GetChildPublisherRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getChildPublisher(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * String name = ChildPublisherName.of("[NETWORK_CODE]", "[CHILD_PUBLISHER]").toString();
+ * ChildPublisher response = childPublisherServiceClient.getChildPublisher(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format:
+ * `networks/{network_code}/childPublishers/{child_publisher_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ChildPublisher getChildPublisher(String name) {
+ GetChildPublisherRequest request = GetChildPublisherRequest.newBuilder().setName(name).build();
+ return getChildPublisher(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * GetChildPublisherRequest request =
+ * GetChildPublisherRequest.newBuilder()
+ * .setName(ChildPublisherName.of("[NETWORK_CODE]", "[CHILD_PUBLISHER]").toString())
+ * .build();
+ * ChildPublisher response = childPublisherServiceClient.getChildPublisher(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 ChildPublisher getChildPublisher(GetChildPublisherRequest request) {
+ return getChildPublisherCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * GetChildPublisherRequest request =
+ * GetChildPublisherRequest.newBuilder()
+ * .setName(ChildPublisherName.of("[NETWORK_CODE]", "[CHILD_PUBLISHER]").toString())
+ * .build();
+ * ApiFuture future =
+ * childPublisherServiceClient.getChildPublisherCallable().futureCall(request);
+ * // Do something.
+ * ChildPublisher 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (ChildPublisher element :
+ * childPublisherServiceClient.listChildPublishers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListChildPublishersPagedResponse listChildPublishers(@Nullable NetworkName parent) {
+ ListChildPublishersRequest request =
+ ListChildPublishersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listChildPublishers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (ChildPublisher element :
+ * childPublisherServiceClient.listChildPublishers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListChildPublishersPagedResponse listChildPublishers(String parent) {
+ ListChildPublishersRequest request =
+ ListChildPublishersRequest.newBuilder().setParent(parent).build();
+ return listChildPublishers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ListChildPublishersRequest request =
+ * ListChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (ChildPublisher element :
+ * childPublisherServiceClient.listChildPublishers(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 ListChildPublishersPagedResponse listChildPublishers(
+ ListChildPublishersRequest request) {
+ return listChildPublishersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ListChildPublishersRequest request =
+ * ListChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture future =
+ * childPublisherServiceClient.listChildPublishersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (ChildPublisher 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ListChildPublishersRequest request =
+ * ListChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListChildPublishersResponse response =
+ * childPublisherServiceClient.listChildPublishersCallable().call(request);
+ * for (ChildPublisher element : response.getChildPublishersList()) {
+ * // 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * ChildPublisher childPublisher = ChildPublisher.newBuilder().build();
+ * ChildPublisher response =
+ * childPublisherServiceClient.createChildPublisher(parent, childPublisher);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. Format:
+ * `networks/{network_code}`
+ * @param childPublisher Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to
+ * create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ChildPublisher createChildPublisher(
+ @Nullable NetworkName parent, ChildPublisher childPublisher) {
+ CreateChildPublisherRequest request =
+ CreateChildPublisherRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setChildPublisher(childPublisher)
+ .build();
+ return createChildPublisher(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * ChildPublisher childPublisher = ChildPublisher.newBuilder().build();
+ * ChildPublisher response =
+ * childPublisherServiceClient.createChildPublisher(parent, childPublisher);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. Format:
+ * `networks/{network_code}`
+ * @param childPublisher Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to
+ * create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ChildPublisher createChildPublisher(String parent, ChildPublisher childPublisher) {
+ CreateChildPublisherRequest request =
+ CreateChildPublisherRequest.newBuilder()
+ .setParent(parent)
+ .setChildPublisher(childPublisher)
+ .build();
+ return createChildPublisher(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * CreateChildPublisherRequest request =
+ * CreateChildPublisherRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setChildPublisher(ChildPublisher.newBuilder().build())
+ * .build();
+ * ChildPublisher response = childPublisherServiceClient.createChildPublisher(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 ChildPublisher createChildPublisher(CreateChildPublisherRequest request) {
+ return createChildPublisherCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * CreateChildPublisherRequest request =
+ * CreateChildPublisherRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setChildPublisher(ChildPublisher.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * childPublisherServiceClient.createChildPublisherCallable().futureCall(request);
+ * // Do something.
+ * ChildPublisher 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchCreateChildPublishersResponse response =
+ * childPublisherServiceClient.batchCreateChildPublishers(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateChildPublisherRequest must match
+ * this field.
+ * @param requests Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 BatchCreateChildPublishersResponse batchCreateChildPublishers(
+ @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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateChildPublishersResponse response =
+ * childPublisherServiceClient.batchCreateChildPublishers(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateChildPublisherRequest must match
+ * this field.
+ * @param requests Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 BatchCreateChildPublishersResponse batchCreateChildPublishers(
+ 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * BatchCreateChildPublishersRequest request =
+ * BatchCreateChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateChildPublishersResponse response =
+ * childPublisherServiceClient.batchCreateChildPublishers(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 BatchCreateChildPublishersResponse batchCreateChildPublishers(
+ BatchCreateChildPublishersRequest request) {
+ return batchCreateChildPublishersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * BatchCreateChildPublishersRequest request =
+ * BatchCreateChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * childPublisherServiceClient.batchCreateChildPublishersCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateChildPublishersResponse 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ChildPublisher childPublisher = ChildPublisher.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ChildPublisher response =
+ * childPublisherServiceClient.updateChildPublisher(childPublisher, updateMask);
+ * }
+ * }
+ *
+ * @param childPublisher Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to
+ * update.
+ * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s `name` is used to + * identify the [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 ChildPublisher updateChildPublisher( + ChildPublisher childPublisher, FieldMask updateMask) { + UpdateChildPublisherRequest request = + UpdateChildPublisherRequest.newBuilder() + .setChildPublisher(childPublisher) + .setUpdateMask(updateMask) + .build(); + return updateChildPublisher(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * UpdateChildPublisherRequest request =
+ * UpdateChildPublisherRequest.newBuilder()
+ * .setChildPublisher(ChildPublisher.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ChildPublisher response = childPublisherServiceClient.updateChildPublisher(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 ChildPublisher updateChildPublisher(UpdateChildPublisherRequest request) {
+ return updateChildPublisherCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * UpdateChildPublisherRequest request =
+ * UpdateChildPublisherRequest.newBuilder()
+ * .setChildPublisher(ChildPublisher.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * childPublisherServiceClient.updateChildPublisherCallable().futureCall(request);
+ * // Do something.
+ * ChildPublisher 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchUpdateChildPublishersResponse response =
+ * childPublisherServiceClient.batchUpdateChildPublishers(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateChildPublisherRequest must match
+ * this field.
+ * @param requests Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 BatchUpdateChildPublishersResponse batchUpdateChildPublishers(
+ @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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchUpdateChildPublishersResponse response =
+ * childPublisherServiceClient.batchUpdateChildPublishers(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateChildPublisherRequest must match
+ * this field.
+ * @param requests Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 BatchUpdateChildPublishersResponse batchUpdateChildPublishers(
+ 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * BatchUpdateChildPublishersRequest request =
+ * BatchUpdateChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchUpdateChildPublishersResponse response =
+ * childPublisherServiceClient.batchUpdateChildPublishers(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 BatchUpdateChildPublishersResponse batchUpdateChildPublishers(
+ BatchUpdateChildPublishersRequest request) {
+ return batchUpdateChildPublishersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * BatchUpdateChildPublishersRequest request =
+ * BatchUpdateChildPublishersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * childPublisherServiceClient.batchUpdateChildPublishersCallable().futureCall(request);
+ * // Do something.
+ * BatchUpdateChildPublishersResponse response = 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 getChildPublisher: + * + *
{@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
+ * ChildPublisherServiceSettings.Builder childPublisherServiceSettingsBuilder =
+ * ChildPublisherServiceSettings.newBuilder();
+ * childPublisherServiceSettingsBuilder
+ * .getChildPublisherSettings()
+ * .setRetrySettings(
+ * childPublisherServiceSettingsBuilder
+ * .getChildPublisherSettings()
+ * .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());
+ * ChildPublisherServiceSettings childPublisherServiceSettings =
+ * childPublisherServiceSettingsBuilder.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 ChildPublisherServiceSettings 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:
@@ -65,7 +67,7 @@
*
GetCompany
Retrieves a `Company` object.
Retrieves a [Company][google.ads.admanager.v1.Company] object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCompanies
Lists `Company` objects.
Lists [Company][google.ads.admanager.v1.Company] objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateCompany
Creates a [Company][google.ads.admanager.v1.Company] object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createCompany(CreateCompanyRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *createCompany(NetworkName parent, Company company) + *
createCompany(String parent, Company company) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createCompanyCallable() + *
BatchCreateCompanies
Creates [Company][google.ads.admanager.v1.Company] objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchCreateCompanies(NetworkName parent, List<CreateCompanyRequest> requests) + *
batchCreateCompanies(String parent, List<CreateCompanyRequest> requests) + *
batchCreateCompanies(BatchCreateCompaniesRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchCreateCompaniesCallable() + *
UpdateCompany
Updates a [Company][google.ads.admanager.v1.Company] object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateCompany(UpdateCompanyRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *updateCompany(Company company, 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.
+ *updateCompanyCallable() + *
BatchUpdateCompanies
Batch updates [Company][google.ads.admanager.v1.Company] objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchUpdateCompanies(NetworkName parent, List<UpdateCompanyRequest> requests) + *
batchUpdateCompanies(String parent, List<UpdateCompanyRequest> requests) + *
batchUpdateCompanies(BatchUpdateCompaniesRequest request) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchUpdateCompaniesCallable() + *
See the individual methods for example code. @@ -196,7 +267,7 @@ public CompanyServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Company` object. + * Retrieves a [Company][google.ads.admanager.v1.Company] object. * *
Sample code: * @@ -224,7 +295,7 @@ public final Company getCompany(@Nullable CompanyName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Company` object. + * Retrieves a [Company][google.ads.admanager.v1.Company] object. * *
Sample code: * @@ -251,7 +322,7 @@ public final Company getCompany(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Company` object. + * Retrieves a [Company][google.ads.admanager.v1.Company] object. * *
Sample code: * @@ -279,7 +350,7 @@ public final Company getCompany(GetCompanyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieves a `Company` object. + * Retrieves a [Company][google.ads.admanager.v1.Company] object. * *
Sample code:
*
@@ -306,7 +377,7 @@ public final UnaryCallable Sample code:
*
@@ -324,7 +395,7 @@ public final UnaryCallable Sample code:
*
@@ -356,7 +427,7 @@ public final ListCompaniesPagedResponse listCompanies(@Nullable NetworkName pare
* }
* }
*
- * @param parent Required. The parent, which owns this collection of Companies. Format:
+ * @param parent Required. The parent, which owns this collection of [Companies][]. Format:
* `networks/{network_code}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -367,7 +438,7 @@ public final ListCompaniesPagedResponse listCompanies(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists `Company` objects.
+ * Lists [Company][google.ads.admanager.v1.Company] objects.
*
* Sample code:
*
@@ -402,7 +473,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists `Company` objects.
+ * Lists [Company][google.ads.admanager.v1.Company] objects.
*
* Sample code:
*
@@ -438,7 +509,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists `Company` objects.
+ * Lists [Company][google.ads.admanager.v1.Company] objects.
*
* Sample code:
*
@@ -477,6 +548,478 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The [Company][google.ads.admanager.v1.Company]'s `name` is used to identify the
+ * [Company][google.ads.admanager.v1.Company] 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 Company updateCompany(Company company, FieldMask updateMask) {
+ UpdateCompanyRequest request =
+ UpdateCompanyRequest.newBuilder().setCompany(company).setUpdateMask(updateMask).build();
+ return updateCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [Company][google.ads.admanager.v1.Company] object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * 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 CreativeWrapperServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetCreativeWrapper Retrieves a `CreativeWrapper` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCreativeWrapper(GetCreativeWrapperRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCreativeWrapper(CreativeWrapperName name)
+ * getCreativeWrapper(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. getCreativeWrapperCallable()
+ * ListCreativeWrappers Lists `CreativeWrapper` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCreativeWrappers(ListCreativeWrappersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCreativeWrappers(NetworkName parent)
+ * listCreativeWrappers(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. listCreativeWrappersPagedCallable()
+ * listCreativeWrappersCallable()
+ * CreateCreativeWrapper Creates a `CreativeWrapper` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createCreativeWrapper(CreateCreativeWrapperRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createCreativeWrapper(NetworkName parent, CreativeWrapper creativeWrapper)
+ * createCreativeWrapper(String parent, CreativeWrapper creativeWrapper)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createCreativeWrapperCallable()
+ * BatchCreateCreativeWrappers Creates `CreativeWrapper` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateCreativeWrappers(NetworkName parent, List<CreateCreativeWrapperRequest> requests)
+ * batchCreateCreativeWrappers(String parent, List<CreateCreativeWrapperRequest> requests)
+ * batchCreateCreativeWrappers(BatchCreateCreativeWrappersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateCreativeWrappersCallable()
+ * UpdateCreativeWrapper Updates a `CreativeWrapper` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateCreativeWrapper(UpdateCreativeWrapperRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateCreativeWrapper(CreativeWrapper creativeWrapper, 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. updateCreativeWrapperCallable()
+ * BatchUpdateCreativeWrappers Batch updates `CreativeWrapper` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateCreativeWrappers(NetworkName parent, List<UpdateCreativeWrapperRequest> requests)
+ * batchUpdateCreativeWrappers(String parent, List<UpdateCreativeWrapperRequest> requests)
+ * batchUpdateCreativeWrappers(BatchUpdateCreativeWrappersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateCreativeWrappersCallable()
+ * BatchActivateCreativeWrappers Batch activates `CreativeWrapper` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchActivateCreativeWrappers(BatchActivateCreativeWrappersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchActivateCreativeWrappers(NetworkName parent, List<String> names)
+ * batchActivateCreativeWrappers(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. batchActivateCreativeWrappersCallable()
+ * BatchDeactivateCreativeWrappers Deactivates a list of `CreativeWrapper` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchDeactivateCreativeWrappers(BatchDeactivateCreativeWrappersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchDeactivateCreativeWrappers(NetworkName parent, List<String> names)
+ * batchDeactivateCreativeWrappers(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. batchDeactivateCreativeWrappersCallable()
+ * 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 CreativeWrapperServiceSettings
+ * 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 CreativeWrapperServiceClient implements BackgroundResource {
+ private final @Nullable CreativeWrapperServiceSettings settings;
+ private final CreativeWrapperServiceStub stub;
+
+ /** Constructs an instance of CreativeWrapperServiceClient with default settings. */
+ public static final CreativeWrapperServiceClient create() throws IOException {
+ return create(CreativeWrapperServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of CreativeWrapperServiceClient, 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 CreativeWrapperServiceClient create(CreativeWrapperServiceSettings settings)
+ throws IOException {
+ return new CreativeWrapperServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of CreativeWrapperServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(CreativeWrapperServiceSettings).
+ */
+ public static final CreativeWrapperServiceClient create(CreativeWrapperServiceStub stub) {
+ return new CreativeWrapperServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of CreativeWrapperServiceClient, 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 CreativeWrapperServiceClient(CreativeWrapperServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((CreativeWrapperServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected CreativeWrapperServiceClient(CreativeWrapperServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable CreativeWrapperServiceSettings getSettings() {
+ return settings;
+ }
+
+ public CreativeWrapperServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeWrapper` 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 `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` 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 CreativeWrapper updateCreativeWrapper(
+ CreativeWrapper creativeWrapper, FieldMask updateMask) {
+ UpdateCreativeWrapperRequest request =
+ UpdateCreativeWrapperRequest.newBuilder()
+ .setCreativeWrapper(creativeWrapper)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateCreativeWrapper(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CreativeWrapper` 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 getCreativeWrapper:
+ *
+ * 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 DaiAuthenticationKeyServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetDaiAuthenticationKey Retrieves a `DaiAuthenticationKey` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getDaiAuthenticationKey(GetDaiAuthenticationKeyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getDaiAuthenticationKey(DaiAuthenticationKeyName name)
+ * getDaiAuthenticationKey(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. getDaiAuthenticationKeyCallable()
+ * ListDaiAuthenticationKeys Lists `DaiAuthenticationKey` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listDaiAuthenticationKeys(ListDaiAuthenticationKeysRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listDaiAuthenticationKeys(NetworkName parent)
+ * listDaiAuthenticationKeys(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. listDaiAuthenticationKeysPagedCallable()
+ * listDaiAuthenticationKeysCallable()
+ * CreateDaiAuthenticationKey Creates a `DaiAuthenticationKey` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createDaiAuthenticationKey(CreateDaiAuthenticationKeyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createDaiAuthenticationKey(NetworkName parent, DaiAuthenticationKey daiAuthenticationKey)
+ * createDaiAuthenticationKey(String parent, DaiAuthenticationKey daiAuthenticationKey)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createDaiAuthenticationKeyCallable()
+ * BatchCreateDaiAuthenticationKeys Batch creates `DaiAuthenticationKey` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateDaiAuthenticationKeys(NetworkName parent, List<CreateDaiAuthenticationKeyRequest> requests)
+ * batchCreateDaiAuthenticationKeys(String parent, List<CreateDaiAuthenticationKeyRequest> requests)
+ * batchCreateDaiAuthenticationKeys(BatchCreateDaiAuthenticationKeysRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateDaiAuthenticationKeysCallable()
+ * UpdateDaiAuthenticationKey Updates a `DaiAuthenticationKey` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateDaiAuthenticationKey(UpdateDaiAuthenticationKeyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateDaiAuthenticationKey(DaiAuthenticationKey daiAuthenticationKey, 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. updateDaiAuthenticationKeyCallable()
+ * BatchUpdateDaiAuthenticationKeys Batch updates `DaiAuthenticationKey` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateDaiAuthenticationKeys(NetworkName parent, List<UpdateDaiAuthenticationKeyRequest> requests)
+ * batchUpdateDaiAuthenticationKeys(String parent, List<UpdateDaiAuthenticationKeyRequest> requests)
+ * batchUpdateDaiAuthenticationKeys(BatchUpdateDaiAuthenticationKeysRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateDaiAuthenticationKeysCallable()
+ * BatchActivateDaiAuthenticationKeys Activates a list of `DaiAuthenticationKey` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchActivateDaiAuthenticationKeys(BatchActivateDaiAuthenticationKeysRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchActivateDaiAuthenticationKeys(NetworkName parent, List<String> names)
+ * batchActivateDaiAuthenticationKeys(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. batchActivateDaiAuthenticationKeysCallable()
+ * BatchDeactivateDaiAuthenticationKeys Deactivates a list of `DaiAuthenticationKey` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchDeactivateDaiAuthenticationKeys(BatchDeactivateDaiAuthenticationKeysRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchDeactivateDaiAuthenticationKeys(NetworkName parent, List<String> names)
+ * batchDeactivateDaiAuthenticationKeys(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. batchDeactivateDaiAuthenticationKeysCallable()
+ * 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
+ * DaiAuthenticationKeyServiceSettings 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 DaiAuthenticationKeyServiceClient implements BackgroundResource {
+ private final @Nullable DaiAuthenticationKeyServiceSettings settings;
+ private final DaiAuthenticationKeyServiceStub stub;
+
+ /** Constructs an instance of DaiAuthenticationKeyServiceClient with default settings. */
+ public static final DaiAuthenticationKeyServiceClient create() throws IOException {
+ return create(DaiAuthenticationKeyServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of DaiAuthenticationKeyServiceClient, 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 DaiAuthenticationKeyServiceClient create(
+ DaiAuthenticationKeyServiceSettings settings) throws IOException {
+ return new DaiAuthenticationKeyServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of DaiAuthenticationKeyServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(DaiAuthenticationKeyServiceSettings).
+ */
+ public static final DaiAuthenticationKeyServiceClient create(
+ DaiAuthenticationKeyServiceStub stub) {
+ return new DaiAuthenticationKeyServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of DaiAuthenticationKeyServiceClient, 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 DaiAuthenticationKeyServiceClient(DaiAuthenticationKeyServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((DaiAuthenticationKeyServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected DaiAuthenticationKeyServiceClient(DaiAuthenticationKeyServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable DaiAuthenticationKeyServiceSettings getSettings() {
+ return settings;
+ }
+
+ public DaiAuthenticationKeyServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiAuthenticationKey` 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 `DaiAuthenticationKey`'s `name` is used to identify the `DaiAuthenticationKey` 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 DaiAuthenticationKey updateDaiAuthenticationKey(
+ DaiAuthenticationKey daiAuthenticationKey, FieldMask updateMask) {
+ UpdateDaiAuthenticationKeyRequest request =
+ UpdateDaiAuthenticationKeyRequest.newBuilder()
+ .setDaiAuthenticationKey(daiAuthenticationKey)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateDaiAuthenticationKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `DaiAuthenticationKey` 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 getDaiAuthenticationKey:
+ *
+ * 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 DaiEncodingProfileServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetDaiEncodingProfile Retrieves a `DaiEncodingProfile` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getDaiEncodingProfile(GetDaiEncodingProfileRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getDaiEncodingProfile(DaiEncodingProfileName name)
+ * getDaiEncodingProfile(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. getDaiEncodingProfileCallable()
+ * ListDaiEncodingProfiles Lists `DaiEncodingProfile` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listDaiEncodingProfiles(ListDaiEncodingProfilesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listDaiEncodingProfiles(NetworkName parent)
+ * listDaiEncodingProfiles(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. listDaiEncodingProfilesPagedCallable()
+ * listDaiEncodingProfilesCallable()
+ * CreateDaiEncodingProfile Creates a `DaiEncodingProfile` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createDaiEncodingProfile(CreateDaiEncodingProfileRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createDaiEncodingProfile(NetworkName parent, DaiEncodingProfile daiEncodingProfile)
+ * createDaiEncodingProfile(String parent, DaiEncodingProfile daiEncodingProfile)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createDaiEncodingProfileCallable()
+ * BatchCreateDaiEncodingProfiles Batch creates `DaiEncodingProfile` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateDaiEncodingProfiles(NetworkName parent, List<CreateDaiEncodingProfileRequest> requests)
+ * batchCreateDaiEncodingProfiles(String parent, List<CreateDaiEncodingProfileRequest> requests)
+ * batchCreateDaiEncodingProfiles(BatchCreateDaiEncodingProfilesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateDaiEncodingProfilesCallable()
+ * UpdateDaiEncodingProfile Updates a `DaiEncodingProfile` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateDaiEncodingProfile(UpdateDaiEncodingProfileRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateDaiEncodingProfile(DaiEncodingProfile daiEncodingProfile, 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. updateDaiEncodingProfileCallable()
+ * BatchUpdateDaiEncodingProfiles Batch updates `DaiEncodingProfile` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateDaiEncodingProfiles(NetworkName parent, List<UpdateDaiEncodingProfileRequest> requests)
+ * batchUpdateDaiEncodingProfiles(String parent, List<UpdateDaiEncodingProfileRequest> requests)
+ * batchUpdateDaiEncodingProfiles(BatchUpdateDaiEncodingProfilesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateDaiEncodingProfilesCallable()
+ * BatchActivateDaiEncodingProfiles Activates a list of `DaiEncodingProfile` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchActivateDaiEncodingProfiles(NetworkName parent, List<ActivateDaiEncodingProfileRequest> requests)
+ * batchActivateDaiEncodingProfiles(String parent, List<ActivateDaiEncodingProfileRequest> requests)
+ * batchActivateDaiEncodingProfiles(BatchActivateDaiEncodingProfilesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchActivateDaiEncodingProfilesCallable()
+ * BatchArchiveDaiEncodingProfiles Archives a list of `DaiEncodingProfile` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchArchiveDaiEncodingProfiles(NetworkName parent, List<ArchiveDaiEncodingProfileRequest> requests)
+ * batchArchiveDaiEncodingProfiles(String parent, List<ArchiveDaiEncodingProfileRequest> requests)
+ * batchArchiveDaiEncodingProfiles(BatchArchiveDaiEncodingProfilesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchArchiveDaiEncodingProfilesCallable()
+ * 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
+ * DaiEncodingProfileServiceSettings 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 DaiEncodingProfileServiceClient implements BackgroundResource {
+ private final @Nullable DaiEncodingProfileServiceSettings settings;
+ private final DaiEncodingProfileServiceStub stub;
+
+ /** Constructs an instance of DaiEncodingProfileServiceClient with default settings. */
+ public static final DaiEncodingProfileServiceClient create() throws IOException {
+ return create(DaiEncodingProfileServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of DaiEncodingProfileServiceClient, 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 DaiEncodingProfileServiceClient create(
+ DaiEncodingProfileServiceSettings settings) throws IOException {
+ return new DaiEncodingProfileServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of DaiEncodingProfileServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(DaiEncodingProfileServiceSettings).
+ */
+ public static final DaiEncodingProfileServiceClient create(DaiEncodingProfileServiceStub stub) {
+ return new DaiEncodingProfileServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of DaiEncodingProfileServiceClient, 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 DaiEncodingProfileServiceClient(DaiEncodingProfileServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((DaiEncodingProfileServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected DaiEncodingProfileServiceClient(DaiEncodingProfileServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable DaiEncodingProfileServiceSettings getSettings() {
+ return settings;
+ }
+
+ public DaiEncodingProfileServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiEncodingProfile` 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 `DaiEncodingProfile`'s `name` is used to identify the `DaiEncodingProfile` 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 DaiEncodingProfile updateDaiEncodingProfile(
+ DaiEncodingProfile daiEncodingProfile, FieldMask updateMask) {
+ UpdateDaiEncodingProfileRequest request =
+ UpdateDaiEncodingProfileRequest.newBuilder()
+ .setDaiEncodingProfile(daiEncodingProfile)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateDaiEncodingProfile(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `DaiEncodingProfile` 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 getDaiEncodingProfile:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction GetEntitySignalsMapping API to retrieve a `EntitySignalsMapping` object. Retrieves a `EntitySignalsMapping` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListEntitySignalsMappings API to retrieve a list of `EntitySignalsMapping` objects. Lists `EntitySignalsMapping` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. CreateEntitySignalsMapping API to create an `EntitySignalsMapping` object. Creates an `EntitySignalsMapping` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. UpdateEntitySignalsMapping API to update an `EntitySignalsMapping` object. Updates an `EntitySignalsMapping` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchCreateEntitySignalsMappings API to batch create `EntitySignalsMapping` objects. Creates `EntitySignalsMapping` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchUpdateEntitySignalsMappings API to batch update `EntitySignalsMapping` objects. Batch updates `EntitySignalsMapping` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -309,7 +309,7 @@ public final EntitySignalsMapping getEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `EntitySignalsMapping` object.
+ * Retrieves a `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -340,7 +340,7 @@ public final EntitySignalsMapping getEntitySignalsMapping(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `EntitySignalsMapping` object.
+ * Retrieves a `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -373,7 +373,7 @@ public final EntitySignalsMapping getEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `EntitySignalsMapping` object.
+ * Retrieves a `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -405,7 +405,7 @@ public final EntitySignalsMapping getEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `EntitySignalsMapping` objects.
+ * Lists `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -440,7 +440,7 @@ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `EntitySignalsMapping` objects.
+ * Lists `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -472,7 +472,7 @@ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings(St
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `EntitySignalsMapping` objects.
+ * Lists `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -510,7 +510,7 @@ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `EntitySignalsMapping` objects.
+ * Lists `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -550,7 +550,7 @@ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `EntitySignalsMapping` objects.
+ * Lists `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -594,7 +594,7 @@ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `EntitySignalsMapping` object.
+ * Creates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -631,7 +631,7 @@ public final EntitySignalsMapping createEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `EntitySignalsMapping` object.
+ * Creates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -668,7 +668,7 @@ public final EntitySignalsMapping createEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `EntitySignalsMapping` object.
+ * Creates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -700,7 +700,7 @@ public final EntitySignalsMapping createEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create an `EntitySignalsMapping` object.
+ * Creates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -733,7 +733,7 @@ public final EntitySignalsMapping createEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `EntitySignalsMapping` object.
+ * Updates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -771,7 +771,7 @@ public final EntitySignalsMapping updateEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `EntitySignalsMapping` object.
+ * Updates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -803,7 +803,7 @@ public final EntitySignalsMapping updateEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update an `EntitySignalsMapping` object.
+ * Updates an `EntitySignalsMapping` object.
*
* Sample code:
*
@@ -836,7 +836,7 @@ public final EntitySignalsMapping updateEntitySignalsMapping(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `EntitySignalsMapping` objects.
+ * Creates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -874,7 +874,7 @@ public final BatchCreateEntitySignalsMappingsResponse batchCreateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `EntitySignalsMapping` objects.
+ * Creates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -912,7 +912,7 @@ public final BatchCreateEntitySignalsMappingsResponse batchCreateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `EntitySignalsMapping` objects.
+ * Creates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -944,7 +944,7 @@ public final BatchCreateEntitySignalsMappingsResponse batchCreateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `EntitySignalsMapping` objects.
+ * Creates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -978,7 +978,7 @@ public final BatchCreateEntitySignalsMappingsResponse batchCreateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `EntitySignalsMapping` objects.
+ * Batch updates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -1016,7 +1016,7 @@ public final BatchUpdateEntitySignalsMappingsResponse batchUpdateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `EntitySignalsMapping` objects.
+ * Batch updates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -1054,7 +1054,7 @@ public final BatchUpdateEntitySignalsMappingsResponse batchUpdateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `EntitySignalsMapping` objects.
+ * Batch updates `EntitySignalsMapping` objects.
*
* Sample code:
*
@@ -1086,7 +1086,7 @@ public final BatchUpdateEntitySignalsMappingsResponse batchUpdateEntitySignalsMa
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `EntitySignalsMapping` objects.
+ * Batch updates `EntitySignalsMapping` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PartnerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PartnerServiceClient.java
new file mode 100644
index 000000000000..6990358d328e
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PartnerServiceClient.java
@@ -0,0 +1,839 @@
+/*
+ * 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.PartnerServiceStub;
+import com.google.ads.admanager.v1.stub.PartnerServiceStubSettings;
+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 [Partner][google.ads.admanager.v1.Partner]
+ * 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 PartnerServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * GetPartner Retrieves a [Partner][google.ads.admanager.v1.Partner] object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getPartner(GetPartnerRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getPartner(PartnerName name)
+ * getPartner(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. getPartnerCallable()
+ * ListPartners Lists [Partner][google.ads.admanager.v1.Partner] objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPartners(ListPartnersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPartners(NetworkName parent)
+ * listPartners(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. listPartnersPagedCallable()
+ * listPartnersCallable()
+ * UpdatePartner Updates a [Partner][google.ads.admanager.v1.Partner] object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updatePartner(UpdatePartnerRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updatePartner(Partner partner, 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. updatePartnerCallable()
+ * BatchUpdatePartners Batch updates [Partner][google.ads.admanager.v1.Partner] objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdatePartners(NetworkName parent, List<UpdatePartnerRequest> requests)
+ * batchUpdatePartners(String parent, List<UpdatePartnerRequest> requests)
+ * batchUpdatePartners(BatchUpdatePartnersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdatePartnersCallable()
+ * 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 PartnerServiceSettings 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 PartnerServiceClient implements BackgroundResource {
+ private final @Nullable PartnerServiceSettings settings;
+ private final PartnerServiceStub stub;
+
+ /** Constructs an instance of PartnerServiceClient with default settings. */
+ public static final PartnerServiceClient create() throws IOException {
+ return create(PartnerServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PartnerServiceClient, 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 PartnerServiceClient create(PartnerServiceSettings settings)
+ throws IOException {
+ return new PartnerServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PartnerServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(PartnerServiceSettings).
+ */
+ public static final PartnerServiceClient create(PartnerServiceStub stub) {
+ return new PartnerServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PartnerServiceClient, 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 PartnerServiceClient(PartnerServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((PartnerServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected PartnerServiceClient(PartnerServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable PartnerServiceSettings getSettings() {
+ return settings;
+ }
+
+ public PartnerServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [Partner][google.ads.admanager.v1.Partner] object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The [Partner][google.ads.admanager.v1.Partner]'s `name` is used to identify the
+ * [Partner][google.ads.admanager.v1.Partner] 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 Partner updatePartner(Partner partner, FieldMask updateMask) {
+ UpdatePartnerRequest request =
+ UpdatePartnerRequest.newBuilder().setPartner(partner).setUpdateMask(updateMask).build();
+ return updatePartner(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [Partner][google.ads.admanager.v1.Partner] 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 getPartner:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction GetTaxonomyCategory API to retrieve a `TaxonomyCategory` object. Retrieves a `TaxonomyCategory` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListTaxonomyCategories API to retrieve a list of `TaxonomyCategory` objects. Lists `TaxonomyCategory` 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 TaxonomyCategory getTaxonomyCategory(@Nullable TaxonomyCategoryName
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `TaxonomyCategory` object.
+ * Retrieves a `TaxonomyCategory` object.
*
* Sample code:
*
@@ -261,7 +261,7 @@ public final TaxonomyCategory getTaxonomyCategory(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `TaxonomyCategory` object.
+ * Retrieves a `TaxonomyCategory` object.
*
* Sample code:
*
@@ -290,7 +290,7 @@ public final TaxonomyCategory getTaxonomyCategory(GetTaxonomyCategoryRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `TaxonomyCategory` object.
+ * Retrieves a `TaxonomyCategory` object.
*
* Sample code:
*
@@ -320,7 +320,7 @@ public final TaxonomyCategory getTaxonomyCategory(GetTaxonomyCategoryRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `TaxonomyCategory` objects.
+ * Lists `TaxonomyCategory` objects.
*
* Sample code:
*
@@ -355,7 +355,7 @@ public final ListTaxonomyCategoriesPagedResponse listTaxonomyCategories(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `TaxonomyCategory` objects.
+ * Lists `TaxonomyCategory` objects.
*
* Sample code:
*
@@ -387,7 +387,7 @@ public final ListTaxonomyCategoriesPagedResponse listTaxonomyCategories(String p
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `TaxonomyCategory` objects.
+ * Lists `TaxonomyCategory` objects.
*
* Sample code:
*
@@ -425,7 +425,7 @@ public final ListTaxonomyCategoriesPagedResponse listTaxonomyCategories(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `TaxonomyCategory` objects.
+ * Lists `TaxonomyCategory` objects.
*
* Sample code:
*
@@ -462,7 +462,7 @@ public final ListTaxonomyCategoriesPagedResponse listTaxonomyCategories(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `TaxonomyCategory` objects.
+ * Lists `TaxonomyCategory` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ViewabilityProviderServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ViewabilityProviderServiceClient.java
new file mode 100644
index 000000000000..da4dda2a5681
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ViewabilityProviderServiceClient.java
@@ -0,0 +1,1253 @@
+/*
+ * 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.ViewabilityProviderServiceStub;
+import com.google.ads.admanager.v1.stub.ViewabilityProviderServiceStubSettings;
+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
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 ViewabilityProviderServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetViewabilityProvider Retrieves a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getViewabilityProvider(GetViewabilityProviderRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getViewabilityProvider(ViewabilityProviderName name)
+ * getViewabilityProvider(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. getViewabilityProviderCallable()
+ * ListViewabilityProviders Lists [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listViewabilityProviders(ListViewabilityProvidersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listViewabilityProviders(NetworkName parent)
+ * listViewabilityProviders(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. listViewabilityProvidersPagedCallable()
+ * listViewabilityProvidersCallable()
+ * CreateViewabilityProvider Creates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createViewabilityProvider(CreateViewabilityProviderRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createViewabilityProvider(NetworkName parent, ViewabilityProvider viewabilityProvider)
+ * createViewabilityProvider(String parent, ViewabilityProvider viewabilityProvider)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createViewabilityProviderCallable()
+ * BatchCreateViewabilityProviders Creates [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateViewabilityProviders(NetworkName parent, List<CreateViewabilityProviderRequest> requests)
+ * batchCreateViewabilityProviders(String parent, List<CreateViewabilityProviderRequest> requests)
+ * batchCreateViewabilityProviders(BatchCreateViewabilityProvidersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateViewabilityProvidersCallable()
+ * UpdateViewabilityProvider Updates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateViewabilityProvider(UpdateViewabilityProviderRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateViewabilityProvider(ViewabilityProvider viewabilityProvider, 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. updateViewabilityProviderCallable()
+ * BatchUpdateViewabilityProviders Batch updates [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateViewabilityProviders(NetworkName parent, List<UpdateViewabilityProviderRequest> requests)
+ * batchUpdateViewabilityProviders(String parent, List<UpdateViewabilityProviderRequest> requests)
+ * batchUpdateViewabilityProviders(BatchUpdateViewabilityProvidersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateViewabilityProvidersCallable()
+ * 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
+ * ViewabilityProviderServiceSettings 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 ViewabilityProviderServiceClient implements BackgroundResource {
+ private final @Nullable ViewabilityProviderServiceSettings settings;
+ private final ViewabilityProviderServiceStub stub;
+
+ /** Constructs an instance of ViewabilityProviderServiceClient with default settings. */
+ public static final ViewabilityProviderServiceClient create() throws IOException {
+ return create(ViewabilityProviderServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ViewabilityProviderServiceClient, 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 ViewabilityProviderServiceClient create(
+ ViewabilityProviderServiceSettings settings) throws IOException {
+ return new ViewabilityProviderServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ViewabilityProviderServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(ViewabilityProviderServiceSettings).
+ */
+ public static final ViewabilityProviderServiceClient create(ViewabilityProviderServiceStub stub) {
+ return new ViewabilityProviderServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ViewabilityProviderServiceClient, 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 ViewabilityProviderServiceClient(ViewabilityProviderServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((ViewabilityProviderServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ViewabilityProviderServiceClient(ViewabilityProviderServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable ViewabilityProviderServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ViewabilityProviderServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]'s `name` is used
+ * to identify the [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 ViewabilityProvider updateViewabilityProvider(
+ ViewabilityProvider viewabilityProvider, FieldMask updateMask) {
+ UpdateViewabilityProviderRequest request =
+ UpdateViewabilityProviderRequest.newBuilder()
+ .setViewabilityProvider(viewabilityProvider)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateViewabilityProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 getViewabilityProvider:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction ======================= ChildPublisherServiceClient =======================
+ *
+ * Service Description: Provides methods for handling
+ * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects.
+ *
+ * Sample for ChildPublisherServiceClient:
+ *
+ * ======================= CmsMetadataKeyServiceClient =======================
*
* Service Description: Provides methods for handling `CmsMetadataKey` objects.
@@ -264,7 +284,8 @@
*
* ======================= CompanyServiceClient =======================
*
- * Service Description: Provides methods for handling `Company` objects.
+ * Service Description: Provides methods for handling [Company][google.ads.admanager.v1.Company]
+ * objects.
*
* Sample for CompanyServiceClient:
*
@@ -390,6 +411,25 @@
* }
* }
*
+ * ======================= CreativeWrapperServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `CreativeWrapper` objects.
+ *
+ * Sample for CreativeWrapperServiceClient:
+ *
+ * ======================= CustomFieldServiceClient =======================
*
* Service Description: Provides methods for handling `CustomField` objects.
@@ -449,6 +489,47 @@
* }
* }
*
+ * ======================= DaiAuthenticationKeyServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `DaiAuthenticationKey` objects.
+ *
+ * Sample for DaiAuthenticationKeyServiceClient:
+ *
+ * ======================= DaiEncodingProfileServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `DaiEncodingProfile` objects.
+ *
+ * Sample for DaiEncodingProfileServiceClient:
+ *
+ * ======================= DeviceCapabilityServiceClient =======================
*
* Service Description: Provides methods for handling `DeviceCapability` objects.
@@ -772,6 +853,25 @@
* }
* }
*
+ * ======================= PartnerServiceClient =======================
+ *
+ * Service Description: Provides methods for handling [Partner][google.ads.admanager.v1.Partner]
+ * objects.
+ *
+ * Sample for PartnerServiceClient:
+ *
+ * ======================= PlacementServiceClient =======================
*
* Service Description: Provides methods for handling `Placement` objects.
@@ -1054,6 +1154,27 @@
* User response = userServiceClient.getUser(name);
* }
* }
+ *
+ * ======================= ViewabilityProviderServiceClient =======================
+ *
+ * Service Description: Provides methods for handling
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects.
+ *
+ * Sample for ViewabilityProviderServiceClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class ChildPublisherServiceStub 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 getChildPublisher:
+ *
+ * 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 CreativeWrapperServiceStub 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 getCreativeWrapper:
+ *
+ * {@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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * Company company = Company.newBuilder().build();
+ * Company response = companyServiceClient.createCompany(parent, company);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this
+ * [Company][google.ads.admanager.v1.Company] will be created. Format:
+ * `networks/{network_code}`
+ * @param company Required. The [Company][google.ads.admanager.v1.Company] to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Company createCompany(@Nullable NetworkName parent, Company company) {
+ CreateCompanyRequest request =
+ CreateCompanyRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCompany(company)
+ .build();
+ return createCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * Company company = Company.newBuilder().build();
+ * Company response = companyServiceClient.createCompany(parent, company);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this
+ * [Company][google.ads.admanager.v1.Company] will be created. Format:
+ * `networks/{network_code}`
+ * @param company Required. The [Company][google.ads.admanager.v1.Company] to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Company createCompany(String parent, Company company) {
+ CreateCompanyRequest request =
+ CreateCompanyRequest.newBuilder().setParent(parent).setCompany(company).build();
+ return createCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * CreateCompanyRequest request =
+ * CreateCompanyRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCompany(Company.newBuilder().build())
+ * .build();
+ * Company response = companyServiceClient.createCompany(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 Company createCompany(CreateCompanyRequest request) {
+ return createCompanyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * CreateCompanyRequest request =
+ * CreateCompanyRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCompany(Company.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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where [Companies][] will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateCompanyRequest must match this
+ * field.
+ * @param requests Required. The [Company][google.ads.admanager.v1.Company] 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 BatchCreateCompaniesResponse batchCreateCompanies(
+ @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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where [Companies][] will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateCompanyRequest must match this
+ * field.
+ * @param requests Required. The [Company][google.ads.admanager.v1.Company] 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 BatchCreateCompaniesResponse batchCreateCompanies(
+ 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * BatchCreateCompaniesRequest request =
+ * BatchCreateCompaniesRequest.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 BatchCreateCompaniesResponse batchCreateCompanies(
+ BatchCreateCompaniesRequest request) {
+ return batchCreateCompaniesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * BatchCreateCompaniesRequest request =
+ * BatchCreateCompaniesRequest.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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * Company company = Company.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Company response = companyServiceClient.updateCompany(company, updateMask);
+ * }
+ * }
+ *
+ * @param company Required. The [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * UpdateCompanyRequest request =
+ * UpdateCompanyRequest.newBuilder()
+ * .setCompany(Company.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Company response = companyServiceClient.updateCompany(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 Company updateCompany(UpdateCompanyRequest request) {
+ return updateCompanyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * UpdateCompanyRequest request =
+ * UpdateCompanyRequest.newBuilder()
+ * .setCompany(Company.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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where [Companies][] will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateCompanyRequest must match this
+ * field.
+ * @param requests Required. The [Company][google.ads.admanager.v1.Company] 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 BatchUpdateCompaniesResponse batchUpdateCompanies(
+ @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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where [Companies][] will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateCompanyRequest must match this
+ * field.
+ * @param requests Required. The [Company][google.ads.admanager.v1.Company] 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 BatchUpdateCompaniesResponse batchUpdateCompanies(
+ 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * BatchUpdateCompaniesRequest request =
+ * BatchUpdateCompaniesRequest.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 BatchUpdateCompaniesResponse batchUpdateCompanies(
+ BatchUpdateCompaniesRequest request) {
+ return batchUpdateCompaniesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates [Company][google.ads.admanager.v1.Company] 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
+ * BatchUpdateCompaniesRequest request =
+ * BatchUpdateCompaniesRequest.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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * CreativeWrapperName name = CreativeWrapperName.of("[NETWORK_CODE]", "[CREATIVE_WRAPPER]");
+ * CreativeWrapper response = creativeWrapperServiceClient.getCreativeWrapper(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
+ * CreativeWrapperServiceSettings creativeWrapperServiceSettings =
+ * CreativeWrapperServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create(creativeWrapperServiceSettings);
+ * }
+ *
+ * {@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
+ * CreativeWrapperServiceSettings creativeWrapperServiceSettings =
+ * CreativeWrapperServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create(creativeWrapperServiceSettings);
+ * }
+ *
+ * {@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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * CreativeWrapperName name = CreativeWrapperName.of("[NETWORK_CODE]", "[CREATIVE_WRAPPER]");
+ * CreativeWrapper response = creativeWrapperServiceClient.getCreativeWrapper(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CreativeWrapper. Format:
+ * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeWrapper getCreativeWrapper(@Nullable CreativeWrapperName name) {
+ GetCreativeWrapperRequest request =
+ GetCreativeWrapperRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCreativeWrapper(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String name = CreativeWrapperName.of("[NETWORK_CODE]", "[CREATIVE_WRAPPER]").toString();
+ * CreativeWrapper response = creativeWrapperServiceClient.getCreativeWrapper(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CreativeWrapper. Format:
+ * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeWrapper getCreativeWrapper(String name) {
+ GetCreativeWrapperRequest request =
+ GetCreativeWrapperRequest.newBuilder().setName(name).build();
+ return getCreativeWrapper(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * GetCreativeWrapperRequest request =
+ * GetCreativeWrapperRequest.newBuilder()
+ * .setName(CreativeWrapperName.of("[NETWORK_CODE]", "[CREATIVE_WRAPPER]").toString())
+ * .build();
+ * CreativeWrapper response = creativeWrapperServiceClient.getCreativeWrapper(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 CreativeWrapper getCreativeWrapper(GetCreativeWrapperRequest request) {
+ return getCreativeWrapperCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * GetCreativeWrapperRequest request =
+ * GetCreativeWrapperRequest.newBuilder()
+ * .setName(CreativeWrapperName.of("[NETWORK_CODE]", "[CREATIVE_WRAPPER]").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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (CreativeWrapper element :
+ * creativeWrapperServiceClient.listCreativeWrappers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CreativeWrappers. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCreativeWrappersPagedResponse listCreativeWrappers(
+ @Nullable NetworkName parent) {
+ ListCreativeWrappersRequest request =
+ ListCreativeWrappersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCreativeWrappers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (CreativeWrapper element :
+ * creativeWrapperServiceClient.listCreativeWrappers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CreativeWrappers. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCreativeWrappersPagedResponse listCreativeWrappers(String parent) {
+ ListCreativeWrappersRequest request =
+ ListCreativeWrappersRequest.newBuilder().setParent(parent).build();
+ return listCreativeWrappers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * ListCreativeWrappersRequest request =
+ * ListCreativeWrappersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (CreativeWrapper element :
+ * creativeWrapperServiceClient.listCreativeWrappers(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 ListCreativeWrappersPagedResponse listCreativeWrappers(
+ ListCreativeWrappersRequest request) {
+ return listCreativeWrappersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * ListCreativeWrappersRequest request =
+ * ListCreativeWrappersRequest.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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * ListCreativeWrappersRequest request =
+ * ListCreativeWrappersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListCreativeWrappersResponse response =
+ * creativeWrapperServiceClient.listCreativeWrappersCallable().call(request);
+ * for (CreativeWrapper element : response.getCreativeWrappersList()) {
+ * // 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * CreativeWrapper creativeWrapper = CreativeWrapper.newBuilder().build();
+ * CreativeWrapper response =
+ * creativeWrapperServiceClient.createCreativeWrapper(parent, creativeWrapper);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `CreativeWrapper` will be created.
+ * Format: `networks/{network_code}`
+ * @param creativeWrapper Required. The `CreativeWrapper` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeWrapper createCreativeWrapper(
+ @Nullable NetworkName parent, CreativeWrapper creativeWrapper) {
+ CreateCreativeWrapperRequest request =
+ CreateCreativeWrapperRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCreativeWrapper(creativeWrapper)
+ .build();
+ return createCreativeWrapper(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * CreativeWrapper creativeWrapper = CreativeWrapper.newBuilder().build();
+ * CreativeWrapper response =
+ * creativeWrapperServiceClient.createCreativeWrapper(parent, creativeWrapper);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `CreativeWrapper` will be created.
+ * Format: `networks/{network_code}`
+ * @param creativeWrapper Required. The `CreativeWrapper` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeWrapper createCreativeWrapper(
+ String parent, CreativeWrapper creativeWrapper) {
+ CreateCreativeWrapperRequest request =
+ CreateCreativeWrapperRequest.newBuilder()
+ .setParent(parent)
+ .setCreativeWrapper(creativeWrapper)
+ .build();
+ return createCreativeWrapper(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * CreateCreativeWrapperRequest request =
+ * CreateCreativeWrapperRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCreativeWrapper(CreativeWrapper.newBuilder().build())
+ * .build();
+ * CreativeWrapper response = creativeWrapperServiceClient.createCreativeWrapper(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 CreativeWrapper createCreativeWrapper(CreateCreativeWrapperRequest request) {
+ return createCreativeWrapperCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * CreateCreativeWrapperRequest request =
+ * CreateCreativeWrapperRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCreativeWrapper(CreativeWrapper.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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `CreativeWrappers` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateCreativeWrapperRequest must match
+ * this field.
+ * @param requests Required. The `CreativeWrapper` 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 BatchCreateCreativeWrappersResponse batchCreateCreativeWrappers(
+ @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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `CreativeWrappers` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateCreativeWrapperRequest must match
+ * this field.
+ * @param requests Required. The `CreativeWrapper` 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 BatchCreateCreativeWrappersResponse batchCreateCreativeWrappers(
+ 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchCreateCreativeWrappersRequest request =
+ * BatchCreateCreativeWrappersRequest.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 BatchCreateCreativeWrappersResponse batchCreateCreativeWrappers(
+ BatchCreateCreativeWrappersRequest request) {
+ return batchCreateCreativeWrappersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchCreateCreativeWrappersRequest request =
+ * BatchCreateCreativeWrappersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchCreateCreativeWrappersRequest, BatchCreateCreativeWrappersResponse>
+ batchCreateCreativeWrappersCallable() {
+ return stub.batchCreateCreativeWrappersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * CreativeWrapper creativeWrapper = CreativeWrapper.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CreativeWrapper response =
+ * creativeWrapperServiceClient.updateCreativeWrapper(creativeWrapper, updateMask);
+ * }
+ * }
+ *
+ * @param creativeWrapper Required. The `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * UpdateCreativeWrapperRequest request =
+ * UpdateCreativeWrapperRequest.newBuilder()
+ * .setCreativeWrapper(CreativeWrapper.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CreativeWrapper response = creativeWrapperServiceClient.updateCreativeWrapper(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 CreativeWrapper updateCreativeWrapper(UpdateCreativeWrapperRequest request) {
+ return updateCreativeWrapperCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * UpdateCreativeWrapperRequest request =
+ * UpdateCreativeWrapperRequest.newBuilder()
+ * .setCreativeWrapper(CreativeWrapper.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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `CreativeWrappers` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateCreativeWrapperRequest must match
+ * this field.
+ * @param requests Required. The `CreativeWrapper` 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 BatchUpdateCreativeWrappersResponse batchUpdateCreativeWrappers(
+ @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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `CreativeWrappers` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateCreativeWrapperRequest must match
+ * this field.
+ * @param requests Required. The `CreativeWrapper` 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 BatchUpdateCreativeWrappersResponse batchUpdateCreativeWrappers(
+ 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchUpdateCreativeWrappersRequest request =
+ * BatchUpdateCreativeWrappersRequest.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 BatchUpdateCreativeWrappersResponse batchUpdateCreativeWrappers(
+ BatchUpdateCreativeWrappersRequest request) {
+ return batchUpdateCreativeWrappersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchUpdateCreativeWrappersRequest request =
+ * BatchUpdateCreativeWrappersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchUpdateCreativeWrappersRequest, BatchUpdateCreativeWrappersResponse>
+ batchUpdateCreativeWrappersCallable() {
+ return stub.batchUpdateCreativeWrappersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch activates `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CreativeWrapper` objects to activate. Format:
+ * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCreativeWrappersResponse batchActivateCreativeWrappers(
+ @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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CreativeWrapper` objects to activate. Format:
+ * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCreativeWrappersResponse batchActivateCreativeWrappers(
+ 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchActivateCreativeWrappersRequest request =
+ * BatchActivateCreativeWrappersRequest.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 BatchActivateCreativeWrappersResponse batchActivateCreativeWrappers(
+ BatchActivateCreativeWrappersRequest request) {
+ return batchActivateCreativeWrappersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch activates `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchActivateCreativeWrappersRequest request =
+ * BatchActivateCreativeWrappersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchActivateCreativeWrappersRequest, BatchActivateCreativeWrappersResponse>
+ batchActivateCreativeWrappersCallable() {
+ return stub.batchActivateCreativeWrappersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CreativeWrapper` objects to deactivate.
+ * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCreativeWrappersResponse batchDeactivateCreativeWrappers(
+ @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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CreativeWrapper` objects to deactivate.
+ * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCreativeWrappersResponse batchDeactivateCreativeWrappers(
+ 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchDeactivateCreativeWrappersRequest request =
+ * BatchDeactivateCreativeWrappersRequest.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 BatchDeactivateCreativeWrappersResponse batchDeactivateCreativeWrappers(
+ BatchDeactivateCreativeWrappersRequest request) {
+ return batchDeactivateCreativeWrappersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `CreativeWrapper` 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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * BatchDeactivateCreativeWrappersRequest request =
+ * BatchDeactivateCreativeWrappersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchDeactivateCreativeWrappersRequest, BatchDeactivateCreativeWrappersResponse>
+ batchDeactivateCreativeWrappersCallable() {
+ return stub.batchDeactivateCreativeWrappersCallable();
+ }
+
+ @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 ListCreativeWrappersPagedResponse
+ extends AbstractPagedListResponse<
+ ListCreativeWrappersRequest,
+ ListCreativeWrappersResponse,
+ CreativeWrapper,
+ ListCreativeWrappersPage,
+ ListCreativeWrappersFixedSizeCollection> {
+
+ 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
+ * CreativeWrapperServiceSettings.Builder creativeWrapperServiceSettingsBuilder =
+ * CreativeWrapperServiceSettings.newBuilder();
+ * creativeWrapperServiceSettingsBuilder
+ * .getCreativeWrapperSettings()
+ * .setRetrySettings(
+ * creativeWrapperServiceSettingsBuilder
+ * .getCreativeWrapperSettings()
+ * .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());
+ * CreativeWrapperServiceSettings creativeWrapperServiceSettings =
+ * creativeWrapperServiceSettingsBuilder.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 CreativeWrapperServiceSettings 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * DaiAuthenticationKeyName name =
+ * DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]");
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(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
+ * DaiAuthenticationKeyServiceSettings daiAuthenticationKeyServiceSettings =
+ * DaiAuthenticationKeyServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create(daiAuthenticationKeyServiceSettings);
+ * }
+ *
+ * {@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
+ * DaiAuthenticationKeyServiceSettings daiAuthenticationKeyServiceSettings =
+ * DaiAuthenticationKeyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create(daiAuthenticationKeyServiceSettings);
+ * }
+ *
+ * {@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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * DaiAuthenticationKeyName name =
+ * DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]");
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `DaiAuthenticationKey`. Format:
+ * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiAuthenticationKey getDaiAuthenticationKey(
+ @Nullable DaiAuthenticationKeyName name) {
+ GetDaiAuthenticationKeyRequest request =
+ GetDaiAuthenticationKeyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDaiAuthenticationKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String name =
+ * DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]").toString();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the `DaiAuthenticationKey`. Format:
+ * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiAuthenticationKey getDaiAuthenticationKey(String name) {
+ GetDaiAuthenticationKeyRequest request =
+ GetDaiAuthenticationKeyRequest.newBuilder().setName(name).build();
+ return getDaiAuthenticationKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * GetDaiAuthenticationKeyRequest request =
+ * GetDaiAuthenticationKeyRequest.newBuilder()
+ * .setName(
+ * DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]")
+ * .toString())
+ * .build();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(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 DaiAuthenticationKey getDaiAuthenticationKey(
+ GetDaiAuthenticationKeyRequest request) {
+ return getDaiAuthenticationKeyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * GetDaiAuthenticationKeyRequest request =
+ * GetDaiAuthenticationKeyRequest.newBuilder()
+ * .setName(
+ * DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]")
+ * .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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (DaiAuthenticationKey element :
+ * daiAuthenticationKeyServiceClient.listDaiAuthenticationKeys(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of DaiAuthenticationKeys.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDaiAuthenticationKeysPagedResponse listDaiAuthenticationKeys(
+ @Nullable NetworkName parent) {
+ ListDaiAuthenticationKeysRequest request =
+ ListDaiAuthenticationKeysRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDaiAuthenticationKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (DaiAuthenticationKey element :
+ * daiAuthenticationKeyServiceClient.listDaiAuthenticationKeys(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of DaiAuthenticationKeys.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDaiAuthenticationKeysPagedResponse listDaiAuthenticationKeys(String parent) {
+ ListDaiAuthenticationKeysRequest request =
+ ListDaiAuthenticationKeysRequest.newBuilder().setParent(parent).build();
+ return listDaiAuthenticationKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * ListDaiAuthenticationKeysRequest request =
+ * ListDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (DaiAuthenticationKey element :
+ * daiAuthenticationKeyServiceClient.listDaiAuthenticationKeys(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 ListDaiAuthenticationKeysPagedResponse listDaiAuthenticationKeys(
+ ListDaiAuthenticationKeysRequest request) {
+ return listDaiAuthenticationKeysPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * ListDaiAuthenticationKeysRequest request =
+ * ListDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListDaiAuthenticationKeysRequest, ListDaiAuthenticationKeysPagedResponse>
+ listDaiAuthenticationKeysPagedCallable() {
+ return stub.listDaiAuthenticationKeysPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * ListDaiAuthenticationKeysRequest request =
+ * ListDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListDaiAuthenticationKeysResponse response =
+ * daiAuthenticationKeyServiceClient.listDaiAuthenticationKeysCallable().call(request);
+ * for (DaiAuthenticationKey element : response.getDaiAuthenticationKeysList()) {
+ * // 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * DaiAuthenticationKey daiAuthenticationKey = DaiAuthenticationKey.newBuilder().build();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.createDaiAuthenticationKey(
+ * parent, daiAuthenticationKey);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `DaiAuthenticationKey` will be created.
+ * Format: `networks/{network_code}`
+ * @param daiAuthenticationKey Required. The `DaiAuthenticationKey` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiAuthenticationKey createDaiAuthenticationKey(
+ @Nullable NetworkName parent, DaiAuthenticationKey daiAuthenticationKey) {
+ CreateDaiAuthenticationKeyRequest request =
+ CreateDaiAuthenticationKeyRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setDaiAuthenticationKey(daiAuthenticationKey)
+ .build();
+ return createDaiAuthenticationKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * DaiAuthenticationKey daiAuthenticationKey = DaiAuthenticationKey.newBuilder().build();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.createDaiAuthenticationKey(
+ * parent, daiAuthenticationKey);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `DaiAuthenticationKey` will be created.
+ * Format: `networks/{network_code}`
+ * @param daiAuthenticationKey Required. The `DaiAuthenticationKey` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiAuthenticationKey createDaiAuthenticationKey(
+ String parent, DaiAuthenticationKey daiAuthenticationKey) {
+ CreateDaiAuthenticationKeyRequest request =
+ CreateDaiAuthenticationKeyRequest.newBuilder()
+ .setParent(parent)
+ .setDaiAuthenticationKey(daiAuthenticationKey)
+ .build();
+ return createDaiAuthenticationKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * CreateDaiAuthenticationKeyRequest request =
+ * CreateDaiAuthenticationKeyRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setDaiAuthenticationKey(DaiAuthenticationKey.newBuilder().build())
+ * .build();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.createDaiAuthenticationKey(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 DaiAuthenticationKey createDaiAuthenticationKey(
+ CreateDaiAuthenticationKeyRequest request) {
+ return createDaiAuthenticationKeyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * CreateDaiAuthenticationKeyRequest request =
+ * CreateDaiAuthenticationKeyRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setDaiAuthenticationKey(DaiAuthenticationKey.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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiAuthenticationKeys` will be created.
+ * Format: `networks/{network_code}` The parent field in the CreateDaiAuthenticationKeyRequest
+ * must match this field.
+ * @param requests Required. The `DaiAuthenticationKey` 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 BatchCreateDaiAuthenticationKeysResponse batchCreateDaiAuthenticationKeys(
+ @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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiAuthenticationKeys` will be created.
+ * Format: `networks/{network_code}` The parent field in the CreateDaiAuthenticationKeyRequest
+ * must match this field.
+ * @param requests Required. The `DaiAuthenticationKey` 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 BatchCreateDaiAuthenticationKeysResponse batchCreateDaiAuthenticationKeys(
+ 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchCreateDaiAuthenticationKeysRequest request =
+ * BatchCreateDaiAuthenticationKeysRequest.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 BatchCreateDaiAuthenticationKeysResponse batchCreateDaiAuthenticationKeys(
+ BatchCreateDaiAuthenticationKeysRequest request) {
+ return batchCreateDaiAuthenticationKeysCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchCreateDaiAuthenticationKeysRequest request =
+ * BatchCreateDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchCreateDaiAuthenticationKeysRequest, BatchCreateDaiAuthenticationKeysResponse>
+ batchCreateDaiAuthenticationKeysCallable() {
+ return stub.batchCreateDaiAuthenticationKeysCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * DaiAuthenticationKey daiAuthenticationKey = DaiAuthenticationKey.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.updateDaiAuthenticationKey(
+ * daiAuthenticationKey, updateMask);
+ * }
+ * }
+ *
+ * @param daiAuthenticationKey Required. The `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * UpdateDaiAuthenticationKeyRequest request =
+ * UpdateDaiAuthenticationKeyRequest.newBuilder()
+ * .setDaiAuthenticationKey(DaiAuthenticationKey.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.updateDaiAuthenticationKey(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 DaiAuthenticationKey updateDaiAuthenticationKey(
+ UpdateDaiAuthenticationKeyRequest request) {
+ return updateDaiAuthenticationKeyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * UpdateDaiAuthenticationKeyRequest request =
+ * UpdateDaiAuthenticationKeyRequest.newBuilder()
+ * .setDaiAuthenticationKey(DaiAuthenticationKey.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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiAuthenticationKeys` will be updated.
+ * Format: `networks/{network_code}` The parent field in the UpdateDaiAuthenticationKeyRequest
+ * must match this field.
+ * @param requests Required. The `DaiAuthenticationKey` 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 BatchUpdateDaiAuthenticationKeysResponse batchUpdateDaiAuthenticationKeys(
+ @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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiAuthenticationKeys` will be updated.
+ * Format: `networks/{network_code}` The parent field in the UpdateDaiAuthenticationKeyRequest
+ * must match this field.
+ * @param requests Required. The `DaiAuthenticationKey` 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 BatchUpdateDaiAuthenticationKeysResponse batchUpdateDaiAuthenticationKeys(
+ 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchUpdateDaiAuthenticationKeysRequest request =
+ * BatchUpdateDaiAuthenticationKeysRequest.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 BatchUpdateDaiAuthenticationKeysResponse batchUpdateDaiAuthenticationKeys(
+ BatchUpdateDaiAuthenticationKeysRequest request) {
+ return batchUpdateDaiAuthenticationKeysCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchUpdateDaiAuthenticationKeysRequest request =
+ * BatchUpdateDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchUpdateDaiAuthenticationKeysRequest, BatchUpdateDaiAuthenticationKeysResponse>
+ batchUpdateDaiAuthenticationKeysCallable() {
+ return stub.batchUpdateDaiAuthenticationKeysCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Activates a list of `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the DaiAuthenticationKey. Format:
+ * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateDaiAuthenticationKeysResponse batchActivateDaiAuthenticationKeys(
+ @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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the DaiAuthenticationKey. Format:
+ * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateDaiAuthenticationKeysResponse batchActivateDaiAuthenticationKeys(
+ 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchActivateDaiAuthenticationKeysRequest request =
+ * BatchActivateDaiAuthenticationKeysRequest.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 BatchActivateDaiAuthenticationKeysResponse batchActivateDaiAuthenticationKeys(
+ BatchActivateDaiAuthenticationKeysRequest request) {
+ return batchActivateDaiAuthenticationKeysCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Activates a list of `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchActivateDaiAuthenticationKeysRequest request =
+ * BatchActivateDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchActivateDaiAuthenticationKeysRequest, BatchActivateDaiAuthenticationKeysResponse>
+ batchActivateDaiAuthenticationKeysCallable() {
+ return stub.batchActivateDaiAuthenticationKeysCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the DaiAuthenticationKey. Format:
+ * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateDaiAuthenticationKeysResponse batchDeactivateDaiAuthenticationKeys(
+ @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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the DaiAuthenticationKey. Format:
+ * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateDaiAuthenticationKeysResponse batchDeactivateDaiAuthenticationKeys(
+ 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchDeactivateDaiAuthenticationKeysRequest request =
+ * BatchDeactivateDaiAuthenticationKeysRequest.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 BatchDeactivateDaiAuthenticationKeysResponse batchDeactivateDaiAuthenticationKeys(
+ BatchDeactivateDaiAuthenticationKeysRequest request) {
+ return batchDeactivateDaiAuthenticationKeysCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `DaiAuthenticationKey` 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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * BatchDeactivateDaiAuthenticationKeysRequest request =
+ * BatchDeactivateDaiAuthenticationKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchDeactivateDaiAuthenticationKeysRequest, BatchDeactivateDaiAuthenticationKeysResponse>
+ batchDeactivateDaiAuthenticationKeysCallable() {
+ return stub.batchDeactivateDaiAuthenticationKeysCallable();
+ }
+
+ @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 ListDaiAuthenticationKeysPagedResponse
+ extends AbstractPagedListResponse<
+ ListDaiAuthenticationKeysRequest,
+ ListDaiAuthenticationKeysResponse,
+ DaiAuthenticationKey,
+ ListDaiAuthenticationKeysPage,
+ ListDaiAuthenticationKeysFixedSizeCollection> {
+
+ 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
+ * DaiAuthenticationKeyServiceSettings.Builder daiAuthenticationKeyServiceSettingsBuilder =
+ * DaiAuthenticationKeyServiceSettings.newBuilder();
+ * daiAuthenticationKeyServiceSettingsBuilder
+ * .getDaiAuthenticationKeySettings()
+ * .setRetrySettings(
+ * daiAuthenticationKeyServiceSettingsBuilder
+ * .getDaiAuthenticationKeySettings()
+ * .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());
+ * DaiAuthenticationKeyServiceSettings daiAuthenticationKeyServiceSettings =
+ * daiAuthenticationKeyServiceSettingsBuilder.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 DaiAuthenticationKeyServiceSettings
+ 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * DaiEncodingProfileName name =
+ * DaiEncodingProfileName.of("[NETWORK_CODE]", "[DAI_ENCODING_PROFILE]");
+ * DaiEncodingProfile response = daiEncodingProfileServiceClient.getDaiEncodingProfile(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
+ * DaiEncodingProfileServiceSettings daiEncodingProfileServiceSettings =
+ * DaiEncodingProfileServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create(daiEncodingProfileServiceSettings);
+ * }
+ *
+ * {@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
+ * DaiEncodingProfileServiceSettings daiEncodingProfileServiceSettings =
+ * DaiEncodingProfileServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create(daiEncodingProfileServiceSettings);
+ * }
+ *
+ * {@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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * DaiEncodingProfileName name =
+ * DaiEncodingProfileName.of("[NETWORK_CODE]", "[DAI_ENCODING_PROFILE]");
+ * DaiEncodingProfile response = daiEncodingProfileServiceClient.getDaiEncodingProfile(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the DaiEncodingProfile. Format:
+ * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiEncodingProfile getDaiEncodingProfile(@Nullable DaiEncodingProfileName name) {
+ GetDaiEncodingProfileRequest request =
+ GetDaiEncodingProfileRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDaiEncodingProfile(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String name =
+ * DaiEncodingProfileName.of("[NETWORK_CODE]", "[DAI_ENCODING_PROFILE]").toString();
+ * DaiEncodingProfile response = daiEncodingProfileServiceClient.getDaiEncodingProfile(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the DaiEncodingProfile. Format:
+ * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiEncodingProfile getDaiEncodingProfile(String name) {
+ GetDaiEncodingProfileRequest request =
+ GetDaiEncodingProfileRequest.newBuilder().setName(name).build();
+ return getDaiEncodingProfile(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * GetDaiEncodingProfileRequest request =
+ * GetDaiEncodingProfileRequest.newBuilder()
+ * .setName(
+ * DaiEncodingProfileName.of("[NETWORK_CODE]", "[DAI_ENCODING_PROFILE]").toString())
+ * .build();
+ * DaiEncodingProfile response = daiEncodingProfileServiceClient.getDaiEncodingProfile(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 DaiEncodingProfile getDaiEncodingProfile(GetDaiEncodingProfileRequest request) {
+ return getDaiEncodingProfileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * GetDaiEncodingProfileRequest request =
+ * GetDaiEncodingProfileRequest.newBuilder()
+ * .setName(
+ * DaiEncodingProfileName.of("[NETWORK_CODE]", "[DAI_ENCODING_PROFILE]").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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (DaiEncodingProfile element :
+ * daiEncodingProfileServiceClient.listDaiEncodingProfiles(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of DaiEncodingProfiles. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDaiEncodingProfilesPagedResponse listDaiEncodingProfiles(
+ @Nullable NetworkName parent) {
+ ListDaiEncodingProfilesRequest request =
+ ListDaiEncodingProfilesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDaiEncodingProfiles(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (DaiEncodingProfile element :
+ * daiEncodingProfileServiceClient.listDaiEncodingProfiles(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of DaiEncodingProfiles. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDaiEncodingProfilesPagedResponse listDaiEncodingProfiles(String parent) {
+ ListDaiEncodingProfilesRequest request =
+ ListDaiEncodingProfilesRequest.newBuilder().setParent(parent).build();
+ return listDaiEncodingProfiles(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * ListDaiEncodingProfilesRequest request =
+ * ListDaiEncodingProfilesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (DaiEncodingProfile element :
+ * daiEncodingProfileServiceClient.listDaiEncodingProfiles(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 ListDaiEncodingProfilesPagedResponse listDaiEncodingProfiles(
+ ListDaiEncodingProfilesRequest request) {
+ return listDaiEncodingProfilesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * ListDaiEncodingProfilesRequest request =
+ * ListDaiEncodingProfilesRequest.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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * ListDaiEncodingProfilesRequest request =
+ * ListDaiEncodingProfilesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListDaiEncodingProfilesResponse response =
+ * daiEncodingProfileServiceClient.listDaiEncodingProfilesCallable().call(request);
+ * for (DaiEncodingProfile element : response.getDaiEncodingProfilesList()) {
+ * // 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * DaiEncodingProfile daiEncodingProfile = DaiEncodingProfile.newBuilder().build();
+ * DaiEncodingProfile response =
+ * daiEncodingProfileServiceClient.createDaiEncodingProfile(parent, daiEncodingProfile);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `DaiEncodingProfile` will be created.
+ * Format: `networks/{network_code}`
+ * @param daiEncodingProfile Required. The `DaiEncodingProfile` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiEncodingProfile createDaiEncodingProfile(
+ @Nullable NetworkName parent, DaiEncodingProfile daiEncodingProfile) {
+ CreateDaiEncodingProfileRequest request =
+ CreateDaiEncodingProfileRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setDaiEncodingProfile(daiEncodingProfile)
+ .build();
+ return createDaiEncodingProfile(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * DaiEncodingProfile daiEncodingProfile = DaiEncodingProfile.newBuilder().build();
+ * DaiEncodingProfile response =
+ * daiEncodingProfileServiceClient.createDaiEncodingProfile(parent, daiEncodingProfile);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `DaiEncodingProfile` will be created.
+ * Format: `networks/{network_code}`
+ * @param daiEncodingProfile Required. The `DaiEncodingProfile` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiEncodingProfile createDaiEncodingProfile(
+ String parent, DaiEncodingProfile daiEncodingProfile) {
+ CreateDaiEncodingProfileRequest request =
+ CreateDaiEncodingProfileRequest.newBuilder()
+ .setParent(parent)
+ .setDaiEncodingProfile(daiEncodingProfile)
+ .build();
+ return createDaiEncodingProfile(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * CreateDaiEncodingProfileRequest request =
+ * CreateDaiEncodingProfileRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setDaiEncodingProfile(DaiEncodingProfile.newBuilder().build())
+ * .build();
+ * DaiEncodingProfile response =
+ * daiEncodingProfileServiceClient.createDaiEncodingProfile(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 DaiEncodingProfile createDaiEncodingProfile(
+ CreateDaiEncodingProfileRequest request) {
+ return createDaiEncodingProfileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * CreateDaiEncodingProfileRequest request =
+ * CreateDaiEncodingProfileRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setDaiEncodingProfile(DaiEncodingProfile.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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiEncodingProfiles` will be created.
+ * Format: `networks/{network_code}` The parent field in the CreateDaiEncodingProfileRequest
+ * must match this field.
+ * @param requests Required. The `DaiEncodingProfile` 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 BatchCreateDaiEncodingProfilesResponse batchCreateDaiEncodingProfiles(
+ @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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiEncodingProfiles` will be created.
+ * Format: `networks/{network_code}` The parent field in the CreateDaiEncodingProfileRequest
+ * must match this field.
+ * @param requests Required. The `DaiEncodingProfile` 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 BatchCreateDaiEncodingProfilesResponse batchCreateDaiEncodingProfiles(
+ 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchCreateDaiEncodingProfilesRequest request =
+ * BatchCreateDaiEncodingProfilesRequest.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 BatchCreateDaiEncodingProfilesResponse batchCreateDaiEncodingProfiles(
+ BatchCreateDaiEncodingProfilesRequest request) {
+ return batchCreateDaiEncodingProfilesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchCreateDaiEncodingProfilesRequest request =
+ * BatchCreateDaiEncodingProfilesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchCreateDaiEncodingProfilesRequest, BatchCreateDaiEncodingProfilesResponse>
+ batchCreateDaiEncodingProfilesCallable() {
+ return stub.batchCreateDaiEncodingProfilesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * DaiEncodingProfile daiEncodingProfile = DaiEncodingProfile.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * DaiEncodingProfile response =
+ * daiEncodingProfileServiceClient.updateDaiEncodingProfile(daiEncodingProfile, updateMask);
+ * }
+ * }
+ *
+ * @param daiEncodingProfile Required. The `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * UpdateDaiEncodingProfileRequest request =
+ * UpdateDaiEncodingProfileRequest.newBuilder()
+ * .setDaiEncodingProfile(DaiEncodingProfile.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * DaiEncodingProfile response =
+ * daiEncodingProfileServiceClient.updateDaiEncodingProfile(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 DaiEncodingProfile updateDaiEncodingProfile(
+ UpdateDaiEncodingProfileRequest request) {
+ return updateDaiEncodingProfileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * UpdateDaiEncodingProfileRequest request =
+ * UpdateDaiEncodingProfileRequest.newBuilder()
+ * .setDaiEncodingProfile(DaiEncodingProfile.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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiEncodingProfiles` will be updated.
+ * Format: `networks/{network_code}` The parent field in the UpdateDaiEncodingProfileRequest
+ * must match this field.
+ * @param requests Required. The `DaiEncodingProfile` 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 BatchUpdateDaiEncodingProfilesResponse batchUpdateDaiEncodingProfiles(
+ @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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `DaiEncodingProfiles` will be updated.
+ * Format: `networks/{network_code}` The parent field in the UpdateDaiEncodingProfileRequest
+ * must match this field.
+ * @param requests Required. The `DaiEncodingProfile` 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 BatchUpdateDaiEncodingProfilesResponse batchUpdateDaiEncodingProfiles(
+ 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchUpdateDaiEncodingProfilesRequest request =
+ * BatchUpdateDaiEncodingProfilesRequest.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 BatchUpdateDaiEncodingProfilesResponse batchUpdateDaiEncodingProfiles(
+ BatchUpdateDaiEncodingProfilesRequest request) {
+ return batchUpdateDaiEncodingProfilesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchUpdateDaiEncodingProfilesRequest request =
+ * BatchUpdateDaiEncodingProfilesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchUpdateDaiEncodingProfilesRequest, BatchUpdateDaiEncodingProfilesResponse>
+ batchUpdateDaiEncodingProfilesCallable() {
+ return stub.batchUpdateDaiEncodingProfilesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Activates a list of `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param requests Required. The `DaiEncodingProfile` 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 BatchActivateDaiEncodingProfilesResponse batchActivateDaiEncodingProfiles(
+ @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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param requests Required. The `DaiEncodingProfile` 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 BatchActivateDaiEncodingProfilesResponse batchActivateDaiEncodingProfiles(
+ 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchActivateDaiEncodingProfilesRequest request =
+ * BatchActivateDaiEncodingProfilesRequest.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 BatchActivateDaiEncodingProfilesResponse batchActivateDaiEncodingProfiles(
+ BatchActivateDaiEncodingProfilesRequest request) {
+ return batchActivateDaiEncodingProfilesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Activates a list of `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchActivateDaiEncodingProfilesRequest request =
+ * BatchActivateDaiEncodingProfilesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchActivateDaiEncodingProfilesRequest, BatchActivateDaiEncodingProfilesResponse>
+ batchActivateDaiEncodingProfilesCallable() {
+ return stub.batchActivateDaiEncodingProfilesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a list of `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param requests Required. The `DaiEncodingProfile` objects to archive. A maximum of 100 objects
+ * can be archived in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveDaiEncodingProfilesResponse batchArchiveDaiEncodingProfiles(
+ @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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param requests Required. The `DaiEncodingProfile` objects to archive. A maximum of 100 objects
+ * can be archived in a batch.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveDaiEncodingProfilesResponse batchArchiveDaiEncodingProfiles(
+ 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchArchiveDaiEncodingProfilesRequest request =
+ * BatchArchiveDaiEncodingProfilesRequest.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 BatchArchiveDaiEncodingProfilesResponse batchArchiveDaiEncodingProfiles(
+ BatchArchiveDaiEncodingProfilesRequest request) {
+ return batchArchiveDaiEncodingProfilesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a list of `DaiEncodingProfile` 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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * BatchArchiveDaiEncodingProfilesRequest request =
+ * BatchArchiveDaiEncodingProfilesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchArchiveDaiEncodingProfilesRequest, BatchArchiveDaiEncodingProfilesResponse>
+ batchArchiveDaiEncodingProfilesCallable() {
+ return stub.batchArchiveDaiEncodingProfilesCallable();
+ }
+
+ @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 ListDaiEncodingProfilesPagedResponse
+ extends AbstractPagedListResponse<
+ ListDaiEncodingProfilesRequest,
+ ListDaiEncodingProfilesResponse,
+ DaiEncodingProfile,
+ ListDaiEncodingProfilesPage,
+ ListDaiEncodingProfilesFixedSizeCollection> {
+
+ 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
+ * DaiEncodingProfileServiceSettings.Builder daiEncodingProfileServiceSettingsBuilder =
+ * DaiEncodingProfileServiceSettings.newBuilder();
+ * daiEncodingProfileServiceSettingsBuilder
+ * .getDaiEncodingProfileSettings()
+ * .setRetrySettings(
+ * daiEncodingProfileServiceSettingsBuilder
+ * .getDaiEncodingProfileSettings()
+ * .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());
+ * DaiEncodingProfileServiceSettings daiEncodingProfileServiceSettings =
+ * daiEncodingProfileServiceSettingsBuilder.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 DaiEncodingProfileServiceSettings
+ extends ClientSettings
*
*
- *
+ *
*
*
@@ -89,7 +89,7 @@
*
*
*
- *
+ *
*
*
@@ -109,7 +109,7 @@
*
*
*
- *
+ *
*
*
@@ -128,7 +128,7 @@
*
*
*
- *
+ *
*
*
@@ -146,7 +146,7 @@
*
*
*
- *
+ *
*
*
@@ -162,7 +162,7 @@
*
*
*
- *
+ *
*
*
@@ -275,7 +275,7 @@ public EntitySignalsMappingServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `EntitySignalsMapping` object.
+ * Retrieves a `EntitySignalsMapping` 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * PartnerName name = PartnerName.of("[NETWORK_CODE]", "[PARTNER]");
+ * Partner response = partnerServiceClient.getPartner(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
+ * PartnerServiceSettings partnerServiceSettings =
+ * PartnerServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PartnerServiceClient partnerServiceClient = PartnerServiceClient.create(partnerServiceSettings);
+ * }
+ *
+ * {@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
+ * PartnerServiceSettings partnerServiceSettings =
+ * PartnerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PartnerServiceClient partnerServiceClient = PartnerServiceClient.create(partnerServiceSettings);
+ * }
+ *
+ * {@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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * PartnerName name = PartnerName.of("[NETWORK_CODE]", "[PARTNER]");
+ * Partner response = partnerServiceClient.getPartner(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the [Partner][google.ads.admanager.v1.Partner].
+ * Format: `networks/{network_code}/partners/{partner_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Partner getPartner(@Nullable PartnerName name) {
+ GetPartnerRequest request =
+ GetPartnerRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getPartner(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * String name = PartnerName.of("[NETWORK_CODE]", "[PARTNER]").toString();
+ * Partner response = partnerServiceClient.getPartner(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the [Partner][google.ads.admanager.v1.Partner].
+ * Format: `networks/{network_code}/partners/{partner_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Partner getPartner(String name) {
+ GetPartnerRequest request = GetPartnerRequest.newBuilder().setName(name).build();
+ return getPartner(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * GetPartnerRequest request =
+ * GetPartnerRequest.newBuilder()
+ * .setName(PartnerName.of("[NETWORK_CODE]", "[PARTNER]").toString())
+ * .build();
+ * Partner response = partnerServiceClient.getPartner(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 Partner getPartner(GetPartnerRequest request) {
+ return getPartnerCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * GetPartnerRequest request =
+ * GetPartnerRequest.newBuilder()
+ * .setName(PartnerName.of("[NETWORK_CODE]", "[PARTNER]").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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Partner element : partnerServiceClient.listPartners(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * [Partner][google.ads.admanager.v1.Partner]s. Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPartnersPagedResponse listPartners(@Nullable NetworkName parent) {
+ ListPartnersRequest request =
+ ListPartnersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPartners(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Partner element : partnerServiceClient.listPartners(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * [Partner][google.ads.admanager.v1.Partner]s. Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPartnersPagedResponse listPartners(String parent) {
+ ListPartnersRequest request = ListPartnersRequest.newBuilder().setParent(parent).build();
+ return listPartners(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * ListPartnersRequest request =
+ * ListPartnersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Partner element : partnerServiceClient.listPartners(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 ListPartnersPagedResponse listPartners(ListPartnersRequest request) {
+ return listPartnersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * ListPartnersRequest request =
+ * ListPartnersRequest.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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * ListPartnersRequest request =
+ * ListPartnersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListPartnersResponse response = partnerServiceClient.listPartnersCallable().call(request);
+ * for (Partner element : response.getPartnersList()) {
+ * // 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * Partner partner = Partner.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Partner response = partnerServiceClient.updatePartner(partner, updateMask);
+ * }
+ * }
+ *
+ * @param partner Required. The [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * UpdatePartnerRequest request =
+ * UpdatePartnerRequest.newBuilder()
+ * .setPartner(Partner.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Partner response = partnerServiceClient.updatePartner(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 Partner updatePartner(UpdatePartnerRequest request) {
+ return updatePartnerCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * UpdatePartnerRequest request =
+ * UpdatePartnerRequest.newBuilder()
+ * .setPartner(Partner.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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where [Partner][google.ads.admanager.v1.Partner]s
+ * will be updated. Format: `networks/{network_code}` The parent field in the
+ * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must match this field.
+ * @param requests Required. The [Partner][google.ads.admanager.v1.Partner] 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 BatchUpdatePartnersResponse batchUpdatePartners(
+ @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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where [Partner][google.ads.admanager.v1.Partner]s
+ * will be updated. Format: `networks/{network_code}` The parent field in the
+ * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must match this field.
+ * @param requests Required. The [Partner][google.ads.admanager.v1.Partner] 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 BatchUpdatePartnersResponse batchUpdatePartners(
+ 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * BatchUpdatePartnersRequest request =
+ * BatchUpdatePartnersRequest.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 BatchUpdatePartnersResponse batchUpdatePartners(BatchUpdatePartnersRequest request) {
+ return batchUpdatePartnersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates [Partner][google.ads.admanager.v1.Partner] 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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * BatchUpdatePartnersRequest request =
+ * BatchUpdatePartnersRequest.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
+ * PartnerServiceSettings.Builder partnerServiceSettingsBuilder =
+ * PartnerServiceSettings.newBuilder();
+ * partnerServiceSettingsBuilder
+ * .getPartnerSettings()
+ * .setRetrySettings(
+ * partnerServiceSettingsBuilder
+ * .getPartnerSettings()
+ * .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());
+ * PartnerServiceSettings partnerServiceSettings = partnerServiceSettingsBuilder.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 PartnerServiceSettings extends ClientSettings
*
*
- *
+ *
*
*
@@ -86,7 +86,7 @@
*
*
- *
+ *
*
*
@@ -201,7 +201,7 @@ public TaxonomyCategoryServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `TaxonomyCategory` object.
+ * Retrieves a `TaxonomyCategory` 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ViewabilityProviderName name =
+ * ViewabilityProviderName.of("[NETWORK_CODE]", "[VIEWABILITY_PROVIDER]");
+ * ViewabilityProvider response = viewabilityProviderServiceClient.getViewabilityProvider(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
+ * ViewabilityProviderServiceSettings viewabilityProviderServiceSettings =
+ * ViewabilityProviderServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create(viewabilityProviderServiceSettings);
+ * }
+ *
+ * {@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
+ * ViewabilityProviderServiceSettings viewabilityProviderServiceSettings =
+ * ViewabilityProviderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create(viewabilityProviderServiceSettings);
+ * }
+ *
+ * {@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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ViewabilityProviderName name =
+ * ViewabilityProviderName.of("[NETWORK_CODE]", "[VIEWABILITY_PROVIDER]");
+ * ViewabilityProvider response = viewabilityProviderServiceClient.getViewabilityProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format:
+ * `networks/{network_code}/viewabilityProviders/{viewability_provider}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ViewabilityProvider getViewabilityProvider(@Nullable ViewabilityProviderName name) {
+ GetViewabilityProviderRequest request =
+ GetViewabilityProviderRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getViewabilityProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * String name =
+ * ViewabilityProviderName.of("[NETWORK_CODE]", "[VIEWABILITY_PROVIDER]").toString();
+ * ViewabilityProvider response = viewabilityProviderServiceClient.getViewabilityProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format:
+ * `networks/{network_code}/viewabilityProviders/{viewability_provider}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ViewabilityProvider getViewabilityProvider(String name) {
+ GetViewabilityProviderRequest request =
+ GetViewabilityProviderRequest.newBuilder().setName(name).build();
+ return getViewabilityProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * GetViewabilityProviderRequest request =
+ * GetViewabilityProviderRequest.newBuilder()
+ * .setName(
+ * ViewabilityProviderName.of("[NETWORK_CODE]", "[VIEWABILITY_PROVIDER]").toString())
+ * .build();
+ * ViewabilityProvider response =
+ * viewabilityProviderServiceClient.getViewabilityProvider(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 ViewabilityProvider getViewabilityProvider(GetViewabilityProviderRequest request) {
+ return getViewabilityProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * GetViewabilityProviderRequest request =
+ * GetViewabilityProviderRequest.newBuilder()
+ * .setName(
+ * ViewabilityProviderName.of("[NETWORK_CODE]", "[VIEWABILITY_PROVIDER]").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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (ViewabilityProvider element :
+ * viewabilityProviderServiceClient.listViewabilityProviders(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListViewabilityProvidersPagedResponse listViewabilityProviders(
+ @Nullable NetworkName parent) {
+ ListViewabilityProvidersRequest request =
+ ListViewabilityProvidersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listViewabilityProviders(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (ViewabilityProvider element :
+ * viewabilityProviderServiceClient.listViewabilityProviders(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListViewabilityProvidersPagedResponse listViewabilityProviders(String parent) {
+ ListViewabilityProvidersRequest request =
+ ListViewabilityProvidersRequest.newBuilder().setParent(parent).build();
+ return listViewabilityProviders(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ListViewabilityProvidersRequest request =
+ * ListViewabilityProvidersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (ViewabilityProvider element :
+ * viewabilityProviderServiceClient.listViewabilityProviders(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 ListViewabilityProvidersPagedResponse listViewabilityProviders(
+ ListViewabilityProvidersRequest request) {
+ return listViewabilityProvidersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ListViewabilityProvidersRequest request =
+ * ListViewabilityProvidersRequest.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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ListViewabilityProvidersRequest request =
+ * ListViewabilityProvidersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListViewabilityProvidersResponse response =
+ * viewabilityProviderServiceClient.listViewabilityProvidersCallable().call(request);
+ * for (ViewabilityProvider element : response.getViewabilityProvidersList()) {
+ * // 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * ViewabilityProvider viewabilityProvider = ViewabilityProvider.newBuilder().build();
+ * ViewabilityProvider response =
+ * viewabilityProviderServiceClient.createViewabilityProvider(parent, viewabilityProvider);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be created. Format:
+ * `networks/{network_code}`
+ * @param viewabilityProvider Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ViewabilityProvider createViewabilityProvider(
+ @Nullable NetworkName parent, ViewabilityProvider viewabilityProvider) {
+ CreateViewabilityProviderRequest request =
+ CreateViewabilityProviderRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setViewabilityProvider(viewabilityProvider)
+ .build();
+ return createViewabilityProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * ViewabilityProvider viewabilityProvider = ViewabilityProvider.newBuilder().build();
+ * ViewabilityProvider response =
+ * viewabilityProviderServiceClient.createViewabilityProvider(parent, viewabilityProvider);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be created. Format:
+ * `networks/{network_code}`
+ * @param viewabilityProvider Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ViewabilityProvider createViewabilityProvider(
+ String parent, ViewabilityProvider viewabilityProvider) {
+ CreateViewabilityProviderRequest request =
+ CreateViewabilityProviderRequest.newBuilder()
+ .setParent(parent)
+ .setViewabilityProvider(viewabilityProvider)
+ .build();
+ return createViewabilityProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * CreateViewabilityProviderRequest request =
+ * CreateViewabilityProviderRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setViewabilityProvider(ViewabilityProvider.newBuilder().build())
+ * .build();
+ * ViewabilityProvider response =
+ * viewabilityProviderServiceClient.createViewabilityProvider(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 ViewabilityProvider createViewabilityProvider(
+ CreateViewabilityProviderRequest request) {
+ return createViewabilityProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * CreateViewabilityProviderRequest request =
+ * CreateViewabilityProviderRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setViewabilityProvider(ViewabilityProvider.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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be created.
+ * Format: `networks/{network_code}` The parent field in the CreateViewabilityProviderRequest
+ * must match this field.
+ * @param requests Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 BatchCreateViewabilityProvidersResponse batchCreateViewabilityProviders(
+ @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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be created.
+ * Format: `networks/{network_code}` The parent field in the CreateViewabilityProviderRequest
+ * must match this field.
+ * @param requests Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 BatchCreateViewabilityProvidersResponse batchCreateViewabilityProviders(
+ 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * BatchCreateViewabilityProvidersRequest request =
+ * BatchCreateViewabilityProvidersRequest.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 BatchCreateViewabilityProvidersResponse batchCreateViewabilityProviders(
+ BatchCreateViewabilityProvidersRequest request) {
+ return batchCreateViewabilityProvidersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * BatchCreateViewabilityProvidersRequest request =
+ * BatchCreateViewabilityProvidersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchCreateViewabilityProvidersRequest, BatchCreateViewabilityProvidersResponse>
+ batchCreateViewabilityProvidersCallable() {
+ return stub.batchCreateViewabilityProvidersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ViewabilityProvider viewabilityProvider = ViewabilityProvider.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ViewabilityProvider response =
+ * viewabilityProviderServiceClient.updateViewabilityProvider(
+ * viewabilityProvider, updateMask);
+ * }
+ * }
+ *
+ * @param viewabilityProvider Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * UpdateViewabilityProviderRequest request =
+ * UpdateViewabilityProviderRequest.newBuilder()
+ * .setViewabilityProvider(ViewabilityProvider.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ViewabilityProvider response =
+ * viewabilityProviderServiceClient.updateViewabilityProvider(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 ViewabilityProvider updateViewabilityProvider(
+ UpdateViewabilityProviderRequest request) {
+ return updateViewabilityProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * UpdateViewabilityProviderRequest request =
+ * UpdateViewabilityProviderRequest.newBuilder()
+ * .setViewabilityProvider(ViewabilityProvider.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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be updated.
+ * Format: `networks/{network_code}` The parent field in the UpdateViewabilityProviderRequest
+ * must match this field.
+ * @param requests Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 BatchUpdateViewabilityProvidersResponse batchUpdateViewabilityProviders(
+ @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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be updated.
+ * Format: `networks/{network_code}` The parent field in the UpdateViewabilityProviderRequest
+ * must match this field.
+ * @param requests Required. The
+ * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 BatchUpdateViewabilityProvidersResponse batchUpdateViewabilityProviders(
+ 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * BatchUpdateViewabilityProvidersRequest request =
+ * BatchUpdateViewabilityProvidersRequest.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 BatchUpdateViewabilityProvidersResponse batchUpdateViewabilityProviders(
+ BatchUpdateViewabilityProvidersRequest request) {
+ return batchUpdateViewabilityProvidersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] 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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * BatchUpdateViewabilityProvidersRequest request =
+ * BatchUpdateViewabilityProvidersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchUpdateViewabilityProvidersRequest, BatchUpdateViewabilityProvidersResponse>
+ batchUpdateViewabilityProvidersCallable() {
+ return stub.batchUpdateViewabilityProvidersCallable();
+ }
+
+ @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 ListViewabilityProvidersPagedResponse
+ extends AbstractPagedListResponse<
+ ListViewabilityProvidersRequest,
+ ListViewabilityProvidersResponse,
+ ViewabilityProvider,
+ ListViewabilityProvidersPage,
+ ListViewabilityProvidersFixedSizeCollection> {
+
+ 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
+ * ViewabilityProviderServiceSettings.Builder viewabilityProviderServiceSettingsBuilder =
+ * ViewabilityProviderServiceSettings.newBuilder();
+ * viewabilityProviderServiceSettingsBuilder
+ * .getViewabilityProviderSettings()
+ * .setRetrySettings(
+ * viewabilityProviderServiceSettingsBuilder
+ * .getViewabilityProviderSettings()
+ * .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());
+ * ViewabilityProviderServiceSettings viewabilityProviderServiceSettings =
+ * viewabilityProviderServiceSettingsBuilder.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 ViewabilityProviderServiceSettings
+ 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 (ChildPublisherServiceClient childPublisherServiceClient =
+ * ChildPublisherServiceClient.create()) {
+ * ChildPublisherName name = ChildPublisherName.of("[NETWORK_CODE]", "[CHILD_PUBLISHER]");
+ * ChildPublisher response = childPublisherServiceClient.getChildPublisher(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 (CreativeWrapperServiceClient creativeWrapperServiceClient =
+ * CreativeWrapperServiceClient.create()) {
+ * CreativeWrapperName name = CreativeWrapperName.of("[NETWORK_CODE]", "[CREATIVE_WRAPPER]");
+ * CreativeWrapper response = creativeWrapperServiceClient.getCreativeWrapper(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 (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
+ * DaiAuthenticationKeyServiceClient.create()) {
+ * DaiAuthenticationKeyName name =
+ * DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]");
+ * DaiAuthenticationKey response =
+ * daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(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 (DaiEncodingProfileServiceClient daiEncodingProfileServiceClient =
+ * DaiEncodingProfileServiceClient.create()) {
+ * DaiEncodingProfileName name =
+ * DaiEncodingProfileName.of("[NETWORK_CODE]", "[DAI_ENCODING_PROFILE]");
+ * DaiEncodingProfile response = daiEncodingProfileServiceClient.getDaiEncodingProfile(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 (PartnerServiceClient partnerServiceClient = PartnerServiceClient.create()) {
+ * PartnerName name = PartnerName.of("[NETWORK_CODE]", "[PARTNER]");
+ * Partner response = partnerServiceClient.getPartner(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 (ViewabilityProviderServiceClient viewabilityProviderServiceClient =
+ * ViewabilityProviderServiceClient.create()) {
+ * ViewabilityProviderName name =
+ * ViewabilityProviderName.of("[NETWORK_CODE]", "[VIEWABILITY_PROVIDER]");
+ * ViewabilityProvider response = viewabilityProviderServiceClient.getViewabilityProvider(name);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.ads.admanager.v1;
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ChildPublisherServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ChildPublisherServiceStub.java
new file mode 100644
index 000000000000..032e93079603
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ChildPublisherServiceStub.java
@@ -0,0 +1,82 @@
+/*
+ * 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.ChildPublisherServiceClient.ListChildPublishersPagedResponse;
+
+import com.google.ads.admanager.v1.BatchCreateChildPublishersRequest;
+import com.google.ads.admanager.v1.BatchCreateChildPublishersResponse;
+import com.google.ads.admanager.v1.BatchUpdateChildPublishersRequest;
+import com.google.ads.admanager.v1.BatchUpdateChildPublishersResponse;
+import com.google.ads.admanager.v1.ChildPublisher;
+import com.google.ads.admanager.v1.CreateChildPublisherRequest;
+import com.google.ads.admanager.v1.GetChildPublisherRequest;
+import com.google.ads.admanager.v1.ListChildPublishersRequest;
+import com.google.ads.admanager.v1.ListChildPublishersResponse;
+import com.google.ads.admanager.v1.UpdateChildPublisherRequest;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the ChildPublisherService service API.
+ *
+ *
+ *
+ *
+ * {@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
+ * ChildPublisherServiceStubSettings.Builder childPublisherServiceSettingsBuilder =
+ * ChildPublisherServiceStubSettings.newBuilder();
+ * childPublisherServiceSettingsBuilder
+ * .getChildPublisherSettings()
+ * .setRetrySettings(
+ * childPublisherServiceSettingsBuilder
+ * .getChildPublisherSettings()
+ * .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());
+ * ChildPublisherServiceStubSettings childPublisherServiceSettings =
+ * childPublisherServiceSettingsBuilder.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 ChildPublisherServiceStubSettings
+ 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
+ * CreativeWrapperServiceStubSettings.Builder creativeWrapperServiceSettingsBuilder =
+ * CreativeWrapperServiceStubSettings.newBuilder();
+ * creativeWrapperServiceSettingsBuilder
+ * .getCreativeWrapperSettings()
+ * .setRetrySettings(
+ * creativeWrapperServiceSettingsBuilder
+ * .getCreativeWrapperSettings()
+ * .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());
+ * CreativeWrapperServiceStubSettings creativeWrapperServiceSettings =
+ * creativeWrapperServiceSettingsBuilder.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 CreativeWrapperServiceStubSettings
+ extends StubSettings