diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java index d045a234131f..68006c699966 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java @@ -65,7 +65,7 @@ * *
GetCompany
API to retrieve a `Company` object.
Retrieves a `Company` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListCompanies
API to retrieve a list of `Company` objects.
Lists `Company` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -224,7 +224,7 @@ public final Company getCompany(@Nullable CompanyName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Company` object. + * Retrieves a `Company` object. * *
Sample code: * @@ -251,7 +251,7 @@ public final Company getCompany(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Company` object. + * Retrieves a `Company` object. * *
Sample code: * @@ -279,7 +279,7 @@ public final Company getCompany(GetCompanyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Company` object. + * Retrieves a `Company` object. * *
Sample code:
*
@@ -306,7 +306,7 @@ public final UnaryCallable Sample code:
*
@@ -338,7 +338,7 @@ public final ListCompaniesPagedResponse listCompanies(@Nullable NetworkName pare
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Company` objects.
+ * Lists `Company` objects.
*
* Sample code:
*
@@ -367,7 +367,7 @@ public final ListCompaniesPagedResponse listCompanies(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Company` objects.
+ * Lists `Company` objects.
*
* Sample code:
*
@@ -402,7 +402,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Company` objects.
+ * Lists `Company` objects.
*
* Sample code:
*
@@ -438,7 +438,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Company` objects.
+ * Lists `Company` objects.
*
* Sample code:
*
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 48db125778b3..9c132b4fcddd 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
@@ -66,7 +66,7 @@
*
GetContact
API to retrieve a `Contact` object.
Retrieves a `Contact` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListContacts
API to retrieve a list of `Contact` objects.
Lists `Contact` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateContact
API to create a `Contact` object.
Creates a `Contact` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchCreateContacts
API to batch create `Contact` objects.
Creates `Contact` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateContact
API to update a `Contact` object.
Updates a `Contact` object.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*BatchUpdateContacts
API to batch update `Contact` objects.
Batch updates `Contact` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -294,7 +294,7 @@ public final Contact getContact(@Nullable ContactName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Contact` object. + * Retrieves a `Contact` object. * *
Sample code: * @@ -321,7 +321,7 @@ public final Contact getContact(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Contact` object. + * Retrieves a `Contact` object. * *
Sample code: * @@ -349,7 +349,7 @@ public final Contact getContact(GetContactRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `Contact` object. + * Retrieves a `Contact` object. * *
Sample code:
*
@@ -376,7 +376,7 @@ public final UnaryCallable Sample code:
*
@@ -408,7 +408,7 @@ public final ListContactsPagedResponse listContacts(@Nullable NetworkName parent
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Contact` objects.
+ * Lists `Contact` objects.
*
* Sample code:
*
@@ -437,7 +437,7 @@ public final ListContactsPagedResponse listContacts(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Contact` objects.
+ * Lists `Contact` objects.
*
* Sample code:
*
@@ -472,7 +472,7 @@ public final ListContactsPagedResponse listContacts(ListContactsRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Contact` objects.
+ * Lists `Contact` objects.
*
* Sample code:
*
@@ -508,7 +508,7 @@ public final ListContactsPagedResponse listContacts(ListContactsRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Contact` objects.
+ * Lists `Contact` objects.
*
* Sample code:
*
@@ -549,7 +549,7 @@ public final UnaryCallable Sample code:
*
@@ -582,7 +582,7 @@ public final Contact createContact(@Nullable NetworkName parent, Contact contact
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Contact` object.
+ * Creates a `Contact` object.
*
* Sample code:
*
@@ -612,7 +612,7 @@ public final Contact createContact(String parent, Contact contact) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Contact` object.
+ * Creates a `Contact` object.
*
* Sample code:
*
@@ -641,7 +641,7 @@ public final Contact createContact(CreateContactRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Contact` object.
+ * Creates a `Contact` object.
*
* Sample code:
*
@@ -669,7 +669,7 @@ public final UnaryCallable Sample code:
*
@@ -706,7 +706,7 @@ public final BatchCreateContactsResponse batchCreateContacts(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Contact` objects.
+ * Creates `Contact` objects.
*
* Sample code:
*
@@ -740,7 +740,7 @@ public final BatchCreateContactsResponse batchCreateContacts(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Contact` objects.
+ * Creates `Contact` objects.
*
* Sample code:
*
@@ -769,7 +769,7 @@ public final BatchCreateContactsResponse batchCreateContacts(BatchCreateContacts
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Contact` objects.
+ * Creates `Contact` objects.
*
* Sample code:
*
@@ -799,7 +799,7 @@ public final BatchCreateContactsResponse batchCreateContacts(BatchCreateContacts
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Contact` object.
+ * Updates a `Contact` object.
*
* Sample code:
*
@@ -829,7 +829,7 @@ public final Contact updateContact(Contact contact, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Contact` object.
+ * Updates a `Contact` object.
*
* Sample code:
*
@@ -858,7 +858,7 @@ public final Contact updateContact(UpdateContactRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Contact` object.
+ * Updates a `Contact` object.
*
* Sample code:
*
@@ -886,7 +886,7 @@ public final UnaryCallable Sample code:
*
@@ -923,7 +923,7 @@ public final BatchUpdateContactsResponse batchUpdateContacts(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Contact` objects.
+ * Batch updates `Contact` objects.
*
* Sample code:
*
@@ -957,7 +957,7 @@ public final BatchUpdateContactsResponse batchUpdateContacts(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Contact` objects.
+ * Batch updates `Contact` objects.
*
* Sample code:
*
@@ -986,7 +986,7 @@ public final BatchUpdateContactsResponse batchUpdateContacts(BatchUpdateContacts
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Contact` objects.
+ * Batch updates `Contact` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java
index 4fc202d4690a..51f5af75b558 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java
@@ -104,6 +104,44 @@
*
BatchActivateContentBundles
Activate a list of `ContentBundle` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchActivateContentBundles(BatchActivateContentBundlesRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *batchActivateContentBundles(NetworkName parent, List<String> names) + *
batchActivateContentBundles(String parent, List<String> names) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchActivateContentBundlesCallable() + *
BatchDeactivateContentBundles
Deactivates a list of `ContentBundle` objects.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *batchDeactivateContentBundles(BatchDeactivateContentBundlesRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *batchDeactivateContentBundles(NetworkName parent, List<String> names) + *
batchDeactivateContentBundles(String parent, List<String> names) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *batchDeactivateContentBundlesCallable() + *
See the individual methods for example code. @@ -498,6 +536,282 @@ public final ListContentBundlesPagedResponse listContentBundles( return stub.listContentBundlesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activate a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchActivateContentBundlesResponse response =
+ * contentBundleServiceClient.batchActivateContentBundles(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `ContentBundles` will be activated. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the `ContentBundle`s to activate. Format:
+ * `networks/{network_code}/contentBundles/{content_bundle_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateContentBundlesResponse batchActivateContentBundles(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchActivateContentBundlesResponse response =
+ * contentBundleServiceClient.batchActivateContentBundles(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `ContentBundles` will be activated. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the `ContentBundle`s to activate. Format:
+ * `networks/{network_code}/contentBundles/{content_bundle_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchActivateContentBundlesResponse batchActivateContentBundles(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * BatchActivateContentBundlesRequest request =
+ * BatchActivateContentBundlesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchActivateContentBundlesResponse response =
+ * contentBundleServiceClient.batchActivateContentBundles(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 BatchActivateContentBundlesResponse batchActivateContentBundles(
+ BatchActivateContentBundlesRequest request) {
+ return batchActivateContentBundlesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Activate a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * BatchActivateContentBundlesRequest request =
+ * BatchActivateContentBundlesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * contentBundleServiceClient.batchActivateContentBundlesCallable().futureCall(request);
+ * // Do something.
+ * BatchActivateContentBundlesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchActivateContentBundlesRequest, BatchActivateContentBundlesResponse>
+ batchActivateContentBundlesCallable() {
+ return stub.batchActivateContentBundlesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List names = new ArrayList<>();
+ * BatchDeactivateContentBundlesResponse response =
+ * contentBundleServiceClient.batchDeactivateContentBundles(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `ContentBundles` will be deactivated. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the `ContentBundle`s to deactivate. Format:
+ * `networks/{network_code}/contentBundles/{content_bundle_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateContentBundlesResponse batchDeactivateContentBundles(
+ @Nullable NetworkName parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List names = new ArrayList<>();
+ * BatchDeactivateContentBundlesResponse response =
+ * contentBundleServiceClient.batchDeactivateContentBundles(parent, names);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where `ContentBundles` will be deactivated. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the `ContentBundle`s to deactivate. Format:
+ * `networks/{network_code}/contentBundles/{content_bundle_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeactivateContentBundlesResponse batchDeactivateContentBundles(
+ String parent, ListSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * BatchDeactivateContentBundlesRequest request =
+ * BatchDeactivateContentBundlesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchDeactivateContentBundlesResponse response =
+ * contentBundleServiceClient.batchDeactivateContentBundles(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 BatchDeactivateContentBundlesResponse batchDeactivateContentBundles(
+ BatchDeactivateContentBundlesRequest request) {
+ return batchDeactivateContentBundlesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deactivates a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * BatchDeactivateContentBundlesRequest request =
+ * BatchDeactivateContentBundlesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * contentBundleServiceClient.batchDeactivateContentBundlesCallable().futureCall(request);
+ * // Do something.
+ * BatchDeactivateContentBundlesResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ BatchDeactivateContentBundlesRequest, BatchDeactivateContentBundlesResponse>
+ batchDeactivateContentBundlesCallable() {
+ return stub.batchDeactivateContentBundlesCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java
index 164daa1a7fcc..28995adf2505 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java
@@ -102,6 +102,21 @@ public UnaryCallSettingsThis 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * CreativeSetName name = CreativeSetName.of("[NETWORK_CODE]", "[CREATIVE_SET]");
+ * CreativeSet response = creativeSetServiceClient.getCreativeSet(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the CreativeSetServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
GetCreativeSet |
+ * Retrieves a `CreativeSet` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListCreativeSets |
+ * Lists `CreativeSet` objects. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateCreativeSet |
+ * Creates a `CreativeSet` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateCreativeSet |
+ * Updates a `CreativeSet` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
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 CreativeSetServiceSettings 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
+ * CreativeSetServiceSettings creativeSetServiceSettings =
+ * CreativeSetServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CreativeSetServiceClient creativeSetServiceClient =
+ * CreativeSetServiceClient.create(creativeSetServiceSettings);
+ * }
+ *
+ * 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
+ * CreativeSetServiceSettings creativeSetServiceSettings =
+ * CreativeSetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CreativeSetServiceClient creativeSetServiceClient =
+ * CreativeSetServiceClient.create(creativeSetServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class CreativeSetServiceClient implements BackgroundResource { + private final @Nullable CreativeSetServiceSettings settings; + private final CreativeSetServiceStub stub; + + /** Constructs an instance of CreativeSetServiceClient with default settings. */ + public static final CreativeSetServiceClient create() throws IOException { + return create(CreativeSetServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CreativeSetServiceClient, 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 CreativeSetServiceClient create(CreativeSetServiceSettings settings) + throws IOException { + return new CreativeSetServiceClient(settings); + } + + /** + * Constructs an instance of CreativeSetServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(CreativeSetServiceSettings). + */ + public static final CreativeSetServiceClient create(CreativeSetServiceStub stub) { + return new CreativeSetServiceClient(stub); + } + + /** + * Constructs an instance of CreativeSetServiceClient, 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 CreativeSetServiceClient(CreativeSetServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CreativeSetServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected CreativeSetServiceClient(CreativeSetServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable CreativeSetServiceSettings getSettings() { + return settings; + } + + public CreativeSetServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * CreativeSetName name = CreativeSetName.of("[NETWORK_CODE]", "[CREATIVE_SET]");
+ * CreativeSet response = creativeSetServiceClient.getCreativeSet(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CreativeSet. Format:
+ * `networks/{network_code}/creativeSets/{creative_set_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeSet getCreativeSet(@Nullable CreativeSetName name) {
+ GetCreativeSetRequest request =
+ GetCreativeSetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getCreativeSet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * String name = CreativeSetName.of("[NETWORK_CODE]", "[CREATIVE_SET]").toString();
+ * CreativeSet response = creativeSetServiceClient.getCreativeSet(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CreativeSet. Format:
+ * `networks/{network_code}/creativeSets/{creative_set_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeSet getCreativeSet(String name) {
+ GetCreativeSetRequest request = GetCreativeSetRequest.newBuilder().setName(name).build();
+ return getCreativeSet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * GetCreativeSetRequest request =
+ * GetCreativeSetRequest.newBuilder()
+ * .setName(CreativeSetName.of("[NETWORK_CODE]", "[CREATIVE_SET]").toString())
+ * .build();
+ * CreativeSet response = creativeSetServiceClient.getCreativeSet(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 CreativeSet getCreativeSet(GetCreativeSetRequest request) {
+ return getCreativeSetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * GetCreativeSetRequest request =
+ * GetCreativeSetRequest.newBuilder()
+ * .setName(CreativeSetName.of("[NETWORK_CODE]", "[CREATIVE_SET]").toString())
+ * .build();
+ * ApiFuture future =
+ * creativeSetServiceClient.getCreativeSetCallable().futureCall(request);
+ * // Do something.
+ * CreativeSet response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (CreativeSet element : creativeSetServiceClient.listCreativeSets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CreativeSets. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCreativeSetsPagedResponse listCreativeSets(@Nullable NetworkName parent) {
+ ListCreativeSetsRequest request =
+ ListCreativeSetsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCreativeSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (CreativeSet element : creativeSetServiceClient.listCreativeSets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CreativeSets. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCreativeSetsPagedResponse listCreativeSets(String parent) {
+ ListCreativeSetsRequest request =
+ ListCreativeSetsRequest.newBuilder().setParent(parent).build();
+ return listCreativeSets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * ListCreativeSetsRequest request =
+ * ListCreativeSetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (CreativeSet element : creativeSetServiceClient.listCreativeSets(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 ListCreativeSetsPagedResponse listCreativeSets(ListCreativeSetsRequest request) {
+ return listCreativeSetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * ListCreativeSetsRequest request =
+ * ListCreativeSetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture future =
+ * creativeSetServiceClient.listCreativeSetsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CreativeSet element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * ListCreativeSetsRequest request =
+ * ListCreativeSetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListCreativeSetsResponse response =
+ * creativeSetServiceClient.listCreativeSetsCallable().call(request);
+ * for (CreativeSet element : response.getCreativeSetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * CreativeSet creativeSet = CreativeSet.newBuilder().build();
+ * CreativeSet response = creativeSetServiceClient.createCreativeSet(parent, creativeSet);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `CreativeSet` will be created. Format:
+ * `networks/{network_code}`
+ * @param creativeSet Required. The `CreativeSet` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeSet createCreativeSet(
+ @Nullable NetworkName parent, CreativeSet creativeSet) {
+ CreateCreativeSetRequest request =
+ CreateCreativeSetRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCreativeSet(creativeSet)
+ .build();
+ return createCreativeSet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * CreativeSet creativeSet = CreativeSet.newBuilder().build();
+ * CreativeSet response = creativeSetServiceClient.createCreativeSet(parent, creativeSet);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `CreativeSet` will be created. Format:
+ * `networks/{network_code}`
+ * @param creativeSet Required. The `CreativeSet` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CreativeSet createCreativeSet(String parent, CreativeSet creativeSet) {
+ CreateCreativeSetRequest request =
+ CreateCreativeSetRequest.newBuilder().setParent(parent).setCreativeSet(creativeSet).build();
+ return createCreativeSet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * CreateCreativeSetRequest request =
+ * CreateCreativeSetRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCreativeSet(CreativeSet.newBuilder().build())
+ * .build();
+ * CreativeSet response = creativeSetServiceClient.createCreativeSet(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 CreativeSet createCreativeSet(CreateCreativeSetRequest request) {
+ return createCreativeSetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * CreateCreativeSetRequest request =
+ * CreateCreativeSetRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setCreativeSet(CreativeSet.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * creativeSetServiceClient.createCreativeSetCallable().futureCall(request);
+ * // Do something.
+ * CreativeSet response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * CreativeSet creativeSet = CreativeSet.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CreativeSet response = creativeSetServiceClient.updateCreativeSet(creativeSet, updateMask);
+ * }
+ * }
+ *
+ * @param creativeSet Required. The `CreativeSet` to update.
+ * The `CreativeSet`'s `name` is used to identify the `CreativeSet` 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 CreativeSet updateCreativeSet(CreativeSet creativeSet, FieldMask updateMask) { + UpdateCreativeSetRequest request = + UpdateCreativeSetRequest.newBuilder() + .setCreativeSet(creativeSet) + .setUpdateMask(updateMask) + .build(); + return updateCreativeSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * UpdateCreativeSetRequest request =
+ * UpdateCreativeSetRequest.newBuilder()
+ * .setCreativeSet(CreativeSet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CreativeSet response = creativeSetServiceClient.updateCreativeSet(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 CreativeSet updateCreativeSet(UpdateCreativeSetRequest request) {
+ return updateCreativeSetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `CreativeSet` 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 (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * UpdateCreativeSetRequest request =
+ * UpdateCreativeSetRequest.newBuilder()
+ * .setCreativeSet(CreativeSet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * creativeSetServiceClient.updateCreativeSetCallable().futureCall(request);
+ * // Do something.
+ * CreativeSet response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getCreativeSet: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CreativeSetServiceSettings.Builder creativeSetServiceSettingsBuilder =
+ * CreativeSetServiceSettings.newBuilder();
+ * creativeSetServiceSettingsBuilder
+ * .getCreativeSetSettings()
+ * .setRetrySettings(
+ * creativeSetServiceSettingsBuilder
+ * .getCreativeSetSettings()
+ * .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());
+ * CreativeSetServiceSettings creativeSetServiceSettings =
+ * creativeSetServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class CreativeSetServiceSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction FetchMcmEarnings API to retrieve a list of `McmEarnings` objects. Lists `McmEarnings` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -214,7 +214,7 @@ public final FetchMcmEarningsPagedResponse fetchMcmEarnings(@Nullable NetworkNam
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `McmEarnings` objects.
+ * Lists `McmEarnings` objects.
*
* Sample code:
*
@@ -244,7 +244,7 @@ public final FetchMcmEarningsPagedResponse fetchMcmEarnings(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `McmEarnings` objects.
+ * Lists `McmEarnings` objects.
*
* Sample code:
*
@@ -280,7 +280,7 @@ public final FetchMcmEarningsPagedResponse fetchMcmEarnings(FetchMcmEarningsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `McmEarnings` objects.
+ * Lists `McmEarnings` objects.
*
* Sample code:
*
@@ -317,7 +317,7 @@ public final FetchMcmEarningsPagedResponse fetchMcmEarnings(FetchMcmEarningsRequ
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `McmEarnings` objects.
+ * Lists `McmEarnings` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java
index 47aa30a39d65..0e612286919f 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java
@@ -65,7 +65,7 @@
* GetNetwork API to retrieve a Network object. Retrieves a `Network` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListNetworks API to retrieve all the networks the current user has access to. Retrieves all the networks the current user has access to. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -218,7 +218,7 @@ public final Network getNetwork(@Nullable NetworkName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a Network object.
+ * Retrieves a `Network` object.
*
* Sample code:
*
@@ -244,7 +244,7 @@ public final Network getNetwork(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a Network object.
+ * Retrieves a `Network` object.
*
* Sample code:
*
@@ -272,7 +272,7 @@ public final Network getNetwork(GetNetworkRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a Network object.
+ * Retrieves a `Network` object.
*
* Sample code:
*
@@ -299,7 +299,7 @@ public final UnaryCallable Sample code:
*
@@ -331,7 +331,7 @@ public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve all the networks the current user has access to.
+ * Retrieves all the networks the current user has access to.
*
* Sample code:
*
@@ -364,7 +364,7 @@ public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve all the networks the current user has access to.
+ * Retrieves all the networks the current user has access to.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java
index dd5a3b4ccf05..60094ea81c6d 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java
@@ -108,6 +108,342 @@
* BatchCreateOrders Creates `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateOrders(NetworkName parent, List<CreateOrderRequest> requests)
+ * batchCreateOrders(String parent, List<CreateOrderRequest> requests)
+ * batchCreateOrders(BatchCreateOrdersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateOrdersCallable()
+ * BatchUpdateOrders Batch updates `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateOrders(NetworkName parent, List<UpdateOrderRequest> requests)
+ * batchUpdateOrders(String parent, List<UpdateOrderRequest> requests)
+ * batchUpdateOrders(BatchUpdateOrdersRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateOrdersCallable()
+ * BatchApproveOrders Approves a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchApproveOrders(BatchApproveOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchApproveOrders(NetworkName parent, List<String> names)
+ * batchApproveOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchApproveOrdersCallable()
+ * BatchApproveAndOverbookOrders Approves and overbooks a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchApproveAndOverbookOrders(BatchApproveAndOverbookOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchApproveAndOverbookOrders(NetworkName parent, List<String> names)
+ * batchApproveAndOverbookOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchApproveAndOverbookOrdersCallable()
+ * BatchSubmitOrdersForApproval Submits a list of `Order` objects for approval. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchSubmitOrdersForApproval(BatchSubmitOrdersForApprovalRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchSubmitOrdersForApproval(NetworkName parent, List<String> names)
+ * batchSubmitOrdersForApproval(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchSubmitOrdersForApprovalCallable()
+ * BatchSubmitOrdersForApprovalAndOverbook Submits and overbooks a list of `Order` objects for approval. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchSubmitOrdersForApprovalAndOverbook(BatchSubmitOrdersForApprovalAndOverbookRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchSubmitOrdersForApprovalAndOverbook(NetworkName parent, List<String> names)
+ * batchSubmitOrdersForApprovalAndOverbook(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchSubmitOrdersForApprovalAndOverbookCallable()
+ * BatchSubmitOrdersForApprovalWithoutReservationChanges Submits a list of `Order` objects for approval without changing reservation status. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchSubmitOrdersForApprovalWithoutReservationChanges(BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchSubmitOrdersForApprovalWithoutReservationChanges(NetworkName parent, List<String> names)
+ * batchSubmitOrdersForApprovalWithoutReservationChanges(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchSubmitOrdersForApprovalWithoutReservationChangesCallable()
+ * BatchPauseOrders Pauses a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchPauseOrders(BatchPauseOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchPauseOrders(NetworkName parent, List<String> names)
+ * batchPauseOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchPauseOrdersCallable()
+ * BatchResumeOrders Resumes a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchResumeOrders(BatchResumeOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchResumeOrders(NetworkName parent, List<String> names)
+ * batchResumeOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchResumeOrdersCallable()
+ * BatchResumeAndOverbookOrders Resumes and overbooks a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchResumeAndOverbookOrders(BatchResumeAndOverbookOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchResumeAndOverbookOrders(NetworkName parent, List<String> names)
+ * batchResumeAndOverbookOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchResumeAndOverbookOrdersCallable()
+ * BatchApproveOrdersWithoutReservation Approves a list of `Order` objects without changing reservation status. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchApproveOrdersWithoutReservation(BatchApproveOrdersWithoutReservationRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchApproveOrdersWithoutReservation(NetworkName parent, List<String> names)
+ * batchApproveOrdersWithoutReservation(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchApproveOrdersWithoutReservationCallable()
+ * BatchArchiveOrders Archives a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchArchiveOrders(BatchArchiveOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchArchiveOrders(NetworkName parent, List<String> names)
+ * batchArchiveOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchArchiveOrdersCallable()
+ * BatchUnarchiveOrders Unarchives a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUnarchiveOrders(BatchUnarchiveOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchUnarchiveOrders(NetworkName parent, List<String> names)
+ * batchUnarchiveOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUnarchiveOrdersCallable()
+ * BatchDeleteOrders Deletes a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchDeleteOrders(BatchDeleteOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchDeleteOrders(NetworkName parent, List<String> names)
+ * batchDeleteOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchDeleteOrdersCallable()
+ * BatchDisapproveOrders Disapproves a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchDisapproveOrders(BatchDisapproveOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchDisapproveOrders(NetworkName parent, List<String> names)
+ * batchDisapproveOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchDisapproveOrdersCallable()
+ * BatchDisapproveOrdersWithoutReservationChanges Disapproves a list of `Order` objects without changing reservation status. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchDisapproveOrdersWithoutReservationChanges(BatchDisapproveOrdersWithoutReservationChangesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchDisapproveOrdersWithoutReservationChanges(NetworkName parent, List<String> names)
+ * batchDisapproveOrdersWithoutReservationChanges(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchDisapproveOrdersWithoutReservationChangesCallable()
+ * BatchRetractOrders Retracts a list of `Order` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchRetractOrders(BatchRetractOrdersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchRetractOrders(NetworkName parent, List<String> names)
+ * batchRetractOrders(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchRetractOrdersCallable()
+ * BatchRetractOrdersWithoutReservationChanges Retracts a list of `Order` objects without changing reservation status. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchRetractOrdersWithoutReservationChanges(BatchRetractOrdersWithoutReservationChangesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchRetractOrdersWithoutReservationChanges(NetworkName parent, List<String> names)
+ * batchRetractOrdersWithoutReservationChanges(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchRetractOrdersWithoutReservationChangesCallable()
+ * See the individual methods for example code.
@@ -518,6 +854,2361 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * GetReport API to retrieve a `Report` object. Retrieves a `Report` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListReports API to retrieve a list of `Report` objects. Lists `Report` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. CreateReport API to create a `Report` object. Creates a `Report` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. UpdateReport API to update a `Report` object. Updates a `Report` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -316,7 +316,7 @@ public final Report getReport(@Nullable ReportName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Report` object.
+ * Retrieves a `Report` object.
*
* Sample code:
*
@@ -343,7 +343,7 @@ public final Report getReport(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Report` object.
+ * Retrieves a `Report` object.
*
* Sample code:
*
@@ -371,7 +371,7 @@ public final Report getReport(GetReportRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Report` object.
+ * Retrieves a `Report` object.
*
* Sample code:
*
@@ -398,7 +398,7 @@ public final UnaryCallable Sample code:
*
@@ -430,7 +430,7 @@ public final ListReportsPagedResponse listReports(@Nullable NetworkName parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Report` objects.
+ * Lists `Report` objects.
*
* Sample code:
*
@@ -459,7 +459,7 @@ public final ListReportsPagedResponse listReports(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Report` objects.
+ * Lists `Report` objects.
*
* Sample code:
*
@@ -494,7 +494,7 @@ public final ListReportsPagedResponse listReports(ListReportsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Report` objects.
+ * Lists `Report` objects.
*
* Sample code:
*
@@ -529,7 +529,7 @@ public final ListReportsPagedResponse listReports(ListReportsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Report` objects.
+ * Lists `Report` objects.
*
* Sample code:
*
@@ -570,7 +570,7 @@ public final UnaryCallable Sample code:
*
@@ -603,7 +603,7 @@ public final Report createReport(@Nullable NetworkName parent, Report report) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Report` object.
+ * Creates a `Report` object.
*
* Sample code:
*
@@ -633,7 +633,7 @@ public final Report createReport(String parent, Report report) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Report` object.
+ * Creates a `Report` object.
*
* Sample code:
*
@@ -662,7 +662,7 @@ public final Report createReport(CreateReportRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Report` object.
+ * Creates a `Report` object.
*
* Sample code:
*
@@ -690,7 +690,7 @@ public final UnaryCallable Sample code:
*
@@ -719,7 +719,7 @@ public final Report updateReport(Report report, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Report` object.
+ * Updates a `Report` object.
*
* Sample code:
*
@@ -748,7 +748,7 @@ public final Report updateReport(UpdateReportRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Report` object.
+ * Updates a `Report` object.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java
index 2241dbd4a33a..0cb28ba83643 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java
@@ -65,7 +65,7 @@
* GetRole API to retrieve a `Role` object. Retrieves a `Role` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListRoles API to retrieve a list of `Role` objects. Lists `Role` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -223,7 +223,7 @@ public final Role getRole(@Nullable RoleName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Role` object.
+ * Retrieves a `Role` object.
*
* Sample code:
*
@@ -250,7 +250,7 @@ public final Role getRole(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Role` object.
+ * Retrieves a `Role` object.
*
* Sample code:
*
@@ -278,7 +278,7 @@ public final Role getRole(GetRoleRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Role` object.
+ * Retrieves a `Role` object.
*
* Sample code:
*
@@ -305,7 +305,7 @@ public final UnaryCallable Sample code:
*
@@ -335,7 +335,7 @@ public final ListRolesPagedResponse listRoles(@Nullable NetworkName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Role` objects.
+ * Lists `Role` objects.
*
* Sample code:
*
@@ -364,7 +364,7 @@ public final ListRolesPagedResponse listRoles(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Role` objects.
+ * Lists `Role` objects.
*
* Sample code:
*
@@ -399,7 +399,7 @@ public final ListRolesPagedResponse listRoles(ListRolesRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Role` objects.
+ * Lists `Role` objects.
*
* Sample code:
*
@@ -433,7 +433,7 @@ public final UnaryCallable Sample code:
*
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 5628bc4b6005..04a4045fdb72 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
@@ -66,7 +66,7 @@
* GetSite API to retrieve a `Site` object. Retrieves a `Site` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListSites API to retrieve a list of `Site` objects. Lists `Site` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. CreateSite API to create a `Site` object. Creates a `Site` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchCreateSites API to batch create `Site` objects. Creates `Site` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. UpdateSite API to update a `Site` object. Updates a `Site` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchUpdateSites API to batch update `Site` objects. Batch updates `Site` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -331,7 +331,7 @@ public final Site getSite(@Nullable SiteName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Site` object.
+ * Retrieves a `Site` object.
*
* Sample code:
*
@@ -358,7 +358,7 @@ public final Site getSite(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Site` object.
+ * Retrieves a `Site` object.
*
* Sample code:
*
@@ -386,7 +386,7 @@ public final Site getSite(GetSiteRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Site` object.
+ * Retrieves a `Site` object.
*
* Sample code:
*
@@ -413,7 +413,7 @@ public final UnaryCallable Sample code:
*
@@ -443,7 +443,7 @@ public final ListSitesPagedResponse listSites(@Nullable NetworkName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Site` objects.
+ * Lists `Site` objects.
*
* Sample code:
*
@@ -472,7 +472,7 @@ public final ListSitesPagedResponse listSites(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Site` objects.
+ * Lists `Site` objects.
*
* Sample code:
*
@@ -507,7 +507,7 @@ public final ListSitesPagedResponse listSites(ListSitesRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Site` objects.
+ * Lists `Site` objects.
*
* Sample code:
*
@@ -541,7 +541,7 @@ public final UnaryCallable Sample code:
*
@@ -582,7 +582,7 @@ public final UnaryCallable Sample code:
*
@@ -615,7 +615,7 @@ public final Site createSite(@Nullable NetworkName parent, Site site) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Site` object.
+ * Creates a `Site` object.
*
* Sample code:
*
@@ -645,7 +645,7 @@ public final Site createSite(String parent, Site site) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Site` object.
+ * Creates a `Site` object.
*
* Sample code:
*
@@ -674,7 +674,7 @@ public final Site createSite(CreateSiteRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Site` object.
+ * Creates a `Site` object.
*
* Sample code:
*
@@ -702,7 +702,7 @@ public final UnaryCallable Sample code:
*
@@ -737,7 +737,7 @@ public final BatchCreateSitesResponse batchCreateSites(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Site` objects.
+ * Creates `Site` objects.
*
* Sample code:
*
@@ -769,7 +769,7 @@ public final BatchCreateSitesResponse batchCreateSites(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Site` objects.
+ * Creates `Site` objects.
*
* Sample code:
*
@@ -798,7 +798,7 @@ public final BatchCreateSitesResponse batchCreateSites(BatchCreateSitesRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Site` objects.
+ * Creates `Site` objects.
*
* Sample code:
*
@@ -828,7 +828,7 @@ public final BatchCreateSitesResponse batchCreateSites(BatchCreateSitesRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Site` object.
+ * Updates a `Site` object.
*
* Sample code:
*
@@ -858,7 +858,7 @@ public final Site updateSite(Site site, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Site` object.
+ * Updates a `Site` object.
*
* Sample code:
*
@@ -887,7 +887,7 @@ public final Site updateSite(UpdateSiteRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Site` object.
+ * Updates a `Site` object.
*
* Sample code:
*
@@ -915,7 +915,7 @@ public final UnaryCallable Sample code:
*
@@ -950,7 +950,7 @@ public final BatchUpdateSitesResponse batchUpdateSites(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Site` objects.
+ * Batch updates `Site` objects.
*
* Sample code:
*
@@ -982,7 +982,7 @@ public final BatchUpdateSitesResponse batchUpdateSites(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Site` objects.
+ * Batch updates `Site` objects.
*
* Sample code:
*
@@ -1011,7 +1011,7 @@ public final BatchUpdateSitesResponse batchUpdateSites(BatchUpdateSitesRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Site` objects.
+ * Batch updates `Site` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SlateServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SlateServiceClient.java
new file mode 100644
index 000000000000..a23f8f07cf14
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SlateServiceClient.java
@@ -0,0 +1,1399 @@
+/*
+ * 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.SlateServiceStub;
+import com.google.ads.admanager.v1.stub.SlateServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+import org.jspecify.annotations.Nullable;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `Slate` objects.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the SlateServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * GetSlate Retrieves a `Slate` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getSlate(GetSlateRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getSlate(SlateName name)
+ * getSlate(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. getSlateCallable()
+ * ListSlates Lists `Slate` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listSlates(ListSlatesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listSlates(NetworkName parent)
+ * listSlates(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. listSlatesPagedCallable()
+ * listSlatesCallable()
+ * CreateSlate Creates a `Slate` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createSlate(CreateSlateRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createSlate(NetworkName parent, Slate slate)
+ * createSlate(String parent, Slate slate)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createSlateCallable()
+ * BatchCreateSlates Batch creates `Slate` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateSlates(NetworkName parent, List<CreateSlateRequest> requests)
+ * batchCreateSlates(String parent, List<CreateSlateRequest> requests)
+ * batchCreateSlates(BatchCreateSlatesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateSlatesCallable()
+ * UpdateSlate Updates a `Slate` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateSlate(UpdateSlateRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateSlate(Slate slate, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateSlateCallable()
+ * BatchUpdateSlates Batch updates `Slate` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateSlates(NetworkName parent, List<UpdateSlateRequest> requests)
+ * batchUpdateSlates(String parent, List<UpdateSlateRequest> requests)
+ * batchUpdateSlates(BatchUpdateSlatesRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateSlatesCallable()
+ * BatchArchiveSlates Batch archives `Slate` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchArchiveSlates(BatchArchiveSlatesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchArchiveSlates(NetworkName parent, List<String> names)
+ * batchArchiveSlates(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchArchiveSlatesCallable()
+ * BatchUnarchiveSlates Batch unarchives `Slate` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUnarchiveSlates(BatchUnarchiveSlatesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. batchUnarchiveSlates(NetworkName parent, List<String> names)
+ * batchUnarchiveSlates(String parent, List<String> names)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUnarchiveSlatesCallable()
+ * 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 SlateServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class SlateServiceClient implements BackgroundResource {
+ private final @Nullable SlateServiceSettings settings;
+ private final SlateServiceStub stub;
+
+ /** Constructs an instance of SlateServiceClient with default settings. */
+ public static final SlateServiceClient create() throws IOException {
+ return create(SlateServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of SlateServiceClient, 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 SlateServiceClient create(SlateServiceSettings settings) throws IOException {
+ return new SlateServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of SlateServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(SlateServiceSettings).
+ */
+ public static final SlateServiceClient create(SlateServiceStub stub) {
+ return new SlateServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of SlateServiceClient, 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 SlateServiceClient(SlateServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((SlateServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected SlateServiceClient(SlateServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final @Nullable SlateServiceSettings getSettings() {
+ return settings;
+ }
+
+ public SlateServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `Slate` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The `Slate`'s `name` is used to identify the `Slate` 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 Slate updateSlate(Slate slate, FieldMask updateMask) {
+ UpdateSlateRequest request =
+ UpdateSlateRequest.newBuilder().setSlate(slate).setUpdateMask(updateMask).build();
+ return updateSlate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `Slate` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getSlate:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction UpdateTargetingPreset Updates a `TargetingPreset` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateTargetingPreset(UpdateTargetingPresetRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateTargetingPreset(TargetingPreset targetingPreset, FieldMask updateMask)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateTargetingPresetCallable()
+ * BatchUpdateTargetingPresets Batch updates `TargetingPreset` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateTargetingPresets(NetworkName parent, List<UpdateTargetingPresetRequest> requests)
+ * batchUpdateTargetingPresets(String parent, List<UpdateTargetingPresetRequest> requests)
+ * batchUpdateTargetingPresets(BatchUpdateTargetingPresetsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateTargetingPresetsCallable()
+ * BatchDeactivateTargetingPresets Batch deactivates `TargetingPreset` objects. Sample code:
+ *
+ * The `TargetingPreset`'s `name` is used to identify the `TargetingPreset` 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 TargetingPreset updateTargetingPreset(
+ TargetingPreset targetingPreset, FieldMask updateMask) {
+ UpdateTargetingPresetRequest request =
+ UpdateTargetingPresetRequest.newBuilder()
+ .setTargetingPreset(targetingPreset)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateTargetingPreset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `TargetingPreset` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * GetTeam API to retrieve a `Team` object. Retrieves a `Team` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListTeams API to retrieve a list of `Team` objects. Lists `Team` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. CreateTeam API to create a `Team` object. Creates a `Team` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchCreateTeams API to batch create `Team` objects. Creates `Team` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. UpdateTeam API to update a `Team` object. Updates a `Team` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchUpdateTeams API to batch update `Team` objects. Batch updates `Team` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchActivateTeams API to batch activate `Team` objects. Batch activates `Team` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. BatchDeactivateTeams API to batch deactivate `Team` objects. Batch deactivates `Team` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -331,7 +331,7 @@ public final Team getTeam(@Nullable TeamName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Team` object.
+ * Retrieves a `Team` object.
*
* Sample code:
*
@@ -358,7 +358,7 @@ public final Team getTeam(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Team` object.
+ * Retrieves a `Team` object.
*
* Sample code:
*
@@ -386,7 +386,7 @@ public final Team getTeam(GetTeamRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Team` object.
+ * Retrieves a `Team` object.
*
* Sample code:
*
@@ -413,7 +413,7 @@ public final UnaryCallable Sample code:
*
@@ -443,7 +443,7 @@ public final ListTeamsPagedResponse listTeams(@Nullable NetworkName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Team` objects.
+ * Lists `Team` objects.
*
* Sample code:
*
@@ -472,7 +472,7 @@ public final ListTeamsPagedResponse listTeams(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Team` objects.
+ * Lists `Team` objects.
*
* Sample code:
*
@@ -507,7 +507,7 @@ public final ListTeamsPagedResponse listTeams(ListTeamsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `Team` objects.
+ * Lists `Team` objects.
*
* Sample code:
*
@@ -541,7 +541,7 @@ public final UnaryCallable Sample code:
*
@@ -582,7 +582,7 @@ public final UnaryCallable Sample code:
*
@@ -615,7 +615,7 @@ public final Team createTeam(@Nullable NetworkName parent, Team team) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Team` object.
+ * Creates a `Team` object.
*
* Sample code:
*
@@ -645,7 +645,7 @@ public final Team createTeam(String parent, Team team) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Team` object.
+ * Creates a `Team` object.
*
* Sample code:
*
@@ -674,7 +674,7 @@ public final Team createTeam(CreateTeamRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to create a `Team` object.
+ * Creates a `Team` object.
*
* Sample code:
*
@@ -702,7 +702,7 @@ public final UnaryCallable Sample code:
*
@@ -737,7 +737,7 @@ public final BatchCreateTeamsResponse batchCreateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Team` objects.
+ * Creates `Team` objects.
*
* Sample code:
*
@@ -769,7 +769,7 @@ public final BatchCreateTeamsResponse batchCreateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Team` objects.
+ * Creates `Team` objects.
*
* Sample code:
*
@@ -798,7 +798,7 @@ public final BatchCreateTeamsResponse batchCreateTeams(BatchCreateTeamsRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch create `Team` objects.
+ * Creates `Team` objects.
*
* Sample code:
*
@@ -828,7 +828,7 @@ public final BatchCreateTeamsResponse batchCreateTeams(BatchCreateTeamsRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Team` object.
+ * Updates a `Team` object.
*
* Sample code:
*
@@ -858,7 +858,7 @@ public final Team updateTeam(Team team, FieldMask updateMask) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Team` object.
+ * Updates a `Team` object.
*
* Sample code:
*
@@ -887,7 +887,7 @@ public final Team updateTeam(UpdateTeamRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to update a `Team` object.
+ * Updates a `Team` object.
*
* Sample code:
*
@@ -915,7 +915,7 @@ public final UnaryCallable Sample code:
*
@@ -950,7 +950,7 @@ public final BatchUpdateTeamsResponse batchUpdateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Team` objects.
+ * Batch updates `Team` objects.
*
* Sample code:
*
@@ -982,7 +982,7 @@ public final BatchUpdateTeamsResponse batchUpdateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Team` objects.
+ * Batch updates `Team` objects.
*
* Sample code:
*
@@ -1011,7 +1011,7 @@ public final BatchUpdateTeamsResponse batchUpdateTeams(BatchUpdateTeamsRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch update `Team` objects.
+ * Batch updates `Team` objects.
*
* Sample code:
*
@@ -1041,7 +1041,7 @@ public final BatchUpdateTeamsResponse batchUpdateTeams(BatchUpdateTeamsRequest r
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `Team` objects.
+ * Batch activates `Team` objects.
*
* Sample code:
*
@@ -1075,7 +1075,7 @@ public final BatchActivateTeamsResponse batchActivateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `Team` objects.
+ * Batch activates `Team` objects.
*
* Sample code:
*
@@ -1105,7 +1105,7 @@ public final BatchActivateTeamsResponse batchActivateTeams(String parent, List Sample code:
*
@@ -1164,7 +1164,7 @@ public final BatchActivateTeamsResponse batchActivateTeams(BatchActivateTeamsReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch deactivate `Team` objects.
+ * Batch deactivates `Team` objects.
*
* Sample code:
*
@@ -1198,7 +1198,7 @@ public final BatchDeactivateTeamsResponse batchDeactivateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch deactivate `Team` objects.
+ * Batch deactivates `Team` objects.
*
* Sample code:
*
@@ -1229,7 +1229,7 @@ public final BatchDeactivateTeamsResponse batchDeactivateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch deactivate `Team` objects.
+ * Batch deactivates `Team` objects.
*
* Sample code:
*
@@ -1259,7 +1259,7 @@ public final BatchDeactivateTeamsResponse batchDeactivateTeams(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch deactivate `Team` objects.
+ * Batch deactivates `Team` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ThirdPartyCompanyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ThirdPartyCompanyServiceClient.java
index 3ea2126a3840..eaf6c4e6b8a7 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ThirdPartyCompanyServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ThirdPartyCompanyServiceClient.java
@@ -69,7 +69,7 @@
* GetThirdPartyCompany API to retrieve a `ThirdPartyCompany` object. Retrieves a `ThirdPartyCompany` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. ListThirdPartyCompanies API to retrieve a list of `ThirdPartyCompany` objects. Lists `ThirdPartyCompany` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -236,7 +236,7 @@ public final ThirdPartyCompany getThirdPartyCompany(@Nullable ThirdPartyCompanyN
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `ThirdPartyCompany` object.
+ * Retrieves a `ThirdPartyCompany` object.
*
* Sample code:
*
@@ -265,7 +265,7 @@ public final ThirdPartyCompany getThirdPartyCompany(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `ThirdPartyCompany` object.
+ * Retrieves a `ThirdPartyCompany` object.
*
* Sample code:
*
@@ -295,7 +295,7 @@ public final ThirdPartyCompany getThirdPartyCompany(GetThirdPartyCompanyRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `ThirdPartyCompany` object.
+ * Retrieves a `ThirdPartyCompany` object.
*
* Sample code:
*
@@ -326,7 +326,7 @@ public final ThirdPartyCompany getThirdPartyCompany(GetThirdPartyCompanyRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ThirdPartyCompany` objects.
+ * Lists `ThirdPartyCompany` objects.
*
* Sample code:
*
@@ -361,7 +361,7 @@ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ThirdPartyCompany` objects.
+ * Lists `ThirdPartyCompany` objects.
*
* Sample code:
*
@@ -393,7 +393,7 @@ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(String
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ThirdPartyCompany` objects.
+ * Lists `ThirdPartyCompany` objects.
*
* Sample code:
*
@@ -431,7 +431,7 @@ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ThirdPartyCompany` objects.
+ * Lists `ThirdPartyCompany` objects.
*
* Sample code:
*
@@ -468,7 +468,7 @@ public final ListThirdPartyCompaniesPagedResponse listThirdPartyCompanies(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `ThirdPartyCompany` objects.
+ * Lists `ThirdPartyCompany` objects.
*
* Sample code:
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java
index 9c716a86b3f0..9d0cf65189cd 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java
@@ -57,7 +57,7 @@
* GetUser API to retrieve a User object.
+ * Retrieves a `User` object.
* To get the current user, the resource name `networks/{networkCode}/users/me` can be used. Request object method variants only take one parameter, a request object, which must be constructed before the call. To get the current user, the resource name `networks/{networkCode}/users/me` can be used.
*
@@ -198,7 +198,7 @@ public final User getUser(@Nullable UserName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a User object.
+ * Retrieves a `User` object.
*
* To get the current user, the resource name `networks/{networkCode}/users/me` can be used.
*
@@ -227,7 +227,7 @@ public final User getUser(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a User object.
+ * Retrieves a `User` object.
*
* To get the current user, the resource name `networks/{networkCode}/users/me` can be used.
*
@@ -257,7 +257,7 @@ public final User getUser(GetUserRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a User object.
+ * Retrieves a `User` object.
*
* To get the current user, the resource name `networks/{networkCode}/users/me` can be used.
*
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json
index 837d025887a5..daccc3f0c00e 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json
@@ -364,6 +364,12 @@
"grpc": {
"libraryClient": "ContentBundleServiceClient",
"rpcs": {
+ "BatchActivateContentBundles": {
+ "methods": ["batchActivateContentBundles", "batchActivateContentBundles", "batchActivateContentBundles", "batchActivateContentBundlesCallable"]
+ },
+ "BatchDeactivateContentBundles": {
+ "methods": ["batchDeactivateContentBundles", "batchDeactivateContentBundles", "batchDeactivateContentBundles", "batchDeactivateContentBundlesCallable"]
+ },
"GetContentBundle": {
"methods": ["getContentBundle", "getContentBundle", "getContentBundle", "getContentBundleCallable"]
},
@@ -404,6 +410,27 @@
}
}
},
+ "CreativeSetService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "CreativeSetServiceClient",
+ "rpcs": {
+ "CreateCreativeSet": {
+ "methods": ["createCreativeSet", "createCreativeSet", "createCreativeSet", "createCreativeSetCallable"]
+ },
+ "GetCreativeSet": {
+ "methods": ["getCreativeSet", "getCreativeSet", "getCreativeSet", "getCreativeSetCallable"]
+ },
+ "ListCreativeSets": {
+ "methods": ["listCreativeSets", "listCreativeSets", "listCreativeSets", "listCreativeSetsPagedCallable", "listCreativeSetsCallable"]
+ },
+ "UpdateCreativeSet": {
+ "methods": ["updateCreativeSet", "updateCreativeSet", "updateCreativeSetCallable"]
+ }
+ }
+ }
+ }
+ },
"CreativeTemplateService": {
"clients": {
"grpc": {
@@ -817,6 +844,60 @@
"grpc": {
"libraryClient": "OrderServiceClient",
"rpcs": {
+ "BatchApproveAndOverbookOrders": {
+ "methods": ["batchApproveAndOverbookOrders", "batchApproveAndOverbookOrders", "batchApproveAndOverbookOrders", "batchApproveAndOverbookOrdersCallable"]
+ },
+ "BatchApproveOrders": {
+ "methods": ["batchApproveOrders", "batchApproveOrders", "batchApproveOrders", "batchApproveOrdersCallable"]
+ },
+ "BatchApproveOrdersWithoutReservation": {
+ "methods": ["batchApproveOrdersWithoutReservation", "batchApproveOrdersWithoutReservation", "batchApproveOrdersWithoutReservation", "batchApproveOrdersWithoutReservationCallable"]
+ },
+ "BatchArchiveOrders": {
+ "methods": ["batchArchiveOrders", "batchArchiveOrders", "batchArchiveOrders", "batchArchiveOrdersCallable"]
+ },
+ "BatchCreateOrders": {
+ "methods": ["batchCreateOrders", "batchCreateOrders", "batchCreateOrders", "batchCreateOrdersCallable"]
+ },
+ "BatchDeleteOrders": {
+ "methods": ["batchDeleteOrders", "batchDeleteOrders", "batchDeleteOrders", "batchDeleteOrdersCallable"]
+ },
+ "BatchDisapproveOrders": {
+ "methods": ["batchDisapproveOrders", "batchDisapproveOrders", "batchDisapproveOrders", "batchDisapproveOrdersCallable"]
+ },
+ "BatchDisapproveOrdersWithoutReservationChanges": {
+ "methods": ["batchDisapproveOrdersWithoutReservationChanges", "batchDisapproveOrdersWithoutReservationChanges", "batchDisapproveOrdersWithoutReservationChanges", "batchDisapproveOrdersWithoutReservationChangesCallable"]
+ },
+ "BatchPauseOrders": {
+ "methods": ["batchPauseOrders", "batchPauseOrders", "batchPauseOrders", "batchPauseOrdersCallable"]
+ },
+ "BatchResumeAndOverbookOrders": {
+ "methods": ["batchResumeAndOverbookOrders", "batchResumeAndOverbookOrders", "batchResumeAndOverbookOrders", "batchResumeAndOverbookOrdersCallable"]
+ },
+ "BatchResumeOrders": {
+ "methods": ["batchResumeOrders", "batchResumeOrders", "batchResumeOrders", "batchResumeOrdersCallable"]
+ },
+ "BatchRetractOrders": {
+ "methods": ["batchRetractOrders", "batchRetractOrders", "batchRetractOrders", "batchRetractOrdersCallable"]
+ },
+ "BatchRetractOrdersWithoutReservationChanges": {
+ "methods": ["batchRetractOrdersWithoutReservationChanges", "batchRetractOrdersWithoutReservationChanges", "batchRetractOrdersWithoutReservationChanges", "batchRetractOrdersWithoutReservationChangesCallable"]
+ },
+ "BatchSubmitOrdersForApproval": {
+ "methods": ["batchSubmitOrdersForApproval", "batchSubmitOrdersForApproval", "batchSubmitOrdersForApproval", "batchSubmitOrdersForApprovalCallable"]
+ },
+ "BatchSubmitOrdersForApprovalAndOverbook": {
+ "methods": ["batchSubmitOrdersForApprovalAndOverbook", "batchSubmitOrdersForApprovalAndOverbook", "batchSubmitOrdersForApprovalAndOverbook", "batchSubmitOrdersForApprovalAndOverbookCallable"]
+ },
+ "BatchSubmitOrdersForApprovalWithoutReservationChanges": {
+ "methods": ["batchSubmitOrdersForApprovalWithoutReservationChanges", "batchSubmitOrdersForApprovalWithoutReservationChanges", "batchSubmitOrdersForApprovalWithoutReservationChanges", "batchSubmitOrdersForApprovalWithoutReservationChangesCallable"]
+ },
+ "BatchUnarchiveOrders": {
+ "methods": ["batchUnarchiveOrders", "batchUnarchiveOrders", "batchUnarchiveOrders", "batchUnarchiveOrdersCallable"]
+ },
+ "BatchUpdateOrders": {
+ "methods": ["batchUpdateOrders", "batchUpdateOrders", "batchUpdateOrders", "batchUpdateOrdersCallable"]
+ },
"GetOrder": {
"methods": ["getOrder", "getOrder", "getOrder", "getOrderCallable"]
},
@@ -1010,6 +1091,39 @@
}
}
},
+ "SlateService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "SlateServiceClient",
+ "rpcs": {
+ "BatchArchiveSlates": {
+ "methods": ["batchArchiveSlates", "batchArchiveSlates", "batchArchiveSlates", "batchArchiveSlatesCallable"]
+ },
+ "BatchCreateSlates": {
+ "methods": ["batchCreateSlates", "batchCreateSlates", "batchCreateSlates", "batchCreateSlatesCallable"]
+ },
+ "BatchUnarchiveSlates": {
+ "methods": ["batchUnarchiveSlates", "batchUnarchiveSlates", "batchUnarchiveSlates", "batchUnarchiveSlatesCallable"]
+ },
+ "BatchUpdateSlates": {
+ "methods": ["batchUpdateSlates", "batchUpdateSlates", "batchUpdateSlates", "batchUpdateSlatesCallable"]
+ },
+ "CreateSlate": {
+ "methods": ["createSlate", "createSlate", "createSlate", "createSlateCallable"]
+ },
+ "GetSlate": {
+ "methods": ["getSlate", "getSlate", "getSlate", "getSlateCallable"]
+ },
+ "ListSlates": {
+ "methods": ["listSlates", "listSlates", "listSlates", "listSlatesPagedCallable", "listSlatesCallable"]
+ },
+ "UpdateSlate": {
+ "methods": ["updateSlate", "updateSlate", "updateSlateCallable"]
+ }
+ }
+ }
+ }
+ },
"SuggestedAdUnitService": {
"clients": {
"grpc": {
@@ -1039,6 +1153,9 @@
"BatchDeactivateTargetingPresets": {
"methods": ["batchDeactivateTargetingPresets", "batchDeactivateTargetingPresets", "batchDeactivateTargetingPresets", "batchDeactivateTargetingPresetsCallable"]
},
+ "BatchUpdateTargetingPresets": {
+ "methods": ["batchUpdateTargetingPresets", "batchUpdateTargetingPresets", "batchUpdateTargetingPresets", "batchUpdateTargetingPresetsCallable"]
+ },
"CreateTargetingPreset": {
"methods": ["createTargetingPreset", "createTargetingPreset", "createTargetingPreset", "createTargetingPresetCallable"]
},
@@ -1047,6 +1164,9 @@
},
"ListTargetingPresets": {
"methods": ["listTargetingPresets", "listTargetingPresets", "listTargetingPresets", "listTargetingPresetsPagedCallable", "listTargetingPresetsCallable"]
+ },
+ "UpdateTargetingPreset": {
+ "methods": ["updateTargetingPreset", "updateTargetingPreset", "updateTargetingPresetCallable"]
}
}
}
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java
index e5c186fa41ef..29badacea3a1 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java
@@ -353,6 +353,24 @@
* }
* }
*
+ * ======================= CreativeSetServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `CreativeSet` objects.
+ *
+ * Sample for CreativeSetServiceClient:
+ *
+ * ======================= CreativeTemplateServiceClient =======================
*
* Service Description: Provides methods for handling `CreativeTemplate` objects.
@@ -905,6 +923,24 @@
* }
* }
*
+ * ======================= SlateServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `Slate` objects.
+ *
+ * Sample for SlateServiceClient:
+ *
+ * ======================= SuggestedAdUnitServiceClient =======================
*
* Service Description: Provides methods for handling `SuggestedAdUnit` objects.
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java
index 6991386f2a1b..1ac611cff1d5 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStub.java
@@ -18,6 +18,10 @@
import static com.google.ads.admanager.v1.ContentBundleServiceClient.ListContentBundlesPagedResponse;
+import com.google.ads.admanager.v1.BatchActivateContentBundlesRequest;
+import com.google.ads.admanager.v1.BatchActivateContentBundlesResponse;
+import com.google.ads.admanager.v1.BatchDeactivateContentBundlesRequest;
+import com.google.ads.admanager.v1.BatchDeactivateContentBundlesResponse;
import com.google.ads.admanager.v1.ContentBundle;
import com.google.ads.admanager.v1.GetContentBundleRequest;
import com.google.ads.admanager.v1.ListContentBundlesRequest;
@@ -51,6 +55,18 @@ public UnaryCallable This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class CreativeSetServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getCreativeSet:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class HttpJsonCreativeSetServiceCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class HttpJsonCreativeSetServiceStub extends CreativeSetServiceStub {
+ private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
+
+ private static final ApiMethodDescriptor
*
*
- *
+ *
*
*
@@ -182,7 +182,7 @@ public McmEarningsServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a list of `McmEarnings` objects.
+ * Lists `McmEarnings` objects.
*
*
*
*
- *
+ *
*
*
@@ -84,7 +84,7 @@
*
*
+ *
- *
+ *
*
*
*
@@ -191,7 +191,7 @@ public NetworkServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a Network object.
+ * Retrieves a `Network` object.
*
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `Orders` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateOrderRequest must match this field.
+ * @param requests Required. The `Order` 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 BatchCreateOrdersResponse batchCreateOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `Orders` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateOrderRequest must match this field.
+ * @param requests Required. The `Order` 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 BatchCreateOrdersResponse batchCreateOrders(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchCreateOrdersRequest request =
+ * BatchCreateOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateOrdersResponse batchCreateOrders(BatchCreateOrdersRequest request) {
+ return batchCreateOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchCreateOrdersRequest request =
+ * BatchCreateOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `Orders` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateOrderRequest must match this field.
+ * @param requests Required. The `Order` 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 BatchUpdateOrdersResponse batchUpdateOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `Orders` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateOrderRequest must match this field.
+ * @param requests Required. The `Order` 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 BatchUpdateOrdersResponse batchUpdateOrders(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchUpdateOrdersRequest request =
+ * BatchUpdateOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateOrdersResponse batchUpdateOrders(BatchUpdateOrdersRequest request) {
+ return batchUpdateOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchUpdateOrdersRequest request =
+ * BatchUpdateOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to approve. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveOrdersResponse batchApproveOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to approve. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveOrdersResponse batchApproveOrders(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchApproveOrdersRequest request =
+ * BatchApproveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveOrdersResponse batchApproveOrders(BatchApproveOrdersRequest request) {
+ return batchApproveOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchApproveOrdersRequest request =
+ * BatchApproveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to approve and overbook. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveAndOverbookOrdersResponse batchApproveAndOverbookOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to approve and overbook. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveAndOverbookOrdersResponse batchApproveAndOverbookOrders(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchApproveAndOverbookOrdersRequest request =
+ * BatchApproveAndOverbookOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveAndOverbookOrdersResponse batchApproveAndOverbookOrders(
+ BatchApproveAndOverbookOrdersRequest request) {
+ return batchApproveAndOverbookOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves and overbooks a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchApproveAndOverbookOrdersRequest request =
+ * BatchApproveAndOverbookOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchApproveAndOverbookOrdersRequest, BatchApproveAndOverbookOrdersResponse>
+ batchApproveAndOverbookOrdersCallable() {
+ return stub.batchApproveAndOverbookOrdersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a list of `Order` objects for approval.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to submit for approval. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalResponse batchSubmitOrdersForApproval(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to submit for approval. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalResponse batchSubmitOrdersForApproval(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchSubmitOrdersForApprovalRequest request =
+ * BatchSubmitOrdersForApprovalRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalResponse batchSubmitOrdersForApproval(
+ BatchSubmitOrdersForApprovalRequest request) {
+ return batchSubmitOrdersForApprovalCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a list of `Order` objects for approval.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchSubmitOrdersForApprovalRequest request =
+ * BatchSubmitOrdersForApprovalRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchSubmitOrdersForApprovalRequest, BatchSubmitOrdersForApprovalResponse>
+ batchSubmitOrdersForApprovalCallable() {
+ return stub.batchSubmitOrdersForApprovalCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits and overbooks a list of `Order` objects for approval.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the orders to submit for approval and overbook.
+ * Format: `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalAndOverbookResponse
+ batchSubmitOrdersForApprovalAndOverbook(@Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. Format: `networks/{network_code}`
+ * @param names Required. The resource names of the orders to submit for approval and overbook.
+ * Format: `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalAndOverbookResponse
+ batchSubmitOrdersForApprovalAndOverbook(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchSubmitOrdersForApprovalAndOverbookRequest request =
+ * BatchSubmitOrdersForApprovalAndOverbookRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalAndOverbookResponse
+ batchSubmitOrdersForApprovalAndOverbook(
+ BatchSubmitOrdersForApprovalAndOverbookRequest request) {
+ return batchSubmitOrdersForApprovalAndOverbookCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits and overbooks a list of `Order` objects for approval.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchSubmitOrdersForApprovalAndOverbookRequest request =
+ * BatchSubmitOrdersForApprovalAndOverbookRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchSubmitOrdersForApprovalAndOverbookRequest,
+ BatchSubmitOrdersForApprovalAndOverbookResponse>
+ batchSubmitOrdersForApprovalAndOverbookCallable() {
+ return stub.batchSubmitOrdersForApprovalAndOverbookCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a list of `Order` objects for approval without changing reservation status.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to submit for approval. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalWithoutReservationChangesResponse
+ batchSubmitOrdersForApprovalWithoutReservationChanges(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to submit for approval. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalWithoutReservationChangesResponse
+ batchSubmitOrdersForApprovalWithoutReservationChanges(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request =
+ * BatchSubmitOrdersForApprovalWithoutReservationChangesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchSubmitOrdersForApprovalWithoutReservationChangesResponse
+ batchSubmitOrdersForApprovalWithoutReservationChanges(
+ BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request) {
+ return batchSubmitOrdersForApprovalWithoutReservationChangesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Submits a list of `Order` objects for approval without changing reservation status.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchSubmitOrdersForApprovalWithoutReservationChangesRequest request =
+ * BatchSubmitOrdersForApprovalWithoutReservationChangesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchSubmitOrdersForApprovalWithoutReservationChangesRequest,
+ BatchSubmitOrdersForApprovalWithoutReservationChangesResponse>
+ batchSubmitOrdersForApprovalWithoutReservationChangesCallable() {
+ return stub.batchSubmitOrdersForApprovalWithoutReservationChangesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Pauses a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to pause. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseOrdersResponse batchPauseOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to pause. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseOrdersResponse batchPauseOrders(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchPauseOrdersRequest request =
+ * BatchPauseOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchPauseOrdersResponse batchPauseOrders(BatchPauseOrdersRequest request) {
+ return batchPauseOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Pauses a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchPauseOrdersRequest request =
+ * BatchPauseOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to resume. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchResumeOrdersResponse batchResumeOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to resume. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchResumeOrdersResponse batchResumeOrders(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchResumeOrdersRequest request =
+ * BatchResumeOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchResumeOrdersResponse batchResumeOrders(BatchResumeOrdersRequest request) {
+ return batchResumeOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Resumes a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchResumeOrdersRequest request =
+ * BatchResumeOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to resume and overbook. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchResumeAndOverbookOrdersResponse batchResumeAndOverbookOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to resume and overbook. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchResumeAndOverbookOrdersResponse batchResumeAndOverbookOrders(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchResumeAndOverbookOrdersRequest request =
+ * BatchResumeAndOverbookOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchResumeAndOverbookOrdersResponse batchResumeAndOverbookOrders(
+ BatchResumeAndOverbookOrdersRequest request) {
+ return batchResumeAndOverbookOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Resumes and overbooks a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchResumeAndOverbookOrdersRequest request =
+ * BatchResumeAndOverbookOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchResumeAndOverbookOrdersRequest, BatchResumeAndOverbookOrdersResponse>
+ batchResumeAndOverbookOrdersCallable() {
+ return stub.batchResumeAndOverbookOrdersCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a list of `Order` objects without changing reservation status.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to approve. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveOrdersWithoutReservationResponse batchApproveOrdersWithoutReservation(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to approve. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveOrdersWithoutReservationResponse batchApproveOrdersWithoutReservation(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchApproveOrdersWithoutReservationRequest request =
+ * BatchApproveOrdersWithoutReservationRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchApproveOrdersWithoutReservationResponse batchApproveOrdersWithoutReservation(
+ BatchApproveOrdersWithoutReservationRequest request) {
+ return batchApproveOrdersWithoutReservationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Approves a list of `Order` objects without changing reservation status.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchApproveOrdersWithoutReservationRequest request =
+ * BatchApproveOrdersWithoutReservationRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchApproveOrdersWithoutReservationRequest, BatchApproveOrdersWithoutReservationResponse>
+ batchApproveOrdersWithoutReservationCallable() {
+ return stub.batchApproveOrdersWithoutReservationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to archive. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveOrdersResponse batchArchiveOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to archive. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveOrdersResponse batchArchiveOrders(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchArchiveOrdersRequest request =
+ * BatchArchiveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveOrdersResponse batchArchiveOrders(BatchArchiveOrdersRequest request) {
+ return batchArchiveOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchArchiveOrdersRequest request =
+ * BatchArchiveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to extract. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveOrdersResponse batchUnarchiveOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to extract. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveOrdersResponse batchUnarchiveOrders(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchUnarchiveOrdersRequest request =
+ * BatchUnarchiveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveOrdersResponse batchUnarchiveOrders(
+ BatchUnarchiveOrdersRequest request) {
+ return batchUnarchiveOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Unarchives a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchUnarchiveOrdersRequest request =
+ * BatchUnarchiveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to delete. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeleteOrdersResponse batchDeleteOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to delete. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeleteOrdersResponse batchDeleteOrders(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchDeleteOrdersRequest request =
+ * BatchDeleteOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDeleteOrdersResponse batchDeleteOrders(BatchDeleteOrdersRequest request) {
+ return batchDeleteOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchDeleteOrdersRequest request =
+ * BatchDeleteOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to disapprove. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDisapproveOrdersResponse batchDisapproveOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to disapprove. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDisapproveOrdersResponse batchDisapproveOrders(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchDisapproveOrdersRequest request =
+ * BatchDisapproveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDisapproveOrdersResponse batchDisapproveOrders(
+ BatchDisapproveOrdersRequest request) {
+ return batchDisapproveOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Disapproves a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchDisapproveOrdersRequest request =
+ * BatchDisapproveOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to disapprove without reservation
+ * changes. Format: `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDisapproveOrdersWithoutReservationChangesResponse
+ batchDisapproveOrdersWithoutReservationChanges(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to disapprove without reservation
+ * changes. Format: `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDisapproveOrdersWithoutReservationChangesResponse
+ batchDisapproveOrdersWithoutReservationChanges(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchDisapproveOrdersWithoutReservationChangesRequest request =
+ * BatchDisapproveOrdersWithoutReservationChangesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchDisapproveOrdersWithoutReservationChangesResponse
+ batchDisapproveOrdersWithoutReservationChanges(
+ BatchDisapproveOrdersWithoutReservationChangesRequest request) {
+ return batchDisapproveOrdersWithoutReservationChangesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Disapproves a list of `Order` objects without changing reservation status.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchDisapproveOrdersWithoutReservationChangesRequest request =
+ * BatchDisapproveOrdersWithoutReservationChangesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchDisapproveOrdersWithoutReservationChangesRequest,
+ BatchDisapproveOrdersWithoutReservationChangesResponse>
+ batchDisapproveOrdersWithoutReservationChangesCallable() {
+ return stub.batchDisapproveOrdersWithoutReservationChangesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retracts a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to retract. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRetractOrdersResponse batchRetractOrders(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to retract. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRetractOrdersResponse batchRetractOrders(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchRetractOrdersRequest request =
+ * BatchRetractOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRetractOrdersResponse batchRetractOrders(BatchRetractOrdersRequest request) {
+ return batchRetractOrdersCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retracts a list of `Order` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchRetractOrdersRequest request =
+ * BatchRetractOrdersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to retract. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRetractOrdersWithoutReservationChangesResponse
+ batchRetractOrdersWithoutReservationChanges(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent, which owns this collection of Orders. Format:
+ * `networks/{network_code}`
+ * @param names Required. The resource names of the orders to retract. Format:
+ * `networks/{network_code}/orders/{order_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRetractOrdersWithoutReservationChangesResponse
+ batchRetractOrdersWithoutReservationChanges(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchRetractOrdersWithoutReservationChangesRequest request =
+ * BatchRetractOrdersWithoutReservationChangesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchRetractOrdersWithoutReservationChangesResponse
+ batchRetractOrdersWithoutReservationChanges(
+ BatchRetractOrdersWithoutReservationChangesRequest request) {
+ return batchRetractOrdersWithoutReservationChangesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retracts a list of `Order` objects without changing reservation status.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OrderServiceClient orderServiceClient = OrderServiceClient.create()) {
+ * BatchRetractOrdersWithoutReservationChangesRequest request =
+ * BatchRetractOrdersWithoutReservationChangesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchRetractOrdersWithoutReservationChangesRequest,
+ BatchRetractOrdersWithoutReservationChangesResponse>
+ batchRetractOrdersWithoutReservationChangesCallable() {
+ return stub.batchRetractOrdersWithoutReservationChangesCallable();
+ }
+
@Override
public final void close() {
stub.close();
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java
index b3fde133d553..fdf569031643 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java
@@ -99,6 +99,144 @@ public UnaryCallSettings
*
*
- *
+ *
*
*
@@ -89,7 +89,7 @@
*
*
*
- *
+ *
*
*
@@ -109,7 +109,7 @@
*
*
*
- *
+ *
*
*
@@ -128,7 +128,7 @@
*
*
*
- *
+ *
*
*
@@ -288,7 +288,7 @@ public final OperationsClient getHttpJsonOperationsClient() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Report` object.
+ * Retrieves a `Report` object.
*
*
*
*
- *
+ *
*
*
@@ -84,7 +84,7 @@
*
*
*
- *
+ *
*
*
@@ -195,7 +195,7 @@ public RoleServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Role` object.
+ * Retrieves a `Role` object.
*
*
*
*
- *
+ *
*
*
@@ -85,7 +85,7 @@
*
*
*
- *
+ *
*
*
@@ -105,7 +105,7 @@
*
*
*
- *
+ *
*
*
@@ -124,7 +124,7 @@
*
*
*
- *
+ *
*
*
@@ -140,7 +140,7 @@
*
*
*
- *
+ *
*
*
@@ -158,7 +158,7 @@
*
*
*
- *
+ *
*
*
*
@@ -303,7 +303,7 @@ public SiteServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Site` object.
+ * Retrieves a `Site` object.
*
*
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * SlateName name = SlateName.of("[NETWORK_CODE]", "[SLATE]");
+ * Slate response = slateServiceClient.getSlate(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SlateServiceSettings slateServiceSettings =
+ * SlateServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * SlateServiceClient slateServiceClient = SlateServiceClient.create(slateServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SlateServiceSettings slateServiceSettings =
+ * SlateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SlateServiceClient slateServiceClient = SlateServiceClient.create(slateServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * SlateName name = SlateName.of("[NETWORK_CODE]", "[SLATE]");
+ * Slate response = slateServiceClient.getSlate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Slate to retrieve. Format:
+ * `networks/{network_code}/slates/{slate_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Slate getSlate(@Nullable SlateName name) {
+ GetSlateRequest request =
+ GetSlateRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSlate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String name = SlateName.of("[NETWORK_CODE]", "[SLATE]").toString();
+ * Slate response = slateServiceClient.getSlate(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Slate to retrieve. Format:
+ * `networks/{network_code}/slates/{slate_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Slate getSlate(String name) {
+ GetSlateRequest request = GetSlateRequest.newBuilder().setName(name).build();
+ return getSlate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * GetSlateRequest request =
+ * GetSlateRequest.newBuilder()
+ * .setName(SlateName.of("[NETWORK_CODE]", "[SLATE]").toString())
+ * .build();
+ * Slate response = slateServiceClient.getSlate(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 Slate getSlate(GetSlateRequest request) {
+ return getSlateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * GetSlateRequest request =
+ * GetSlateRequest.newBuilder()
+ * .setName(SlateName.of("[NETWORK_CODE]", "[SLATE]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Slate element : slateServiceClient.listSlates(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource containing the Slates. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSlatesPagedResponse listSlates(@Nullable NetworkName parent) {
+ ListSlatesRequest request =
+ ListSlatesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listSlates(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Slate element : slateServiceClient.listSlates(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource containing the Slates. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListSlatesPagedResponse listSlates(String parent) {
+ ListSlatesRequest request = ListSlatesRequest.newBuilder().setParent(parent).build();
+ return listSlates(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * ListSlatesRequest request =
+ * ListSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Slate element : slateServiceClient.listSlates(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 ListSlatesPagedResponse listSlates(ListSlatesRequest request) {
+ return listSlatesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * ListSlatesRequest request =
+ * ListSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * ListSlatesRequest request =
+ * ListSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListSlatesResponse response = slateServiceClient.listSlatesCallable().call(request);
+ * for (Slate element : response.getSlatesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * Slate slate = Slate.newBuilder().build();
+ * Slate response = slateServiceClient.createSlate(parent, slate);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Slate` will be created. Format:
+ * `networks/{network_code}`
+ * @param slate Required. The `Slate` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Slate createSlate(@Nullable NetworkName parent, Slate slate) {
+ CreateSlateRequest request =
+ CreateSlateRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setSlate(slate)
+ .build();
+ return createSlate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * Slate slate = Slate.newBuilder().build();
+ * Slate response = slateServiceClient.createSlate(parent, slate);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Slate` will be created. Format:
+ * `networks/{network_code}`
+ * @param slate Required. The `Slate` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Slate createSlate(String parent, Slate slate) {
+ CreateSlateRequest request =
+ CreateSlateRequest.newBuilder().setParent(parent).setSlate(slate).build();
+ return createSlate(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * CreateSlateRequest request =
+ * CreateSlateRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setSlate(Slate.newBuilder().build())
+ * .build();
+ * Slate response = slateServiceClient.createSlate(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 Slate createSlate(CreateSlateRequest request) {
+ return createSlateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * CreateSlateRequest request =
+ * CreateSlateRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setSlate(Slate.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `Slates` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateSlateRequest must match this field.
+ * @param requests Required. The `Slate` 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 BatchCreateSlatesResponse batchCreateSlates(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `Slates` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateSlateRequest must match this field.
+ * @param requests Required. The `Slate` 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 BatchCreateSlatesResponse batchCreateSlates(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchCreateSlatesRequest request =
+ * BatchCreateSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchCreateSlatesResponse batchCreateSlates(BatchCreateSlatesRequest request) {
+ return batchCreateSlatesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch creates `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchCreateSlatesRequest request =
+ * BatchCreateSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * Slate slate = Slate.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Slate response = slateServiceClient.updateSlate(slate, updateMask);
+ * }
+ * }
+ *
+ * @param slate Required. The `Slate` to update.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * UpdateSlateRequest request =
+ * UpdateSlateRequest.newBuilder()
+ * .setSlate(Slate.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Slate response = slateServiceClient.updateSlate(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 Slate updateSlate(UpdateSlateRequest request) {
+ return updateSlateCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `Slate` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * UpdateSlateRequest request =
+ * UpdateSlateRequest.newBuilder()
+ * .setSlate(Slate.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `Slates` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateSlateRequest must match this field.
+ * @param requests Required. The `Slate` 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 BatchUpdateSlatesResponse batchUpdateSlates(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `Slates` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateSlateRequest must match this field.
+ * @param requests Required. The `Slate` 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 BatchUpdateSlatesResponse batchUpdateSlates(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchUpdateSlatesRequest request =
+ * BatchUpdateSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateSlatesResponse batchUpdateSlates(BatchUpdateSlatesRequest request) {
+ return batchUpdateSlatesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchUpdateSlatesRequest request =
+ * BatchUpdateSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource containing the slates. Format:
+ * "networks/{network_code}"
+ * @param names Required. The resource names of the slates to archive. Format:
+ * "networks/{network_code}/slates/{slate_id}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveSlatesResponse batchArchiveSlates(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource containing the slates. Format:
+ * "networks/{network_code}"
+ * @param names Required. The resource names of the slates to archive. Format:
+ * "networks/{network_code}/slates/{slate_id}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveSlatesResponse batchArchiveSlates(String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchArchiveSlatesRequest request =
+ * BatchArchiveSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchArchiveSlatesResponse batchArchiveSlates(BatchArchiveSlatesRequest request) {
+ return batchArchiveSlatesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch archives `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchArchiveSlatesRequest request =
+ * BatchArchiveSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource containing the slates. Format:
+ * "networks/{network_code}"
+ * @param names Required. The resource names of the slates to unarchive. Format:
+ * "networks/{network_code}/slates/{slate_id}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveSlatesResponse batchUnarchiveSlates(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource containing the slates. Format:
+ * "networks/{network_code}"
+ * @param names Required. The resource names of the slates to unarchive. Format:
+ * "networks/{network_code}/slates/{slate_id}"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveSlatesResponse batchUnarchiveSlates(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchUnarchiveSlatesRequest request =
+ * BatchUnarchiveSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUnarchiveSlatesResponse batchUnarchiveSlates(
+ BatchUnarchiveSlatesRequest request) {
+ return batchUnarchiveSlatesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch unarchives `Slate` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * BatchUnarchiveSlatesRequest request =
+ * BatchUnarchiveSlatesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllNames(new ArrayList
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SlateServiceSettings.Builder slateServiceSettingsBuilder = SlateServiceSettings.newBuilder();
+ * slateServiceSettingsBuilder
+ * .getSlateSettings()
+ * .setRetrySettings(
+ * slateServiceSettingsBuilder
+ * .getSlateSettings()
+ * .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());
+ * SlateServiceSettings slateServiceSettings = slateServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class SlateServiceSettings extends ClientSettings
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
*
@@ -836,6 +871,243 @@ public final BatchCreateTargetingPresetsResponse batchCreateTargetingPresets(
return stub.batchCreateTargetingPresetsCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `TargetingPreset` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * TargetingPreset targetingPreset = TargetingPreset.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * TargetingPreset response =
+ * targetingPresetServiceClient.updateTargetingPreset(targetingPreset, updateMask);
+ * }
+ * }
+ *
+ * @param targetingPreset Required. The `TargetingPreset` to update.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * UpdateTargetingPresetRequest request =
+ * UpdateTargetingPresetRequest.newBuilder()
+ * .setTargetingPreset(TargetingPreset.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * TargetingPreset response = targetingPresetServiceClient.updateTargetingPreset(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TargetingPreset updateTargetingPreset(UpdateTargetingPresetRequest request) {
+ return updateTargetingPresetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a `TargetingPreset` object.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * UpdateTargetingPresetRequest request =
+ * UpdateTargetingPresetRequest.newBuilder()
+ * .setTargetingPreset(TargetingPreset.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `TargetingPresets` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateTargetingPresetRequest must match
+ * this field.
+ * @param requests Required. The `TargetingPreset` 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 BatchUpdateTargetingPresetsResponse batchUpdateTargetingPresets(
+ @Nullable NetworkName parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `TargetingPresets` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateTargetingPresetRequest must match
+ * this field.
+ * @param requests Required. The `TargetingPreset` 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 BatchUpdateTargetingPresetsResponse batchUpdateTargetingPresets(
+ String parent, List{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * BatchUpdateTargetingPresetsRequest request =
+ * BatchUpdateTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BatchUpdateTargetingPresetsResponse batchUpdateTargetingPresets(
+ BatchUpdateTargetingPresetsRequest request) {
+ return batchUpdateTargetingPresetsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch updates `TargetingPreset` objects.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (TargetingPresetServiceClient targetingPresetServiceClient =
+ * TargetingPresetServiceClient.create()) {
+ * BatchUpdateTargetingPresetsRequest request =
+ * BatchUpdateTargetingPresetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable<
+ BatchUpdateTargetingPresetsRequest, BatchUpdateTargetingPresetsResponse>
+ batchUpdateTargetingPresetsCallable() {
+ return stub.batchUpdateTargetingPresetsCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Batch deactivates `TargetingPreset` objects.
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TargetingPresetServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TargetingPresetServiceSettings.java
index c7cce4424e41..75150596745a 100644
--- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TargetingPresetServiceSettings.java
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TargetingPresetServiceSettings.java
@@ -118,6 +118,19 @@ public class TargetingPresetServiceSettings extends ClientSettings
*
*
- *
+ *
*
*
@@ -85,7 +85,7 @@
*
*
*
- *
+ *
*
*
@@ -105,7 +105,7 @@
*
*
*
- *
+ *
*
*
@@ -124,7 +124,7 @@
*
*
*
- *
+ *
*
*
@@ -140,7 +140,7 @@
*
*
*
- *
+ *
*
*
@@ -158,7 +158,7 @@
*
*
*
- *
+ *
*
*
@@ -174,7 +174,7 @@
*
*
*
- *
+ *
*
*
@@ -193,7 +193,7 @@
*
*
*
- *
+ *
*
*
@@ -303,7 +303,7 @@ public TeamServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `Team` object.
+ * Retrieves a `Team` object.
*
*
Sample code:
*
@@ -1134,7 +1134,7 @@ public final BatchActivateTeamsResponse batchActivateTeams(BatchActivateTeamsReq
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to batch activate `Team` objects.
+ * Batch activates `Team` objects.
*
*
*
*
- *
+ *
*
*
@@ -88,7 +88,7 @@
*
*
*
- *
+ *
*
*
@@ -204,7 +204,7 @@ public ThirdPartyCompanyServiceStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * API to retrieve a `ThirdPartyCompany` object.
+ * Retrieves a `ThirdPartyCompany` object.
*
*
*
- *
*
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CreativeSetServiceClient creativeSetServiceClient = CreativeSetServiceClient.create()) {
+ * CreativeSetName name = CreativeSetName.of("[NETWORK_CODE]", "[CREATIVE_SET]");
+ * CreativeSet response = creativeSetServiceClient.getCreativeSet(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SlateServiceClient slateServiceClient = SlateServiceClient.create()) {
+ * SlateName name = SlateName.of("[NETWORK_CODE]", "[SLATE]");
+ * Slate response = slateServiceClient.getSlate(name);
+ * }
+ * }
+ *
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CreativeSetServiceStubSettings.Builder creativeSetServiceSettingsBuilder =
+ * CreativeSetServiceStubSettings.newBuilder();
+ * creativeSetServiceSettingsBuilder
+ * .getCreativeSetSettings()
+ * .setRetrySettings(
+ * creativeSetServiceSettingsBuilder
+ * .getCreativeSetSettings()
+ * .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());
+ * CreativeSetServiceStubSettings creativeSetServiceSettings =
+ * creativeSetServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class CreativeSetServiceStubSettings extends StubSettings