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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + * AdBreak response = adBreakServiceClient.getAdBreak(name); + * } + * }+ * + *
Note: close() needs to be called on the AdBreakServiceClient 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 | + *
---|---|---|
GetAdBreak |
+ * API to retrieve an `AdBreak` object. + * Query an ad break by its resource name or custom asset key. Check the resource's `breakState` field to determine its state. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"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. + *
|
+ *
ListAdBreaks |
+ * API to retrieve a list of `AdBreak` objects. + * By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are prioritized and appear first. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"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. + *
|
+ *
CreateAdBreak |
+ * API to create an `AdBreak` object. + * Informs DAI of an upcoming ad break for a live stream event, with an optional expected start time. DAI will begin decisioning ads for the break shortly before the expected start time, if provided. Each live stream event can only have one incomplete ad break at any given time. The next ad break can be scheduled after the previous ad break has started serving, indicated by its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], or it has been deleted. + * This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break and before the ad break is complete, the ad break is discarded. + * An ad break's state is complete when the following occurs: - Full service DAI: after a matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break sequence. |
+ *
+ * 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. + *
|
+ *
UpdateAdBreak |
+ * API to update an `AdBreak` object. + * Modify an ad break when its state is [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"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. + *
|
+ *
DeleteAdBreak |
+ * API to delete an `AdBreak` object. + * Deletes and cancels an incomplete ad break, mitigating the need to wait for the current break to serve before recreating an ad break. You can delete an ad break that has not started serving or seen in manifests, indicated by its state being [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of AdBreakServiceSettings 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 + * AdBreakServiceSettings adBreakServiceSettings = + * AdBreakServiceSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create(adBreakServiceSettings); + * }+ * + *
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 + * AdBreakServiceSettings adBreakServiceSettings = + * AdBreakServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + * AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create(adBreakServiceSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AdBreakServiceClient implements BackgroundResource { + private final AdBreakServiceSettings settings; + private final AdBreakServiceStub stub; + + /** Constructs an instance of AdBreakServiceClient with default settings. */ + public static final AdBreakServiceClient create() throws IOException { + return create(AdBreakServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdBreakServiceClient, 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 AdBreakServiceClient create(AdBreakServiceSettings settings) + throws IOException { + return new AdBreakServiceClient(settings); + } + + /** + * Constructs an instance of AdBreakServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AdBreakServiceSettings). + */ + public static final AdBreakServiceClient create(AdBreakServiceStub stub) { + return new AdBreakServiceClient(stub); + } + + /** + * Constructs an instance of AdBreakServiceClient, 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 AdBreakServiceClient(AdBreakServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AdBreakServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AdBreakServiceClient(AdBreakServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AdBreakServiceSettings getSettings() { + return settings; + } + + public AdBreakServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *
Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + * AdBreak response = adBreakServiceClient.getAdBreak(name); + * } + * }+ * + * @param name Required. The resource name of the AdBreak using the asset key or custom asset key. + *
Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak getAdBreak(AdBreakName name) { + GetAdBreakRequest request = + GetAdBreakRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *
Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * String name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString(); + * AdBreak response = adBreakServiceClient.getAdBreak(name); + * } + * }+ * + * @param name Required. The resource name of the AdBreak using the asset key or custom asset key. + *
Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break_id}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak getAdBreak(String name) { + GetAdBreakRequest request = GetAdBreakRequest.newBuilder().setName(name).build(); + return getAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *
Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * GetAdBreakRequest request = + * GetAdBreakRequest.newBuilder() + * .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + * .build(); + * AdBreak response = adBreakServiceClient.getAdBreak(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 AdBreak getAdBreak(GetAdBreakRequest request) { + return getAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve an `AdBreak` object. + * + *
Query an ad break by its resource name or custom asset key. Check the resource's + * `breakState` field to determine its state. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * GetAdBreakRequest request = + * GetAdBreakRequest.newBuilder() + * .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = adBreakServiceClient.getAdBreakCallable().futureCall(request); + * // Do something. + * AdBreak response = future.get(); + * } + * }
By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + * for (AdBreak element : adBreakServiceClient.listAdBreaks(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent, which owns this collection of AdBreaks. + *
Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAdBreaksPagedResponse listAdBreaks(LiveStreamEventName parent) { + ListAdBreaksRequest request = + ListAdBreaksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAdBreaks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *
By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * String parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString(); + * for (AdBreak element : adBreakServiceClient.listAdBreaks(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent, which owns this collection of AdBreaks. + *
Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAdBreaksPagedResponse listAdBreaks(String parent) { + ListAdBreaksRequest request = ListAdBreaksRequest.newBuilder().setParent(parent).build(); + return listAdBreaks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *
By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * ListAdBreaksRequest request = + * ListAdBreaksRequest.newBuilder() + * .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .setSkip(3532159) + * .build(); + * for (AdBreak element : adBreakServiceClient.listAdBreaks(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 ListAdBreaksPagedResponse listAdBreaks(ListAdBreaksRequest request) { + return listAdBreaksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `AdBreak` objects. + * + *
By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * ListAdBreaksRequest request = + * ListAdBreaksRequest.newBuilder() + * .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .setSkip(3532159) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * adBreakServiceClient.listAdBreaksPagedCallable().futureCall(request); + * // Do something. + * for (AdBreak element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse + * chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are + * prioritized and appear first. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * ListAdBreaksRequest request = + * ListAdBreaksRequest.newBuilder() + * .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .setSkip(3532159) + * .build(); + * while (true) { + * ListAdBreaksResponse response = adBreakServiceClient.listAdBreaksCallable().call(request); + * for (AdBreak element : response.getAdBreaksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *
This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *
An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * LiveStreamEventName parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]"); + * AdBreak adBreak = AdBreak.newBuilder().build(); + * AdBreak response = adBreakServiceClient.createAdBreak(parent, adBreak); + * } + * }+ * + * @param parent Required. The parent resource where this `AdBreak` will be created identified by + * an asset key or custom asset key. + *
Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @param adBreak Required. The `AdBreak` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak createAdBreak(LiveStreamEventName parent, AdBreak adBreak) { + CreateAdBreakRequest request = + CreateAdBreakRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAdBreak(adBreak) + .build(); + return createAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *
Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *
This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *
An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * String parent = LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString(); + * AdBreak adBreak = AdBreak.newBuilder().build(); + * AdBreak response = adBreakServiceClient.createAdBreak(parent, adBreak); + * } + * }+ * + * @param parent Required. The parent resource where this `AdBreak` will be created identified by + * an asset key or custom asset key. + *
Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` + * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` + * @param adBreak Required. The `AdBreak` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdBreak createAdBreak(String parent, AdBreak adBreak) { + CreateAdBreakRequest request = + CreateAdBreakRequest.newBuilder().setParent(parent).setAdBreak(adBreak).build(); + return createAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *
Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *
This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *
An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * CreateAdBreakRequest request = + * CreateAdBreakRequest.newBuilder() + * .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + * .setAdBreak(AdBreak.newBuilder().build()) + * .build(); + * AdBreak response = adBreakServiceClient.createAdBreak(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 AdBreak createAdBreak(CreateAdBreakRequest request) { + return createAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdBreak` object. + * + *
Informs DAI of an upcoming ad break for a live stream event, with an optional expected start + * time. DAI will begin decisioning ads for the break shortly before the expected start time, if + * provided. Each live stream event can only have one incomplete ad break at any given time. The + * next ad break can be scheduled after the previous ad break has started serving, indicated by + * its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], + * or it has been deleted. + * + *
This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks + * enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) + * or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break + * and before the ad break is complete, the ad break is discarded. + * + *
An ad break's state is complete when the following occurs: - Full service DAI: after a + * matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started + * decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break + * sequence. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * CreateAdBreakRequest request = + * CreateAdBreakRequest.newBuilder() + * .setParent(LiveStreamEventName.of("[NETWORK_CODE]", "[LIVE_STREAM_EVENT]").toString()) + * .setAdBreak(AdBreak.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = adBreakServiceClient.createAdBreakCallable().futureCall(request); + * // Do something. + * AdBreak response = future.get(); + * } + * }
Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * AdBreak adBreak = AdBreak.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * AdBreak response = adBreakServiceClient.updateAdBreak(adBreak, updateMask); + * } + * }+ * + * @param adBreak Required. The `AdBreak` to update. + *
The `AdBreak`'s `name` is used to identify the `AdBreak` 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 AdBreak updateAdBreak(AdBreak adBreak, FieldMask updateMask) { + UpdateAdBreakRequest request = + UpdateAdBreakRequest.newBuilder().setAdBreak(adBreak).setUpdateMask(updateMask).build(); + return updateAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdBreak` object. + * + *
Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * UpdateAdBreakRequest request = + * UpdateAdBreakRequest.newBuilder() + * .setAdBreak(AdBreak.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * AdBreak response = adBreakServiceClient.updateAdBreak(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 AdBreak updateAdBreak(UpdateAdBreakRequest request) { + return updateAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdBreak` object. + * + *
Modify an ad break when its state is + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * UpdateAdBreakRequest request = + * UpdateAdBreakRequest.newBuilder() + * .setAdBreak(AdBreak.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = adBreakServiceClient.updateAdBreakCallable().futureCall(request); + * // Do something. + * AdBreak response = future.get(); + * } + * }
Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]"); + * adBreakServiceClient.deleteAdBreak(name); + * } + * }+ * + * @param name Required. The name of the ad break to delete. + *
Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAdBreak(AdBreakName name) { + DeleteAdBreakRequest request = + DeleteAdBreakRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to delete an `AdBreak` object. + * + *
Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * String name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString(); + * adBreakServiceClient.deleteAdBreak(name); + * } + * }+ * + * @param name Required. The name of the ad break to delete. + *
Format: + * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAdBreak(String name) { + DeleteAdBreakRequest request = DeleteAdBreakRequest.newBuilder().setName(name).build(); + deleteAdBreak(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to delete an `AdBreak` object. + * + *
Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * DeleteAdBreakRequest request = + * DeleteAdBreakRequest.newBuilder() + * .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + * .build(); + * adBreakServiceClient.deleteAdBreak(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAdBreak(DeleteAdBreakRequest request) { + deleteAdBreakCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to delete an `AdBreak` object. + * + *
Deletes and cancels an incomplete ad break, mitigating the need to wait for the current + * break to serve before recreating an ad break. You can delete an ad break that has not started + * serving or seen in manifests, indicated by its state being + * [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or + * [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED]. + * + *
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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) { + * DeleteAdBreakRequest request = + * DeleteAdBreakRequest.newBuilder() + * .setName(AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = adBreakServiceClient.deleteAdBreakCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 getAdBreak: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * AdBreakServiceSettings.Builder adBreakServiceSettingsBuilder = + * AdBreakServiceSettings.newBuilder(); + * adBreakServiceSettingsBuilder + * .getAdBreakSettings() + * .setRetrySettings( + * adBreakServiceSettingsBuilder + * .getAdBreakSettings() + * .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()); + * AdBreakServiceSettings adBreakServiceSettings = adBreakServiceSettingsBuilder.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 AdBreakServiceSettings extends ClientSettings
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 BandwidthGroupServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetBandwidthGroup API to retrieve a `BandwidthGroup` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getBandwidthGroup(GetBandwidthGroupRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getBandwidthGroup(BandwidthGroupName name)
+ * getBandwidthGroup(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. getBandwidthGroupCallable()
+ * ListBandwidthGroups API to retrieve a list of `BandwidthGroup` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listBandwidthGroups(ListBandwidthGroupsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listBandwidthGroups(NetworkName parent)
+ * listBandwidthGroups(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. listBandwidthGroupsPagedCallable()
+ * listBandwidthGroupsCallable()
+ * 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 BandwidthGroupServiceSettings
+ * 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 BandwidthGroupServiceClient implements BackgroundResource {
+ private final BandwidthGroupServiceSettings settings;
+ private final BandwidthGroupServiceStub stub;
+
+ /** Constructs an instance of BandwidthGroupServiceClient with default settings. */
+ public static final BandwidthGroupServiceClient create() throws IOException {
+ return create(BandwidthGroupServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of BandwidthGroupServiceClient, 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 BandwidthGroupServiceClient create(BandwidthGroupServiceSettings settings)
+ throws IOException {
+ return new BandwidthGroupServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of BandwidthGroupServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(BandwidthGroupServiceSettings).
+ */
+ public static final BandwidthGroupServiceClient create(BandwidthGroupServiceStub stub) {
+ return new BandwidthGroupServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of BandwidthGroupServiceClient, 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 BandwidthGroupServiceClient(BandwidthGroupServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((BandwidthGroupServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected BandwidthGroupServiceClient(BandwidthGroupServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final BandwidthGroupServiceSettings getSettings() {
+ return settings;
+ }
+
+ public BandwidthGroupServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BandwidthGroup` 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 getBandwidthGroup:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listCustomTargetingValues(CustomTargetingKeyName parent)
+ * listCustomTargetingValues(NetworkName parent)
* listCustomTargetingValues(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. 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 DeviceCategoryServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetDeviceCategory API to retrieve a `DeviceCategory` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getDeviceCategory(GetDeviceCategoryRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getDeviceCategory(DeviceCategoryName name)
+ * getDeviceCategory(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. getDeviceCategoryCallable()
+ * ListDeviceCategories API to retrieve a list of `DeviceCategory` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listDeviceCategories(ListDeviceCategoriesRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listDeviceCategories(NetworkName parent)
+ * listDeviceCategories(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. listDeviceCategoriesPagedCallable()
+ * listDeviceCategoriesCallable()
+ * 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 DeviceCategoryServiceSettings
+ * 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 DeviceCategoryServiceClient implements BackgroundResource {
+ private final DeviceCategoryServiceSettings settings;
+ private final DeviceCategoryServiceStub stub;
+
+ /** Constructs an instance of DeviceCategoryServiceClient with default settings. */
+ public static final DeviceCategoryServiceClient create() throws IOException {
+ return create(DeviceCategoryServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of DeviceCategoryServiceClient, 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 DeviceCategoryServiceClient create(DeviceCategoryServiceSettings settings)
+ throws IOException {
+ return new DeviceCategoryServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of DeviceCategoryServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(DeviceCategoryServiceSettings).
+ */
+ public static final DeviceCategoryServiceClient create(DeviceCategoryServiceStub stub) {
+ return new DeviceCategoryServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of DeviceCategoryServiceClient, 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 DeviceCategoryServiceClient(DeviceCategoryServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((DeviceCategoryServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected DeviceCategoryServiceClient(DeviceCategoryServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final DeviceCategoryServiceSettings getSettings() {
+ return settings;
+ }
+
+ public DeviceCategoryServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `DeviceCategory` 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 getDeviceCategory:
+ *
+ * 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 GeoTargetServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * GetGeoTarget API to retrieve a `GeoTarget` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getGeoTarget(GetGeoTargetRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getGeoTarget(GeoTargetName name)
+ * getGeoTarget(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. getGeoTargetCallable()
+ * ListGeoTargets API to retrieve a list of `GeoTarget` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listGeoTargets(ListGeoTargetsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listGeoTargets(NetworkName parent)
+ * listGeoTargets(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. listGeoTargetsPagedCallable()
+ * listGeoTargetsCallable()
+ * 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 GeoTargetServiceSettings 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 GeoTargetServiceClient implements BackgroundResource {
+ private final GeoTargetServiceSettings settings;
+ private final GeoTargetServiceStub stub;
+
+ /** Constructs an instance of GeoTargetServiceClient with default settings. */
+ public static final GeoTargetServiceClient create() throws IOException {
+ return create(GeoTargetServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of GeoTargetServiceClient, 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 GeoTargetServiceClient create(GeoTargetServiceSettings settings)
+ throws IOException {
+ return new GeoTargetServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of GeoTargetServiceClient, using the given stub for making calls. This
+ * is for advanced usage - prefer using create(GeoTargetServiceSettings).
+ */
+ public static final GeoTargetServiceClient create(GeoTargetServiceStub stub) {
+ return new GeoTargetServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of GeoTargetServiceClient, 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 GeoTargetServiceClient(GeoTargetServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((GeoTargetServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected GeoTargetServiceClient(GeoTargetServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final GeoTargetServiceSettings getSettings() {
+ return settings;
+ }
+
+ public GeoTargetServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `GeoTarget` 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 getGeoTarget:
+ *
+ * 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:
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java
new file mode 100644
index 000000000000..e4a5058ffcae
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java
@@ -0,0 +1,616 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.admanager.v1;
+
+import com.google.ads.admanager.v1.stub.OperatingSystemServiceStub;
+import com.google.ads.admanager.v1.stub.OperatingSystemServiceStubSettings;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: Provides methods for handling `OperatingSystem` objects.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the OperatingSystemServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetOperatingSystem API to retrieve a `OperatingSystem` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getOperatingSystem(GetOperatingSystemRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getOperatingSystem(OperatingSystemName name)
+ * getOperatingSystem(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. getOperatingSystemCallable()
+ * ListOperatingSystems API to retrieve a list of `OperatingSystem` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listOperatingSystems(ListOperatingSystemsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listOperatingSystems(NetworkName parent)
+ * listOperatingSystems(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. listOperatingSystemsPagedCallable()
+ * listOperatingSystemsCallable()
+ * 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 OperatingSystemServiceSettings
+ * 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 OperatingSystemServiceClient implements BackgroundResource {
+ private final OperatingSystemServiceSettings settings;
+ private final OperatingSystemServiceStub stub;
+
+ /** Constructs an instance of OperatingSystemServiceClient with default settings. */
+ public static final OperatingSystemServiceClient create() throws IOException {
+ return create(OperatingSystemServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of OperatingSystemServiceClient, 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 OperatingSystemServiceClient create(OperatingSystemServiceSettings settings)
+ throws IOException {
+ return new OperatingSystemServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of OperatingSystemServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(OperatingSystemServiceSettings).
+ */
+ public static final OperatingSystemServiceClient create(OperatingSystemServiceStub stub) {
+ return new OperatingSystemServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of OperatingSystemServiceClient, 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 OperatingSystemServiceClient(OperatingSystemServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((OperatingSystemServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected OperatingSystemServiceClient(OperatingSystemServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final OperatingSystemServiceSettings getSettings() {
+ return settings;
+ }
+
+ public OperatingSystemServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystem` 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 getOperatingSystem:
+ *
+ * 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 OperatingSystemVersionServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetOperatingSystemVersion API to retrieve a `OperatingSystemVersion` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getOperatingSystemVersion(GetOperatingSystemVersionRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getOperatingSystemVersion(OperatingSystemVersionName name)
+ * getOperatingSystemVersion(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. getOperatingSystemVersionCallable()
+ * ListOperatingSystemVersions API to retrieve a list of `OperatingSystemVersion` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listOperatingSystemVersions(ListOperatingSystemVersionsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listOperatingSystemVersions(NetworkName parent)
+ * listOperatingSystemVersions(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. listOperatingSystemVersionsPagedCallable()
+ * listOperatingSystemVersionsCallable()
+ * 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
+ * OperatingSystemVersionServiceSettings 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 OperatingSystemVersionServiceClient implements BackgroundResource {
+ private final OperatingSystemVersionServiceSettings settings;
+ private final OperatingSystemVersionServiceStub stub;
+
+ /** Constructs an instance of OperatingSystemVersionServiceClient with default settings. */
+ public static final OperatingSystemVersionServiceClient create() throws IOException {
+ return create(OperatingSystemVersionServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of OperatingSystemVersionServiceClient, 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 OperatingSystemVersionServiceClient create(
+ OperatingSystemVersionServiceSettings settings) throws IOException {
+ return new OperatingSystemVersionServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of OperatingSystemVersionServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(OperatingSystemVersionServiceSettings).
+ */
+ public static final OperatingSystemVersionServiceClient create(
+ OperatingSystemVersionServiceStub stub) {
+ return new OperatingSystemVersionServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of OperatingSystemVersionServiceClient, 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 OperatingSystemVersionServiceClient(OperatingSystemVersionServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub =
+ ((OperatingSystemVersionServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected OperatingSystemVersionServiceClient(OperatingSystemVersionServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final OperatingSystemVersionServiceSettings getSettings() {
+ return settings;
+ }
+
+ public OperatingSystemVersionServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystemVersion` 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 getOperatingSystemVersion:
+ *
+ * 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 PrivateAuctionDealServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetPrivateAuctionDeal API to retrieve a `PrivateAuctionDeal` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getPrivateAuctionDeal(GetPrivateAuctionDealRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getPrivateAuctionDeal(PrivateAuctionDealName name)
+ * getPrivateAuctionDeal(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. getPrivateAuctionDealCallable()
+ * ListPrivateAuctionDeals API to retrieve a list of `PrivateAuctionDeal` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPrivateAuctionDeals(ListPrivateAuctionDealsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPrivateAuctionDeals(NetworkName parent)
+ * listPrivateAuctionDeals(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. listPrivateAuctionDealsPagedCallable()
+ * listPrivateAuctionDealsCallable()
+ * CreatePrivateAuctionDeal API to create a `PrivateAuctionDeal` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createPrivateAuctionDeal(CreatePrivateAuctionDealRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createPrivateAuctionDeal(NetworkName parent, PrivateAuctionDeal privateAuctionDeal)
+ * createPrivateAuctionDeal(String parent, PrivateAuctionDeal privateAuctionDeal)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createPrivateAuctionDealCallable()
+ * UpdatePrivateAuctionDeal API to update a `PrivateAuctionDeal` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updatePrivateAuctionDeal(UpdatePrivateAuctionDealRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updatePrivateAuctionDeal(PrivateAuctionDeal privateAuctionDeal, 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. updatePrivateAuctionDealCallable()
+ * 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
+ * PrivateAuctionDealServiceSettings 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 PrivateAuctionDealServiceClient implements BackgroundResource {
+ private final PrivateAuctionDealServiceSettings settings;
+ private final PrivateAuctionDealServiceStub stub;
+
+ /** Constructs an instance of PrivateAuctionDealServiceClient with default settings. */
+ public static final PrivateAuctionDealServiceClient create() throws IOException {
+ return create(PrivateAuctionDealServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PrivateAuctionDealServiceClient, 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 PrivateAuctionDealServiceClient create(
+ PrivateAuctionDealServiceSettings settings) throws IOException {
+ return new PrivateAuctionDealServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PrivateAuctionDealServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(PrivateAuctionDealServiceSettings).
+ */
+ public static final PrivateAuctionDealServiceClient create(PrivateAuctionDealServiceStub stub) {
+ return new PrivateAuctionDealServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PrivateAuctionDealServiceClient, 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 PrivateAuctionDealServiceClient(PrivateAuctionDealServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((PrivateAuctionDealServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected PrivateAuctionDealServiceClient(PrivateAuctionDealServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final PrivateAuctionDealServiceSettings getSettings() {
+ return settings;
+ }
+
+ public PrivateAuctionDealServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuctionDeal` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The `PrivateAuctionDeal`'s `name` is used to identify the `PrivateAuctionDeal` 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 PrivateAuctionDeal updatePrivateAuctionDeal(
+ PrivateAuctionDeal privateAuctionDeal, FieldMask updateMask) {
+ UpdatePrivateAuctionDealRequest request =
+ UpdatePrivateAuctionDealRequest.newBuilder()
+ .setPrivateAuctionDeal(privateAuctionDeal)
+ .setUpdateMask(updateMask)
+ .build();
+ return updatePrivateAuctionDeal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `PrivateAuctionDeal` object.
+ *
+ * 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 getPrivateAuctionDeal:
+ *
+ * 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 PrivateAuctionServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetPrivateAuction API to retrieve a `PrivateAuction` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getPrivateAuction(GetPrivateAuctionRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getPrivateAuction(PrivateAuctionName name)
+ * getPrivateAuction(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. getPrivateAuctionCallable()
+ * ListPrivateAuctions API to retrieve a list of `PrivateAuction` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listPrivateAuctions(ListPrivateAuctionsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listPrivateAuctions(NetworkName parent)
+ * listPrivateAuctions(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. listPrivateAuctionsPagedCallable()
+ * listPrivateAuctionsCallable()
+ * CreatePrivateAuction API to create a `PrivateAuction` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. createPrivateAuction(CreatePrivateAuctionRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. createPrivateAuction(NetworkName parent, PrivateAuction privateAuction)
+ * createPrivateAuction(String parent, PrivateAuction privateAuction)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. createPrivateAuctionCallable()
+ * UpdatePrivateAuction API to update a `PrivateAuction` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. updatePrivateAuction(UpdatePrivateAuctionRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. updatePrivateAuction(PrivateAuction privateAuction, 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. updatePrivateAuctionCallable()
+ * 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 PrivateAuctionServiceSettings
+ * 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 PrivateAuctionServiceClient implements BackgroundResource {
+ private final PrivateAuctionServiceSettings settings;
+ private final PrivateAuctionServiceStub stub;
+
+ /** Constructs an instance of PrivateAuctionServiceClient with default settings. */
+ public static final PrivateAuctionServiceClient create() throws IOException {
+ return create(PrivateAuctionServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PrivateAuctionServiceClient, 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 PrivateAuctionServiceClient create(PrivateAuctionServiceSettings settings)
+ throws IOException {
+ return new PrivateAuctionServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PrivateAuctionServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(PrivateAuctionServiceSettings).
+ */
+ public static final PrivateAuctionServiceClient create(PrivateAuctionServiceStub stub) {
+ return new PrivateAuctionServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PrivateAuctionServiceClient, 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 PrivateAuctionServiceClient(PrivateAuctionServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((PrivateAuctionServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected PrivateAuctionServiceClient(PrivateAuctionServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final PrivateAuctionServiceSettings getSettings() {
+ return settings;
+ }
+
+ public PrivateAuctionServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuction` object.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The `PrivateAuction`'s `name` is used to identify the `PrivateAuction` 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 PrivateAuction updatePrivateAuction(
+ PrivateAuction privateAuction, FieldMask updateMask) {
+ UpdatePrivateAuctionRequest request =
+ UpdatePrivateAuctionRequest.newBuilder()
+ .setPrivateAuction(privateAuction)
+ .setUpdateMask(updateMask)
+ .build();
+ return updatePrivateAuction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `PrivateAuction` object.
+ *
+ * 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 getPrivateAuction:
+ *
+ * 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 ProgrammaticBuyerServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * GetProgrammaticBuyer API to retrieve a `ProgrammaticBuyer` object. Request object method variants only take one parameter, a request object, which must be constructed before the call. getProgrammaticBuyer(GetProgrammaticBuyerRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getProgrammaticBuyer(ProgrammaticBuyerName name)
+ * getProgrammaticBuyer(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. getProgrammaticBuyerCallable()
+ * ListProgrammaticBuyers API to retrieve a list of `ProgrammaticBuyer` objects. Request object method variants only take one parameter, a request object, which must be constructed before the call. listProgrammaticBuyers(ListProgrammaticBuyersRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listProgrammaticBuyers(NetworkName parent)
+ * listProgrammaticBuyers(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. listProgrammaticBuyersPagedCallable()
+ * listProgrammaticBuyersCallable()
+ * 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
+ * ProgrammaticBuyerServiceSettings 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 ProgrammaticBuyerServiceClient implements BackgroundResource {
+ private final ProgrammaticBuyerServiceSettings settings;
+ private final ProgrammaticBuyerServiceStub stub;
+
+ /** Constructs an instance of ProgrammaticBuyerServiceClient with default settings. */
+ public static final ProgrammaticBuyerServiceClient create() throws IOException {
+ return create(ProgrammaticBuyerServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of ProgrammaticBuyerServiceClient, 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 ProgrammaticBuyerServiceClient create(
+ ProgrammaticBuyerServiceSettings settings) throws IOException {
+ return new ProgrammaticBuyerServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of ProgrammaticBuyerServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer using create(ProgrammaticBuyerServiceSettings).
+ */
+ public static final ProgrammaticBuyerServiceClient create(ProgrammaticBuyerServiceStub stub) {
+ return new ProgrammaticBuyerServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of ProgrammaticBuyerServiceClient, 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 ProgrammaticBuyerServiceClient(ProgrammaticBuyerServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((ProgrammaticBuyerServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected ProgrammaticBuyerServiceClient(ProgrammaticBuyerServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final ProgrammaticBuyerServiceSettings getSettings() {
+ return settings;
+ }
+
+ public ProgrammaticBuyerServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ProgrammaticBuyer` 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 getProgrammaticBuyer:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
*
+ * ======================= AdBreakServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `AdBreak` objects.
+ *
+ * Sample for AdBreakServiceClient:
+ *
+ * ======================= AdUnitServiceClient =======================
*
* Service Description: Provides methods for handling AdUnit objects.
@@ -37,6 +55,25 @@
* }
* }
*
+ * ======================= BandwidthGroupServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `BandwidthGroup` objects.
+ *
+ * Sample for BandwidthGroupServiceClient:
+ *
+ * ======================= CompanyServiceClient =======================
*
* Service Description: Provides methods for handling `Company` objects.
@@ -108,13 +145,31 @@
* try (CustomTargetingValueServiceClient customTargetingValueServiceClient =
* CustomTargetingValueServiceClient.create()) {
* CustomTargetingValueName name =
- * CustomTargetingValueName.of(
- * "[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]", "[CUSTOM_TARGETING_VALUE]");
+ * CustomTargetingValueName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_VALUE]");
* CustomTargetingValue response =
* customTargetingValueServiceClient.getCustomTargetingValue(name);
* }
* }
*
+ * ======================= DeviceCategoryServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `DeviceCategory` objects.
+ *
+ * Sample for DeviceCategoryServiceClient:
+ *
+ * ======================= EntitySignalsMappingServiceClient =======================
*
* Service Description: Provides methods for handling `EntitySignalsMapping` objects.
@@ -136,9 +191,27 @@
* }
* }
*
+ * ======================= GeoTargetServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `GeoTarget` objects.
+ *
+ * Sample for GeoTargetServiceClient:
+ *
+ * ======================= NetworkServiceClient =======================
*
- * Service Description: Provides methods for handling Network objects.
+ * Service Description: Provides methods for handling `Network` objects.
*
* Sample for NetworkServiceClient:
*
@@ -154,6 +227,46 @@
* }
* }
*
+ * ======================= OperatingSystemServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `OperatingSystem` objects.
+ *
+ * Sample for OperatingSystemServiceClient:
+ *
+ * ======================= OperatingSystemVersionServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `OperatingSystemVersion` objects.
+ *
+ * Sample for OperatingSystemVersionServiceClient:
+ *
+ * ======================= OrderServiceClient =======================
*
* Service Description: Provides methods for handling `Order` objects.
@@ -190,6 +303,65 @@
* }
* }
*
+ * ======================= PrivateAuctionDealServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `PrivateAuctionDeal` objects.
+ *
+ * Sample for PrivateAuctionDealServiceClient:
+ *
+ * ======================= PrivateAuctionServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `PrivateAuction` objects.
+ *
+ * Sample for PrivateAuctionServiceClient:
+ *
+ * ======================= ProgrammaticBuyerServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `ProgrammaticBuyer` objects.
+ *
+ * Sample for ProgrammaticBuyerServiceClient:
+ *
+ * ======================= ReportServiceClient =======================
*
* Service Description: Provides methods for interacting with reports.
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStub.java
new file mode 100644
index 000000000000..5be03074c9dd
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStub.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright 2025 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.admanager.v1.stub;
+
+import static com.google.ads.admanager.v1.AdBreakServiceClient.ListAdBreaksPagedResponse;
+
+import com.google.ads.admanager.v1.AdBreak;
+import com.google.ads.admanager.v1.CreateAdBreakRequest;
+import com.google.ads.admanager.v1.DeleteAdBreakRequest;
+import com.google.ads.admanager.v1.GetAdBreakRequest;
+import com.google.ads.admanager.v1.ListAdBreaksRequest;
+import com.google.ads.admanager.v1.ListAdBreaksResponse;
+import com.google.ads.admanager.v1.UpdateAdBreakRequest;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the AdBreakService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class AdBreakServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getAdBreak:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
+ * BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(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
+ * BandwidthGroupServiceSettings bandwidthGroupServiceSettings =
+ * BandwidthGroupServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create(bandwidthGroupServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BandwidthGroupServiceSettings bandwidthGroupServiceSettings =
+ * BandwidthGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create(bandwidthGroupServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
+ * BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the BandwidthGroup. Format:
+ * `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BandwidthGroup getBandwidthGroup(BandwidthGroupName name) {
+ GetBandwidthGroupRequest request =
+ GetBandwidthGroupRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getBandwidthGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BandwidthGroup` 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * String name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString();
+ * BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the BandwidthGroup. Format:
+ * `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final BandwidthGroup getBandwidthGroup(String name) {
+ GetBandwidthGroupRequest request = GetBandwidthGroupRequest.newBuilder().setName(name).build();
+ return getBandwidthGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BandwidthGroup` 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * GetBandwidthGroupRequest request =
+ * GetBandwidthGroupRequest.newBuilder()
+ * .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").toString())
+ * .build();
+ * BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(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 BandwidthGroup getBandwidthGroup(GetBandwidthGroupRequest request) {
+ return getBandwidthGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `BandwidthGroup` 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * GetBandwidthGroupRequest request =
+ * GetBandwidthGroupRequest.newBuilder()
+ * .setName(BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]").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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (BandwidthGroup element :
+ * bandwidthGroupServiceClient.listBandwidthGroups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of BandwidthGroups. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBandwidthGroupsPagedResponse listBandwidthGroups(NetworkName parent) {
+ ListBandwidthGroupsRequest request =
+ ListBandwidthGroupsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listBandwidthGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `BandwidthGroup` 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (BandwidthGroup element :
+ * bandwidthGroupServiceClient.listBandwidthGroups(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of BandwidthGroups. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBandwidthGroupsPagedResponse listBandwidthGroups(String parent) {
+ ListBandwidthGroupsRequest request =
+ ListBandwidthGroupsRequest.newBuilder().setParent(parent).build();
+ return listBandwidthGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `BandwidthGroup` 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * ListBandwidthGroupsRequest request =
+ * ListBandwidthGroupsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (BandwidthGroup element :
+ * bandwidthGroupServiceClient.listBandwidthGroups(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 ListBandwidthGroupsPagedResponse listBandwidthGroups(
+ ListBandwidthGroupsRequest request) {
+ return listBandwidthGroupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `BandwidthGroup` 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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * ListBandwidthGroupsRequest request =
+ * ListBandwidthGroupsRequest.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 (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * ListBandwidthGroupsRequest request =
+ * ListBandwidthGroupsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListBandwidthGroupsResponse response =
+ * bandwidthGroupServiceClient.listBandwidthGroupsCallable().call(request);
+ * for (BandwidthGroup element : response.getBandwidthGroupsList()) {
+ * // 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
+ * BandwidthGroupServiceSettings.Builder bandwidthGroupServiceSettingsBuilder =
+ * BandwidthGroupServiceSettings.newBuilder();
+ * bandwidthGroupServiceSettingsBuilder
+ * .getBandwidthGroupSettings()
+ * .setRetrySettings(
+ * bandwidthGroupServiceSettingsBuilder
+ * .getBandwidthGroupSettings()
+ * .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());
+ * BandwidthGroupServiceSettings bandwidthGroupServiceSettings =
+ * bandwidthGroupServiceSettingsBuilder.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 BandwidthGroupServiceSettings 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]");
+ * DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(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
+ * DeviceCategoryServiceSettings deviceCategoryServiceSettings =
+ * DeviceCategoryServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create(deviceCategoryServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DeviceCategoryServiceSettings deviceCategoryServiceSettings =
+ * DeviceCategoryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create(deviceCategoryServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]");
+ * DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the DeviceCategory. Format:
+ * `networks/{network_code}/deviceCategories/{device_category_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DeviceCategory getDeviceCategory(DeviceCategoryName name) {
+ GetDeviceCategoryRequest request =
+ GetDeviceCategoryRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getDeviceCategory(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `DeviceCategory` 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * String name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString();
+ * DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the DeviceCategory. Format:
+ * `networks/{network_code}/deviceCategories/{device_category_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DeviceCategory getDeviceCategory(String name) {
+ GetDeviceCategoryRequest request = GetDeviceCategoryRequest.newBuilder().setName(name).build();
+ return getDeviceCategory(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `DeviceCategory` 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * GetDeviceCategoryRequest request =
+ * GetDeviceCategoryRequest.newBuilder()
+ * .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").toString())
+ * .build();
+ * DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(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 DeviceCategory getDeviceCategory(GetDeviceCategoryRequest request) {
+ return getDeviceCategoryCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `DeviceCategory` 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * GetDeviceCategoryRequest request =
+ * GetDeviceCategoryRequest.newBuilder()
+ * .setName(DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]").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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (DeviceCategory element :
+ * deviceCategoryServiceClient.listDeviceCategories(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of DeviceCategories. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDeviceCategoriesPagedResponse listDeviceCategories(NetworkName parent) {
+ ListDeviceCategoriesRequest request =
+ ListDeviceCategoriesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listDeviceCategories(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `DeviceCategory` 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (DeviceCategory element :
+ * deviceCategoryServiceClient.listDeviceCategories(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of DeviceCategories. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDeviceCategoriesPagedResponse listDeviceCategories(String parent) {
+ ListDeviceCategoriesRequest request =
+ ListDeviceCategoriesRequest.newBuilder().setParent(parent).build();
+ return listDeviceCategories(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `DeviceCategory` 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * ListDeviceCategoriesRequest request =
+ * ListDeviceCategoriesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (DeviceCategory element :
+ * deviceCategoryServiceClient.listDeviceCategories(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 ListDeviceCategoriesPagedResponse listDeviceCategories(
+ ListDeviceCategoriesRequest request) {
+ return listDeviceCategoriesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `DeviceCategory` 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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * ListDeviceCategoriesRequest request =
+ * ListDeviceCategoriesRequest.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 (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * ListDeviceCategoriesRequest request =
+ * ListDeviceCategoriesRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListDeviceCategoriesResponse response =
+ * deviceCategoryServiceClient.listDeviceCategoriesCallable().call(request);
+ * for (DeviceCategory element : response.getDeviceCategoriesList()) {
+ * // 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
+ * DeviceCategoryServiceSettings.Builder deviceCategoryServiceSettingsBuilder =
+ * DeviceCategoryServiceSettings.newBuilder();
+ * deviceCategoryServiceSettingsBuilder
+ * .getDeviceCategorySettings()
+ * .setRetrySettings(
+ * deviceCategoryServiceSettingsBuilder
+ * .getDeviceCategorySettings()
+ * .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());
+ * DeviceCategoryServiceSettings deviceCategoryServiceSettings =
+ * deviceCategoryServiceSettingsBuilder.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 DeviceCategoryServiceSettings 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]");
+ * GeoTarget response = geoTargetServiceClient.getGeoTarget(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
+ * GeoTargetServiceSettings geoTargetServiceSettings =
+ * GeoTargetServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * GeoTargetServiceClient geoTargetServiceClient =
+ * GeoTargetServiceClient.create(geoTargetServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GeoTargetServiceSettings geoTargetServiceSettings =
+ * GeoTargetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GeoTargetServiceClient geoTargetServiceClient =
+ * GeoTargetServiceClient.create(geoTargetServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]");
+ * GeoTarget response = geoTargetServiceClient.getGeoTarget(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the GeoTarget. Format:
+ * `networks/{network_code}/geoTargets/{geo_target_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GeoTarget getGeoTarget(GeoTargetName name) {
+ GetGeoTargetRequest request =
+ GetGeoTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getGeoTarget(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `GeoTarget` 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * String name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString();
+ * GeoTarget response = geoTargetServiceClient.getGeoTarget(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the GeoTarget. Format:
+ * `networks/{network_code}/geoTargets/{geo_target_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GeoTarget getGeoTarget(String name) {
+ GetGeoTargetRequest request = GetGeoTargetRequest.newBuilder().setName(name).build();
+ return getGeoTarget(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `GeoTarget` 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * GetGeoTargetRequest request =
+ * GetGeoTargetRequest.newBuilder()
+ * .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").toString())
+ * .build();
+ * GeoTarget response = geoTargetServiceClient.getGeoTarget(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 GeoTarget getGeoTarget(GetGeoTargetRequest request) {
+ return getGeoTargetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `GeoTarget` 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * GetGeoTargetRequest request =
+ * GetGeoTargetRequest.newBuilder()
+ * .setName(GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]").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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (GeoTarget element : geoTargetServiceClient.listGeoTargets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of GeoTargets. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGeoTargetsPagedResponse listGeoTargets(NetworkName parent) {
+ ListGeoTargetsRequest request =
+ ListGeoTargetsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listGeoTargets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `GeoTarget` 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (GeoTarget element : geoTargetServiceClient.listGeoTargets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of GeoTargets. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListGeoTargetsPagedResponse listGeoTargets(String parent) {
+ ListGeoTargetsRequest request = ListGeoTargetsRequest.newBuilder().setParent(parent).build();
+ return listGeoTargets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `GeoTarget` 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * ListGeoTargetsRequest request =
+ * ListGeoTargetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (GeoTarget element : geoTargetServiceClient.listGeoTargets(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 ListGeoTargetsPagedResponse listGeoTargets(ListGeoTargetsRequest request) {
+ return listGeoTargetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `GeoTarget` 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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * ListGeoTargetsRequest request =
+ * ListGeoTargetsRequest.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 (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * ListGeoTargetsRequest request =
+ * ListGeoTargetsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListGeoTargetsResponse response =
+ * geoTargetServiceClient.listGeoTargetsCallable().call(request);
+ * for (GeoTarget element : response.getGeoTargetsList()) {
+ * // 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
+ * GeoTargetServiceSettings.Builder geoTargetServiceSettingsBuilder =
+ * GeoTargetServiceSettings.newBuilder();
+ * geoTargetServiceSettingsBuilder
+ * .getGeoTargetSettings()
+ * .setRetrySettings(
+ * geoTargetServiceSettingsBuilder
+ * .getGeoTargetSettings()
+ * .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());
+ * GeoTargetServiceSettings geoTargetServiceSettings = geoTargetServiceSettingsBuilder.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 GeoTargetServiceSettings 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]");
+ * OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(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
+ * OperatingSystemServiceSettings operatingSystemServiceSettings =
+ * OperatingSystemServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create(operatingSystemServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemServiceSettings operatingSystemServiceSettings =
+ * OperatingSystemServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create(operatingSystemServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]");
+ * OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the OperatingSystem. Format:
+ * `networks/{network_code}/operatingSystems/{operating_system_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperatingSystem getOperatingSystem(OperatingSystemName name) {
+ GetOperatingSystemRequest request =
+ GetOperatingSystemRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getOperatingSystem(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystem` 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * String name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString();
+ * OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the OperatingSystem. Format:
+ * `networks/{network_code}/operatingSystems/{operating_system_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperatingSystem getOperatingSystem(String name) {
+ GetOperatingSystemRequest request =
+ GetOperatingSystemRequest.newBuilder().setName(name).build();
+ return getOperatingSystem(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystem` 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * GetOperatingSystemRequest request =
+ * GetOperatingSystemRequest.newBuilder()
+ * .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").toString())
+ * .build();
+ * OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(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 OperatingSystem getOperatingSystem(GetOperatingSystemRequest request) {
+ return getOperatingSystemCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystem` 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * GetOperatingSystemRequest request =
+ * GetOperatingSystemRequest.newBuilder()
+ * .setName(OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]").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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (OperatingSystem element :
+ * operatingSystemServiceClient.listOperatingSystems(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of OperatingSystems. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOperatingSystemsPagedResponse listOperatingSystems(NetworkName parent) {
+ ListOperatingSystemsRequest request =
+ ListOperatingSystemsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listOperatingSystems(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystem` 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (OperatingSystem element :
+ * operatingSystemServiceClient.listOperatingSystems(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of OperatingSystems. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOperatingSystemsPagedResponse listOperatingSystems(String parent) {
+ ListOperatingSystemsRequest request =
+ ListOperatingSystemsRequest.newBuilder().setParent(parent).build();
+ return listOperatingSystems(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystem` 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * ListOperatingSystemsRequest request =
+ * ListOperatingSystemsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (OperatingSystem element :
+ * operatingSystemServiceClient.listOperatingSystems(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 ListOperatingSystemsPagedResponse listOperatingSystems(
+ ListOperatingSystemsRequest request) {
+ return listOperatingSystemsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystem` 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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * ListOperatingSystemsRequest request =
+ * ListOperatingSystemsRequest.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 (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * ListOperatingSystemsRequest request =
+ * ListOperatingSystemsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListOperatingSystemsResponse response =
+ * operatingSystemServiceClient.listOperatingSystemsCallable().call(request);
+ * for (OperatingSystem element : response.getOperatingSystemsList()) {
+ * // 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
+ * OperatingSystemServiceSettings.Builder operatingSystemServiceSettingsBuilder =
+ * OperatingSystemServiceSettings.newBuilder();
+ * operatingSystemServiceSettingsBuilder
+ * .getOperatingSystemSettings()
+ * .setRetrySettings(
+ * operatingSystemServiceSettingsBuilder
+ * .getOperatingSystemSettings()
+ * .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());
+ * OperatingSystemServiceSettings operatingSystemServiceSettings =
+ * operatingSystemServiceSettingsBuilder.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 OperatingSystemServiceSettings 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * OperatingSystemVersionName name =
+ * OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]");
+ * OperatingSystemVersion response =
+ * operatingSystemVersionServiceClient.getOperatingSystemVersion(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
+ * OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings =
+ * OperatingSystemVersionServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create(operatingSystemVersionServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings =
+ * OperatingSystemVersionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create(operatingSystemVersionServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * OperatingSystemVersionName name =
+ * OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]");
+ * OperatingSystemVersion response =
+ * operatingSystemVersionServiceClient.getOperatingSystemVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the OperatingSystemVersion. Format:
+ * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperatingSystemVersion getOperatingSystemVersion(OperatingSystemVersionName name) {
+ GetOperatingSystemVersionRequest request =
+ GetOperatingSystemVersionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getOperatingSystemVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * String name =
+ * OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]").toString();
+ * OperatingSystemVersion response =
+ * operatingSystemVersionServiceClient.getOperatingSystemVersion(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the OperatingSystemVersion. Format:
+ * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperatingSystemVersion getOperatingSystemVersion(String name) {
+ GetOperatingSystemVersionRequest request =
+ GetOperatingSystemVersionRequest.newBuilder().setName(name).build();
+ return getOperatingSystemVersion(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * GetOperatingSystemVersionRequest request =
+ * GetOperatingSystemVersionRequest.newBuilder()
+ * .setName(
+ * OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]")
+ * .toString())
+ * .build();
+ * OperatingSystemVersion response =
+ * operatingSystemVersionServiceClient.getOperatingSystemVersion(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 OperatingSystemVersion getOperatingSystemVersion(
+ GetOperatingSystemVersionRequest request) {
+ return getOperatingSystemVersionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * GetOperatingSystemVersionRequest request =
+ * GetOperatingSystemVersionRequest.newBuilder()
+ * .setName(
+ * OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]")
+ * .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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (OperatingSystemVersion element :
+ * operatingSystemVersionServiceClient.listOperatingSystemVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of OperatingSystemVersions.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions(
+ NetworkName parent) {
+ ListOperatingSystemVersionsRequest request =
+ ListOperatingSystemVersionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listOperatingSystemVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (OperatingSystemVersion element :
+ * operatingSystemVersionServiceClient.listOperatingSystemVersions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of OperatingSystemVersions.
+ * Format: `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions(String parent) {
+ ListOperatingSystemVersionsRequest request =
+ ListOperatingSystemVersionsRequest.newBuilder().setParent(parent).build();
+ return listOperatingSystemVersions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * ListOperatingSystemVersionsRequest request =
+ * ListOperatingSystemVersionsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (OperatingSystemVersion element :
+ * operatingSystemVersionServiceClient.listOperatingSystemVersions(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 ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions(
+ ListOperatingSystemVersionsRequest request) {
+ return listOperatingSystemVersionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * ListOperatingSystemVersionsRequest request =
+ * ListOperatingSystemVersionsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsPagedResponse>
+ listOperatingSystemVersionsPagedCallable() {
+ return stub.listOperatingSystemVersionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `OperatingSystemVersion` 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 (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * ListOperatingSystemVersionsRequest request =
+ * ListOperatingSystemVersionsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListOperatingSystemVersionsResponse response =
+ * operatingSystemVersionServiceClient.listOperatingSystemVersionsCallable().call(request);
+ * for (OperatingSystemVersion element : response.getOperatingSystemVersionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse>
+ listOperatingSystemVersionsCallable() {
+ return stub.listOperatingSystemVersionsCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListOperatingSystemVersionsPagedResponse
+ extends AbstractPagedListResponse<
+ ListOperatingSystemVersionsRequest,
+ ListOperatingSystemVersionsResponse,
+ OperatingSystemVersion,
+ ListOperatingSystemVersionsPage,
+ ListOperatingSystemVersionsFixedSizeCollection> {
+
+ public static ApiFuture
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * OperatingSystemVersionServiceSettings.Builder operatingSystemVersionServiceSettingsBuilder =
+ * OperatingSystemVersionServiceSettings.newBuilder();
+ * operatingSystemVersionServiceSettingsBuilder
+ * .getOperatingSystemVersionSettings()
+ * .setRetrySettings(
+ * operatingSystemVersionServiceSettingsBuilder
+ * .getOperatingSystemVersionSettings()
+ * .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());
+ * OperatingSystemVersionServiceSettings operatingSystemVersionServiceSettings =
+ * operatingSystemVersionServiceSettingsBuilder.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 OperatingSystemVersionServiceSettings
+ 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * PrivateAuctionDealName name =
+ * PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]");
+ * PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(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
+ * PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings =
+ * PrivateAuctionDealServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create(privateAuctionDealServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings =
+ * PrivateAuctionDealServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create(privateAuctionDealServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * PrivateAuctionDealName name =
+ * PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]");
+ * PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the PrivateAuctionDeal. Format:
+ * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuctionDeal getPrivateAuctionDeal(PrivateAuctionDealName name) {
+ GetPrivateAuctionDealRequest request =
+ GetPrivateAuctionDealRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getPrivateAuctionDeal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * String name =
+ * PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString();
+ * PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the PrivateAuctionDeal. Format:
+ * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuctionDeal getPrivateAuctionDeal(String name) {
+ GetPrivateAuctionDealRequest request =
+ GetPrivateAuctionDealRequest.newBuilder().setName(name).build();
+ return getPrivateAuctionDeal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * GetPrivateAuctionDealRequest request =
+ * GetPrivateAuctionDealRequest.newBuilder()
+ * .setName(
+ * PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").toString())
+ * .build();
+ * PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(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 PrivateAuctionDeal getPrivateAuctionDeal(GetPrivateAuctionDealRequest request) {
+ return getPrivateAuctionDealCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * GetPrivateAuctionDealRequest request =
+ * GetPrivateAuctionDealRequest.newBuilder()
+ * .setName(
+ * PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]").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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (PrivateAuctionDeal element :
+ * privateAuctionDealServiceClient.listPrivateAuctionDeals(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of PrivateAuctionDeals. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(NetworkName parent) {
+ ListPrivateAuctionDealsRequest request =
+ ListPrivateAuctionDealsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPrivateAuctionDeals(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (PrivateAuctionDeal element :
+ * privateAuctionDealServiceClient.listPrivateAuctionDeals(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of PrivateAuctionDeals. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(String parent) {
+ ListPrivateAuctionDealsRequest request =
+ ListPrivateAuctionDealsRequest.newBuilder().setParent(parent).build();
+ return listPrivateAuctionDeals(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * ListPrivateAuctionDealsRequest request =
+ * ListPrivateAuctionDealsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (PrivateAuctionDeal element :
+ * privateAuctionDealServiceClient.listPrivateAuctionDeals(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 ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(
+ ListPrivateAuctionDealsRequest request) {
+ return listPrivateAuctionDealsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * ListPrivateAuctionDealsRequest request =
+ * ListPrivateAuctionDealsRequest.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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * ListPrivateAuctionDealsRequest request =
+ * ListPrivateAuctionDealsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListPrivateAuctionDealsResponse response =
+ * privateAuctionDealServiceClient.listPrivateAuctionDealsCallable().call(request);
+ * for (PrivateAuctionDeal element : response.getPrivateAuctionDealsList()) {
+ * // 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build();
+ * PrivateAuctionDeal response =
+ * privateAuctionDealServiceClient.createPrivateAuctionDeal(parent, privateAuctionDeal);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `PrivateAuctionDeal` will be created.
+ * Format: `networks/{network_code}`
+ * @param privateAuctionDeal Required. The `PrivateAuctionDeal` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuctionDeal createPrivateAuctionDeal(
+ NetworkName parent, PrivateAuctionDeal privateAuctionDeal) {
+ CreatePrivateAuctionDealRequest request =
+ CreatePrivateAuctionDealRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setPrivateAuctionDeal(privateAuctionDeal)
+ .build();
+ return createPrivateAuctionDeal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build();
+ * PrivateAuctionDeal response =
+ * privateAuctionDealServiceClient.createPrivateAuctionDeal(parent, privateAuctionDeal);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `PrivateAuctionDeal` will be created.
+ * Format: `networks/{network_code}`
+ * @param privateAuctionDeal Required. The `PrivateAuctionDeal` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuctionDeal createPrivateAuctionDeal(
+ String parent, PrivateAuctionDeal privateAuctionDeal) {
+ CreatePrivateAuctionDealRequest request =
+ CreatePrivateAuctionDealRequest.newBuilder()
+ .setParent(parent)
+ .setPrivateAuctionDeal(privateAuctionDeal)
+ .build();
+ return createPrivateAuctionDeal(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * CreatePrivateAuctionDealRequest request =
+ * CreatePrivateAuctionDealRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build())
+ * .build();
+ * PrivateAuctionDeal response =
+ * privateAuctionDealServiceClient.createPrivateAuctionDeal(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 PrivateAuctionDeal createPrivateAuctionDeal(
+ CreatePrivateAuctionDealRequest request) {
+ return createPrivateAuctionDealCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * CreatePrivateAuctionDealRequest request =
+ * CreatePrivateAuctionDealRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPrivateAuctionDeal(PrivateAuctionDeal.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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * PrivateAuctionDeal privateAuctionDeal = PrivateAuctionDeal.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * PrivateAuctionDeal response =
+ * privateAuctionDealServiceClient.updatePrivateAuctionDeal(privateAuctionDeal, updateMask);
+ * }
+ * }
+ *
+ * @param privateAuctionDeal Required. The `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * UpdatePrivateAuctionDealRequest request =
+ * UpdatePrivateAuctionDealRequest.newBuilder()
+ * .setPrivateAuctionDeal(PrivateAuctionDeal.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * PrivateAuctionDeal response =
+ * privateAuctionDealServiceClient.updatePrivateAuctionDeal(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 PrivateAuctionDeal updatePrivateAuctionDeal(
+ UpdatePrivateAuctionDealRequest request) {
+ return updatePrivateAuctionDealCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `PrivateAuctionDeal` 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 (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * UpdatePrivateAuctionDealRequest request =
+ * UpdatePrivateAuctionDealRequest.newBuilder()
+ * .setPrivateAuctionDeal(PrivateAuctionDeal.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
+ * PrivateAuctionDealServiceSettings.Builder privateAuctionDealServiceSettingsBuilder =
+ * PrivateAuctionDealServiceSettings.newBuilder();
+ * privateAuctionDealServiceSettingsBuilder
+ * .getPrivateAuctionDealSettings()
+ * .setRetrySettings(
+ * privateAuctionDealServiceSettingsBuilder
+ * .getPrivateAuctionDealSettings()
+ * .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());
+ * PrivateAuctionDealServiceSettings privateAuctionDealServiceSettings =
+ * privateAuctionDealServiceSettingsBuilder.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 PrivateAuctionDealServiceSettings
+ 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]");
+ * PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(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
+ * PrivateAuctionServiceSettings privateAuctionServiceSettings =
+ * PrivateAuctionServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create(privateAuctionServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PrivateAuctionServiceSettings privateAuctionServiceSettings =
+ * PrivateAuctionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create(privateAuctionServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]");
+ * PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the PrivateAuction. Format:
+ * `networks/{network_code}/privateAuctions/{private_auction_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuction getPrivateAuction(PrivateAuctionName name) {
+ GetPrivateAuctionRequest request =
+ GetPrivateAuctionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getPrivateAuction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * String name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString();
+ * PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the PrivateAuction. Format:
+ * `networks/{network_code}/privateAuctions/{private_auction_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuction getPrivateAuction(String name) {
+ GetPrivateAuctionRequest request = GetPrivateAuctionRequest.newBuilder().setName(name).build();
+ return getPrivateAuction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * GetPrivateAuctionRequest request =
+ * GetPrivateAuctionRequest.newBuilder()
+ * .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").toString())
+ * .build();
+ * PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(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 PrivateAuction getPrivateAuction(GetPrivateAuctionRequest request) {
+ return getPrivateAuctionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * GetPrivateAuctionRequest request =
+ * GetPrivateAuctionRequest.newBuilder()
+ * .setName(PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]").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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (PrivateAuction element :
+ * privateAuctionServiceClient.listPrivateAuctions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of PrivateAuctions. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(NetworkName parent) {
+ ListPrivateAuctionsRequest request =
+ ListPrivateAuctionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPrivateAuctions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (PrivateAuction element :
+ * privateAuctionServiceClient.listPrivateAuctions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of PrivateAuctions. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateAuctionsPagedResponse listPrivateAuctions(String parent) {
+ ListPrivateAuctionsRequest request =
+ ListPrivateAuctionsRequest.newBuilder().setParent(parent).build();
+ return listPrivateAuctions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * ListPrivateAuctionsRequest request =
+ * ListPrivateAuctionsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (PrivateAuction element :
+ * privateAuctionServiceClient.listPrivateAuctions(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 ListPrivateAuctionsPagedResponse listPrivateAuctions(
+ ListPrivateAuctionsRequest request) {
+ return listPrivateAuctionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * ListPrivateAuctionsRequest request =
+ * ListPrivateAuctionsRequest.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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * ListPrivateAuctionsRequest request =
+ * ListPrivateAuctionsRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListPrivateAuctionsResponse response =
+ * privateAuctionServiceClient.listPrivateAuctionsCallable().call(request);
+ * for (PrivateAuction element : response.getPrivateAuctionsList()) {
+ * // 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * PrivateAuction privateAuction = PrivateAuction.newBuilder().build();
+ * PrivateAuction response =
+ * privateAuctionServiceClient.createPrivateAuction(parent, privateAuction);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `PrivateAuction` will be created.
+ * Format: `networks/{network_code}`
+ * @param privateAuction Required. The `PrivateAuction` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuction createPrivateAuction(
+ NetworkName parent, PrivateAuction privateAuction) {
+ CreatePrivateAuctionRequest request =
+ CreatePrivateAuctionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setPrivateAuction(privateAuction)
+ .build();
+ return createPrivateAuction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * PrivateAuction privateAuction = PrivateAuction.newBuilder().build();
+ * PrivateAuction response =
+ * privateAuctionServiceClient.createPrivateAuction(parent, privateAuction);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this `PrivateAuction` will be created.
+ * Format: `networks/{network_code}`
+ * @param privateAuction Required. The `PrivateAuction` to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateAuction createPrivateAuction(String parent, PrivateAuction privateAuction) {
+ CreatePrivateAuctionRequest request =
+ CreatePrivateAuctionRequest.newBuilder()
+ .setParent(parent)
+ .setPrivateAuction(privateAuction)
+ .build();
+ return createPrivateAuction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * CreatePrivateAuctionRequest request =
+ * CreatePrivateAuctionRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPrivateAuction(PrivateAuction.newBuilder().build())
+ * .build();
+ * PrivateAuction response = privateAuctionServiceClient.createPrivateAuction(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 PrivateAuction createPrivateAuction(CreatePrivateAuctionRequest request) {
+ return createPrivateAuctionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to create a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * CreatePrivateAuctionRequest request =
+ * CreatePrivateAuctionRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPrivateAuction(PrivateAuction.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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * PrivateAuction privateAuction = PrivateAuction.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * PrivateAuction response =
+ * privateAuctionServiceClient.updatePrivateAuction(privateAuction, updateMask);
+ * }
+ * }
+ *
+ * @param privateAuction Required. The `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * UpdatePrivateAuctionRequest request =
+ * UpdatePrivateAuctionRequest.newBuilder()
+ * .setPrivateAuction(PrivateAuction.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * PrivateAuction response = privateAuctionServiceClient.updatePrivateAuction(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 PrivateAuction updatePrivateAuction(UpdatePrivateAuctionRequest request) {
+ return updatePrivateAuctionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to update a `PrivateAuction` 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 (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * UpdatePrivateAuctionRequest request =
+ * UpdatePrivateAuctionRequest.newBuilder()
+ * .setPrivateAuction(PrivateAuction.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
+ * PrivateAuctionServiceSettings.Builder privateAuctionServiceSettingsBuilder =
+ * PrivateAuctionServiceSettings.newBuilder();
+ * privateAuctionServiceSettingsBuilder
+ * .getPrivateAuctionSettings()
+ * .setRetrySettings(
+ * privateAuctionServiceSettingsBuilder
+ * .getPrivateAuctionSettings()
+ * .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());
+ * PrivateAuctionServiceSettings privateAuctionServiceSettings =
+ * privateAuctionServiceSettingsBuilder.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 PrivateAuctionServiceSettings 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * ProgrammaticBuyerName name =
+ * ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]");
+ * ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(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
+ * ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings =
+ * ProgrammaticBuyerServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create(programmaticBuyerServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings =
+ * ProgrammaticBuyerServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create(programmaticBuyerServiceSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * ProgrammaticBuyerName name =
+ * ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]");
+ * ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ProgrammaticBuyer. Format:
+ * `networks/{network_code}/programmaticBuyers/{buyer_account_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ProgrammaticBuyer getProgrammaticBuyer(ProgrammaticBuyerName name) {
+ GetProgrammaticBuyerRequest request =
+ GetProgrammaticBuyerRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getProgrammaticBuyer(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ProgrammaticBuyer` 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * String name = ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString();
+ * ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the ProgrammaticBuyer. Format:
+ * `networks/{network_code}/programmaticBuyers/{buyer_account_id}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ProgrammaticBuyer getProgrammaticBuyer(String name) {
+ GetProgrammaticBuyerRequest request =
+ GetProgrammaticBuyerRequest.newBuilder().setName(name).build();
+ return getProgrammaticBuyer(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ProgrammaticBuyer` 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * GetProgrammaticBuyerRequest request =
+ * GetProgrammaticBuyerRequest.newBuilder()
+ * .setName(
+ * ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").toString())
+ * .build();
+ * ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(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 ProgrammaticBuyer getProgrammaticBuyer(GetProgrammaticBuyerRequest request) {
+ return getProgrammaticBuyerCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a `ProgrammaticBuyer` 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * GetProgrammaticBuyerRequest request =
+ * GetProgrammaticBuyerRequest.newBuilder()
+ * .setName(
+ * ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]").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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+ * for (ProgrammaticBuyer element :
+ * programmaticBuyerServiceClient.listProgrammaticBuyers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ProgrammaticBuyers. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(NetworkName parent) {
+ ListProgrammaticBuyersRequest request =
+ ListProgrammaticBuyersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listProgrammaticBuyers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ProgrammaticBuyer` 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * String parent = NetworkName.of("[NETWORK_CODE]").toString();
+ * for (ProgrammaticBuyer element :
+ * programmaticBuyerServiceClient.listProgrammaticBuyers(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent, which owns this collection of ProgrammaticBuyers. Format:
+ * `networks/{network_code}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(String parent) {
+ ListProgrammaticBuyersRequest request =
+ ListProgrammaticBuyersRequest.newBuilder().setParent(parent).build();
+ return listProgrammaticBuyers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ProgrammaticBuyer` 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * ListProgrammaticBuyersRequest request =
+ * ListProgrammaticBuyersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * for (ProgrammaticBuyer element :
+ * programmaticBuyerServiceClient.listProgrammaticBuyers(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 ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(
+ ListProgrammaticBuyersRequest request) {
+ return listProgrammaticBuyersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * API to retrieve a list of `ProgrammaticBuyer` 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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * ListProgrammaticBuyersRequest request =
+ * ListProgrammaticBuyersRequest.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 (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * ListProgrammaticBuyersRequest request =
+ * ListProgrammaticBuyersRequest.newBuilder()
+ * .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setSkip(3532159)
+ * .build();
+ * while (true) {
+ * ListProgrammaticBuyersResponse response =
+ * programmaticBuyerServiceClient.listProgrammaticBuyersCallable().call(request);
+ * for (ProgrammaticBuyer element : response.getProgrammaticBuyersList()) {
+ * // 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
+ * ProgrammaticBuyerServiceSettings.Builder programmaticBuyerServiceSettingsBuilder =
+ * ProgrammaticBuyerServiceSettings.newBuilder();
+ * programmaticBuyerServiceSettingsBuilder
+ * .getProgrammaticBuyerSettings()
+ * .setRetrySettings(
+ * programmaticBuyerServiceSettingsBuilder
+ * .getProgrammaticBuyerSettings()
+ * .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());
+ * ProgrammaticBuyerServiceSettings programmaticBuyerServiceSettings =
+ * programmaticBuyerServiceSettingsBuilder.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 ProgrammaticBuyerServiceSettings
+ 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 (AdBreakServiceClient adBreakServiceClient = AdBreakServiceClient.create()) {
+ * AdBreakName name = AdBreakName.of("[NETWORK_CODE]", "[ASSET_KEY]", "[AD_BREAK]");
+ * AdBreak response = adBreakServiceClient.getAdBreak(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BandwidthGroupServiceClient bandwidthGroupServiceClient =
+ * BandwidthGroupServiceClient.create()) {
+ * BandwidthGroupName name = BandwidthGroupName.of("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
+ * BandwidthGroup response = bandwidthGroupServiceClient.getBandwidthGroup(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DeviceCategoryServiceClient deviceCategoryServiceClient =
+ * DeviceCategoryServiceClient.create()) {
+ * DeviceCategoryName name = DeviceCategoryName.of("[NETWORK_CODE]", "[DEVICE_CATEGORY]");
+ * DeviceCategory response = deviceCategoryServiceClient.getDeviceCategory(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GeoTargetServiceClient geoTargetServiceClient = GeoTargetServiceClient.create()) {
+ * GeoTargetName name = GeoTargetName.of("[NETWORK_CODE]", "[GEO_TARGET]");
+ * GeoTarget response = geoTargetServiceClient.getGeoTarget(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OperatingSystemServiceClient operatingSystemServiceClient =
+ * OperatingSystemServiceClient.create()) {
+ * OperatingSystemName name = OperatingSystemName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM]");
+ * OperatingSystem response = operatingSystemServiceClient.getOperatingSystem(name);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (OperatingSystemVersionServiceClient operatingSystemVersionServiceClient =
+ * OperatingSystemVersionServiceClient.create()) {
+ * OperatingSystemVersionName name =
+ * OperatingSystemVersionName.of("[NETWORK_CODE]", "[OPERATING_SYSTEM_VERSION]");
+ * OperatingSystemVersion response =
+ * operatingSystemVersionServiceClient.getOperatingSystemVersion(name);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PrivateAuctionDealServiceClient privateAuctionDealServiceClient =
+ * PrivateAuctionDealServiceClient.create()) {
+ * PrivateAuctionDealName name =
+ * PrivateAuctionDealName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION_DEAL]");
+ * PrivateAuctionDeal response = privateAuctionDealServiceClient.getPrivateAuctionDeal(name);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PrivateAuctionServiceClient privateAuctionServiceClient =
+ * PrivateAuctionServiceClient.create()) {
+ * PrivateAuctionName name = PrivateAuctionName.of("[NETWORK_CODE]", "[PRIVATE_AUCTION]");
+ * PrivateAuction response = privateAuctionServiceClient.getPrivateAuction(name);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ProgrammaticBuyerServiceClient programmaticBuyerServiceClient =
+ * ProgrammaticBuyerServiceClient.create()) {
+ * ProgrammaticBuyerName name =
+ * ProgrammaticBuyerName.of("[NETWORK_CODE]", "[PROGRAMMATIC_BUYER]");
+ * ProgrammaticBuyer response = programmaticBuyerServiceClient.getProgrammaticBuyer(name);
+ * }
+ * }
+ *
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AdBreakServiceStubSettings.Builder adBreakServiceSettingsBuilder =
+ * AdBreakServiceStubSettings.newBuilder();
+ * adBreakServiceSettingsBuilder
+ * .getAdBreakSettings()
+ * .setRetrySettings(
+ * adBreakServiceSettingsBuilder
+ * .getAdBreakSettings()
+ * .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());
+ * AdBreakServiceStubSettings adBreakServiceSettings = adBreakServiceSettingsBuilder.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 AdBreakServiceStubSettings extends StubSettings