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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundleName name =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
+ * ResourceBundle response = configDeliveryClient.getResourceBundle(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the ConfigDeliveryClient 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 | + *
|---|---|---|
ListResourceBundles |
+ * Lists ResourceBundles in a given project and location. |
+ *
+ * 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. + *
|
+ *
GetResourceBundle |
+ * Gets details of a single ResourceBundle. |
+ *
+ * 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. + *
|
+ *
CreateResourceBundle |
+ * Creates a new ResourceBundle in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateResourceBundle |
+ * Updates the parameters of a single ResourceBundle. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteResourceBundle |
+ * Deletes a single ResourceBundle. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListFleetPackages |
+ * Lists FleetPackages in a given project and location. |
+ *
+ * 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. + *
|
+ *
GetFleetPackage |
+ * Gets details of a single FleetPackage. |
+ *
+ * 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. + *
|
+ *
CreateFleetPackage |
+ * Creates a new FleetPackage in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateFleetPackage |
+ * Updates the parameters of a single FleetPackage. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteFleetPackage |
+ * Deletes a single FleetPackage. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListReleases |
+ * Lists Releases in a given project and location. |
+ *
+ * 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. + *
|
+ *
GetRelease |
+ * Gets details of a single Release. |
+ *
+ * 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. + *
|
+ *
CreateRelease |
+ * Creates a new Release in a given project, location and resource bundle. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateRelease |
+ * Updates the parameters of a single Release. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteRelease |
+ * Deletes a single Release. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListVariants |
+ * Lists Variants in a given project and location. |
+ *
+ * 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. + *
|
+ *
GetVariant |
+ * Gets details of a single Variant. |
+ *
+ * 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. + *
|
+ *
CreateVariant |
+ * Creates a new Variant in a given project, location, resource bundle, and release. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateVariant |
+ * Updates the parameters of a single Variant. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteVariant |
+ * Deletes a single Variant. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListRollouts |
+ * Lists Rollouts in a given project, location, and Fleet Package. |
+ *
+ * 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. + *
|
+ *
GetRollout |
+ * Gets details of a single Rollout. |
+ *
+ * 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. + *
|
+ *
SuspendRollout |
+ * Suspend a Rollout. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ResumeRollout |
+ * Resume a Rollout. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
AbortRollout |
+ * Abort a Rollout. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListLocations |
+ * Lists information about the supported locations for this service. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetLocation |
+ * Gets information about a location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of ConfigDeliverySettings 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
+ * ConfigDeliverySettings configDeliverySettings =
+ * ConfigDeliverySettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create(configDeliverySettings);
+ * }
+ *
+ * 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
+ * ConfigDeliverySettings configDeliverySettings =
+ * ConfigDeliverySettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create(configDeliverySettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigDeliverySettings configDeliverySettings =
+ * ConfigDeliverySettings.newHttpJsonBuilder().build();
+ * ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create(configDeliverySettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConfigDeliveryClient implements BackgroundResource { + private final ConfigDeliverySettings settings; + private final ConfigDeliveryStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of ConfigDeliveryClient with default settings. */ + public static final ConfigDeliveryClient create() throws IOException { + return create(ConfigDeliverySettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConfigDeliveryClient, 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 ConfigDeliveryClient create(ConfigDeliverySettings settings) + throws IOException { + return new ConfigDeliveryClient(settings); + } + + /** + * Constructs an instance of ConfigDeliveryClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ConfigDeliverySettings). + */ + public static final ConfigDeliveryClient create(ConfigDeliveryStub stub) { + return new ConfigDeliveryClient(stub); + } + + /** + * Constructs an instance of ConfigDeliveryClient, 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 ConfigDeliveryClient(ConfigDeliverySettings settings) throws IOException { + this.settings = settings; + this.stub = ((ConfigDeliveryStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected ConfigDeliveryClient(ConfigDeliveryStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final ConfigDeliverySettings getSettings() { + return settings; + } + + public ConfigDeliveryStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ResourceBundles in a given project and location. + * + *
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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (ResourceBundle element : configDeliveryClient.listResourceBundles(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListResourceBundlesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListResourceBundlesPagedResponse listResourceBundles(LocationName parent) {
+ ListResourceBundlesRequest request =
+ ListResourceBundlesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listResourceBundles(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ResourceBundles in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (ResourceBundle element : configDeliveryClient.listResourceBundles(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListResourceBundlesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListResourceBundlesPagedResponse listResourceBundles(String parent) {
+ ListResourceBundlesRequest request =
+ ListResourceBundlesRequest.newBuilder().setParent(parent).build();
+ return listResourceBundles(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ResourceBundles in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListResourceBundlesRequest request =
+ * ListResourceBundlesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (ResourceBundle element :
+ * configDeliveryClient.listResourceBundles(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 ListResourceBundlesPagedResponse listResourceBundles(
+ ListResourceBundlesRequest request) {
+ return listResourceBundlesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ResourceBundles in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListResourceBundlesRequest request =
+ * ListResourceBundlesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.listResourceBundlesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (ResourceBundle element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListResourceBundlesRequest request =
+ * ListResourceBundlesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListResourceBundlesResponse response =
+ * configDeliveryClient.listResourceBundlesCallable().call(request);
+ * for (ResourceBundle element : response.getResourceBundlesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundleName name =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
+ * ResourceBundle response = configDeliveryClient.getResourceBundle(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceBundle getResourceBundle(ResourceBundleName name) {
+ GetResourceBundleRequest request =
+ GetResourceBundleRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getResourceBundle(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ResourceBundle.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString();
+ * ResourceBundle response = configDeliveryClient.getResourceBundle(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ResourceBundle getResourceBundle(String name) {
+ GetResourceBundleRequest request = GetResourceBundleRequest.newBuilder().setName(name).build();
+ return getResourceBundle(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ResourceBundle.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetResourceBundleRequest request =
+ * GetResourceBundleRequest.newBuilder()
+ * .setName(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .build();
+ * ResourceBundle response = configDeliveryClient.getResourceBundle(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 ResourceBundle getResourceBundle(GetResourceBundleRequest request) {
+ return getResourceBundleCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single ResourceBundle.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetResourceBundleRequest request =
+ * GetResourceBundleRequest.newBuilder()
+ * .setName(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.getResourceBundleCallable().futureCall(request);
+ * // Do something.
+ * ResourceBundle response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ResourceBundle resourceBundle = ResourceBundle.newBuilder().build();
+ * String resourceBundleId = "resourceBundleId1209359211";
+ * ResourceBundle response =
+ * configDeliveryClient
+ * .createResourceBundleAsync(parent, resourceBundle, resourceBundleId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param resourceBundle Required. The resource being created
+ * @param resourceBundleId Required. Id of the requesting object If auto-generating Id
+ * server-side, remove this field and resource_bundle_id from the method_signature of Create
+ * RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * ResourceBundle resourceBundle = ResourceBundle.newBuilder().build();
+ * String resourceBundleId = "resourceBundleId1209359211";
+ * ResourceBundle response =
+ * configDeliveryClient
+ * .createResourceBundleAsync(parent, resourceBundle, resourceBundleId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param resourceBundle Required. The resource being created
+ * @param resourceBundleId Required. Id of the requesting object If auto-generating Id
+ * server-side, remove this field and resource_bundle_id from the method_signature of Create
+ * RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateResourceBundleRequest request =
+ * CreateResourceBundleRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setResourceBundleId("resourceBundleId1209359211")
+ * .setResourceBundle(ResourceBundle.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ResourceBundle response = configDeliveryClient.createResourceBundleAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateResourceBundleRequest request =
+ * CreateResourceBundleRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setResourceBundleId("resourceBundleId1209359211")
+ * .setResourceBundle(ResourceBundle.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.createResourceBundleOperationCallable().futureCall(request);
+ * // Do something.
+ * ResourceBundle response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateResourceBundleRequest request =
+ * CreateResourceBundleRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setResourceBundleId("resourceBundleId1209359211")
+ * .setResourceBundle(ResourceBundle.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.createResourceBundleCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundle resourceBundle = ResourceBundle.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ResourceBundle response =
+ * configDeliveryClient.updateResourceBundleAsync(resourceBundle, updateMask).get();
+ * }
+ * }
+ *
+ * @param resourceBundle Required. The resource being updated
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * ResourceBundle resource by the update. The fields specified in the update_mask are relative
+ * to the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateResourceBundleRequest request =
+ * UpdateResourceBundleRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResourceBundle(ResourceBundle.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ResourceBundle response = configDeliveryClient.updateResourceBundleAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateResourceBundleRequest request =
+ * UpdateResourceBundleRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResourceBundle(ResourceBundle.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.updateResourceBundleOperationCallable().futureCall(request);
+ * // Do something.
+ * ResourceBundle response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateResourceBundleRequest request =
+ * UpdateResourceBundleRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResourceBundle(ResourceBundle.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.updateResourceBundleCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundleName name =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
+ * configDeliveryClient.deleteResourceBundleAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString();
+ * configDeliveryClient.deleteResourceBundleAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteResourceBundleRequest request =
+ * DeleteResourceBundleRequest.newBuilder()
+ * .setName(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * configDeliveryClient.deleteResourceBundleAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteResourceBundleRequest request =
+ * DeleteResourceBundleRequest.newBuilder()
+ * .setName(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.deleteResourceBundleOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteResourceBundleRequest request =
+ * DeleteResourceBundleRequest.newBuilder()
+ * .setName(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.deleteResourceBundleCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (FleetPackage element : configDeliveryClient.listFleetPackages(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListFleetPackagesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetPackagesPagedResponse listFleetPackages(LocationName parent) {
+ ListFleetPackagesRequest request =
+ ListFleetPackagesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFleetPackages(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FleetPackages in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (FleetPackage element : configDeliveryClient.listFleetPackages(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListFleetPackagesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetPackagesPagedResponse listFleetPackages(String parent) {
+ ListFleetPackagesRequest request =
+ ListFleetPackagesRequest.newBuilder().setParent(parent).build();
+ return listFleetPackages(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FleetPackages in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListFleetPackagesRequest request =
+ * ListFleetPackagesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (FleetPackage element : configDeliveryClient.listFleetPackages(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 ListFleetPackagesPagedResponse listFleetPackages(ListFleetPackagesRequest request) {
+ return listFleetPackagesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists FleetPackages in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListFleetPackagesRequest request =
+ * ListFleetPackagesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.listFleetPackagesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (FleetPackage element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListFleetPackagesRequest request =
+ * ListFleetPackagesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListFleetPackagesResponse response =
+ * configDeliveryClient.listFleetPackagesCallable().call(request);
+ * for (FleetPackage element : response.getFleetPackagesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * FleetPackageName name = FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
+ * FleetPackage response = configDeliveryClient.getFleetPackage(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FleetPackage getFleetPackage(FleetPackageName name) {
+ GetFleetPackageRequest request =
+ GetFleetPackageRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFleetPackage(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FleetPackage.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name = FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString();
+ * FleetPackage response = configDeliveryClient.getFleetPackage(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final FleetPackage getFleetPackage(String name) {
+ GetFleetPackageRequest request = GetFleetPackageRequest.newBuilder().setName(name).build();
+ return getFleetPackage(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FleetPackage.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetFleetPackageRequest request =
+ * GetFleetPackageRequest.newBuilder()
+ * .setName(FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .build();
+ * FleetPackage response = configDeliveryClient.getFleetPackage(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 FleetPackage getFleetPackage(GetFleetPackageRequest request) {
+ return getFleetPackageCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single FleetPackage.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetFleetPackageRequest request =
+ * GetFleetPackageRequest.newBuilder()
+ * .setName(FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.getFleetPackageCallable().futureCall(request);
+ * // Do something.
+ * FleetPackage response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * FleetPackage fleetPackage = FleetPackage.newBuilder().build();
+ * String fleetPackageId = "fleetPackageId-115835309";
+ * FleetPackage response =
+ * configDeliveryClient.createFleetPackageAsync(parent, fleetPackage, fleetPackageId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param fleetPackage Required. The resource being created.
+ * @param fleetPackageId Required. Id of the requesting object If auto-generating Id server-side,
+ * remove this field and fleet_package_id from the method_signature of Create RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * FleetPackage fleetPackage = FleetPackage.newBuilder().build();
+ * String fleetPackageId = "fleetPackageId-115835309";
+ * FleetPackage response =
+ * configDeliveryClient.createFleetPackageAsync(parent, fleetPackage, fleetPackageId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param fleetPackage Required. The resource being created.
+ * @param fleetPackageId Required. Id of the requesting object If auto-generating Id server-side,
+ * remove this field and fleet_package_id from the method_signature of Create RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateFleetPackageRequest request =
+ * CreateFleetPackageRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleetPackageId("fleetPackageId-115835309")
+ * .setFleetPackage(FleetPackage.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * FleetPackage response = configDeliveryClient.createFleetPackageAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateFleetPackageRequest request =
+ * CreateFleetPackageRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleetPackageId("fleetPackageId-115835309")
+ * .setFleetPackage(FleetPackage.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.createFleetPackageOperationCallable().futureCall(request);
+ * // Do something.
+ * FleetPackage response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateFleetPackageRequest request =
+ * CreateFleetPackageRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleetPackageId("fleetPackageId-115835309")
+ * .setFleetPackage(FleetPackage.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.createFleetPackageCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * FleetPackage fleetPackage = FleetPackage.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * FleetPackage response =
+ * configDeliveryClient.updateFleetPackageAsync(fleetPackage, updateMask).get();
+ * }
+ * }
+ *
+ * @param fleetPackage Required. The resource being updated
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * FleetPackage resource by the update. The fields specified in the update_mask are relative
+ * to the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateFleetPackageRequest request =
+ * UpdateFleetPackageRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setFleetPackage(FleetPackage.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * FleetPackage response = configDeliveryClient.updateFleetPackageAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateFleetPackageRequest request =
+ * UpdateFleetPackageRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setFleetPackage(FleetPackage.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.updateFleetPackageOperationCallable().futureCall(request);
+ * // Do something.
+ * FleetPackage response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateFleetPackageRequest request =
+ * UpdateFleetPackageRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setFleetPackage(FleetPackage.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.updateFleetPackageCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * FleetPackageName name = FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
+ * configDeliveryClient.deleteFleetPackageAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name = FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString();
+ * configDeliveryClient.deleteFleetPackageAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteFleetPackageRequest request =
+ * DeleteFleetPackageRequest.newBuilder()
+ * .setName(FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .setAllowMissing(true)
+ * .build();
+ * configDeliveryClient.deleteFleetPackageAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteFleetPackageRequest request =
+ * DeleteFleetPackageRequest.newBuilder()
+ * .setName(FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .setAllowMissing(true)
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.deleteFleetPackageOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteFleetPackageRequest request =
+ * DeleteFleetPackageRequest.newBuilder()
+ * .setName(FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .setAllowMissing(true)
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.deleteFleetPackageCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundleName parent =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
+ * for (Release element : configDeliveryClient.listReleases(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListReleasesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListReleasesPagedResponse listReleases(ResourceBundleName parent) {
+ ListReleasesRequest request =
+ ListReleasesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listReleases(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Releases in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString();
+ * for (Release element : configDeliveryClient.listReleases(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListReleasesRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListReleasesPagedResponse listReleases(String parent) {
+ ListReleasesRequest request = ListReleasesRequest.newBuilder().setParent(parent).build();
+ return listReleases(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Releases in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListReleasesRequest request =
+ * ListReleasesRequest.newBuilder()
+ * .setParent(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Release element : configDeliveryClient.listReleases(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 ListReleasesPagedResponse listReleases(ListReleasesRequest request) {
+ return listReleasesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Releases in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListReleasesRequest request =
+ * ListReleasesRequest.newBuilder()
+ * .setParent(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.listReleasesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Release element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListReleasesRequest request =
+ * ListReleasesRequest.newBuilder()
+ * .setParent(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListReleasesResponse response = configDeliveryClient.listReleasesCallable().call(request);
+ * for (Release element : response.getReleasesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ReleaseName name =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
+ * Release response = configDeliveryClient.getRelease(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Release getRelease(ReleaseName name) {
+ GetReleaseRequest request =
+ GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getRelease(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Release.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]").toString();
+ * Release response = configDeliveryClient.getRelease(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Release getRelease(String name) {
+ GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name).build();
+ return getRelease(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Release.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetReleaseRequest request =
+ * GetReleaseRequest.newBuilder()
+ * .setName(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .build();
+ * Release response = configDeliveryClient.getRelease(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 Release getRelease(GetReleaseRequest request) {
+ return getReleaseCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Release.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetReleaseRequest request =
+ * GetReleaseRequest.newBuilder()
+ * .setName(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .build();
+ * ApiFuture future = configDeliveryClient.getReleaseCallable().futureCall(request);
+ * // Do something.
+ * Release response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundleName parent =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
+ * Release release = Release.newBuilder().build();
+ * String releaseId = "releaseId89607042";
+ * Release response = configDeliveryClient.createReleaseAsync(parent, release, releaseId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param release Required. The resource being created
+ * @param releaseId Required. Id of the requesting object If auto-generating Id server-side,
+ * remove this field and release_id from the method_signature of Create RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString();
+ * Release release = Release.newBuilder().build();
+ * String releaseId = "releaseId89607042";
+ * Release response = configDeliveryClient.createReleaseAsync(parent, release, releaseId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param release Required. The resource being created
+ * @param releaseId Required. Id of the requesting object If auto-generating Id server-side,
+ * remove this field and release_id from the method_signature of Create RPC
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateReleaseRequest request =
+ * CreateReleaseRequest.newBuilder()
+ * .setParent(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setReleaseId("releaseId89607042")
+ * .setRelease(Release.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Release response = configDeliveryClient.createReleaseAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateReleaseRequest request =
+ * CreateReleaseRequest.newBuilder()
+ * .setParent(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setReleaseId("releaseId89607042")
+ * .setRelease(Release.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.createReleaseOperationCallable().futureCall(request);
+ * // Do something.
+ * Release response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateReleaseRequest request =
+ * CreateReleaseRequest.newBuilder()
+ * .setParent(
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]").toString())
+ * .setReleaseId("releaseId89607042")
+ * .setRelease(Release.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.createReleaseCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * Release release = Release.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Release response = configDeliveryClient.updateReleaseAsync(release, updateMask).get();
+ * }
+ * }
+ *
+ * @param release Required. The resource being updated
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * Release resource by the update. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask. If the
+ * user does not provide a mask then all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateReleaseRequest request =
+ * UpdateReleaseRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRelease(Release.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Release response = configDeliveryClient.updateReleaseAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateReleaseRequest request =
+ * UpdateReleaseRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRelease(Release.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.updateReleaseOperationCallable().futureCall(request);
+ * // Do something.
+ * Release response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateReleaseRequest request =
+ * UpdateReleaseRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRelease(Release.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.updateReleaseCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ReleaseName name =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
+ * configDeliveryClient.deleteReleaseAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]").toString();
+ * configDeliveryClient.deleteReleaseAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteReleaseRequest request =
+ * DeleteReleaseRequest.newBuilder()
+ * .setName(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * configDeliveryClient.deleteReleaseAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteReleaseRequest request =
+ * DeleteReleaseRequest.newBuilder()
+ * .setName(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.deleteReleaseOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteReleaseRequest request =
+ * DeleteReleaseRequest.newBuilder()
+ * .setName(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.deleteReleaseCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ReleaseName parent =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
+ * for (Variant element : configDeliveryClient.listVariants(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListVariantsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListVariantsPagedResponse listVariants(ReleaseName parent) {
+ ListVariantsRequest request =
+ ListVariantsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listVariants(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Variants in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]").toString();
+ * for (Variant element : configDeliveryClient.listVariants(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListVariantsRequest.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListVariantsPagedResponse listVariants(String parent) {
+ ListVariantsRequest request = ListVariantsRequest.newBuilder().setParent(parent).build();
+ return listVariants(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Variants in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListVariantsRequest request =
+ * ListVariantsRequest.newBuilder()
+ * .setParent(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Variant element : configDeliveryClient.listVariants(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 ListVariantsPagedResponse listVariants(ListVariantsRequest request) {
+ return listVariantsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Variants in a given project and location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListVariantsRequest request =
+ * ListVariantsRequest.newBuilder()
+ * .setParent(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.listVariantsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Variant element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListVariantsRequest request =
+ * ListVariantsRequest.newBuilder()
+ * .setParent(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListVariantsResponse response = configDeliveryClient.listVariantsCallable().call(request);
+ * for (Variant element : response.getVariantsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * VariantName name =
+ * VariantName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
+ * Variant response = configDeliveryClient.getVariant(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Variant getVariant(VariantName name) {
+ GetVariantRequest request =
+ GetVariantRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getVariant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Variant.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * VariantName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString();
+ * Variant response = configDeliveryClient.getVariant(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Variant getVariant(String name) {
+ GetVariantRequest request = GetVariantRequest.newBuilder().setName(name).build();
+ return getVariant(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Variant.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetVariantRequest request =
+ * GetVariantRequest.newBuilder()
+ * .setName(
+ * VariantName.of(
+ * "[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString())
+ * .build();
+ * Variant response = configDeliveryClient.getVariant(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 Variant getVariant(GetVariantRequest request) {
+ return getVariantCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Variant.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetVariantRequest request =
+ * GetVariantRequest.newBuilder()
+ * .setName(
+ * VariantName.of(
+ * "[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString())
+ * .build();
+ * ApiFuture future = configDeliveryClient.getVariantCallable().futureCall(request);
+ * // Do something.
+ * Variant response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ReleaseName parent =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
+ * Variant variant = Variant.newBuilder().build();
+ * String variantId = "variantId-82113408";
+ * Variant response = configDeliveryClient.createVariantAsync(parent, variant, variantId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param variant Required. The resource being created
+ * @param variantId Required. Id of the requesting object
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent =
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]").toString();
+ * Variant variant = Variant.newBuilder().build();
+ * String variantId = "variantId-82113408";
+ * Variant response = configDeliveryClient.createVariantAsync(parent, variant, variantId).get();
+ * }
+ * }
+ *
+ * @param parent Required. Value for parent.
+ * @param variant Required. The resource being created
+ * @param variantId Required. Id of the requesting object
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateVariantRequest request =
+ * CreateVariantRequest.newBuilder()
+ * .setParent(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setVariantId("variantId-82113408")
+ * .setVariant(Variant.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Variant response = configDeliveryClient.createVariantAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateVariantRequest request =
+ * CreateVariantRequest.newBuilder()
+ * .setParent(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setVariantId("variantId-82113408")
+ * .setVariant(Variant.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.createVariantOperationCallable().futureCall(request);
+ * // Do something.
+ * Variant response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * CreateVariantRequest request =
+ * CreateVariantRequest.newBuilder()
+ * .setParent(
+ * ReleaseName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]")
+ * .toString())
+ * .setVariantId("variantId-82113408")
+ * .setVariant(Variant.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.createVariantCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * Variant variant = Variant.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Variant response = configDeliveryClient.updateVariantAsync(variant, updateMask).get();
+ * }
+ * }
+ *
+ * @param variant Required. The resource being updated
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * Variant resource by the update. The fields specified in the update_mask are relative to the
+ * resource, not the full request. A field will be overwritten if it is in the mask. If the
+ * user does not provide a mask then all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateVariantRequest request =
+ * UpdateVariantRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setVariant(Variant.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Variant response = configDeliveryClient.updateVariantAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateVariantRequest request =
+ * UpdateVariantRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setVariant(Variant.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.updateVariantOperationCallable().futureCall(request);
+ * // Do something.
+ * Variant response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * UpdateVariantRequest request =
+ * UpdateVariantRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setVariant(Variant.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.updateVariantCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * VariantName name =
+ * VariantName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
+ * configDeliveryClient.deleteVariantAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * VariantName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString();
+ * configDeliveryClient.deleteVariantAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteVariantRequest request =
+ * DeleteVariantRequest.newBuilder()
+ * .setName(
+ * VariantName.of(
+ * "[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * configDeliveryClient.deleteVariantAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteVariantRequest request =
+ * DeleteVariantRequest.newBuilder()
+ * .setName(
+ * VariantName.of(
+ * "[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.deleteVariantOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * DeleteVariantRequest request =
+ * DeleteVariantRequest.newBuilder()
+ * .setName(
+ * VariantName.of(
+ * "[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.deleteVariantCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * FleetPackageName parent = FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
+ * for (Rollout element : configDeliveryClient.listRollouts(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListRolloutsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListRolloutsPagedResponse listRollouts(FleetPackageName parent) {
+ ListRolloutsRequest request =
+ ListRolloutsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listRollouts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project, location, and Fleet Package.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String parent = FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString();
+ * for (Rollout element : configDeliveryClient.listRollouts(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Parent value for ListRolloutsRequest
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListRolloutsPagedResponse listRollouts(String parent) {
+ ListRolloutsRequest request = ListRolloutsRequest.newBuilder().setParent(parent).build();
+ return listRollouts(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project, location, and Fleet Package.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setParent(
+ * FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Rollout element : configDeliveryClient.listRollouts(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 ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request) {
+ return listRolloutsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project, location, and Fleet Package.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setParent(
+ * FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.listRolloutsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Rollout element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setParent(
+ * FleetPackageName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListRolloutsResponse response = configDeliveryClient.listRolloutsCallable().call(request);
+ * for (Rollout element : response.getRolloutsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
+ * Rollout response = configDeliveryClient.getRollout(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Rollout getRollout(RolloutName name) {
+ GetRolloutRequest request =
+ GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getRollout(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Rollout.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]").toString();
+ * Rollout response = configDeliveryClient.getRollout(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Rollout getRollout(String name) {
+ GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name).build();
+ return getRollout(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Rollout.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetRolloutRequest request =
+ * GetRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .build();
+ * Rollout response = configDeliveryClient.getRollout(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 Rollout getRollout(GetRolloutRequest request) {
+ return getRolloutCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Rollout.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetRolloutRequest request =
+ * GetRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .build();
+ * ApiFuture future = configDeliveryClient.getRolloutCallable().futureCall(request);
+ * // Do something.
+ * Rollout response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
+ * Rollout response = configDeliveryClient.suspendRolloutAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the Rollout.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]").toString();
+ * Rollout response = configDeliveryClient.suspendRolloutAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the Rollout.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * SuspendRolloutRequest request =
+ * SuspendRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * Rollout response = configDeliveryClient.suspendRolloutAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * SuspendRolloutRequest request =
+ * SuspendRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.suspendRolloutOperationCallable().futureCall(request);
+ * // Do something.
+ * Rollout response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * SuspendRolloutRequest request =
+ * SuspendRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.suspendRolloutCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
+ * Rollout response = configDeliveryClient.resumeRolloutAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the Rollout.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]").toString();
+ * Rollout response = configDeliveryClient.resumeRolloutAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the Rollout.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResumeRolloutRequest request =
+ * ResumeRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * Rollout response = configDeliveryClient.resumeRolloutAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResumeRolloutRequest request =
+ * ResumeRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.resumeRolloutOperationCallable().futureCall(request);
+ * // Do something.
+ * Rollout response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResumeRolloutRequest request =
+ * ResumeRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.resumeRolloutCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
+ * Rollout response = configDeliveryClient.abortRolloutAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the Rollout.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * String name =
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]").toString();
+ * Rollout response = configDeliveryClient.abortRolloutAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. Name of the Rollout.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * AbortRolloutRequest request =
+ * AbortRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * Rollout response = configDeliveryClient.abortRolloutAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * AbortRolloutRequest request =
+ * AbortRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * OperationFuture future =
+ * configDeliveryClient.abortRolloutOperationCallable().futureCall(request);
+ * // Do something.
+ * Rollout response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * AbortRolloutRequest request =
+ * AbortRolloutRequest.newBuilder()
+ * .setName(
+ * RolloutName.of("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]")
+ * .toString())
+ * .setReason("reason-934964668")
+ * .build();
+ * ApiFuture future = configDeliveryClient.abortRolloutCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : configDeliveryClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * configDeliveryClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = configDeliveryClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = configDeliveryClient.getLocation(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 Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future = configDeliveryClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getResourceBundle: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigDeliverySettings.Builder configDeliverySettingsBuilder =
+ * ConfigDeliverySettings.newBuilder();
+ * configDeliverySettingsBuilder
+ * .getResourceBundleSettings()
+ * .setRetrySettings(
+ * configDeliverySettingsBuilder
+ * .getResourceBundleSettings()
+ * .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());
+ * ConfigDeliverySettings configDeliverySettings = configDeliverySettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
+ * additional support in setting retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createResourceBundle: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ConfigDeliverySettings.Builder configDeliverySettingsBuilder =
+ * ConfigDeliverySettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * configDeliverySettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class ConfigDeliverySettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= ConfigDeliveryClient =======================
+ *
+ * Service Description: ConfigDelivery service manages the deployment of kubernetes configuration
+ * to a fleet of kubernetes clusters.
+ *
+ * Sample for ConfigDeliveryClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class ConfigDeliveryStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ return null;
+ }
+
+ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+ return null;
+ }
+
+ public 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 (ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.create()) {
+ * ResourceBundleName name =
+ * ResourceBundleName.of("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
+ * ResourceBundle response = configDeliveryClient.getResourceBundle(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.configdelivery.v1beta;
+
+import javax.annotation.Generated;
diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java
new file mode 100644
index 000000000000..29e2f3e7d8ad
--- /dev/null
+++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java
@@ -0,0 +1,313 @@
+/*
+ * 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.cloud.configdelivery.v1beta.stub;
+
+import static com.google.cloud.configdelivery.v1beta.ConfigDeliveryClient.ListFleetPackagesPagedResponse;
+import static com.google.cloud.configdelivery.v1beta.ConfigDeliveryClient.ListLocationsPagedResponse;
+import static com.google.cloud.configdelivery.v1beta.ConfigDeliveryClient.ListReleasesPagedResponse;
+import static com.google.cloud.configdelivery.v1beta.ConfigDeliveryClient.ListResourceBundlesPagedResponse;
+import static com.google.cloud.configdelivery.v1beta.ConfigDeliveryClient.ListRolloutsPagedResponse;
+import static com.google.cloud.configdelivery.v1beta.ConfigDeliveryClient.ListVariantsPagedResponse;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.configdelivery.v1beta.AbortRolloutRequest;
+import com.google.cloud.configdelivery.v1beta.CreateFleetPackageRequest;
+import com.google.cloud.configdelivery.v1beta.CreateReleaseRequest;
+import com.google.cloud.configdelivery.v1beta.CreateResourceBundleRequest;
+import com.google.cloud.configdelivery.v1beta.CreateVariantRequest;
+import com.google.cloud.configdelivery.v1beta.DeleteFleetPackageRequest;
+import com.google.cloud.configdelivery.v1beta.DeleteReleaseRequest;
+import com.google.cloud.configdelivery.v1beta.DeleteResourceBundleRequest;
+import com.google.cloud.configdelivery.v1beta.DeleteVariantRequest;
+import com.google.cloud.configdelivery.v1beta.FleetPackage;
+import com.google.cloud.configdelivery.v1beta.GetFleetPackageRequest;
+import com.google.cloud.configdelivery.v1beta.GetReleaseRequest;
+import com.google.cloud.configdelivery.v1beta.GetResourceBundleRequest;
+import com.google.cloud.configdelivery.v1beta.GetRolloutRequest;
+import com.google.cloud.configdelivery.v1beta.GetVariantRequest;
+import com.google.cloud.configdelivery.v1beta.ListFleetPackagesRequest;
+import com.google.cloud.configdelivery.v1beta.ListFleetPackagesResponse;
+import com.google.cloud.configdelivery.v1beta.ListReleasesRequest;
+import com.google.cloud.configdelivery.v1beta.ListReleasesResponse;
+import com.google.cloud.configdelivery.v1beta.ListResourceBundlesRequest;
+import com.google.cloud.configdelivery.v1beta.ListResourceBundlesResponse;
+import com.google.cloud.configdelivery.v1beta.ListRolloutsRequest;
+import com.google.cloud.configdelivery.v1beta.ListRolloutsResponse;
+import com.google.cloud.configdelivery.v1beta.ListVariantsRequest;
+import com.google.cloud.configdelivery.v1beta.ListVariantsResponse;
+import com.google.cloud.configdelivery.v1beta.OperationMetadata;
+import com.google.cloud.configdelivery.v1beta.Release;
+import com.google.cloud.configdelivery.v1beta.ResourceBundle;
+import com.google.cloud.configdelivery.v1beta.ResumeRolloutRequest;
+import com.google.cloud.configdelivery.v1beta.Rollout;
+import com.google.cloud.configdelivery.v1beta.SuspendRolloutRequest;
+import com.google.cloud.configdelivery.v1beta.UpdateFleetPackageRequest;
+import com.google.cloud.configdelivery.v1beta.UpdateReleaseRequest;
+import com.google.cloud.configdelivery.v1beta.UpdateResourceBundleRequest;
+import com.google.cloud.configdelivery.v1beta.UpdateVariantRequest;
+import com.google.cloud.configdelivery.v1beta.Variant;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the ConfigDelivery service API.
+ *
+ *