diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml
index a1d9c6a9f2a0..31a38fbb06be 100644
--- a/.github/workflows/hermetic_library_generation.yaml
+++ b/.github/workflows/hermetic_library_generation.yaml
@@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
- - uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0
+ - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
diff --git a/generation_config.yaml b/generation_config.yaml
index 9a23f02c43e4..51c62a30c0c8 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
-gapic_generator_version: 2.63.0
-googleapis_commitish: 1b5c44879f3281d05731a0bf3fc0345ff4463eed
-libraries_bom_version: 26.70.0
+gapic_generator_version: 2.64.1
+googleapis_commitish: ba80e9b5251c974d18c3c25fa905e2d0ae4a0f02
+libraries_bom_version: 26.71.0
# the libraries are ordered with respect to library name, which is
# java-{library.library_name} or java-{library.api-shortname} when
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index 0a39e1fd7713..bb2c8954a83c 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+ * for (AdReviewCenterAd element :
+ * adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the AdReviewCenterAdServiceClient 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 | + *
|---|---|---|
SearchAdReviewCenterAds |
+ * API to search for AdReviewCenterAds. |
+ *
+ * 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. + *
|
+ *
BatchAllowAdReviewCenterAds |
+ * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
BatchBlockAdReviewCenterAds |
+ * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
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 + * AdReviewCenterAdServiceSettings 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
+ * AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings =
+ * AdReviewCenterAdServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create(adReviewCenterAdServiceSettings);
+ * }
+ *
+ * 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
+ * AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings =
+ * AdReviewCenterAdServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create(adReviewCenterAdServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AdReviewCenterAdServiceClient implements BackgroundResource { + private final AdReviewCenterAdServiceSettings settings; + private final AdReviewCenterAdServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + + /** Constructs an instance of AdReviewCenterAdServiceClient with default settings. */ + public static final AdReviewCenterAdServiceClient create() throws IOException { + return create(AdReviewCenterAdServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdReviewCenterAdServiceClient, 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 AdReviewCenterAdServiceClient create(AdReviewCenterAdServiceSettings settings) + throws IOException { + return new AdReviewCenterAdServiceClient(settings); + } + + /** + * Constructs an instance of AdReviewCenterAdServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AdReviewCenterAdServiceSettings). + */ + public static final AdReviewCenterAdServiceClient create(AdReviewCenterAdServiceStub stub) { + return new AdReviewCenterAdServiceClient(stub); + } + + /** + * Constructs an instance of AdReviewCenterAdServiceClient, 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 AdReviewCenterAdServiceClient(AdReviewCenterAdServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((AdReviewCenterAdServiceStubSettings) settings.getStubSettings()).createStub(); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AdReviewCenterAdServiceClient(AdReviewCenterAdServiceStub stub) { + this.settings = null; + this.stub = stub; + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AdReviewCenterAdServiceSettings getSettings() { + return settings; + } + + public AdReviewCenterAdServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+ * for (AdReviewCenterAd element :
+ * adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format:
+ * networks/{network_code}/webProperties/{web_property_code}
+ * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *
`networks/{network_code}/webProperties/display` + *
`networks/{network_code}/webProperties/videoAndAudio` + *
`networks/{network_code}/webProperties/mobileApp` + *
`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( + WebPropertyName parent) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchAdReviewCenterAds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString();
+ * for (AdReviewCenterAd element :
+ * adReviewCenterAdServiceClient.searchAdReviewCenterAds(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format:
+ * networks/{network_code}/webProperties/{web_property_code}
+ * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *
`networks/{network_code}/webProperties/display` + *
`networks/{network_code}/webProperties/videoAndAudio` + *
`networks/{network_code}/webProperties/mobileApp` + *
`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds(String parent) { + SearchAdReviewCenterAdsRequest request = + SearchAdReviewCenterAdsRequest.newBuilder().setParent(parent).build(); + return searchAdReviewCenterAds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to search for AdReviewCenterAds. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * SearchAdReviewCenterAdsRequest request =
+ * SearchAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .addAllAdReviewCenterAdId(new ArrayList())
+ * .setDateTimeRange(Interval.newBuilder().build())
+ * .addAllSearchText(new ArrayList())
+ * .addAllBuyerAccountId(new ArrayList())
+ * .build();
+ * for (AdReviewCenterAd element :
+ * adReviewCenterAdServiceClient.searchAdReviewCenterAds(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 SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds(
+ SearchAdReviewCenterAdsRequest request) {
+ return searchAdReviewCenterAdsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to search for AdReviewCenterAds.
+ *
+ * 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * SearchAdReviewCenterAdsRequest request =
+ * SearchAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .addAllAdReviewCenterAdId(new ArrayList())
+ * .setDateTimeRange(Interval.newBuilder().build())
+ * .addAllSearchText(new ArrayList())
+ * .addAllBuyerAccountId(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adReviewCenterAdServiceClient.searchAdReviewCenterAdsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AdReviewCenterAd 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * SearchAdReviewCenterAdsRequest request =
+ * SearchAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .addAllAdReviewCenterAdId(new ArrayList())
+ * .setDateTimeRange(Interval.newBuilder().build())
+ * .addAllSearchText(new ArrayList())
+ * .addAllBuyerAccountId(new ArrayList())
+ * .build();
+ * while (true) {
+ * SearchAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.searchAdReviewCenterAdsCallable().call(request);
+ * for (AdReviewCenterAd element : response.getAdReviewCenterAdsList()) {
+ * // 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+ * BatchAllowAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format:
+ * networks/{network_code}/webProperties/{web_property_code}
+ * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *
`networks/{network_code}/webProperties/display` + *
`networks/{network_code}/webProperties/videoAndAudio` + *
`networks/{network_code}/webProperties/mobileApp` + *
`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsAsync(WebPropertyName parent) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return batchAllowAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString();
+ * BatchAllowAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format:
+ * networks/{network_code}/webProperties/{web_property_code}
+ * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *
`networks/{network_code}/webProperties/display` + *
`networks/{network_code}/webProperties/videoAndAudio` + *
`networks/{network_code}/webProperties/mobileApp` + *
`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchAllowAdReviewCenterAdsAsync(String parent) { + BatchAllowAdReviewCenterAdsRequest request = + BatchAllowAdReviewCenterAdsRequest.newBuilder().setParent(parent).build(); + return batchAllowAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * BatchAllowAdReviewCenterAdsRequest request =
+ * BatchAllowAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchAllowAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture<
+ BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>
+ batchAllowAdReviewCenterAdsAsync(BatchAllowAdReviewCenterAdsRequest request) {
+ return batchAllowAdReviewCenterAdsOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may
+ * succeed while others fail. Callers should check the failedRequests field in the response to
+ * determine which operations failed.
+ *
+ * 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * BatchAllowAdReviewCenterAdsRequest request =
+ * BatchAllowAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * OperationFuture
+ * future =
+ * adReviewCenterAdServiceClient
+ * .batchAllowAdReviewCenterAdsOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchAllowAdReviewCenterAdsResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ BatchAllowAdReviewCenterAdsRequest,
+ BatchAllowAdReviewCenterAdsResponse,
+ BatchAdReviewCenterAdsOperationMetadata>
+ batchAllowAdReviewCenterAdsOperationCallable() {
+ return stub.batchAllowAdReviewCenterAdsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may
+ * succeed while others fail. Callers should check the failedRequests field in the response to
+ * determine which operations failed.
+ *
+ * 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * BatchAllowAdReviewCenterAdsRequest request =
+ * BatchAllowAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adReviewCenterAdServiceClient.batchAllowAdReviewCenterAdsCallable().futureCall(request);
+ * // Do something.
+ * Operation 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * WebPropertyName parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]");
+ * BatchBlockAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format:
+ * networks/{network_code}/webProperties/{web_property_code}
+ * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *
`networks/{network_code}/webProperties/display` + *
`networks/{network_code}/webProperties/videoAndAudio` + *
`networks/{network_code}/webProperties/mobileApp` + *
`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsAsync(WebPropertyName parent) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return batchBlockAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * String parent = WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString();
+ * BatchBlockAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(parent).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of AdReviewCenterAds. Format:
+ * networks/{network_code}/webProperties/{web_property_code}
+ * Since a network can only have a single web property of each + * `ExchangeSyndicationProduct`, you can use the `ExchangeSyndicationProduct` as an alias for + * the web property code: + *
`networks/{network_code}/webProperties/display` + *
`networks/{network_code}/webProperties/videoAndAudio` + *
`networks/{network_code}/webProperties/mobileApp` + *
`networks/{network_code}/webProperties/games` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> + batchBlockAdReviewCenterAdsAsync(String parent) { + BatchBlockAdReviewCenterAdsRequest request = + BatchBlockAdReviewCenterAdsRequest.newBuilder().setParent(parent).build(); + return batchBlockAdReviewCenterAdsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may + * succeed while others fail. Callers should check the failedRequests field in the response to + * determine which operations failed. + * + *
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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * BatchBlockAdReviewCenterAdsRequest request =
+ * BatchBlockAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * BatchBlockAdReviewCenterAdsResponse response =
+ * adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsAsync(request).get();
+ * }
+ * }
+ *
+ * @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 OperationFuture<
+ BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata>
+ batchBlockAdReviewCenterAdsAsync(BatchBlockAdReviewCenterAdsRequest request) {
+ return batchBlockAdReviewCenterAdsOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may
+ * succeed while others fail. Callers should check the failedRequests field in the response to
+ * determine which operations failed.
+ *
+ * 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * BatchBlockAdReviewCenterAdsRequest request =
+ * BatchBlockAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * OperationFuture
+ * future =
+ * adReviewCenterAdServiceClient
+ * .batchBlockAdReviewCenterAdsOperationCallable()
+ * .futureCall(request);
+ * // Do something.
+ * BatchBlockAdReviewCenterAdsResponse response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ BatchBlockAdReviewCenterAdsRequest,
+ BatchBlockAdReviewCenterAdsResponse,
+ BatchAdReviewCenterAdsOperationMetadata>
+ batchBlockAdReviewCenterAdsOperationCallable() {
+ return stub.batchBlockAdReviewCenterAdsOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch block AdReviewCenterAds. This method supports partial success. Some operations may
+ * succeed while others fail. Callers should check the failedRequests field in the response to
+ * determine which operations failed.
+ *
+ * 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 (AdReviewCenterAdServiceClient adReviewCenterAdServiceClient =
+ * AdReviewCenterAdServiceClient.create()) {
+ * BatchBlockAdReviewCenterAdsRequest request =
+ * BatchBlockAdReviewCenterAdsRequest.newBuilder()
+ * .setParent(WebPropertyName.of("[NETWORK_CODE]", "[WEB_PROPERTY]").toString())
+ * .addAllNames(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * adReviewCenterAdServiceClient.batchBlockAdReviewCenterAdsCallable().futureCall(request);
+ * // Do something.
+ * Operation 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 searchAdReviewCenterAds: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdReviewCenterAdServiceSettings.Builder adReviewCenterAdServiceSettingsBuilder =
+ * AdReviewCenterAdServiceSettings.newBuilder();
+ * adReviewCenterAdServiceSettingsBuilder
+ * .searchAdReviewCenterAdsSettings()
+ * .setRetrySettings(
+ * adReviewCenterAdServiceSettingsBuilder
+ * .searchAdReviewCenterAdsSettings()
+ * .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());
+ * AdReviewCenterAdServiceSettings adReviewCenterAdServiceSettings =
+ * adReviewCenterAdServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for batchAllowAdReviewCenterAds: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdReviewCenterAdServiceSettings.Builder adReviewCenterAdServiceSettingsBuilder =
+ * AdReviewCenterAdServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * adReviewCenterAdServiceSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class AdReviewCenterAdServiceSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ApplicationServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * GetApplication API to retrieve a `Application` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getApplication(GetApplicationRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getApplication(ApplicationName name)
+ * getApplication(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. getApplicationCallable()
+ * ListApplications API to retrieve a list of `Application` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listApplications(ListApplicationsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listApplications(NetworkName parent)
+ * listApplications(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. listApplicationsPagedCallable()
+ * listApplicationsCallable()
+ * 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 ApplicationServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ApplicationServiceClient implements BackgroundResource {
+ private final ApplicationServiceSettings settings;
+ private final ApplicationServiceStub stub;
+
+ /** Constructs an instance of ApplicationServiceClient with default settings. */
+ public static final ApplicationServiceClient create() throws IOException {
+ return create(ApplicationServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ApplicationServiceClient, 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 ApplicationServiceClient create(ApplicationServiceSettings settings)
+ throws IOException {
+ return new ApplicationServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ApplicationServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(ApplicationServiceSettings).
+ */
+ public static final ApplicationServiceClient create(ApplicationServiceStub stub) {
+ return new ApplicationServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ApplicationServiceClient, 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 ApplicationServiceClient(ApplicationServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ApplicationServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ApplicationServiceClient(ApplicationServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ApplicationServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ApplicationServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Application` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getApplication:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the AudienceSegmentServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetAudienceSegment API to retrieve an `AudienceSegment` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getAudienceSegment(GetAudienceSegmentRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getAudienceSegment(AudienceSegmentName name)
+ * getAudienceSegment(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. getAudienceSegmentCallable()
+ * ListAudienceSegments API to retrieve a list of `AudienceSegment` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listAudienceSegments(ListAudienceSegmentsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listAudienceSegments(NetworkName parent)
+ * listAudienceSegments(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. listAudienceSegmentsPagedCallable()
+ * listAudienceSegmentsCallable()
+ * 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 AudienceSegmentServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class AudienceSegmentServiceClient implements BackgroundResource {
+ private final AudienceSegmentServiceSettings settings;
+ private final AudienceSegmentServiceStub stub;
+
+ /** Constructs an instance of AudienceSegmentServiceClient with default settings. */
+ public static final AudienceSegmentServiceClient create() throws IOException {
+ return create(AudienceSegmentServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of AudienceSegmentServiceClient, 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 AudienceSegmentServiceClient create(AudienceSegmentServiceSettings settings)
+ throws IOException {
+ return new AudienceSegmentServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of AudienceSegmentServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(AudienceSegmentServiceSettings).
+ */
+ public static final AudienceSegmentServiceClient create(AudienceSegmentServiceStub stub) {
+ return new AudienceSegmentServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of AudienceSegmentServiceClient, 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 AudienceSegmentServiceClient(AudienceSegmentServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((AudienceSegmentServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected AudienceSegmentServiceClient(AudienceSegmentServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final AudienceSegmentServiceSettings getSettings() {
+ return settings;
+ }
+
+ public AudienceSegmentServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve an `AudienceSegment` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getAudienceSegment:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the BrowserLanguageServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetBrowserLanguage API to retrieve a `BrowserLanguage` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getBrowserLanguage(GetBrowserLanguageRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getBrowserLanguage(BrowserLanguageName name)
+ * getBrowserLanguage(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. getBrowserLanguageCallable()
+ * ListBrowserLanguages API to retrieve a list of `BrowserLanguage` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listBrowserLanguages(ListBrowserLanguagesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listBrowserLanguages(NetworkName parent)
+ * listBrowserLanguages(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. listBrowserLanguagesPagedCallable()
+ * listBrowserLanguagesCallable()
+ * 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 BrowserLanguageServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class BrowserLanguageServiceClient implements BackgroundResource {
+ private final BrowserLanguageServiceSettings settings;
+ private final BrowserLanguageServiceStub stub;
+
+ /** Constructs an instance of BrowserLanguageServiceClient with default settings. */
+ public static final BrowserLanguageServiceClient create() throws IOException {
+ return create(BrowserLanguageServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of BrowserLanguageServiceClient, 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 BrowserLanguageServiceClient create(BrowserLanguageServiceSettings settings)
+ throws IOException {
+ return new BrowserLanguageServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of BrowserLanguageServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(BrowserLanguageServiceSettings).
+ */
+ public static final BrowserLanguageServiceClient create(BrowserLanguageServiceStub stub) {
+ return new BrowserLanguageServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of BrowserLanguageServiceClient, 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 BrowserLanguageServiceClient(BrowserLanguageServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((BrowserLanguageServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected BrowserLanguageServiceClient(BrowserLanguageServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final BrowserLanguageServiceSettings getSettings() {
+ return settings;
+ }
+
+ public BrowserLanguageServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BrowserLanguage` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getBrowserLanguage:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the BrowserServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * GetBrowser API to retrieve a `Browser` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getBrowser(GetBrowserRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getBrowser(BrowserName name)
+ * getBrowser(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. getBrowserCallable()
+ * ListBrowsers API to retrieve a list of `Browser` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listBrowsers(ListBrowsersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listBrowsers(NetworkName parent)
+ * listBrowsers(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. listBrowsersPagedCallable()
+ * listBrowsersCallable()
+ * 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 BrowserServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class BrowserServiceClient implements BackgroundResource {
+ private final BrowserServiceSettings settings;
+ private final BrowserServiceStub stub;
+
+ /** Constructs an instance of BrowserServiceClient with default settings. */
+ public static final BrowserServiceClient create() throws IOException {
+ return create(BrowserServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of BrowserServiceClient, 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 BrowserServiceClient create(BrowserServiceSettings settings)
+ throws IOException {
+ return new BrowserServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of BrowserServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(BrowserServiceSettings).
+ */
+ public static final BrowserServiceClient create(BrowserServiceStub stub) {
+ return new BrowserServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of BrowserServiceClient, 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 BrowserServiceClient(BrowserServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((BrowserServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected BrowserServiceClient(BrowserServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final BrowserServiceSettings getSettings() {
+ return settings;
+ }
+
+ public BrowserServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Browser` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getBrowser:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the CmsMetadataKeyServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetCmsMetadataKey API to retrieve a `CmsMetadataKey` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCmsMetadataKey(GetCmsMetadataKeyRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCmsMetadataKey(CmsMetadataKeyName name)
+ * getCmsMetadataKey(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. getCmsMetadataKeyCallable()
+ * ListCmsMetadataKeys API to retrieve a list of `CmsMetadataKey` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCmsMetadataKeys(ListCmsMetadataKeysRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCmsMetadataKeys(NetworkName parent)
+ * listCmsMetadataKeys(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. listCmsMetadataKeysPagedCallable()
+ * listCmsMetadataKeysCallable()
+ * 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 CmsMetadataKeyServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class CmsMetadataKeyServiceClient implements BackgroundResource {
+ private final CmsMetadataKeyServiceSettings settings;
+ private final CmsMetadataKeyServiceStub stub;
+
+ /** Constructs an instance of CmsMetadataKeyServiceClient with default settings. */
+ public static final CmsMetadataKeyServiceClient create() throws IOException {
+ return create(CmsMetadataKeyServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of CmsMetadataKeyServiceClient, 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 CmsMetadataKeyServiceClient create(CmsMetadataKeyServiceSettings settings)
+ throws IOException {
+ return new CmsMetadataKeyServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of CmsMetadataKeyServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(CmsMetadataKeyServiceSettings).
+ */
+ public static final CmsMetadataKeyServiceClient create(CmsMetadataKeyServiceStub stub) {
+ return new CmsMetadataKeyServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of CmsMetadataKeyServiceClient, 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 CmsMetadataKeyServiceClient(CmsMetadataKeyServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((CmsMetadataKeyServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected CmsMetadataKeyServiceClient(CmsMetadataKeyServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final CmsMetadataKeyServiceSettings getSettings() {
+ return settings;
+ }
+
+ public CmsMetadataKeyServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getCmsMetadataKey:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the CmsMetadataValueServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetCmsMetadataValue API to retrieve a `CmsMetadataKey` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getCmsMetadataValue(GetCmsMetadataValueRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getCmsMetadataValue(CmsMetadataValueName name)
+ * getCmsMetadataValue(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. getCmsMetadataValueCallable()
+ * ListCmsMetadataValues API to retrieve a list of `CmsMetadataValue` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listCmsMetadataValues(ListCmsMetadataValuesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCmsMetadataValues(NetworkName parent)
+ * listCmsMetadataValues(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. listCmsMetadataValuesPagedCallable()
+ * listCmsMetadataValuesCallable()
+ * 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
+ * CmsMetadataValueServiceSettings to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class CmsMetadataValueServiceClient implements BackgroundResource {
+ private final CmsMetadataValueServiceSettings settings;
+ private final CmsMetadataValueServiceStub stub;
+
+ /** Constructs an instance of CmsMetadataValueServiceClient with default settings. */
+ public static final CmsMetadataValueServiceClient create() throws IOException {
+ return create(CmsMetadataValueServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of CmsMetadataValueServiceClient, 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 CmsMetadataValueServiceClient create(CmsMetadataValueServiceSettings settings)
+ throws IOException {
+ return new CmsMetadataValueServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of CmsMetadataValueServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(CmsMetadataValueServiceSettings).
+ */
+ public static final CmsMetadataValueServiceClient create(CmsMetadataValueServiceStub stub) {
+ return new CmsMetadataValueServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of CmsMetadataValueServiceClient, 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 CmsMetadataValueServiceClient(CmsMetadataValueServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((CmsMetadataValueServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected CmsMetadataValueServiceClient(CmsMetadataValueServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final CmsMetadataValueServiceSettings getSettings() {
+ return settings;
+ }
+
+ public CmsMetadataValueServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getCmsMetadataValue:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ContactServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * GetContact API to retrieve a `Contact` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getContact(GetContactRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getContact(ContactName name)
+ * getContact(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. getContactCallable()
+ * ListContacts API to retrieve a list of `Contact` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listContacts(ListContactsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listContacts(NetworkName parent)
+ * listContacts(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. listContactsPagedCallable()
+ * listContactsCallable()
+ * CreateContact API to create a `Contact` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createContact(CreateContactRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createContact(NetworkName parent, Contact contact)
+ * createContact(String parent, Contact contact)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createContactCallable()
+ * BatchCreateContacts API to batch create `Contact` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchCreateContacts(NetworkName parent, List<CreateContactRequest> requests)
+ * batchCreateContacts(String parent, List<CreateContactRequest> requests)
+ * batchCreateContacts(BatchCreateContactsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchCreateContactsCallable()
+ * UpdateContact API to update a `Contact` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateContact(UpdateContactRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updateContact(Contact contact, 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. updateContactCallable()
+ * BatchUpdateContacts API to batch update `Contact` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. batchUpdateContacts(NetworkName parent, List<UpdateContactRequest> requests)
+ * batchUpdateContacts(String parent, List<UpdateContactRequest> requests)
+ * batchUpdateContacts(BatchUpdateContactsRequest request)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. batchUpdateContactsCallable()
+ * 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 ContactServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ContactServiceClient implements BackgroundResource {
+ private final ContactServiceSettings settings;
+ private final ContactServiceStub stub;
+
+ /** Constructs an instance of ContactServiceClient with default settings. */
+ public static final ContactServiceClient create() throws IOException {
+ return create(ContactServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ContactServiceClient, 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 ContactServiceClient create(ContactServiceSettings settings)
+ throws IOException {
+ return new ContactServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ContactServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(ContactServiceSettings).
+ */
+ public static final ContactServiceClient create(ContactServiceStub stub) {
+ return new ContactServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ContactServiceClient, 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 ContactServiceClient(ContactServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ContactServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ContactServiceClient(ContactServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ContactServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ContactServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Contact` 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 `Contact`'s `name` is used to identify the `Contact` to update.
+ * @param updateMask Required. The list of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Contact updateContact(Contact contact, FieldMask updateMask) {
+ UpdateContactRequest request =
+ UpdateContactRequest.newBuilder().setContact(contact).setUpdateMask(updateMask).build();
+ return updateContact(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Contact` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getContact:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ContentBundleServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetContentBundle API to retrieve a `ContentBundle` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getContentBundle(GetContentBundleRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getContentBundle(ContentBundleName name)
+ * getContentBundle(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. getContentBundleCallable()
+ * ListContentBundles API to retrieve a list of `ContentBundle` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listContentBundles(ListContentBundlesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listContentBundles(NetworkName parent)
+ * listContentBundles(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. listContentBundlesPagedCallable()
+ * listContentBundlesCallable()
+ * 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 ContentBundleServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ContentBundleServiceClient implements BackgroundResource {
+ private final ContentBundleServiceSettings settings;
+ private final ContentBundleServiceStub stub;
+
+ /** Constructs an instance of ContentBundleServiceClient with default settings. */
+ public static final ContentBundleServiceClient create() throws IOException {
+ return create(ContentBundleServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ContentBundleServiceClient, 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 ContentBundleServiceClient create(ContentBundleServiceSettings settings)
+ throws IOException {
+ return new ContentBundleServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ContentBundleServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(ContentBundleServiceSettings).
+ */
+ public static final ContentBundleServiceClient create(ContentBundleServiceStub stub) {
+ return new ContentBundleServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ContentBundleServiceClient, 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 ContentBundleServiceClient(ContentBundleServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ContentBundleServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ContentBundleServiceClient(ContentBundleServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ContentBundleServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ContentBundleServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentBundle` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getContentBundle:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ContentLabelServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * GetContentLabel API to retrieve a `ContentLabel` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getContentLabel(GetContentLabelRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getContentLabel(ContentLabelName name)
+ * getContentLabel(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. getContentLabelCallable()
+ * ListContentLabels API to retrieve a list of `ContentLabel` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listContentLabels(ListContentLabelsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listContentLabels(NetworkName parent)
+ * listContentLabels(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. listContentLabelsPagedCallable()
+ * listContentLabelsCallable()
+ * 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 ContentLabelServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ContentLabelServiceClient implements BackgroundResource {
+ private final ContentLabelServiceSettings settings;
+ private final ContentLabelServiceStub stub;
+
+ /** Constructs an instance of ContentLabelServiceClient with default settings. */
+ public static final ContentLabelServiceClient create() throws IOException {
+ return create(ContentLabelServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ContentLabelServiceClient, 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 ContentLabelServiceClient create(ContentLabelServiceSettings settings)
+ throws IOException {
+ return new ContentLabelServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ContentLabelServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(ContentLabelServiceSettings).
+ */
+ public static final ContentLabelServiceClient create(ContentLabelServiceStub stub) {
+ return new ContentLabelServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ContentLabelServiceClient, 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 ContentLabelServiceClient(ContentLabelServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ContentLabelServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ContentLabelServiceClient(ContentLabelServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ContentLabelServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ContentLabelServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentLabel` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getContentLabel:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the ContentServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * GetContent API to retrieve a `Content` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getContent(GetContentRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getContent(ContentName name)
+ * getContent(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. getContentCallable()
+ * ListContent API to retrieve a list of `Content` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listContent(ListContentRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listContent(NetworkName parent)
+ * listContent(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. listContentPagedCallable()
+ * listContentCallable()
+ * 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 ContentServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class ContentServiceClient implements BackgroundResource {
+ private final ContentServiceSettings settings;
+ private final ContentServiceStub stub;
+
+ /** Constructs an instance of ContentServiceClient with default settings. */
+ public static final ContentServiceClient create() throws IOException {
+ return create(ContentServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ContentServiceClient, 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 ContentServiceClient create(ContentServiceSettings settings)
+ throws IOException {
+ return new ContentServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ContentServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(ContentServiceSettings).
+ */
+ public static final ContentServiceClient create(ContentServiceStub stub) {
+ return new ContentServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ContentServiceClient, 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 ContentServiceClient(ContentServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((ContentServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ContentServiceClient(ContentServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ContentServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ContentServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Content` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getContent:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the CreativeTemplateServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]");
+ * Application response = applicationServiceClient.getApplication(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
+ * ApplicationServiceSettings applicationServiceSettings =
+ * ApplicationServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ApplicationServiceClient applicationServiceClient =
+ * ApplicationServiceClient.create(applicationServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ApplicationServiceSettings applicationServiceSettings =
+ * ApplicationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ApplicationServiceClient applicationServiceClient =
+ * ApplicationServiceClient.create(applicationServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * ApplicationName name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]");
+ * Application response = applicationServiceClient.getApplication(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Application. Format:
+ * `networks/{network_code}/applications/{application_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Application getApplication(ApplicationName name) {
+ GetApplicationRequest request =
+ GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String name = ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString();
+ * Application response = applicationServiceClient.getApplication(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Application. Format:
+ * `networks/{network_code}/applications/{application_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Application getApplication(String name) {
+ GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name).build();
+ return getApplication(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * GetApplicationRequest request =
+ * GetApplicationRequest.newBuilder()
+ * .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").toString())
+ * .build();
+ * Application response = applicationServiceClient.getApplication(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Application getApplication(GetApplicationRequest request) {
+ return getApplicationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * GetApplicationRequest request =
+ * GetApplicationRequest.newBuilder()
+ * .setName(ApplicationName.of("[NETWORK_CODE]", "[APPLICATION]").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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Applications. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListApplicationsPagedResponse listApplications(NetworkName parent) {
+ ListApplicationsRequest request =
+ ListApplicationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Applications. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListApplicationsPagedResponse listApplications(String parent) {
+ ListApplicationsRequest request =
+ ListApplicationsRequest.newBuilder().setParent(parent).build();
+ return listApplications(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * ListApplicationsRequest request =
+ * ListApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Application element : applicationServiceClient.listApplications(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 ListApplicationsPagedResponse listApplications(ListApplicationsRequest request) {
+ return listApplicationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Application` 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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * ListApplicationsRequest request =
+ * ListApplicationsRequest.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 (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ * ListApplicationsRequest request =
+ * ListApplicationsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListApplicationsResponse response =
+ * applicationServiceClient.listApplicationsCallable().call(request);
+ * for (Application element : response.getApplicationsList()) {
+ * // 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
+ * ApplicationServiceSettings.Builder applicationServiceSettingsBuilder =
+ * ApplicationServiceSettings.newBuilder();
+ * applicationServiceSettingsBuilder
+ * .getApplicationSettings()
+ * .setRetrySettings(
+ * applicationServiceSettingsBuilder
+ * .getApplicationSettings()
+ * .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());
+ * ApplicationServiceSettings applicationServiceSettings =
+ * applicationServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class ApplicationServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
+ * AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(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
+ * AudienceSegmentServiceSettings audienceSegmentServiceSettings =
+ * AudienceSegmentServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create(audienceSegmentServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AudienceSegmentServiceSettings audienceSegmentServiceSettings =
+ * AudienceSegmentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create(audienceSegmentServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * AudienceSegmentName name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
+ * AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AudienceSegment. Format:
+ * `networks/{network_code}/audienceSegments/{audience_segment_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AudienceSegment getAudienceSegment(AudienceSegmentName name) {
+ GetAudienceSegmentRequest request =
+ GetAudienceSegmentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getAudienceSegment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve an `AudienceSegment` 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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * String name = AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString();
+ * AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AudienceSegment. Format:
+ * `networks/{network_code}/audienceSegments/{audience_segment_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AudienceSegment getAudienceSegment(String name) {
+ GetAudienceSegmentRequest request =
+ GetAudienceSegmentRequest.newBuilder().setName(name).build();
+ return getAudienceSegment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve an `AudienceSegment` 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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * GetAudienceSegmentRequest request =
+ * GetAudienceSegmentRequest.newBuilder()
+ * .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").toString())
+ * .build();
+ * AudienceSegment response = audienceSegmentServiceClient.getAudienceSegment(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 AudienceSegment getAudienceSegment(GetAudienceSegmentRequest request) {
+ return getAudienceSegmentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve an `AudienceSegment` 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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * GetAudienceSegmentRequest request =
+ * GetAudienceSegmentRequest.newBuilder()
+ * .setName(AudienceSegmentName.of("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]").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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (AudienceSegment element :
+ * audienceSegmentServiceClient.listAudienceSegments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent publisher network associated with these audience segments.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAudienceSegmentsPagedResponse listAudienceSegments(NetworkName parent) {
+ ListAudienceSegmentsRequest request =
+ ListAudienceSegmentsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAudienceSegments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `AudienceSegment` 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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (AudienceSegment element :
+ * audienceSegmentServiceClient.listAudienceSegments(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent publisher network associated with these audience segments.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAudienceSegmentsPagedResponse listAudienceSegments(String parent) {
+ ListAudienceSegmentsRequest request =
+ ListAudienceSegmentsRequest.newBuilder().setParent(parent).build();
+ return listAudienceSegments(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `AudienceSegment` 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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * ListAudienceSegmentsRequest request =
+ * ListAudienceSegmentsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (AudienceSegment element :
+ * audienceSegmentServiceClient.listAudienceSegments(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 ListAudienceSegmentsPagedResponse listAudienceSegments(
+ ListAudienceSegmentsRequest request) {
+ return listAudienceSegmentsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `AudienceSegment` 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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * ListAudienceSegmentsRequest request =
+ * ListAudienceSegmentsRequest.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 (AudienceSegmentServiceClient audienceSegmentServiceClient =
+ * AudienceSegmentServiceClient.create()) {
+ * ListAudienceSegmentsRequest request =
+ * ListAudienceSegmentsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListAudienceSegmentsResponse response =
+ * audienceSegmentServiceClient.listAudienceSegmentsCallable().call(request);
+ * for (AudienceSegment element : response.getAudienceSegmentsList()) {
+ * // 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
+ * AudienceSegmentServiceSettings.Builder audienceSegmentServiceSettingsBuilder =
+ * AudienceSegmentServiceSettings.newBuilder();
+ * audienceSegmentServiceSettingsBuilder
+ * .getAudienceSegmentSettings()
+ * .setRetrySettings(
+ * audienceSegmentServiceSettingsBuilder
+ * .getAudienceSegmentSettings()
+ * .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());
+ * AudienceSegmentServiceSettings audienceSegmentServiceSettings =
+ * audienceSegmentServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class AudienceSegmentServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]");
+ * BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(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
+ * BrowserLanguageServiceSettings browserLanguageServiceSettings =
+ * BrowserLanguageServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create(browserLanguageServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BrowserLanguageServiceSettings browserLanguageServiceSettings =
+ * BrowserLanguageServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create(browserLanguageServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * BrowserLanguageName name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]");
+ * BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the BrowserLanguage. Format:
+ * `networks/{network_code}/browserLanguages/{browser_language_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BrowserLanguage getBrowserLanguage(BrowserLanguageName name) {
+ GetBrowserLanguageRequest request =
+ GetBrowserLanguageRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getBrowserLanguage(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BrowserLanguage` 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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * String name = BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString();
+ * BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the BrowserLanguage. Format:
+ * `networks/{network_code}/browserLanguages/{browser_language_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BrowserLanguage getBrowserLanguage(String name) {
+ GetBrowserLanguageRequest request =
+ GetBrowserLanguageRequest.newBuilder().setName(name).build();
+ return getBrowserLanguage(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BrowserLanguage` 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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * GetBrowserLanguageRequest request =
+ * GetBrowserLanguageRequest.newBuilder()
+ * .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").toString())
+ * .build();
+ * BrowserLanguage response = browserLanguageServiceClient.getBrowserLanguage(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 BrowserLanguage getBrowserLanguage(GetBrowserLanguageRequest request) {
+ return getBrowserLanguageCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BrowserLanguage` 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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * GetBrowserLanguageRequest request =
+ * GetBrowserLanguageRequest.newBuilder()
+ * .setName(BrowserLanguageName.of("[NETWORK_CODE]", "[BROWSER_LANGUAGE]").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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (BrowserLanguage element :
+ * browserLanguageServiceClient.listBrowserLanguages(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of BrowserLanguages. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBrowserLanguagesPagedResponse listBrowserLanguages(NetworkName parent) {
+ ListBrowserLanguagesRequest request =
+ ListBrowserLanguagesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBrowserLanguages(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `BrowserLanguage` 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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (BrowserLanguage element :
+ * browserLanguageServiceClient.listBrowserLanguages(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of BrowserLanguages. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBrowserLanguagesPagedResponse listBrowserLanguages(String parent) {
+ ListBrowserLanguagesRequest request =
+ ListBrowserLanguagesRequest.newBuilder().setParent(parent).build();
+ return listBrowserLanguages(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `BrowserLanguage` 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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * ListBrowserLanguagesRequest request =
+ * ListBrowserLanguagesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (BrowserLanguage element :
+ * browserLanguageServiceClient.listBrowserLanguages(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 ListBrowserLanguagesPagedResponse listBrowserLanguages(
+ ListBrowserLanguagesRequest request) {
+ return listBrowserLanguagesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `BrowserLanguage` 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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * ListBrowserLanguagesRequest request =
+ * ListBrowserLanguagesRequest.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 (BrowserLanguageServiceClient browserLanguageServiceClient =
+ * BrowserLanguageServiceClient.create()) {
+ * ListBrowserLanguagesRequest request =
+ * ListBrowserLanguagesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListBrowserLanguagesResponse response =
+ * browserLanguageServiceClient.listBrowserLanguagesCallable().call(request);
+ * for (BrowserLanguage element : response.getBrowserLanguagesList()) {
+ * // 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
+ * BrowserLanguageServiceSettings.Builder browserLanguageServiceSettingsBuilder =
+ * BrowserLanguageServiceSettings.newBuilder();
+ * browserLanguageServiceSettingsBuilder
+ * .getBrowserLanguageSettings()
+ * .setRetrySettings(
+ * browserLanguageServiceSettingsBuilder
+ * .getBrowserLanguageSettings()
+ * .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());
+ * BrowserLanguageServiceSettings browserLanguageServiceSettings =
+ * browserLanguageServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class BrowserLanguageServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]");
+ * Browser response = browserServiceClient.getBrowser(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
+ * BrowserServiceSettings browserServiceSettings =
+ * BrowserServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * BrowserServiceClient browserServiceClient = BrowserServiceClient.create(browserServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BrowserServiceSettings browserServiceSettings =
+ * BrowserServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BrowserServiceClient browserServiceClient = BrowserServiceClient.create(browserServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * BrowserName name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]");
+ * Browser response = browserServiceClient.getBrowser(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Browser. Format:
+ * `networks/{network_code}/browsers/{browser_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Browser getBrowser(BrowserName name) {
+ GetBrowserRequest request =
+ GetBrowserRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getBrowser(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Browser` 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * String name = BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString();
+ * Browser response = browserServiceClient.getBrowser(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Browser. Format:
+ * `networks/{network_code}/browsers/{browser_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Browser getBrowser(String name) {
+ GetBrowserRequest request = GetBrowserRequest.newBuilder().setName(name).build();
+ return getBrowser(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Browser` 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * GetBrowserRequest request =
+ * GetBrowserRequest.newBuilder()
+ * .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").toString())
+ * .build();
+ * Browser response = browserServiceClient.getBrowser(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 Browser getBrowser(GetBrowserRequest request) {
+ return getBrowserCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Browser` 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * GetBrowserRequest request =
+ * GetBrowserRequest.newBuilder()
+ * .setName(BrowserName.of("[NETWORK_CODE]", "[BROWSER]").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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Browser element : browserServiceClient.listBrowsers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Browsers. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBrowsersPagedResponse listBrowsers(NetworkName parent) {
+ ListBrowsersRequest request =
+ ListBrowsersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBrowsers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Browser` 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Browser element : browserServiceClient.listBrowsers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Browsers. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBrowsersPagedResponse listBrowsers(String parent) {
+ ListBrowsersRequest request = ListBrowsersRequest.newBuilder().setParent(parent).build();
+ return listBrowsers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Browser` 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * ListBrowsersRequest request =
+ * ListBrowsersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Browser element : browserServiceClient.listBrowsers(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 ListBrowsersPagedResponse listBrowsers(ListBrowsersRequest request) {
+ return listBrowsersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Browser` 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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * ListBrowsersRequest request =
+ * ListBrowsersRequest.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 (BrowserServiceClient browserServiceClient = BrowserServiceClient.create()) {
+ * ListBrowsersRequest request =
+ * ListBrowsersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListBrowsersResponse response = browserServiceClient.listBrowsersCallable().call(request);
+ * for (Browser element : response.getBrowsersList()) {
+ * // 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
+ * BrowserServiceSettings.Builder browserServiceSettingsBuilder =
+ * BrowserServiceSettings.newBuilder();
+ * browserServiceSettingsBuilder
+ * .getBrowserSettings()
+ * .setRetrySettings(
+ * browserServiceSettingsBuilder
+ * .getBrowserSettings()
+ * .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());
+ * BrowserServiceSettings browserServiceSettings = browserServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class BrowserServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]");
+ * CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(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
+ * CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings =
+ * CmsMetadataKeyServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create(cmsMetadataKeyServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings =
+ * CmsMetadataKeyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create(cmsMetadataKeyServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * CmsMetadataKeyName name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]");
+ * CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CmsMetadataKey. Format:
+ * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CmsMetadataKey getCmsMetadataKey(CmsMetadataKeyName name) {
+ GetCmsMetadataKeyRequest request =
+ GetCmsMetadataKeyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCmsMetadataKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * String name = CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString();
+ * CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CmsMetadataKey. Format:
+ * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CmsMetadataKey getCmsMetadataKey(String name) {
+ GetCmsMetadataKeyRequest request = GetCmsMetadataKeyRequest.newBuilder().setName(name).build();
+ return getCmsMetadataKey(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * GetCmsMetadataKeyRequest request =
+ * GetCmsMetadataKeyRequest.newBuilder()
+ * .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString())
+ * .build();
+ * CmsMetadataKey response = cmsMetadataKeyServiceClient.getCmsMetadataKey(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 CmsMetadataKey getCmsMetadataKey(GetCmsMetadataKeyRequest request) {
+ return getCmsMetadataKeyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * GetCmsMetadataKeyRequest request =
+ * GetCmsMetadataKeyRequest.newBuilder()
+ * .setName(CmsMetadataKeyName.of("[NETWORK_CODE]", "[CMS_METADATA_KEY]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (CmsMetadataKey element :
+ * cmsMetadataKeyServiceClient.listCmsMetadataKeys(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CmsMetadataKeys. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(NetworkName parent) {
+ ListCmsMetadataKeysRequest request =
+ ListCmsMetadataKeysRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCmsMetadataKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (CmsMetadataKey element :
+ * cmsMetadataKeyServiceClient.listCmsMetadataKeys(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CmsMetadataKeys. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(String parent) {
+ ListCmsMetadataKeysRequest request =
+ ListCmsMetadataKeysRequest.newBuilder().setParent(parent).build();
+ return listCmsMetadataKeys(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * ListCmsMetadataKeysRequest request =
+ * ListCmsMetadataKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (CmsMetadataKey element :
+ * cmsMetadataKeyServiceClient.listCmsMetadataKeys(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 ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(
+ ListCmsMetadataKeysRequest request) {
+ return listCmsMetadataKeysPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `CmsMetadataKey` 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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * ListCmsMetadataKeysRequest request =
+ * ListCmsMetadataKeysRequest.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 (CmsMetadataKeyServiceClient cmsMetadataKeyServiceClient =
+ * CmsMetadataKeyServiceClient.create()) {
+ * ListCmsMetadataKeysRequest request =
+ * ListCmsMetadataKeysRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListCmsMetadataKeysResponse response =
+ * cmsMetadataKeyServiceClient.listCmsMetadataKeysCallable().call(request);
+ * for (CmsMetadataKey element : response.getCmsMetadataKeysList()) {
+ * // 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
+ * CmsMetadataKeyServiceSettings.Builder cmsMetadataKeyServiceSettingsBuilder =
+ * CmsMetadataKeyServiceSettings.newBuilder();
+ * cmsMetadataKeyServiceSettingsBuilder
+ * .getCmsMetadataKeySettings()
+ * .setRetrySettings(
+ * cmsMetadataKeyServiceSettingsBuilder
+ * .getCmsMetadataKeySettings()
+ * .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());
+ * CmsMetadataKeyServiceSettings cmsMetadataKeyServiceSettings =
+ * cmsMetadataKeyServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class CmsMetadataKeyServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]");
+ * CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(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
+ * CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings =
+ * CmsMetadataValueServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create(cmsMetadataValueServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings =
+ * CmsMetadataValueServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create(cmsMetadataValueServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * CmsMetadataValueName name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]");
+ * CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CmsMetadataKey. Format:
+ * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CmsMetadataValue getCmsMetadataValue(CmsMetadataValueName name) {
+ GetCmsMetadataValueRequest request =
+ GetCmsMetadataValueRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCmsMetadataValue(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * String name = CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString();
+ * CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the CmsMetadataKey. Format:
+ * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CmsMetadataValue getCmsMetadataValue(String name) {
+ GetCmsMetadataValueRequest request =
+ GetCmsMetadataValueRequest.newBuilder().setName(name).build();
+ return getCmsMetadataValue(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * GetCmsMetadataValueRequest request =
+ * GetCmsMetadataValueRequest.newBuilder()
+ * .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").toString())
+ * .build();
+ * CmsMetadataValue response = cmsMetadataValueServiceClient.getCmsMetadataValue(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 CmsMetadataValue getCmsMetadataValue(GetCmsMetadataValueRequest request) {
+ return getCmsMetadataValueCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `CmsMetadataKey` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * GetCmsMetadataValueRequest request =
+ * GetCmsMetadataValueRequest.newBuilder()
+ * .setName(CmsMetadataValueName.of("[NETWORK_CODE]", "[CMS_METADATA_VALUE]").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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (CmsMetadataValue element :
+ * cmsMetadataValueServiceClient.listCmsMetadataValues(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CmsMetadataValues. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(NetworkName parent) {
+ ListCmsMetadataValuesRequest request =
+ ListCmsMetadataValuesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCmsMetadataValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (CmsMetadataValue element :
+ * cmsMetadataValueServiceClient.listCmsMetadataValues(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of CmsMetadataValues. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(String parent) {
+ ListCmsMetadataValuesRequest request =
+ ListCmsMetadataValuesRequest.newBuilder().setParent(parent).build();
+ return listCmsMetadataValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * ListCmsMetadataValuesRequest request =
+ * ListCmsMetadataValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (CmsMetadataValue element :
+ * cmsMetadataValueServiceClient.listCmsMetadataValues(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 ListCmsMetadataValuesPagedResponse listCmsMetadataValues(
+ ListCmsMetadataValuesRequest request) {
+ return listCmsMetadataValuesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `CmsMetadataValue` 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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * ListCmsMetadataValuesRequest request =
+ * ListCmsMetadataValuesRequest.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 (CmsMetadataValueServiceClient cmsMetadataValueServiceClient =
+ * CmsMetadataValueServiceClient.create()) {
+ * ListCmsMetadataValuesRequest request =
+ * ListCmsMetadataValuesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListCmsMetadataValuesResponse response =
+ * cmsMetadataValueServiceClient.listCmsMetadataValuesCallable().call(request);
+ * for (CmsMetadataValue element : response.getCmsMetadataValuesList()) {
+ * // 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
+ * CmsMetadataValueServiceSettings.Builder cmsMetadataValueServiceSettingsBuilder =
+ * CmsMetadataValueServiceSettings.newBuilder();
+ * cmsMetadataValueServiceSettingsBuilder
+ * .getCmsMetadataValueSettings()
+ * .setRetrySettings(
+ * cmsMetadataValueServiceSettingsBuilder
+ * .getCmsMetadataValueSettings()
+ * .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());
+ * CmsMetadataValueServiceSettings cmsMetadataValueServiceSettings =
+ * cmsMetadataValueServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class CmsMetadataValueServiceSettings
+ extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]");
+ * Contact response = contactServiceClient.getContact(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
+ * ContactServiceSettings contactServiceSettings =
+ * ContactServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ContactServiceClient contactServiceClient = ContactServiceClient.create(contactServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContactServiceSettings contactServiceSettings =
+ * ContactServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContactServiceClient contactServiceClient = ContactServiceClient.create(contactServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * ContactName name = ContactName.of("[NETWORK_CODE]", "[CONTACT]");
+ * Contact response = contactServiceClient.getContact(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Contact. Format:
+ * `networks/{network_code}/contacts/{contact_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Contact getContact(ContactName name) {
+ GetContactRequest request =
+ GetContactRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getContact(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * String name = ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString();
+ * Contact response = contactServiceClient.getContact(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Contact. Format:
+ * `networks/{network_code}/contacts/{contact_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Contact getContact(String name) {
+ GetContactRequest request = GetContactRequest.newBuilder().setName(name).build();
+ return getContact(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * GetContactRequest request =
+ * GetContactRequest.newBuilder()
+ * .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").toString())
+ * .build();
+ * Contact response = contactServiceClient.getContact(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 Contact getContact(GetContactRequest request) {
+ return getContactCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * GetContactRequest request =
+ * GetContactRequest.newBuilder()
+ * .setName(ContactName.of("[NETWORK_CODE]", "[CONTACT]").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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Contact element : contactServiceClient.listContacts(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Contacts. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContactsPagedResponse listContacts(NetworkName parent) {
+ ListContactsRequest request =
+ ListContactsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listContacts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Contact element : contactServiceClient.listContacts(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Contacts. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContactsPagedResponse listContacts(String parent) {
+ ListContactsRequest request = ListContactsRequest.newBuilder().setParent(parent).build();
+ return listContacts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * ListContactsRequest request =
+ * ListContactsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Contact element : contactServiceClient.listContacts(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 ListContactsPagedResponse listContacts(ListContactsRequest request) {
+ return listContactsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * ListContactsRequest request =
+ * ListContactsRequest.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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * ListContactsRequest request =
+ * ListContactsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListContactsResponse response = contactServiceClient.listContactsCallable().call(request);
+ * for (Contact element : response.getContactsList()) {
+ * // 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * Contact contact = Contact.newBuilder().build();
+ * Contact response = contactServiceClient.createContact(parent, contact);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Contact` will be created. Format:
+ * `networks/{network_code}`
+ * @param contact Required. The `Contact` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Contact createContact(NetworkName parent, Contact contact) {
+ CreateContactRequest request =
+ CreateContactRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setContact(contact)
+ .build();
+ return createContact(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * Contact contact = Contact.newBuilder().build();
+ * Contact response = contactServiceClient.createContact(parent, contact);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `Contact` will be created. Format:
+ * `networks/{network_code}`
+ * @param contact Required. The `Contact` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Contact createContact(String parent, Contact contact) {
+ CreateContactRequest request =
+ CreateContactRequest.newBuilder().setParent(parent).setContact(contact).build();
+ return createContact(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * CreateContactRequest request =
+ * CreateContactRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setContact(Contact.newBuilder().build())
+ * .build();
+ * Contact response = contactServiceClient.createContact(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 Contact createContact(CreateContactRequest request) {
+ return createContactCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * CreateContactRequest request =
+ * CreateContactRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setContact(Contact.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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `Contacts` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateContactRequest must match this
+ * field.
+ * @param requests Required. The `Contact` 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 BatchCreateContactsResponse batchCreateContacts(
+ 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `Contacts` will be created. Format:
+ * `networks/{network_code}` The parent field in the CreateContactRequest must match this
+ * field.
+ * @param requests Required. The `Contact` 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 BatchCreateContactsResponse batchCreateContacts(
+ 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * BatchCreateContactsRequest request =
+ * BatchCreateContactsRequest.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 BatchCreateContactsResponse batchCreateContacts(BatchCreateContactsRequest request) {
+ return batchCreateContactsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch create `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * BatchCreateContactsRequest request =
+ * BatchCreateContactsRequest.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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * Contact contact = Contact.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Contact response = contactServiceClient.updateContact(contact, updateMask);
+ * }
+ * }
+ *
+ * @param contact Required. The `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * UpdateContactRequest request =
+ * UpdateContactRequest.newBuilder()
+ * .setContact(Contact.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Contact response = contactServiceClient.updateContact(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 Contact updateContact(UpdateContactRequest request) {
+ return updateContactCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * UpdateContactRequest request =
+ * UpdateContactRequest.newBuilder()
+ * .setContact(Contact.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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * List
+ *
+ * @param parent Required. The parent resource where `Contacts` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateContactRequest must match this
+ * field.
+ * @param requests Required. The `Contact` 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 BatchUpdateContactsResponse batchUpdateContacts(
+ 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * List
+ *
+ * @param parent Required. The parent resource where `Contacts` will be updated. Format:
+ * `networks/{network_code}` The parent field in the UpdateContactRequest must match this
+ * field.
+ * @param requests Required. The `Contact` 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 BatchUpdateContactsResponse batchUpdateContacts(
+ 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * BatchUpdateContactsRequest request =
+ * BatchUpdateContactsRequest.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 BatchUpdateContactsResponse batchUpdateContacts(BatchUpdateContactsRequest request) {
+ return batchUpdateContactsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to batch update `Contact` 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 (ContactServiceClient contactServiceClient = ContactServiceClient.create()) {
+ * BatchUpdateContactsRequest request =
+ * BatchUpdateContactsRequest.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
+ * ContactServiceSettings.Builder contactServiceSettingsBuilder =
+ * ContactServiceSettings.newBuilder();
+ * contactServiceSettingsBuilder
+ * .getContactSettings()
+ * .setRetrySettings(
+ * contactServiceSettingsBuilder
+ * .getContactSettings()
+ * .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());
+ * ContactServiceSettings contactServiceSettings = contactServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class ContactServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]");
+ * ContentBundle response = contentBundleServiceClient.getContentBundle(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
+ * ContentBundleServiceSettings contentBundleServiceSettings =
+ * ContentBundleServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create(contentBundleServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentBundleServiceSettings contentBundleServiceSettings =
+ * ContentBundleServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create(contentBundleServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying 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()) {
+ * ContentBundleName name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]");
+ * ContentBundle response = contentBundleServiceClient.getContentBundle(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ContentBundle. Format:
+ * `networks/{network_code}/contentBundles/{content_bundle_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentBundle getContentBundle(ContentBundleName name) {
+ GetContentBundleRequest request =
+ GetContentBundleRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getContentBundle(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * String name = ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString();
+ * ContentBundle response = contentBundleServiceClient.getContentBundle(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ContentBundle. Format:
+ * `networks/{network_code}/contentBundles/{content_bundle_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentBundle getContentBundle(String name) {
+ GetContentBundleRequest request = GetContentBundleRequest.newBuilder().setName(name).build();
+ return getContentBundle(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * GetContentBundleRequest request =
+ * GetContentBundleRequest.newBuilder()
+ * .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").toString())
+ * .build();
+ * ContentBundle response = contentBundleServiceClient.getContentBundle(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 ContentBundle getContentBundle(GetContentBundleRequest request) {
+ return getContentBundleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * GetContentBundleRequest request =
+ * GetContentBundleRequest.newBuilder()
+ * .setName(ContentBundleName.of("[NETWORK_CODE]", "[CONTENT_BUNDLE]").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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (ContentBundle element :
+ * contentBundleServiceClient.listContentBundles(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ContentBundles. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentBundlesPagedResponse listContentBundles(NetworkName parent) {
+ ListContentBundlesRequest request =
+ ListContentBundlesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listContentBundles(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (ContentBundle element :
+ * contentBundleServiceClient.listContentBundles(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ContentBundles. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentBundlesPagedResponse listContentBundles(String parent) {
+ ListContentBundlesRequest request =
+ ListContentBundlesRequest.newBuilder().setParent(parent).build();
+ return listContentBundles(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * ListContentBundlesRequest request =
+ * ListContentBundlesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (ContentBundle element :
+ * contentBundleServiceClient.listContentBundles(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 ListContentBundlesPagedResponse listContentBundles(
+ ListContentBundlesRequest request) {
+ return listContentBundlesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ContentBundle` 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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * ListContentBundlesRequest request =
+ * ListContentBundlesRequest.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 (ContentBundleServiceClient contentBundleServiceClient =
+ * ContentBundleServiceClient.create()) {
+ * ListContentBundlesRequest request =
+ * ListContentBundlesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListContentBundlesResponse response =
+ * contentBundleServiceClient.listContentBundlesCallable().call(request);
+ * for (ContentBundle element : response.getContentBundlesList()) {
+ * // 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
+ * ContentBundleServiceSettings.Builder contentBundleServiceSettingsBuilder =
+ * ContentBundleServiceSettings.newBuilder();
+ * contentBundleServiceSettingsBuilder
+ * .getContentBundleSettings()
+ * .setRetrySettings(
+ * contentBundleServiceSettingsBuilder
+ * .getContentBundleSettings()
+ * .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());
+ * ContentBundleServiceSettings contentBundleServiceSettings =
+ * contentBundleServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class ContentBundleServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]");
+ * ContentLabel response = contentLabelServiceClient.getContentLabel(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
+ * ContentLabelServiceSettings contentLabelServiceSettings =
+ * ContentLabelServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ContentLabelServiceClient contentLabelServiceClient =
+ * ContentLabelServiceClient.create(contentLabelServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentLabelServiceSettings contentLabelServiceSettings =
+ * ContentLabelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContentLabelServiceClient contentLabelServiceClient =
+ * ContentLabelServiceClient.create(contentLabelServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * ContentLabelName name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]");
+ * ContentLabel response = contentLabelServiceClient.getContentLabel(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ContentLabel. Format:
+ * `networks/{network_code}/contentLabels/{content_label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentLabel getContentLabel(ContentLabelName name) {
+ GetContentLabelRequest request =
+ GetContentLabelRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getContentLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentLabel` 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * String name = ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString();
+ * ContentLabel response = contentLabelServiceClient.getContentLabel(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ContentLabel. Format:
+ * `networks/{network_code}/contentLabels/{content_label_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentLabel getContentLabel(String name) {
+ GetContentLabelRequest request = GetContentLabelRequest.newBuilder().setName(name).build();
+ return getContentLabel(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentLabel` 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * GetContentLabelRequest request =
+ * GetContentLabelRequest.newBuilder()
+ * .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").toString())
+ * .build();
+ * ContentLabel response = contentLabelServiceClient.getContentLabel(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 ContentLabel getContentLabel(GetContentLabelRequest request) {
+ return getContentLabelCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ContentLabel` 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * GetContentLabelRequest request =
+ * GetContentLabelRequest.newBuilder()
+ * .setName(ContentLabelName.of("[NETWORK_CODE]", "[CONTENT_LABEL]").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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (ContentLabel element :
+ * contentLabelServiceClient.listContentLabels(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ContentLabels. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentLabelsPagedResponse listContentLabels(NetworkName parent) {
+ ListContentLabelsRequest request =
+ ListContentLabelsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listContentLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ContentLabel` 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (ContentLabel element :
+ * contentLabelServiceClient.listContentLabels(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ContentLabels. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentLabelsPagedResponse listContentLabels(String parent) {
+ ListContentLabelsRequest request =
+ ListContentLabelsRequest.newBuilder().setParent(parent).build();
+ return listContentLabels(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ContentLabel` 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * ListContentLabelsRequest request =
+ * ListContentLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (ContentLabel element :
+ * contentLabelServiceClient.listContentLabels(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 ListContentLabelsPagedResponse listContentLabels(ListContentLabelsRequest request) {
+ return listContentLabelsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ContentLabel` 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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * ListContentLabelsRequest request =
+ * ListContentLabelsRequest.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 (ContentLabelServiceClient contentLabelServiceClient = ContentLabelServiceClient.create()) {
+ * ListContentLabelsRequest request =
+ * ListContentLabelsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListContentLabelsResponse response =
+ * contentLabelServiceClient.listContentLabelsCallable().call(request);
+ * for (ContentLabel element : response.getContentLabelsList()) {
+ * // 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
+ * ContentLabelServiceSettings.Builder contentLabelServiceSettingsBuilder =
+ * ContentLabelServiceSettings.newBuilder();
+ * contentLabelServiceSettingsBuilder
+ * .getContentLabelSettings()
+ * .setRetrySettings(
+ * contentLabelServiceSettingsBuilder
+ * .getContentLabelSettings()
+ * .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());
+ * ContentLabelServiceSettings contentLabelServiceSettings =
+ * contentLabelServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class ContentLabelServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]");
+ * Content response = contentServiceClient.getContent(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
+ * ContentServiceSettings contentServiceSettings =
+ * ContentServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ContentServiceSettings contentServiceSettings =
+ * ContentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ContentServiceClient contentServiceClient = ContentServiceClient.create(contentServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * ContentName name = ContentName.of("[NETWORK_CODE]", "[CONTENT]");
+ * Content response = contentServiceClient.getContent(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Content. Format:
+ * `networks/{network_code}/content/{content_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Content getContent(ContentName name) {
+ GetContentRequest request =
+ GetContentRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getContent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Content` 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * String name = ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString();
+ * Content response = contentServiceClient.getContent(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the Content. Format:
+ * `networks/{network_code}/content/{content_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Content getContent(String name) {
+ GetContentRequest request = GetContentRequest.newBuilder().setName(name).build();
+ return getContent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Content` 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * GetContentRequest request =
+ * GetContentRequest.newBuilder()
+ * .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").toString())
+ * .build();
+ * Content response = contentServiceClient.getContent(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 Content getContent(GetContentRequest request) {
+ return getContentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `Content` 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * GetContentRequest request =
+ * GetContentRequest.newBuilder()
+ * .setName(ContentName.of("[NETWORK_CODE]", "[CONTENT]").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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (Content element : contentServiceClient.listContent(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Content. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentPagedResponse listContent(NetworkName parent) {
+ ListContentRequest request =
+ ListContentRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listContent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Content` 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (Content element : contentServiceClient.listContent(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of Content. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentPagedResponse listContent(String parent) {
+ ListContentRequest request = ListContentRequest.newBuilder().setParent(parent).build();
+ return listContent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Content` 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * ListContentRequest request =
+ * ListContentRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (Content element : contentServiceClient.listContent(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 ListContentPagedResponse listContent(ListContentRequest request) {
+ return listContentPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `Content` 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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * ListContentRequest request =
+ * ListContentRequest.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 (ContentServiceClient contentServiceClient = ContentServiceClient.create()) {
+ * ListContentRequest request =
+ * ListContentRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListContentResponse response = contentServiceClient.listContentCallable().call(request);
+ * for (Content element : response.getContentList()) {
+ * // 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
+ * ContentServiceSettings.Builder contentServiceSettingsBuilder =
+ * ContentServiceSettings.newBuilder();
+ * contentServiceSettingsBuilder
+ * .getContentSettings()
+ * .setRetrySettings(
+ * contentServiceSettingsBuilder
+ * .getContentSettings()
+ * .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());
+ * ContentServiceSettings contentServiceSettings = contentServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ */
+@Generated("by gapic-generator-java")
+public class ContentServiceSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CreativeTemplateServiceClient creativeTemplateServiceClient =
+ * CreativeTemplateServiceClient.create()) {
+ * CreativeTemplateName name = CreativeTemplateName.of("[NETWORK_CODE]", "[CREATIVE_TEMPLATE]");
+ * CreativeTemplate response = creativeTemplateServiceClient.getCreativeTemplate(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *