The `AdBreak`'s `name` is used to identify the `AdBreak` to update.
- * @param updateMask Required. The list of fields 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 AdBreak updateAdBreak(AdBreak adBreak, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java
index 3431f8bf8f27..638767e84af7 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java
@@ -937,7 +937,7 @@ public final UnaryCallable createAdUnitCallable() {
* @param adUnit Required. The `AdUnit` to update.
*
The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
* `networks/{network_code}/adUnits/{ad_unit_id}`
- * @param updateMask Required. The list of fields 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 AdUnit updateAdUnit(AdUnit adUnit, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java
index 3296e78eb72f..52f0fbeb2144 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java
@@ -27,6 +27,7 @@
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.common.util.concurrent.MoreExecutors;
+import com.google.protobuf.FieldMask;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.TimeUnit;
@@ -101,6 +102,113 @@
*
*
*
+ *
+ *
CreateApplication
+ *
API to create a `Application` object.
+ *
+ *
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.
+ *
+ *
batchUnarchiveApplicationsCallable()
+ *
+ *
+ *
*
*
*
See the individual methods for example code.
@@ -481,6 +589,740 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ
return stub.listApplicationsCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * Application application = Application.newBuilder().build();
+ * Application response = applicationServiceClient.createApplication(parent, application);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Application` will be created. Format:
+ * `networks/{network_code}`
+ * @param application Required. The `Application` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Application createApplication(NetworkName parent, Application application) {
+ CreateApplicationRequest request =
+ CreateApplicationRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setApplication(application)
+ .build();
+ return createApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * Application application = Application.newBuilder().build();
+ * Application response = applicationServiceClient.createApplication(parent, application);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Application` will be created. Format:
+ * `networks/{network_code}`
+ * @param application Required. The `Application` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Application createApplication(String parent, Application application) {
+ CreateApplicationRequest request =
+ CreateApplicationRequest.newBuilder().setParent(parent).setApplication(application).build();
+ return createApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * CreateApplicationRequest request =
+ * CreateApplicationRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setApplication(Application.newBuilder().build())
+ * .build();
+ * Application response = applicationServiceClient.createApplication(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 Application createApplication(CreateApplicationRequest request) {
+ return createApplicationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * CreateApplicationRequest request =
+ * CreateApplicationRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setApplication(Application.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * applicationServiceClient.createApplicationCallable().futureCall(request);
+ * // Do something.
+ * Application response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createApplicationCallable() {
+ return stub.createApplicationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchCreateApplicationsResponse response =
+ * applicationServiceClient.batchCreateApplications(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Applications` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateApplicationRequest must match this
+ * field.
+ * @param requests Required. The `Application` objects to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateApplicationsResponse batchCreateApplications(
+ NetworkName parent, List requests) {
+ BatchCreateApplicationsRequest request =
+ BatchCreateApplicationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateApplicationsResponse response =
+ * applicationServiceClient.batchCreateApplications(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Applications` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateApplicationRequest must match this
+ * field.
+ * @param requests Required. The `Application` objects to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateApplicationsResponse batchCreateApplications(
+ String parent, List requests) {
+ BatchCreateApplicationsRequest request =
+ BatchCreateApplicationsRequest.newBuilder()
+ .setParent(parent)
+ .addAllRequests(requests)
+ .build();
+ return batchCreateApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchCreateApplicationsRequest request =
+ * BatchCreateApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateApplicationsResponse response =
+ * applicationServiceClient.batchCreateApplications(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 BatchCreateApplicationsResponse batchCreateApplications(
+ BatchCreateApplicationsRequest request) {
+ return batchCreateApplicationsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchCreateApplicationsRequest request =
+ * BatchCreateApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * applicationServiceClient.batchCreateApplicationsCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateApplicationsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchCreateApplicationsCallable() {
+ return stub.batchCreateApplicationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * Application application = Application.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Application response = applicationServiceClient.updateApplication(application, updateMask);
+ * }
+ * }
+ *
+ * @param application Required. The `Application` to update.
+ *
The `Application`'s `name` is used to identify the `Application` 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 Application updateApplication(Application application, FieldMask updateMask) {
+ UpdateApplicationRequest request =
+ UpdateApplicationRequest.newBuilder()
+ .setApplication(application)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * UpdateApplicationRequest request =
+ * UpdateApplicationRequest.newBuilder()
+ * .setApplication(Application.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Application response = applicationServiceClient.updateApplication(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 Application updateApplication(UpdateApplicationRequest request) {
+ return updateApplicationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * UpdateApplicationRequest request =
+ * UpdateApplicationRequest.newBuilder()
+ * .setApplication(Application.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * applicationServiceClient.updateApplicationCallable().futureCall(request);
+ * // Do something.
+ * Application response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateApplicationCallable() {
+ return stub.updateApplicationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchUpdateApplicationsResponse response =
+ * applicationServiceClient.batchUpdateApplications(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Applications` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateApplicationRequest must match this
+ * field.
+ * @param requests Required. The `Application` objects to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateApplicationsResponse batchUpdateApplications(
+ NetworkName parent, List requests) {
+ BatchUpdateApplicationsRequest request =
+ BatchUpdateApplicationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchUpdateApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchUpdateApplicationsResponse response =
+ * applicationServiceClient.batchUpdateApplications(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Applications` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateApplicationRequest must match this
+ * field.
+ * @param requests Required. The `Application` objects to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateApplicationsResponse batchUpdateApplications(
+ String parent, List requests) {
+ BatchUpdateApplicationsRequest request =
+ BatchUpdateApplicationsRequest.newBuilder()
+ .setParent(parent)
+ .addAllRequests(requests)
+ .build();
+ return batchUpdateApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchUpdateApplicationsRequest request =
+ * BatchUpdateApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchUpdateApplicationsResponse response =
+ * applicationServiceClient.batchUpdateApplications(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 BatchUpdateApplicationsResponse batchUpdateApplications(
+ BatchUpdateApplicationsRequest request) {
+ return batchUpdateApplicationsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchUpdateApplicationsRequest request =
+ * BatchUpdateApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * applicationServiceClient.batchUpdateApplicationsCallable().futureCall(request);
+ * // Do something.
+ * BatchUpdateApplicationsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchUpdateApplicationsCallable() {
+ return stub.batchUpdateApplicationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch archive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchArchiveApplicationsResponse response =
+ * applicationServiceClient.batchArchiveApplications(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource shared by all `Applications` to archive. Format:
+ * `networks/{network_code}`
+ * @param names Required. The `Application` objects to archive.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveApplicationsResponse batchArchiveApplications(
+ NetworkName parent, List names) {
+ BatchArchiveApplicationsRequest request =
+ BatchArchiveApplicationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchArchiveApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch archive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchArchiveApplicationsResponse response =
+ * applicationServiceClient.batchArchiveApplications(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource shared by all `Applications` to archive. Format:
+ * `networks/{network_code}`
+ * @param names Required. The `Application` objects to archive.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveApplicationsResponse batchArchiveApplications(
+ String parent, List names) {
+ BatchArchiveApplicationsRequest request =
+ BatchArchiveApplicationsRequest.newBuilder().setParent(parent).addAllNames(names).build();
+ return batchArchiveApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch archive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchArchiveApplicationsRequest request =
+ * BatchArchiveApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchArchiveApplicationsResponse response =
+ * applicationServiceClient.batchArchiveApplications(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 BatchArchiveApplicationsResponse batchArchiveApplications(
+ BatchArchiveApplicationsRequest request) {
+ return batchArchiveApplicationsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch archive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchArchiveApplicationsRequest request =
+ * BatchArchiveApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * applicationServiceClient.batchArchiveApplicationsCallable().futureCall(request);
+ * // Do something.
+ * BatchArchiveApplicationsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchArchiveApplicationsCallable() {
+ return stub.batchArchiveApplicationsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch unarchive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchUnarchiveApplicationsResponse response =
+ * applicationServiceClient.batchUnarchiveApplications(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource shared by all `Applications` to Unarchive. Format:
+ * `networks/{network_code}`
+ * @param names Required. The `Application` objects to unarchive.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveApplicationsResponse batchUnarchiveApplications(
+ NetworkName parent, List names) {
+ BatchUnarchiveApplicationsRequest request =
+ BatchUnarchiveApplicationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchUnarchiveApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch unarchive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchUnarchiveApplicationsResponse response =
+ * applicationServiceClient.batchUnarchiveApplications(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource shared by all `Applications` to Unarchive. Format:
+ * `networks/{network_code}`
+ * @param names Required. The `Application` objects to unarchive.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveApplicationsResponse batchUnarchiveApplications(
+ String parent, List names) {
+ BatchUnarchiveApplicationsRequest request =
+ BatchUnarchiveApplicationsRequest.newBuilder().setParent(parent).addAllNames(names).build();
+ return batchUnarchiveApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch unarchive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchUnarchiveApplicationsRequest request =
+ * BatchUnarchiveApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchUnarchiveApplicationsResponse response =
+ * applicationServiceClient.batchUnarchiveApplications(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 BatchUnarchiveApplicationsResponse batchUnarchiveApplications(
+ BatchUnarchiveApplicationsRequest request) {
+ return batchUnarchiveApplicationsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * / API to batch unarchive `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * BatchUnarchiveApplicationsRequest request =
+ * BatchUnarchiveApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * applicationServiceClient.batchUnarchiveApplicationsCallable().futureCall(request);
+ * // Do something.
+ * BatchUnarchiveApplicationsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchUnarchiveApplicationsCallable() {
+ return stub.batchUnarchiveApplicationsCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java
index 35fa181c1e11..c523c261e525 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java
@@ -99,6 +99,41 @@ public UnaryCallSettings getApplicationSetti
return ((ApplicationServiceStubSettings) getStubSettings()).listApplicationsSettings();
}
+ /** Returns the object with the settings used for calls to createApplication. */
+ public UnaryCallSettings createApplicationSettings() {
+ return ((ApplicationServiceStubSettings) getStubSettings()).createApplicationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateApplications. */
+ public UnaryCallSettings
+ batchCreateApplicationsSettings() {
+ return ((ApplicationServiceStubSettings) getStubSettings()).batchCreateApplicationsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateApplication. */
+ public UnaryCallSettings updateApplicationSettings() {
+ return ((ApplicationServiceStubSettings) getStubSettings()).updateApplicationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchUpdateApplications. */
+ public UnaryCallSettings
+ batchUpdateApplicationsSettings() {
+ return ((ApplicationServiceStubSettings) getStubSettings()).batchUpdateApplicationsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchArchiveApplications. */
+ public UnaryCallSettings
+ batchArchiveApplicationsSettings() {
+ return ((ApplicationServiceStubSettings) getStubSettings()).batchArchiveApplicationsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchUnarchiveApplications. */
+ public UnaryCallSettings
+ batchUnarchiveApplicationsSettings() {
+ return ((ApplicationServiceStubSettings) getStubSettings())
+ .batchUnarchiveApplicationsSettings();
+ }
+
public static final ApplicationServiceSettings create(ApplicationServiceStubSettings stub)
throws IOException {
return new ApplicationServiceSettings.Builder(stub.toBuilder()).build();
@@ -208,6 +243,46 @@ public UnaryCallSettings.Builder getApplicat
return getStubSettingsBuilder().listApplicationsSettings();
}
+ /** Returns the builder for the settings used for calls to createApplication. */
+ public UnaryCallSettings.Builder
+ createApplicationSettings() {
+ return getStubSettingsBuilder().createApplicationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateApplications. */
+ public UnaryCallSettings.Builder<
+ BatchCreateApplicationsRequest, BatchCreateApplicationsResponse>
+ batchCreateApplicationsSettings() {
+ return getStubSettingsBuilder().batchCreateApplicationsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateApplication. */
+ public UnaryCallSettings.Builder
+ updateApplicationSettings() {
+ return getStubSettingsBuilder().updateApplicationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchUpdateApplications. */
+ public UnaryCallSettings.Builder<
+ BatchUpdateApplicationsRequest, BatchUpdateApplicationsResponse>
+ batchUpdateApplicationsSettings() {
+ return getStubSettingsBuilder().batchUpdateApplicationsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchArchiveApplications. */
+ public UnaryCallSettings.Builder<
+ BatchArchiveApplicationsRequest, BatchArchiveApplicationsResponse>
+ batchArchiveApplicationsSettings() {
+ return getStubSettingsBuilder().batchArchiveApplicationsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchUnarchiveApplications. */
+ public UnaryCallSettings.Builder<
+ BatchUnarchiveApplicationsRequest, BatchUnarchiveApplicationsResponse>
+ batchUnarchiveApplicationsSettings() {
+ return getStubSettingsBuilder().batchUnarchiveApplicationsSettings();
+ }
+
@Override
public ApplicationServiceSettings build() throws IOException {
return new ApplicationServiceSettings(this);
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java
index 3bb0b31ae423..bf44022f49b4 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java
@@ -102,6 +102,44 @@
*
*
*
+ *
+ *
BatchActivateCmsMetadataKeys
+ *
API to activate a list of `CmsMetadataKey` 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.
+ *
+ *
batchDeactivateCmsMetadataKeysCallable()
+ *
+ *
+ *
*
*
*
See the individual methods for example code.
@@ -497,6 +535,282 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(
return stub.listCmsMetadataKeysCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchActivateCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.batchActivateCmsMetadataKeys(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataKeys` will be activated. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataKey`s to activate. Format:
+ * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
+ NetworkName parent, List names) {
+ BatchActivateCmsMetadataKeysRequest request =
+ BatchActivateCmsMetadataKeysRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchActivateCmsMetadataKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchActivateCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.batchActivateCmsMetadataKeys(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataKeys` will be activated. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataKey`s to activate. Format:
+ * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
+ String parent, List names) {
+ BatchActivateCmsMetadataKeysRequest request =
+ BatchActivateCmsMetadataKeysRequest.newBuilder()
+ .setParent(parent)
+ .addAllNames(names)
+ .build();
+ return batchActivateCmsMetadataKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * BatchActivateCmsMetadataKeysRequest request =
+ * BatchActivateCmsMetadataKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchActivateCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.batchActivateCmsMetadataKeys(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 BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys(
+ BatchActivateCmsMetadataKeysRequest request) {
+ return batchActivateCmsMetadataKeysCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * BatchActivateCmsMetadataKeysRequest request =
+ * BatchActivateCmsMetadataKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * cmsMetadataKeyServiceClient.batchActivateCmsMetadataKeysCallable().futureCall(request);
+ * // Do something.
+ * BatchActivateCmsMetadataKeysResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchActivateCmsMetadataKeysRequest, BatchActivateCmsMetadataKeysResponse>
+ batchActivateCmsMetadataKeysCallable() {
+ return stub.batchActivateCmsMetadataKeysCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchDeactivateCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.batchDeactivateCmsMetadataKeys(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataKeys` will be deactivated.
+ * Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataKey`s to deactivate. Format:
+ * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKeys(
+ NetworkName parent, List names) {
+ BatchDeactivateCmsMetadataKeysRequest request =
+ BatchDeactivateCmsMetadataKeysRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchDeactivateCmsMetadataKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchDeactivateCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.batchDeactivateCmsMetadataKeys(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataKeys` will be deactivated.
+ * Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataKey`s to deactivate. Format:
+ * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKeys(
+ String parent, List names) {
+ BatchDeactivateCmsMetadataKeysRequest request =
+ BatchDeactivateCmsMetadataKeysRequest.newBuilder()
+ .setParent(parent)
+ .addAllNames(names)
+ .build();
+ return batchDeactivateCmsMetadataKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * BatchDeactivateCmsMetadataKeysRequest request =
+ * BatchDeactivateCmsMetadataKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchDeactivateCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.batchDeactivateCmsMetadataKeys(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 BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKeys(
+ BatchDeactivateCmsMetadataKeysRequest request) {
+ return batchDeactivateCmsMetadataKeysCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * BatchDeactivateCmsMetadataKeysRequest request =
+ * BatchDeactivateCmsMetadataKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * cmsMetadataKeyServiceClient.batchDeactivateCmsMetadataKeysCallable().futureCall(request);
+ * // Do something.
+ * BatchDeactivateCmsMetadataKeysResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchDeactivateCmsMetadataKeysRequest, BatchDeactivateCmsMetadataKeysResponse>
+ batchDeactivateCmsMetadataKeysCallable() {
+ return stub.batchDeactivateCmsMetadataKeysCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java
index 664ab67a0542..55494ec06519 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java
@@ -99,6 +99,22 @@ public UnaryCallSettings getCmsMetadat
return ((CmsMetadataKeyServiceStubSettings) getStubSettings()).listCmsMetadataKeysSettings();
}
+ /** Returns the object with the settings used for calls to batchActivateCmsMetadataKeys. */
+ public UnaryCallSettings<
+ BatchActivateCmsMetadataKeysRequest, BatchActivateCmsMetadataKeysResponse>
+ batchActivateCmsMetadataKeysSettings() {
+ return ((CmsMetadataKeyServiceStubSettings) getStubSettings())
+ .batchActivateCmsMetadataKeysSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchDeactivateCmsMetadataKeys. */
+ public UnaryCallSettings<
+ BatchDeactivateCmsMetadataKeysRequest, BatchDeactivateCmsMetadataKeysResponse>
+ batchDeactivateCmsMetadataKeysSettings() {
+ return ((CmsMetadataKeyServiceStubSettings) getStubSettings())
+ .batchDeactivateCmsMetadataKeysSettings();
+ }
+
public static final CmsMetadataKeyServiceSettings create(CmsMetadataKeyServiceStubSettings stub)
throws IOException {
return new CmsMetadataKeyServiceSettings.Builder(stub.toBuilder()).build();
@@ -212,6 +228,20 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().listCmsMetadataKeysSettings();
}
+ /** Returns the builder for the settings used for calls to batchActivateCmsMetadataKeys. */
+ public UnaryCallSettings.Builder<
+ BatchActivateCmsMetadataKeysRequest, BatchActivateCmsMetadataKeysResponse>
+ batchActivateCmsMetadataKeysSettings() {
+ return getStubSettingsBuilder().batchActivateCmsMetadataKeysSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchDeactivateCmsMetadataKeys. */
+ public UnaryCallSettings.Builder<
+ BatchDeactivateCmsMetadataKeysRequest, BatchDeactivateCmsMetadataKeysResponse>
+ batchDeactivateCmsMetadataKeysSettings() {
+ return getStubSettingsBuilder().batchDeactivateCmsMetadataKeysSettings();
+ }
+
@Override
public CmsMetadataKeyServiceSettings build() throws IOException {
return new CmsMetadataKeyServiceSettings(this);
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java
index 10c536daf849..d9fe4df31029 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java
@@ -102,6 +102,44 @@
*
*
*
+ *
+ *
BatchActivateCmsMetadataValues
+ *
API to activate a list of `CmsMetadataValue` 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.
+ *
+ *
batchDeactivateCmsMetadataValuesCallable()
+ *
+ *
+ *
*
*
*
See the individual methods for example code.
@@ -500,6 +538,286 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(
return stub.listCmsMetadataValuesCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchActivateCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.batchActivateCmsMetadataValues(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataValues` will be activated.
+ * Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataValue`s to activate. Format:
+ * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValues(
+ NetworkName parent, List names) {
+ BatchActivateCmsMetadataValuesRequest request =
+ BatchActivateCmsMetadataValuesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchActivateCmsMetadataValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchActivateCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.batchActivateCmsMetadataValues(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataValues` will be activated.
+ * Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataValue`s to activate. Format:
+ * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValues(
+ String parent, List names) {
+ BatchActivateCmsMetadataValuesRequest request =
+ BatchActivateCmsMetadataValuesRequest.newBuilder()
+ .setParent(parent)
+ .addAllNames(names)
+ .build();
+ return batchActivateCmsMetadataValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * BatchActivateCmsMetadataValuesRequest request =
+ * BatchActivateCmsMetadataValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchActivateCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.batchActivateCmsMetadataValues(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 BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValues(
+ BatchActivateCmsMetadataValuesRequest request) {
+ return batchActivateCmsMetadataValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * BatchActivateCmsMetadataValuesRequest request =
+ * BatchActivateCmsMetadataValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * cmsMetadataValueServiceClient
+ * .batchActivateCmsMetadataValuesCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchActivateCmsMetadataValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchActivateCmsMetadataValuesRequest, BatchActivateCmsMetadataValuesResponse>
+ batchActivateCmsMetadataValuesCallable() {
+ return stub.batchActivateCmsMetadataValuesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchDeactivateCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.batchDeactivateCmsMetadataValues(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataValues` will be deactivated.
+ * Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataValue`s to deactivate. Format:
+ * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadataValues(
+ NetworkName parent, List names) {
+ BatchDeactivateCmsMetadataValuesRequest request =
+ BatchDeactivateCmsMetadataValuesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchDeactivateCmsMetadataValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchDeactivateCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.batchDeactivateCmsMetadataValues(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `CmsMetadataValues` will be deactivated.
+ * Format: `networks/{network_code}`
+ * @param names Required. The resource names of the `CmsMetadataValue`s to deactivate. Format:
+ * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadataValues(
+ String parent, List names) {
+ BatchDeactivateCmsMetadataValuesRequest request =
+ BatchDeactivateCmsMetadataValuesRequest.newBuilder()
+ .setParent(parent)
+ .addAllNames(names)
+ .build();
+ return batchDeactivateCmsMetadataValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * BatchDeactivateCmsMetadataValuesRequest request =
+ * BatchDeactivateCmsMetadataValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchDeactivateCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.batchDeactivateCmsMetadataValues(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 BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadataValues(
+ BatchDeactivateCmsMetadataValuesRequest request) {
+ return batchDeactivateCmsMetadataValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * BatchDeactivateCmsMetadataValuesRequest request =
+ * BatchDeactivateCmsMetadataValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * cmsMetadataValueServiceClient
+ * .batchDeactivateCmsMetadataValuesCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchDeactivateCmsMetadataValuesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchDeactivateCmsMetadataValuesRequest, BatchDeactivateCmsMetadataValuesResponse>
+ batchDeactivateCmsMetadataValuesCallable() {
+ return stub.batchDeactivateCmsMetadataValuesCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java
index d9c4bdf244b6..17709e9c70b9 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java
@@ -104,6 +104,22 @@ public class CmsMetadataValueServiceSettings
.listCmsMetadataValuesSettings();
}
+ /** Returns the object with the settings used for calls to batchActivateCmsMetadataValues. */
+ public UnaryCallSettings<
+ BatchActivateCmsMetadataValuesRequest, BatchActivateCmsMetadataValuesResponse>
+ batchActivateCmsMetadataValuesSettings() {
+ return ((CmsMetadataValueServiceStubSettings) getStubSettings())
+ .batchActivateCmsMetadataValuesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchDeactivateCmsMetadataValues. */
+ public UnaryCallSettings<
+ BatchDeactivateCmsMetadataValuesRequest, BatchDeactivateCmsMetadataValuesResponse>
+ batchDeactivateCmsMetadataValuesSettings() {
+ return ((CmsMetadataValueServiceStubSettings) getStubSettings())
+ .batchDeactivateCmsMetadataValuesSettings();
+ }
+
public static final CmsMetadataValueServiceSettings create(
CmsMetadataValueServiceStubSettings stub) throws IOException {
return new CmsMetadataValueServiceSettings.Builder(stub.toBuilder()).build();
@@ -217,6 +233,20 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().listCmsMetadataValuesSettings();
}
+ /** Returns the builder for the settings used for calls to batchActivateCmsMetadataValues. */
+ public UnaryCallSettings.Builder<
+ BatchActivateCmsMetadataValuesRequest, BatchActivateCmsMetadataValuesResponse>
+ batchActivateCmsMetadataValuesSettings() {
+ return getStubSettingsBuilder().batchActivateCmsMetadataValuesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchDeactivateCmsMetadataValues. */
+ public UnaryCallSettings.Builder<
+ BatchDeactivateCmsMetadataValuesRequest, BatchDeactivateCmsMetadataValuesResponse>
+ batchDeactivateCmsMetadataValuesSettings() {
+ return getStubSettingsBuilder().batchDeactivateCmsMetadataValuesSettings();
+ }
+
@Override
public CmsMetadataValueServiceSettings build() throws IOException {
return new CmsMetadataValueServiceSettings(this);
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java
index 05d72055d3ba..e1377b5dd178 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java
@@ -815,7 +815,7 @@ public final BatchCreateContactsResponse batchCreateContacts(BatchCreateContacts
*
* @param contact Required. The `Contact` to update.
*
The `Contact`'s `name` is used to identify the `Contact` to update.
- * @param updateMask Required. The list of fields 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 Contact updateContact(Contact contact, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java
index c5238e8028f4..901a49d31def 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java
@@ -866,7 +866,7 @@ public final BatchCreateCustomFieldsResponse batchCreateCustomFields(
*
* @param customField Required. The `CustomField` to update.
*
The `CustomField`'s `name` is used to identify the `CustomField` to update.
- * @param updateMask Required. The list of fields 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 CustomField updateCustomField(CustomField customField, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java
index bd00d1ec68a3..da09707e5b81 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java
@@ -917,7 +917,7 @@ public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKe
* @param customTargetingKey Required. The `CustomTargetingKey` to update.
*
The `CustomTargetingKey`'s `name` is used to identify the `CustomTargetingKey` to
* update.
- * @param updateMask Required. The list of fields 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 CustomTargetingKey updateCustomTargetingKey(
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java
index ac981022b0b7..5fa1d1f2a874 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java
@@ -752,7 +752,7 @@ public final EntitySignalsMapping createEntitySignalsMapping(
* @param entitySignalsMapping Required. The `EntitySignalsMapping` to update.
*
The EntitySignalsMapping's name is used to identify the EntitySignalsMapping to update.
* Format: `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}`
- * @param updateMask Required. The list of fields 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 EntitySignalsMapping updateEntitySignalsMapping(
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java
new file mode 100644
index 000000000000..6da7f9761848
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java
@@ -0,0 +1,1391 @@
+/*
+ * 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.LabelServiceStub;
+import com.google.ads.admanager.v1.stub.LabelServiceStubSettings;
+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;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * LabelName name = LabelName.of("[NETWORK_CODE]", "[LABEL]");
+ * Label response = labelServiceClient.getLabel(name);
+ * }
+ * }
+ *
+ *
Note: close() needs to be called on the LabelServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ *
+ *
Methods
+ *
+ *
Method
+ *
Description
+ *
Method Variants
+ *
+ *
+ *
GetLabel
+ *
API to retrieve a `Label` object.
+ *
+ *
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ *
getLabel(GetLabelRequest request)
+ *
+ *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ *
getLabel(LabelName name)
+ *
getLabel(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.
+ *
+ *
getLabelCallable()
+ *
+ *
+ *
+ *
+ *
ListLabels
+ *
API to retrieve a list of `Label` objects.
+ *
+ *
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ *
listLabels(ListLabelsRequest request)
+ *
+ *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ *
listLabels(NetworkName parent)
+ *
listLabels(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.
+ *
+ *
listLabelsPagedCallable()
+ *
listLabelsCallable()
+ *
+ *
+ *
+ *
+ *
CreateLabel
+ *
API to create a `Label` object.
+ *
+ *
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ *
createLabel(CreateLabelRequest request)
+ *
+ *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ *
createLabel(NetworkName parent, Label label)
+ *
createLabel(String parent, Label label)
+ *
+ *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ *
createLabelCallable()
+ *
+ *
+ *
+ *
+ *
BatchCreateLabels
+ *
API to batch create `Label` 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.
+ *
+ *
batchDeactivateLabelsCallable()
+ *
+ *
+ *
+ *
+ *
+ *
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 LabelServiceSettings 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
+ * LabelServiceSettings labelServiceSettings =
+ * LabelServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * LabelServiceClient labelServiceClient = LabelServiceClient.create(labelServiceSettings);
+ * }
+ *
+ *
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
+ * LabelServiceSettings labelServiceSettings =
+ * LabelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LabelServiceClient labelServiceClient = LabelServiceClient.create(labelServiceSettings);
+ * }
+ *
+ *
Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class LabelServiceClient implements BackgroundResource {
+ private final LabelServiceSettings settings;
+ private final LabelServiceStub stub;
+
+ /** Constructs an instance of LabelServiceClient with default settings. */
+ public static final LabelServiceClient create() throws IOException {
+ return create(LabelServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of LabelServiceClient, 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 LabelServiceClient create(LabelServiceSettings settings) throws IOException {
+ return new LabelServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of LabelServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(LabelServiceSettings).
+ */
+ public static final LabelServiceClient create(LabelServiceStub stub) {
+ return new LabelServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of LabelServiceClient, 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 LabelServiceClient(LabelServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((LabelServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected LabelServiceClient(LabelServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final LabelServiceSettings getSettings() {
+ return settings;
+ }
+
+ public LabelServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * LabelName name = LabelName.of("[NETWORK_CODE]", "[LABEL]");
+ * Label response = labelServiceClient.getLabel(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Label. Format:
+ * `networks/{network_code}/labels/{label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Label getLabel(LabelName name) {
+ GetLabelRequest request =
+ GetLabelRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String name = LabelName.of("[NETWORK_CODE]", "[LABEL]").toString();
+ * Label response = labelServiceClient.getLabel(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Label. Format:
+ * `networks/{network_code}/labels/{label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Label getLabel(String name) {
+ GetLabelRequest request = GetLabelRequest.newBuilder().setName(name).build();
+ return getLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * GetLabelRequest request =
+ * GetLabelRequest.newBuilder()
+ * .setName(LabelName.of("[NETWORK_CODE]", "[LABEL]").toString())
+ * .build();
+ * Label response = labelServiceClient.getLabel(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 Label getLabel(GetLabelRequest request) {
+ return getLabelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * GetLabelRequest request =
+ * GetLabelRequest.newBuilder()
+ * .setName(LabelName.of("[NETWORK_CODE]", "[LABEL]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable getLabelCallable() {
+ return stub.getLabelCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Label element : labelServiceClient.listLabels(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Labels. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLabelsPagedResponse listLabels(NetworkName parent) {
+ ListLabelsRequest request =
+ ListLabelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Label element : labelServiceClient.listLabels(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Labels. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLabelsPagedResponse listLabels(String parent) {
+ ListLabelsRequest request = ListLabelsRequest.newBuilder().setParent(parent).build();
+ return listLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * ListLabelsRequest request =
+ * ListLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Label element : labelServiceClient.listLabels(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 ListLabelsPagedResponse listLabels(ListLabelsRequest request) {
+ return listLabelsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * ListLabelsRequest request =
+ * ListLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable listLabelsPagedCallable() {
+ return stub.listLabelsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * ListLabelsRequest request =
+ * ListLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListLabelsResponse response = labelServiceClient.listLabelsCallable().call(request);
+ * for (Label element : response.getLabelsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listLabelsCallable() {
+ return stub.listLabelsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * Label label = Label.newBuilder().build();
+ * Label response = labelServiceClient.createLabel(parent, label);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Label` will be created. Format:
+ * `networks/{network_code}`
+ * @param label Required. The `Label` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Label createLabel(NetworkName parent, Label label) {
+ CreateLabelRequest request =
+ CreateLabelRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setLabel(label)
+ .build();
+ return createLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * Label label = Label.newBuilder().build();
+ * Label response = labelServiceClient.createLabel(parent, label);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Label` will be created. Format:
+ * `networks/{network_code}`
+ * @param label Required. The `Label` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Label createLabel(String parent, Label label) {
+ CreateLabelRequest request =
+ CreateLabelRequest.newBuilder().setParent(parent).setLabel(label).build();
+ return createLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * CreateLabelRequest request =
+ * CreateLabelRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setLabel(Label.newBuilder().build())
+ * .build();
+ * Label response = labelServiceClient.createLabel(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 Label createLabel(CreateLabelRequest request) {
+ return createLabelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * CreateLabelRequest request =
+ * CreateLabelRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setLabel(Label.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable createLabelCallable() {
+ return stub.createLabelCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchCreateLabelsResponse response = labelServiceClient.batchCreateLabels(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Labels` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateLabelRequest must match this field.
+ * @param requests Required. The `Label` 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 BatchCreateLabelsResponse batchCreateLabels(
+ NetworkName parent, List requests) {
+ BatchCreateLabelsRequest request =
+ BatchCreateLabelsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchCreateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchCreateLabelsResponse response = labelServiceClient.batchCreateLabels(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Labels` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateLabelRequest must match this field.
+ * @param requests Required. The `Label` 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 BatchCreateLabelsResponse batchCreateLabels(
+ String parent, List requests) {
+ BatchCreateLabelsRequest request =
+ BatchCreateLabelsRequest.newBuilder().setParent(parent).addAllRequests(requests).build();
+ return batchCreateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchCreateLabelsRequest request =
+ * BatchCreateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchCreateLabelsResponse response = labelServiceClient.batchCreateLabels(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 BatchCreateLabelsResponse batchCreateLabels(BatchCreateLabelsRequest request) {
+ return batchCreateLabelsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchCreateLabelsRequest request =
+ * BatchCreateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * labelServiceClient.batchCreateLabelsCallable().futureCall(request);
+ * // Do something.
+ * BatchCreateLabelsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchCreateLabelsCallable() {
+ return stub.batchCreateLabelsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * Label label = Label.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Label response = labelServiceClient.updateLabel(label, updateMask);
+ * }
+ * }
+ *
+ * @param label Required. The `Label` to update.
+ *
The `Label`'s `name` is used to identify the `Label` 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 Label updateLabel(Label label, FieldMask updateMask) {
+ UpdateLabelRequest request =
+ UpdateLabelRequest.newBuilder().setLabel(label).setUpdateMask(updateMask).build();
+ return updateLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * UpdateLabelRequest request =
+ * UpdateLabelRequest.newBuilder()
+ * .setLabel(Label.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Label response = labelServiceClient.updateLabel(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 Label updateLabel(UpdateLabelRequest request) {
+ return updateLabelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * UpdateLabelRequest request =
+ * UpdateLabelRequest.newBuilder()
+ * .setLabel(Label.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable updateLabelCallable() {
+ return stub.updateLabelCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List requests = new ArrayList<>();
+ * BatchUpdateLabelsResponse response = labelServiceClient.batchUpdateLabels(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Labels` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateLabelRequest must match this field.
+ * @param requests Required. The `Label` 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 BatchUpdateLabelsResponse batchUpdateLabels(
+ NetworkName parent, List requests) {
+ BatchUpdateLabelsRequest request =
+ BatchUpdateLabelsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllRequests(requests)
+ .build();
+ return batchUpdateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List requests = new ArrayList<>();
+ * BatchUpdateLabelsResponse response = labelServiceClient.batchUpdateLabels(parent, requests);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `Labels` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateLabelRequest must match this field.
+ * @param requests Required. The `Label` 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 BatchUpdateLabelsResponse batchUpdateLabels(
+ String parent, List requests) {
+ BatchUpdateLabelsRequest request =
+ BatchUpdateLabelsRequest.newBuilder().setParent(parent).addAllRequests(requests).build();
+ return batchUpdateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchUpdateLabelsRequest request =
+ * BatchUpdateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * BatchUpdateLabelsResponse response = labelServiceClient.batchUpdateLabels(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 BatchUpdateLabelsResponse batchUpdateLabels(BatchUpdateLabelsRequest request) {
+ return batchUpdateLabelsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchUpdateLabelsRequest request =
+ * BatchUpdateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * labelServiceClient.batchUpdateLabelsCallable().futureCall(request);
+ * // Do something.
+ * BatchUpdateLabelsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchUpdateLabelsCallable() {
+ return stub.batchUpdateLabelsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchActivateLabelsResponse response = labelServiceClient.batchActivateLabels(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the Label. Format:
+ * `networks/{network_code}/labels/{label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateLabelsResponse batchActivateLabels(
+ NetworkName parent, List names) {
+ BatchActivateLabelsRequest request =
+ BatchActivateLabelsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchActivateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchActivateLabelsResponse response = labelServiceClient.batchActivateLabels(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the Label. Format:
+ * `networks/{network_code}/labels/{label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateLabelsResponse batchActivateLabels(String parent, List names) {
+ BatchActivateLabelsRequest request =
+ BatchActivateLabelsRequest.newBuilder().setParent(parent).addAllNames(names).build();
+ return batchActivateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchActivateLabelsRequest request =
+ * BatchActivateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchActivateLabelsResponse response = labelServiceClient.batchActivateLabels(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 BatchActivateLabelsResponse batchActivateLabels(BatchActivateLabelsRequest request) {
+ return batchActivateLabelsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to activate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchActivateLabelsRequest request =
+ * BatchActivateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * labelServiceClient.batchActivateLabelsCallable().futureCall(request);
+ * // Do something.
+ * BatchActivateLabelsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchActivateLabelsCallable() {
+ return stub.batchActivateLabelsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchDeactivateLabelsResponse response =
+ * labelServiceClient.batchDeactivateLabels(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the Label. Format:
+ * `networks/{network_code}/labels/{label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateLabelsResponse batchDeactivateLabels(
+ NetworkName parent, List names) {
+ BatchDeactivateLabelsRequest request =
+ BatchDeactivateLabelsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .addAllNames(names)
+ .build();
+ return batchDeactivateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchDeactivateLabelsResponse response =
+ * labelServiceClient.batchDeactivateLabels(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. Resource names for the Label. Format:
+ * `networks/{network_code}/labels/{label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateLabelsResponse batchDeactivateLabels(
+ String parent, List names) {
+ BatchDeactivateLabelsRequest request =
+ BatchDeactivateLabelsRequest.newBuilder().setParent(parent).addAllNames(names).build();
+ return batchDeactivateLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchDeactivateLabelsRequest request =
+ * BatchDeactivateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchDeactivateLabelsResponse response = labelServiceClient.batchDeactivateLabels(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 BatchDeactivateLabelsResponse batchDeactivateLabels(
+ BatchDeactivateLabelsRequest request) {
+ return batchDeactivateLabelsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to deactivate `Label` 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 (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * BatchDeactivateLabelsRequest request =
+ * BatchDeactivateLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * labelServiceClient.batchDeactivateLabelsCallable().futureCall(request);
+ * // Do something.
+ * BatchDeactivateLabelsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ batchDeactivateLabelsCallable() {
+ return stub.batchDeactivateLabelsCallable();
+ }
+
+ @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 ListLabelsPagedResponse
+ extends AbstractPagedListResponse<
+ ListLabelsRequest,
+ ListLabelsResponse,
+ Label,
+ ListLabelsPage,
+ ListLabelsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListLabelsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage, input -> new ListLabelsPagedResponse(input), MoreExecutors.directExecutor());
+ }
+
+ private ListLabelsPagedResponse(ListLabelsPage page) {
+ super(page, ListLabelsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListLabelsPage
+ extends AbstractPage {
+
+ private ListLabelsPage(
+ PageContext context,
+ ListLabelsResponse response) {
+ super(context, response);
+ }
+
+ private static ListLabelsPage createEmptyPage() {
+ return new ListLabelsPage(null, null);
+ }
+
+ @Override
+ protected ListLabelsPage createPage(
+ PageContext context,
+ ListLabelsResponse response) {
+ return new ListLabelsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListLabelsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListLabelsRequest,
+ ListLabelsResponse,
+ Label,
+ ListLabelsPage,
+ ListLabelsFixedSizeCollection> {
+
+ private ListLabelsFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListLabelsFixedSizeCollection createEmptyCollection() {
+ return new ListLabelsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListLabelsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListLabelsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java
new file mode 100644
index 000000000000..8fff754dcfb1
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java
@@ -0,0 +1,280 @@
+/*
+ * 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 static com.google.ads.admanager.v1.LabelServiceClient.ListLabelsPagedResponse;
+
+import com.google.ads.admanager.v1.stub.LabelServiceStubSettings;
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link LabelServiceClient}.
+ *
+ *
The default instance has everything set to sensible defaults:
+ *
+ *
+ *
The default service address (admanager.googleapis.com) and default port (443) are used.
+ *
Credentials are acquired automatically through Application Default Credentials.
+ *
Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ *
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 getLabel:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LabelServiceSettings.Builder labelServiceSettingsBuilder = LabelServiceSettings.newBuilder();
+ * labelServiceSettingsBuilder
+ * .getLabelSettings()
+ * .setRetrySettings(
+ * labelServiceSettingsBuilder
+ * .getLabelSettings()
+ * .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());
+ * LabelServiceSettings labelServiceSettings = labelServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@Generated("by gapic-generator-java")
+public class LabelServiceSettings extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to getLabel. */
+ public UnaryCallSettings getLabelSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).getLabelSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listLabels. */
+ public PagedCallSettings
+ listLabelsSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).listLabelsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createLabel. */
+ public UnaryCallSettings createLabelSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).createLabelSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchCreateLabels. */
+ public UnaryCallSettings
+ batchCreateLabelsSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).batchCreateLabelsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateLabel. */
+ public UnaryCallSettings updateLabelSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).updateLabelSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchUpdateLabels. */
+ public UnaryCallSettings
+ batchUpdateLabelsSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).batchUpdateLabelsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchActivateLabels. */
+ public UnaryCallSettings
+ batchActivateLabelsSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).batchActivateLabelsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to batchDeactivateLabels. */
+ public UnaryCallSettings
+ batchDeactivateLabelsSettings() {
+ return ((LabelServiceStubSettings) getStubSettings()).batchDeactivateLabelsSettings();
+ }
+
+ public static final LabelServiceSettings create(LabelServiceStubSettings stub)
+ throws IOException {
+ return new LabelServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return LabelServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return LabelServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return LabelServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return LabelServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return LabelServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return LabelServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return LabelServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected LabelServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for LabelServiceSettings. */
+ public static class Builder extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(LabelServiceStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(LabelServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(LabelServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(LabelServiceStubSettings.newBuilder());
+ }
+
+ public LabelServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((LabelServiceStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ *
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to getLabel. */
+ public UnaryCallSettings.Builder getLabelSettings() {
+ return getStubSettingsBuilder().getLabelSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listLabels. */
+ public PagedCallSettings.Builder
+ listLabelsSettings() {
+ return getStubSettingsBuilder().listLabelsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createLabel. */
+ public UnaryCallSettings.Builder createLabelSettings() {
+ return getStubSettingsBuilder().createLabelSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchCreateLabels. */
+ public UnaryCallSettings.Builder
+ batchCreateLabelsSettings() {
+ return getStubSettingsBuilder().batchCreateLabelsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateLabel. */
+ public UnaryCallSettings.Builder updateLabelSettings() {
+ return getStubSettingsBuilder().updateLabelSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchUpdateLabels. */
+ public UnaryCallSettings.Builder
+ batchUpdateLabelsSettings() {
+ return getStubSettingsBuilder().batchUpdateLabelsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchActivateLabels. */
+ public UnaryCallSettings.Builder
+ batchActivateLabelsSettings() {
+ return getStubSettingsBuilder().batchActivateLabelsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to batchDeactivateLabels. */
+ public UnaryCallSettings.Builder
+ batchDeactivateLabelsSettings() {
+ return getStubSettingsBuilder().batchDeactivateLabelsSettings();
+ }
+
+ @Override
+ public LabelServiceSettings build() throws IOException {
+ return new LabelServiceSettings(this);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java
new file mode 100644
index 000000000000..1c617508418b
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java
@@ -0,0 +1,596 @@
+/*
+ * 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.LinkedDeviceServiceStub;
+import com.google.ads.admanager.v1.stub.LinkedDeviceServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `LinkedDevice` 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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * LinkedDeviceName name = LinkedDeviceName.of("[NETWORK_CODE]", "[LINKED_DEVICE]");
+ * LinkedDevice response = linkedDeviceServiceClient.getLinkedDevice(name);
+ * }
+ * }
+ *
+ *
Note: close() needs to be called on the LinkedDeviceServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ *
+ *
Methods
+ *
+ *
Method
+ *
Description
+ *
Method Variants
+ *
+ *
+ *
GetLinkedDevice
+ *
Gets a `LinkedDevice`.
+ *
+ *
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.
+ *
+ *
listLinkedDevices(NetworkName parent)
+ *
listLinkedDevices(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.
+ *
+ *
listLinkedDevicesPagedCallable()
+ *
listLinkedDevicesCallable()
+ *
+ *
+ *
+ *
+ *
+ *
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 LinkedDeviceServiceSettings 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
+ * LinkedDeviceServiceSettings linkedDeviceServiceSettings =
+ * LinkedDeviceServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * LinkedDeviceServiceClient linkedDeviceServiceClient =
+ * LinkedDeviceServiceClient.create(linkedDeviceServiceSettings);
+ * }
+ *
+ *
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
+ * LinkedDeviceServiceSettings linkedDeviceServiceSettings =
+ * LinkedDeviceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LinkedDeviceServiceClient linkedDeviceServiceClient =
+ * LinkedDeviceServiceClient.create(linkedDeviceServiceSettings);
+ * }
+ *
+ *
Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class LinkedDeviceServiceClient implements BackgroundResource {
+ private final LinkedDeviceServiceSettings settings;
+ private final LinkedDeviceServiceStub stub;
+
+ /** Constructs an instance of LinkedDeviceServiceClient with default settings. */
+ public static final LinkedDeviceServiceClient create() throws IOException {
+ return create(LinkedDeviceServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of LinkedDeviceServiceClient, 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 LinkedDeviceServiceClient create(LinkedDeviceServiceSettings settings)
+ throws IOException {
+ return new LinkedDeviceServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of LinkedDeviceServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(LinkedDeviceServiceSettings).
+ */
+ public static final LinkedDeviceServiceClient create(LinkedDeviceServiceStub stub) {
+ return new LinkedDeviceServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of LinkedDeviceServiceClient, 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 LinkedDeviceServiceClient(LinkedDeviceServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((LinkedDeviceServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected LinkedDeviceServiceClient(LinkedDeviceServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final LinkedDeviceServiceSettings getSettings() {
+ return settings;
+ }
+
+ public LinkedDeviceServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a `LinkedDevice`.
+ *
+ *
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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * LinkedDeviceName name = LinkedDeviceName.of("[NETWORK_CODE]", "[LINKED_DEVICE]");
+ * LinkedDevice response = linkedDeviceServiceClient.getLinkedDevice(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the LinkedDevice. Format:
+ * `networks/{network_code}/linkedDevices/{linked_device_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LinkedDevice getLinkedDevice(LinkedDeviceName name) {
+ GetLinkedDeviceRequest request =
+ GetLinkedDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getLinkedDevice(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a `LinkedDevice`.
+ *
+ *
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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * String name = LinkedDeviceName.of("[NETWORK_CODE]", "[LINKED_DEVICE]").toString();
+ * LinkedDevice response = linkedDeviceServiceClient.getLinkedDevice(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the LinkedDevice. Format:
+ * `networks/{network_code}/linkedDevices/{linked_device_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final LinkedDevice getLinkedDevice(String name) {
+ GetLinkedDeviceRequest request = GetLinkedDeviceRequest.newBuilder().setName(name).build();
+ return getLinkedDevice(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a `LinkedDevice`.
+ *
+ *
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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * GetLinkedDeviceRequest request =
+ * GetLinkedDeviceRequest.newBuilder()
+ * .setName(LinkedDeviceName.of("[NETWORK_CODE]", "[LINKED_DEVICE]").toString())
+ * .build();
+ * LinkedDevice response = linkedDeviceServiceClient.getLinkedDevice(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 LinkedDevice getLinkedDevice(GetLinkedDeviceRequest request) {
+ return getLinkedDeviceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets a `LinkedDevice`.
+ *
+ *
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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * GetLinkedDeviceRequest request =
+ * GetLinkedDeviceRequest.newBuilder()
+ * .setName(LinkedDeviceName.of("[NETWORK_CODE]", "[LINKED_DEVICE]").toString())
+ * .build();
+ * ApiFuture future =
+ * linkedDeviceServiceClient.getLinkedDeviceCallable().futureCall(request);
+ * // Do something.
+ * LinkedDevice response = future.get();
+ * }
+ * }
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (LinkedDevice element :
+ * linkedDeviceServiceClient.listLinkedDevices(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of LinkedDevices. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLinkedDevicesPagedResponse listLinkedDevices(NetworkName parent) {
+ ListLinkedDevicesRequest request =
+ ListLinkedDevicesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listLinkedDevices(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `LinkedDevice` 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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (LinkedDevice element :
+ * linkedDeviceServiceClient.listLinkedDevices(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of LinkedDevices. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLinkedDevicesPagedResponse listLinkedDevices(String parent) {
+ ListLinkedDevicesRequest request =
+ ListLinkedDevicesRequest.newBuilder().setParent(parent).build();
+ return listLinkedDevices(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `LinkedDevice` 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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * ListLinkedDevicesRequest request =
+ * ListLinkedDevicesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (LinkedDevice element :
+ * linkedDeviceServiceClient.listLinkedDevices(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 ListLinkedDevicesPagedResponse listLinkedDevices(ListLinkedDevicesRequest request) {
+ return listLinkedDevicesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `LinkedDevice` 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 (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * ListLinkedDevicesRequest request =
+ * ListLinkedDevicesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture future =
+ * linkedDeviceServiceClient.listLinkedDevicesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (LinkedDevice element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * ListLinkedDevicesRequest request =
+ * ListLinkedDevicesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListLinkedDevicesResponse response =
+ * linkedDeviceServiceClient.listLinkedDevicesCallable().call(request);
+ * for (LinkedDevice element : response.getLinkedDevicesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listLinkedDevicesCallable() {
+ return stub.listLinkedDevicesCallable();
+ }
+
+ @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 ListLinkedDevicesPagedResponse
+ extends AbstractPagedListResponse<
+ ListLinkedDevicesRequest,
+ ListLinkedDevicesResponse,
+ LinkedDevice,
+ ListLinkedDevicesPage,
+ ListLinkedDevicesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListLinkedDevicesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListLinkedDevicesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListLinkedDevicesPagedResponse(ListLinkedDevicesPage page) {
+ super(page, ListLinkedDevicesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListLinkedDevicesPage
+ extends AbstractPage<
+ ListLinkedDevicesRequest,
+ ListLinkedDevicesResponse,
+ LinkedDevice,
+ ListLinkedDevicesPage> {
+
+ private ListLinkedDevicesPage(
+ PageContext context,
+ ListLinkedDevicesResponse response) {
+ super(context, response);
+ }
+
+ private static ListLinkedDevicesPage createEmptyPage() {
+ return new ListLinkedDevicesPage(null, null);
+ }
+
+ @Override
+ protected ListLinkedDevicesPage createPage(
+ PageContext context,
+ ListLinkedDevicesResponse response) {
+ return new ListLinkedDevicesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListLinkedDevicesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListLinkedDevicesRequest,
+ ListLinkedDevicesResponse,
+ LinkedDevice,
+ ListLinkedDevicesPage,
+ ListLinkedDevicesFixedSizeCollection> {
+
+ private ListLinkedDevicesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListLinkedDevicesFixedSizeCollection createEmptyCollection() {
+ return new ListLinkedDevicesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListLinkedDevicesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListLinkedDevicesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java
new file mode 100644
index 000000000000..688cd8d80a88
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java
@@ -0,0 +1,217 @@
+/*
+ * 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 static com.google.ads.admanager.v1.LinkedDeviceServiceClient.ListLinkedDevicesPagedResponse;
+
+import com.google.ads.admanager.v1.stub.LinkedDeviceServiceStubSettings;
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link LinkedDeviceServiceClient}.
+ *
+ *
The default instance has everything set to sensible defaults:
+ *
+ *
+ *
The default service address (admanager.googleapis.com) and default port (443) are used.
+ *
Credentials are acquired automatically through Application Default Credentials.
+ *
Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ *
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 getLinkedDevice:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LinkedDeviceServiceSettings.Builder linkedDeviceServiceSettingsBuilder =
+ * LinkedDeviceServiceSettings.newBuilder();
+ * linkedDeviceServiceSettingsBuilder
+ * .getLinkedDeviceSettings()
+ * .setRetrySettings(
+ * linkedDeviceServiceSettingsBuilder
+ * .getLinkedDeviceSettings()
+ * .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());
+ * LinkedDeviceServiceSettings linkedDeviceServiceSettings =
+ * linkedDeviceServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@Generated("by gapic-generator-java")
+public class LinkedDeviceServiceSettings extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to getLinkedDevice. */
+ public UnaryCallSettings getLinkedDeviceSettings() {
+ return ((LinkedDeviceServiceStubSettings) getStubSettings()).getLinkedDeviceSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listLinkedDevices. */
+ public PagedCallSettings<
+ ListLinkedDevicesRequest, ListLinkedDevicesResponse, ListLinkedDevicesPagedResponse>
+ listLinkedDevicesSettings() {
+ return ((LinkedDeviceServiceStubSettings) getStubSettings()).listLinkedDevicesSettings();
+ }
+
+ public static final LinkedDeviceServiceSettings create(LinkedDeviceServiceStubSettings stub)
+ throws IOException {
+ return new LinkedDeviceServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return LinkedDeviceServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return LinkedDeviceServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return LinkedDeviceServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return LinkedDeviceServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return LinkedDeviceServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return LinkedDeviceServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return LinkedDeviceServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected LinkedDeviceServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for LinkedDeviceServiceSettings. */
+ public static class Builder extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(LinkedDeviceServiceStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(LinkedDeviceServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(LinkedDeviceServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(LinkedDeviceServiceStubSettings.newBuilder());
+ }
+
+ public LinkedDeviceServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((LinkedDeviceServiceStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ *
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to getLinkedDevice. */
+ public UnaryCallSettings.Builder
+ getLinkedDeviceSettings() {
+ return getStubSettingsBuilder().getLinkedDeviceSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listLinkedDevices. */
+ public PagedCallSettings.Builder<
+ ListLinkedDevicesRequest, ListLinkedDevicesResponse, ListLinkedDevicesPagedResponse>
+ listLinkedDevicesSettings() {
+ return getStubSettingsBuilder().listLinkedDevicesSettings();
+ }
+
+ @Override
+ public LinkedDeviceServiceSettings build() throws IOException {
+ return new LinkedDeviceServiceSettings(this);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java
new file mode 100644
index 000000000000..096c33288519
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java
@@ -0,0 +1,465 @@
+/*
+ * 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.McmEarningsServiceStub;
+import com.google.ads.admanager.v1.stub.McmEarningsServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `McmEarnings` 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 (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (McmEarnings element : mcmEarningsServiceClient.fetchMcmEarnings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ *
Note: close() needs to be called on the McmEarningsServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ *
+ *
Methods
+ *
+ *
Method
+ *
Description
+ *
Method Variants
+ *
+ *
+ *
FetchMcmEarnings
+ *
API to retrieve a list of `McmEarnings` 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.
+ *
+ *
fetchMcmEarnings(NetworkName parent)
+ *
fetchMcmEarnings(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.
+ *
+ *
fetchMcmEarningsPagedCallable()
+ *
fetchMcmEarningsCallable()
+ *
+ *
+ *
+ *
+ *
+ *
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 McmEarningsServiceSettings 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
+ * McmEarningsServiceSettings mcmEarningsServiceSettings =
+ * McmEarningsServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * McmEarningsServiceClient mcmEarningsServiceClient =
+ * McmEarningsServiceClient.create(mcmEarningsServiceSettings);
+ * }
+ *
+ *
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
+ * McmEarningsServiceSettings mcmEarningsServiceSettings =
+ * McmEarningsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * McmEarningsServiceClient mcmEarningsServiceClient =
+ * McmEarningsServiceClient.create(mcmEarningsServiceSettings);
+ * }
+ *
+ *
Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class McmEarningsServiceClient implements BackgroundResource {
+ private final McmEarningsServiceSettings settings;
+ private final McmEarningsServiceStub stub;
+
+ /** Constructs an instance of McmEarningsServiceClient with default settings. */
+ public static final McmEarningsServiceClient create() throws IOException {
+ return create(McmEarningsServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of McmEarningsServiceClient, 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 McmEarningsServiceClient create(McmEarningsServiceSettings settings)
+ throws IOException {
+ return new McmEarningsServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of McmEarningsServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(McmEarningsServiceSettings).
+ */
+ public static final McmEarningsServiceClient create(McmEarningsServiceStub stub) {
+ return new McmEarningsServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of McmEarningsServiceClient, 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 McmEarningsServiceClient(McmEarningsServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((McmEarningsServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected McmEarningsServiceClient(McmEarningsServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final McmEarningsServiceSettings getSettings() {
+ return settings;
+ }
+
+ public McmEarningsServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `McmEarnings` 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 (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (McmEarnings element : mcmEarningsServiceClient.fetchMcmEarnings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of McmEarnings. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchMcmEarningsPagedResponse fetchMcmEarnings(NetworkName parent) {
+ FetchMcmEarningsRequest request =
+ FetchMcmEarningsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return fetchMcmEarnings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `McmEarnings` 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 (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (McmEarnings element : mcmEarningsServiceClient.fetchMcmEarnings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of McmEarnings. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FetchMcmEarningsPagedResponse fetchMcmEarnings(String parent) {
+ FetchMcmEarningsRequest request =
+ FetchMcmEarningsRequest.newBuilder().setParent(parent).build();
+ return fetchMcmEarnings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `McmEarnings` 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 (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * FetchMcmEarningsRequest request =
+ * FetchMcmEarningsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .setMonth(Date.newBuilder().build())
+ * .build();
+ * for (McmEarnings element : mcmEarningsServiceClient.fetchMcmEarnings(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 FetchMcmEarningsPagedResponse fetchMcmEarnings(FetchMcmEarningsRequest request) {
+ return fetchMcmEarningsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `McmEarnings` 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 (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * FetchMcmEarningsRequest request =
+ * FetchMcmEarningsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .setMonth(Date.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * mcmEarningsServiceClient.fetchMcmEarningsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (McmEarnings element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ fetchMcmEarningsPagedCallable() {
+ return stub.fetchMcmEarningsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `McmEarnings` 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 (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * FetchMcmEarningsRequest request =
+ * FetchMcmEarningsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .setMonth(Date.newBuilder().build())
+ * .build();
+ * while (true) {
+ * FetchMcmEarningsResponse response =
+ * mcmEarningsServiceClient.fetchMcmEarningsCallable().call(request);
+ * for (McmEarnings element : response.getMcmEarningsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ fetchMcmEarningsCallable() {
+ return stub.fetchMcmEarningsCallable();
+ }
+
+ @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 FetchMcmEarningsPagedResponse
+ extends AbstractPagedListResponse<
+ FetchMcmEarningsRequest,
+ FetchMcmEarningsResponse,
+ McmEarnings,
+ FetchMcmEarningsPage,
+ FetchMcmEarningsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ FetchMcmEarningsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new FetchMcmEarningsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private FetchMcmEarningsPagedResponse(FetchMcmEarningsPage page) {
+ super(page, FetchMcmEarningsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class FetchMcmEarningsPage
+ extends AbstractPage<
+ FetchMcmEarningsRequest, FetchMcmEarningsResponse, McmEarnings, FetchMcmEarningsPage> {
+
+ private FetchMcmEarningsPage(
+ PageContext context,
+ FetchMcmEarningsResponse response) {
+ super(context, response);
+ }
+
+ private static FetchMcmEarningsPage createEmptyPage() {
+ return new FetchMcmEarningsPage(null, null);
+ }
+
+ @Override
+ protected FetchMcmEarningsPage createPage(
+ PageContext context,
+ FetchMcmEarningsResponse response) {
+ return new FetchMcmEarningsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class FetchMcmEarningsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ FetchMcmEarningsRequest,
+ FetchMcmEarningsResponse,
+ McmEarnings,
+ FetchMcmEarningsPage,
+ FetchMcmEarningsFixedSizeCollection> {
+
+ private FetchMcmEarningsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static FetchMcmEarningsFixedSizeCollection createEmptyCollection() {
+ return new FetchMcmEarningsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected FetchMcmEarningsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new FetchMcmEarningsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java
new file mode 100644
index 000000000000..a7054f673a83
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java
@@ -0,0 +1,206 @@
+/*
+ * 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 static com.google.ads.admanager.v1.McmEarningsServiceClient.FetchMcmEarningsPagedResponse;
+
+import com.google.ads.admanager.v1.stub.McmEarningsServiceStubSettings;
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link McmEarningsServiceClient}.
+ *
+ *
The default instance has everything set to sensible defaults:
+ *
+ *
+ *
The default service address (admanager.googleapis.com) and default port (443) are used.
+ *
Credentials are acquired automatically through Application Default Credentials.
+ *
Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ *
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 fetchMcmEarnings:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * McmEarningsServiceSettings.Builder mcmEarningsServiceSettingsBuilder =
+ * McmEarningsServiceSettings.newBuilder();
+ * mcmEarningsServiceSettingsBuilder
+ * .fetchMcmEarningsSettings()
+ * .setRetrySettings(
+ * mcmEarningsServiceSettingsBuilder
+ * .fetchMcmEarningsSettings()
+ * .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());
+ * McmEarningsServiceSettings mcmEarningsServiceSettings =
+ * mcmEarningsServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@Generated("by gapic-generator-java")
+public class McmEarningsServiceSettings extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to fetchMcmEarnings. */
+ public PagedCallSettings<
+ FetchMcmEarningsRequest, FetchMcmEarningsResponse, FetchMcmEarningsPagedResponse>
+ fetchMcmEarningsSettings() {
+ return ((McmEarningsServiceStubSettings) getStubSettings()).fetchMcmEarningsSettings();
+ }
+
+ public static final McmEarningsServiceSettings create(McmEarningsServiceStubSettings stub)
+ throws IOException {
+ return new McmEarningsServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return McmEarningsServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return McmEarningsServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return McmEarningsServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return McmEarningsServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return McmEarningsServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return McmEarningsServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return McmEarningsServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected McmEarningsServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for McmEarningsServiceSettings. */
+ public static class Builder extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(McmEarningsServiceStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(McmEarningsServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(McmEarningsServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(McmEarningsServiceStubSettings.newBuilder());
+ }
+
+ public McmEarningsServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((McmEarningsServiceStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ *
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to fetchMcmEarnings. */
+ public PagedCallSettings.Builder<
+ FetchMcmEarningsRequest, FetchMcmEarningsResponse, FetchMcmEarningsPagedResponse>
+ fetchMcmEarningsSettings() {
+ return getStubSettingsBuilder().fetchMcmEarningsSettings();
+ }
+
+ @Override
+ public McmEarningsServiceSettings build() throws IOException {
+ return new McmEarningsServiceSettings(this);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java
index 881f270cb469..32d6d5e29a80 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java
@@ -750,7 +750,7 @@ public final UnaryCallable createPlacementCal
* @param placement Required. The `Placement` to update.
*
The `Placement`'s name is used to identify the `Placement` to update. Format:
* `networks/{network_code}/placements/{placement_id}`
- * @param updateMask Required. The list of fields 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 Placement updatePlacement(Placement placement, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java
index b4bb4ba23888..b9a3c8efe5e7 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java
@@ -705,7 +705,7 @@ public final PrivateAuctionDeal createPrivateAuctionDeal(
* @param privateAuctionDeal Required. The `PrivateAuctionDeal` to update.
*
The `PrivateAuctionDeal`'s `name` is used to identify the `PrivateAuctionDeal` to
* update.
- * @param updateMask Required. The list of fields 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 PrivateAuctionDeal updatePrivateAuctionDeal(
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java
index a09ecf33e5e3..b4be2955dabe 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java
@@ -690,7 +690,7 @@ public final PrivateAuction createPrivateAuction(CreatePrivateAuctionRequest req
*
* @param privateAuction Required. The `PrivateAuction` to update.
*
The `PrivateAuction`'s `name` is used to identify the `PrivateAuction` to update.
- * @param updateMask Required. The list of fields 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 PrivateAuction updatePrivateAuction(
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java
index cba4ad102646..a75aba7a9388 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java
@@ -705,7 +705,7 @@ public final UnaryCallable createReportCallable() {
* }
*
* @param report Required. The `Report` to update.
- * @param updateMask Required. The list of fields 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 Report updateReport(Report report, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java
new file mode 100644
index 000000000000..bc3ce7ad9213
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java
@@ -0,0 +1,641 @@
+/*
+ * 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.RichMediaAdsCompanyServiceStub;
+import com.google.ads.admanager.v1.stub.RichMediaAdsCompanyServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * RichMediaAdsCompanyName name =
+ * RichMediaAdsCompanyName.of("[NETWORK_CODE]", "[RICH_MEDIA_ADS_COMPANY]");
+ * RichMediaAdsCompany response = richMediaAdsCompanyServiceClient.getRichMediaAdsCompany(name);
+ * }
+ * }
+ *
+ *
Note: close() needs to be called on the RichMediaAdsCompanyServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ *
+ *
Methods
+ *
+ *
Method
+ *
Description
+ *
Method Variants
+ *
+ *
+ *
GetRichMediaAdsCompany
+ *
API to retrieve a `RichMediaAdsCompany` 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.
+ *
+ *
listRichMediaAdsCompanies(NetworkName parent)
+ *
listRichMediaAdsCompanies(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.
+ *
+ *
listRichMediaAdsCompaniesPagedCallable()
+ *
listRichMediaAdsCompaniesCallable()
+ *
+ *
+ *
+ *
+ *
+ *
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
+ * RichMediaAdsCompanyServiceSettings 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
+ * RichMediaAdsCompanyServiceSettings richMediaAdsCompanyServiceSettings =
+ * RichMediaAdsCompanyServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create(richMediaAdsCompanyServiceSettings);
+ * }
+ *
+ *
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
+ * RichMediaAdsCompanyServiceSettings richMediaAdsCompanyServiceSettings =
+ * RichMediaAdsCompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create(richMediaAdsCompanyServiceSettings);
+ * }
+ *
+ *
Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class RichMediaAdsCompanyServiceClient implements BackgroundResource {
+ private final RichMediaAdsCompanyServiceSettings settings;
+ private final RichMediaAdsCompanyServiceStub stub;
+
+ /** Constructs an instance of RichMediaAdsCompanyServiceClient with default settings. */
+ public static final RichMediaAdsCompanyServiceClient create() throws IOException {
+ return create(RichMediaAdsCompanyServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of RichMediaAdsCompanyServiceClient, 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 RichMediaAdsCompanyServiceClient create(
+ RichMediaAdsCompanyServiceSettings settings) throws IOException {
+ return new RichMediaAdsCompanyServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of RichMediaAdsCompanyServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(RichMediaAdsCompanyServiceSettings).
+ */
+ public static final RichMediaAdsCompanyServiceClient create(RichMediaAdsCompanyServiceStub stub) {
+ return new RichMediaAdsCompanyServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of RichMediaAdsCompanyServiceClient, 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 RichMediaAdsCompanyServiceClient(RichMediaAdsCompanyServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((RichMediaAdsCompanyServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected RichMediaAdsCompanyServiceClient(RichMediaAdsCompanyServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final RichMediaAdsCompanyServiceSettings getSettings() {
+ return settings;
+ }
+
+ public RichMediaAdsCompanyServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * RichMediaAdsCompanyName name =
+ * RichMediaAdsCompanyName.of("[NETWORK_CODE]", "[RICH_MEDIA_ADS_COMPANY]");
+ * RichMediaAdsCompany response = richMediaAdsCompanyServiceClient.getRichMediaAdsCompany(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the RichMediaAdsCompany. Format:
+ * `networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RichMediaAdsCompany getRichMediaAdsCompany(RichMediaAdsCompanyName name) {
+ GetRichMediaAdsCompanyRequest request =
+ GetRichMediaAdsCompanyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getRichMediaAdsCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * String name =
+ * RichMediaAdsCompanyName.of("[NETWORK_CODE]", "[RICH_MEDIA_ADS_COMPANY]").toString();
+ * RichMediaAdsCompany response = richMediaAdsCompanyServiceClient.getRichMediaAdsCompany(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the RichMediaAdsCompany. Format:
+ * `networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RichMediaAdsCompany getRichMediaAdsCompany(String name) {
+ GetRichMediaAdsCompanyRequest request =
+ GetRichMediaAdsCompanyRequest.newBuilder().setName(name).build();
+ return getRichMediaAdsCompany(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * GetRichMediaAdsCompanyRequest request =
+ * GetRichMediaAdsCompanyRequest.newBuilder()
+ * .setName(
+ * RichMediaAdsCompanyName.of("[NETWORK_CODE]", "[RICH_MEDIA_ADS_COMPANY]")
+ * .toString())
+ * .build();
+ * RichMediaAdsCompany response =
+ * richMediaAdsCompanyServiceClient.getRichMediaAdsCompany(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 RichMediaAdsCompany getRichMediaAdsCompany(GetRichMediaAdsCompanyRequest request) {
+ return getRichMediaAdsCompanyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * GetRichMediaAdsCompanyRequest request =
+ * GetRichMediaAdsCompanyRequest.newBuilder()
+ * .setName(
+ * RichMediaAdsCompanyName.of("[NETWORK_CODE]", "[RICH_MEDIA_ADS_COMPANY]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * richMediaAdsCompanyServiceClient.getRichMediaAdsCompanyCallable().futureCall(request);
+ * // Do something.
+ * RichMediaAdsCompany response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getRichMediaAdsCompanyCallable() {
+ return stub.getRichMediaAdsCompanyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (RichMediaAdsCompany element :
+ * richMediaAdsCompanyServiceClient.listRichMediaAdsCompanies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of RichMediaAdsCompanies.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies(
+ NetworkName parent) {
+ ListRichMediaAdsCompaniesRequest request =
+ ListRichMediaAdsCompaniesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listRichMediaAdsCompanies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (RichMediaAdsCompany element :
+ * richMediaAdsCompanyServiceClient.listRichMediaAdsCompanies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of RichMediaAdsCompanies.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies(String parent) {
+ ListRichMediaAdsCompaniesRequest request =
+ ListRichMediaAdsCompaniesRequest.newBuilder().setParent(parent).build();
+ return listRichMediaAdsCompanies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * ListRichMediaAdsCompaniesRequest request =
+ * ListRichMediaAdsCompaniesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (RichMediaAdsCompany element :
+ * richMediaAdsCompanyServiceClient.listRichMediaAdsCompanies(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 ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies(
+ ListRichMediaAdsCompaniesRequest request) {
+ return listRichMediaAdsCompaniesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * ListRichMediaAdsCompaniesRequest request =
+ * ListRichMediaAdsCompaniesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture future =
+ * richMediaAdsCompanyServiceClient
+ * .listRichMediaAdsCompaniesPagedCallable()
+ * .futureCall(request);
+ * // Do something.
+ * for (RichMediaAdsCompany element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListRichMediaAdsCompaniesRequest, ListRichMediaAdsCompaniesPagedResponse>
+ listRichMediaAdsCompaniesPagedCallable() {
+ return stub.listRichMediaAdsCompaniesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `RichMediaAdsCompany` 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 (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * ListRichMediaAdsCompaniesRequest request =
+ * ListRichMediaAdsCompaniesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListRichMediaAdsCompaniesResponse response =
+ * richMediaAdsCompanyServiceClient.listRichMediaAdsCompaniesCallable().call(request);
+ * for (RichMediaAdsCompany element : response.getRichMediaAdsCompaniesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listRichMediaAdsCompaniesCallable() {
+ return stub.listRichMediaAdsCompaniesCallable();
+ }
+
+ @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 ListRichMediaAdsCompaniesPagedResponse
+ extends AbstractPagedListResponse<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany,
+ ListRichMediaAdsCompaniesPage,
+ ListRichMediaAdsCompaniesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListRichMediaAdsCompaniesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListRichMediaAdsCompaniesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListRichMediaAdsCompaniesPagedResponse(ListRichMediaAdsCompaniesPage page) {
+ super(page, ListRichMediaAdsCompaniesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListRichMediaAdsCompaniesPage
+ extends AbstractPage<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany,
+ ListRichMediaAdsCompaniesPage> {
+
+ private ListRichMediaAdsCompaniesPage(
+ PageContext<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany>
+ context,
+ ListRichMediaAdsCompaniesResponse response) {
+ super(context, response);
+ }
+
+ private static ListRichMediaAdsCompaniesPage createEmptyPage() {
+ return new ListRichMediaAdsCompaniesPage(null, null);
+ }
+
+ @Override
+ protected ListRichMediaAdsCompaniesPage createPage(
+ PageContext<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany>
+ context,
+ ListRichMediaAdsCompaniesResponse response) {
+ return new ListRichMediaAdsCompaniesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListRichMediaAdsCompaniesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ RichMediaAdsCompany,
+ ListRichMediaAdsCompaniesPage,
+ ListRichMediaAdsCompaniesFixedSizeCollection> {
+
+ private ListRichMediaAdsCompaniesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListRichMediaAdsCompaniesFixedSizeCollection createEmptyCollection() {
+ return new ListRichMediaAdsCompaniesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListRichMediaAdsCompaniesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListRichMediaAdsCompaniesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java
new file mode 100644
index 000000000000..ff8d4b1b2163
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java
@@ -0,0 +1,226 @@
+/*
+ * 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 static com.google.ads.admanager.v1.RichMediaAdsCompanyServiceClient.ListRichMediaAdsCompaniesPagedResponse;
+
+import com.google.ads.admanager.v1.stub.RichMediaAdsCompanyServiceStubSettings;
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link RichMediaAdsCompanyServiceClient}.
+ *
+ *
The default instance has everything set to sensible defaults:
+ *
+ *
+ *
The default service address (admanager.googleapis.com) and default port (443) are used.
+ *
Credentials are acquired automatically through Application Default Credentials.
+ *
Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ *
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 getRichMediaAdsCompany:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RichMediaAdsCompanyServiceSettings.Builder richMediaAdsCompanyServiceSettingsBuilder =
+ * RichMediaAdsCompanyServiceSettings.newBuilder();
+ * richMediaAdsCompanyServiceSettingsBuilder
+ * .getRichMediaAdsCompanySettings()
+ * .setRetrySettings(
+ * richMediaAdsCompanyServiceSettingsBuilder
+ * .getRichMediaAdsCompanySettings()
+ * .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());
+ * RichMediaAdsCompanyServiceSettings richMediaAdsCompanyServiceSettings =
+ * richMediaAdsCompanyServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@Generated("by gapic-generator-java")
+public class RichMediaAdsCompanyServiceSettings
+ extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to getRichMediaAdsCompany. */
+ public UnaryCallSettings
+ getRichMediaAdsCompanySettings() {
+ return ((RichMediaAdsCompanyServiceStubSettings) getStubSettings())
+ .getRichMediaAdsCompanySettings();
+ }
+
+ /** Returns the object with the settings used for calls to listRichMediaAdsCompanies. */
+ public PagedCallSettings<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ ListRichMediaAdsCompaniesPagedResponse>
+ listRichMediaAdsCompaniesSettings() {
+ return ((RichMediaAdsCompanyServiceStubSettings) getStubSettings())
+ .listRichMediaAdsCompaniesSettings();
+ }
+
+ public static final RichMediaAdsCompanyServiceSettings create(
+ RichMediaAdsCompanyServiceStubSettings stub) throws IOException {
+ return new RichMediaAdsCompanyServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return RichMediaAdsCompanyServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return RichMediaAdsCompanyServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return RichMediaAdsCompanyServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return RichMediaAdsCompanyServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return RichMediaAdsCompanyServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return RichMediaAdsCompanyServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return RichMediaAdsCompanyServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected RichMediaAdsCompanyServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for RichMediaAdsCompanyServiceSettings. */
+ public static class Builder
+ extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(RichMediaAdsCompanyServiceStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(RichMediaAdsCompanyServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(RichMediaAdsCompanyServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(RichMediaAdsCompanyServiceStubSettings.newBuilder());
+ }
+
+ public RichMediaAdsCompanyServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((RichMediaAdsCompanyServiceStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ *
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to getRichMediaAdsCompany. */
+ public UnaryCallSettings.Builder
+ getRichMediaAdsCompanySettings() {
+ return getStubSettingsBuilder().getRichMediaAdsCompanySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listRichMediaAdsCompanies. */
+ public PagedCallSettings.Builder<
+ ListRichMediaAdsCompaniesRequest,
+ ListRichMediaAdsCompaniesResponse,
+ ListRichMediaAdsCompaniesPagedResponse>
+ listRichMediaAdsCompaniesSettings() {
+ return getStubSettingsBuilder().listRichMediaAdsCompaniesSettings();
+ }
+
+ @Override
+ public RichMediaAdsCompanyServiceSettings build() throws IOException {
+ return new RichMediaAdsCompanyServiceSettings(this);
+ }
+ }
+}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java
index 74bde26c96ac..7dd0e52c5ef5 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java
@@ -844,7 +844,7 @@ public final BatchCreateSitesResponse batchCreateSites(BatchCreateSitesRequest r
*
* @param site Required. The `Site` to update.
*
The `Site`'s `name` is used to identify the `Site` to update.
- * @param updateMask Required. The list of fields 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 Site updateSite(Site site, FieldMask updateMask) {
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java
index 109710a33410..d2281d0d375b 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java
@@ -844,7 +844,7 @@ public final BatchCreateTeamsResponse batchCreateTeams(BatchCreateTeamsRequest r
*
* @param team Required. The `Team` to update.
*
Service Description: Provides methods for handling `Label` objects.
+ *
+ *
Sample for LabelServiceClient:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
+ * LabelName name = LabelName.of("[NETWORK_CODE]", "[LABEL]");
+ * Label response = labelServiceClient.getLabel(name);
+ * }
+ * }
Service Description: Provides methods for handling `LinkedDevice` objects.
+ *
+ *
Sample for LinkedDeviceServiceClient:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LinkedDeviceServiceClient linkedDeviceServiceClient = LinkedDeviceServiceClient.create()) {
+ * LinkedDeviceName name = LinkedDeviceName.of("[NETWORK_CODE]", "[LINKED_DEVICE]");
+ * LinkedDevice response = linkedDeviceServiceClient.getLinkedDevice(name);
+ * }
+ * }
Service Description: Provides methods for handling `McmEarnings` objects.
+ *
+ *
Sample for McmEarningsServiceClient:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (McmEarningsServiceClient mcmEarningsServiceClient = McmEarningsServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (McmEarnings element : mcmEarningsServiceClient.fetchMcmEarnings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
Service Description: Provides methods for handling `RichMediaAdsCompany` objects.
+ *
+ *
Sample for RichMediaAdsCompanyServiceClient:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RichMediaAdsCompanyServiceClient richMediaAdsCompanyServiceClient =
+ * RichMediaAdsCompanyServiceClient.create()) {
+ * RichMediaAdsCompanyName name =
+ * RichMediaAdsCompanyName.of("[NETWORK_CODE]", "[RICH_MEDIA_ADS_COMPANY]");
+ * RichMediaAdsCompany response = richMediaAdsCompanyServiceClient.getRichMediaAdsCompany(name);
+ * }
+ * }