Class ConfigDeliveryClient (0.1.0)

GitHub RepositoryProduct ReferenceREST Documentation

Service Description: ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters.

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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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().

Methods
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.

  • listResourceBundles(ListResourceBundlesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listResourceBundles(LocationName parent)

  • listResourceBundles(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listResourceBundlesPagedCallable()

  • listResourceBundlesCallable()

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.

  • getResourceBundle(GetResourceBundleRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getResourceBundle(ResourceBundleName name)

  • getResourceBundle(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getResourceBundleCallable()

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.

  • createResourceBundleAsync(CreateResourceBundleRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createResourceBundleAsync(LocationName parent, ResourceBundle resourceBundle, String resourceBundleId)

  • createResourceBundleAsync(String parent, ResourceBundle resourceBundle, String resourceBundleId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createResourceBundleOperationCallable()

  • createResourceBundleCallable()

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.

  • updateResourceBundleAsync(UpdateResourceBundleRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateResourceBundleAsync(ResourceBundle resourceBundle, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateResourceBundleOperationCallable()

  • updateResourceBundleCallable()

DeleteResourceBundle

Deletes a single ResourceBundle.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteResourceBundleAsync(DeleteResourceBundleRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteResourceBundleAsync(ResourceBundleName name)

  • deleteResourceBundleAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteResourceBundleOperationCallable()

  • deleteResourceBundleCallable()

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.

  • listFleetPackages(ListFleetPackagesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listFleetPackages(LocationName parent)

  • listFleetPackages(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listFleetPackagesPagedCallable()

  • listFleetPackagesCallable()

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.

  • getFleetPackage(GetFleetPackageRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getFleetPackage(FleetPackageName name)

  • getFleetPackage(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getFleetPackageCallable()

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.

  • createFleetPackageAsync(CreateFleetPackageRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createFleetPackageAsync(LocationName parent, FleetPackage fleetPackage, String fleetPackageId)

  • createFleetPackageAsync(String parent, FleetPackage fleetPackage, String fleetPackageId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createFleetPackageOperationCallable()

  • createFleetPackageCallable()

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.

  • updateFleetPackageAsync(UpdateFleetPackageRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateFleetPackageAsync(FleetPackage fleetPackage, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateFleetPackageOperationCallable()

  • updateFleetPackageCallable()

DeleteFleetPackage

Deletes a single FleetPackage.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteFleetPackageAsync(DeleteFleetPackageRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteFleetPackageAsync(FleetPackageName name)

  • deleteFleetPackageAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteFleetPackageOperationCallable()

  • deleteFleetPackageCallable()

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.

  • listReleases(ListReleasesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listReleases(ResourceBundleName parent)

  • listReleases(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listReleasesPagedCallable()

  • listReleasesCallable()

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.

  • getRelease(GetReleaseRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getRelease(ReleaseName name)

  • getRelease(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getReleaseCallable()

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.

  • createReleaseAsync(CreateReleaseRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createReleaseAsync(ResourceBundleName parent, Release release, String releaseId)

  • createReleaseAsync(String parent, Release release, String releaseId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createReleaseOperationCallable()

  • createReleaseCallable()

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.

  • updateReleaseAsync(UpdateReleaseRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateReleaseAsync(Release release, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateReleaseOperationCallable()

  • updateReleaseCallable()

DeleteRelease

Deletes a single Release.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteReleaseAsync(DeleteReleaseRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteReleaseAsync(ReleaseName name)

  • deleteReleaseAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteReleaseOperationCallable()

  • deleteReleaseCallable()

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.

  • listVariants(ListVariantsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listVariants(ReleaseName parent)

  • listVariants(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listVariantsPagedCallable()

  • listVariantsCallable()

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.

  • getVariant(GetVariantRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getVariant(VariantName name)

  • getVariant(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getVariantCallable()

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.

  • createVariantAsync(CreateVariantRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createVariantAsync(ReleaseName parent, Variant variant, String variantId)

  • createVariantAsync(String parent, Variant variant, String variantId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createVariantOperationCallable()

  • createVariantCallable()

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.

  • updateVariantAsync(UpdateVariantRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateVariantAsync(Variant variant, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateVariantOperationCallable()

  • updateVariantCallable()

DeleteVariant

Deletes a single Variant.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteVariantAsync(DeleteVariantRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteVariantAsync(VariantName name)

  • deleteVariantAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteVariantOperationCallable()

  • deleteVariantCallable()

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.

  • listRollouts(ListRolloutsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listRollouts(FleetPackageName parent)

  • listRollouts(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listRolloutsPagedCallable()

  • listRolloutsCallable()

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.

  • getRollout(GetRolloutRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getRollout(RolloutName name)

  • getRollout(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getRolloutCallable()

SuspendRollout

Suspend a Rollout.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • suspendRolloutAsync(SuspendRolloutRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • suspendRolloutAsync(RolloutName name)

  • suspendRolloutAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • suspendRolloutOperationCallable()

  • suspendRolloutCallable()

ResumeRollout

Resume a Rollout.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • resumeRolloutAsync(ResumeRolloutRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • resumeRolloutAsync(RolloutName name)

  • resumeRolloutAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • resumeRolloutOperationCallable()

  • resumeRolloutCallable()

AbortRollout

Abort a Rollout.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • abortRolloutAsync(AbortRolloutRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • abortRolloutAsync(RolloutName name)

  • abortRolloutAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • abortRolloutOperationCallable()

  • abortRolloutCallable()

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.

  • listLocations(ListLocationsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listLocationsPagedCallable()

  • listLocationsCallable()

GetLocation

Gets information about a location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLocation(GetLocationRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getLocationCallable()

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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require 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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require 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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require 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.

Inheritance

java.lang.Object > ConfigDeliveryClient

Static Methods

create()

public static final ConfigDeliveryClient create()

Constructs an instance of ConfigDeliveryClient with default settings.

Returns
Type Description
ConfigDeliveryClient
Exceptions
Type Description
IOException

create(ConfigDeliverySettings settings)

public static final ConfigDeliveryClient create(ConfigDeliverySettings settings)

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.

Parameter
Name Description
settings ConfigDeliverySettings
Returns
Type Description
ConfigDeliveryClient
Exceptions
Type Description
IOException

create(ConfigDeliveryStub stub)

public static final ConfigDeliveryClient create(ConfigDeliveryStub stub)

Constructs an instance of ConfigDeliveryClient, using the given stub for making calls. This is for advanced usage - prefer using create(ConfigDeliverySettings).

Parameter
Name Description
stub ConfigDeliveryStub
Returns
Type Description
ConfigDeliveryClient

Constructors

ConfigDeliveryClient(ConfigDeliverySettings settings)

protected ConfigDeliveryClient(ConfigDeliverySettings settings)

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.

Parameter
Name Description
settings ConfigDeliverySettings

ConfigDeliveryClient(ConfigDeliveryStub stub)

protected ConfigDeliveryClient(ConfigDeliveryStub stub)
Parameter
Name Description
stub ConfigDeliveryStub

Methods

abortRolloutAsync(AbortRolloutRequest request)

public final OperationFuture<Rollout,OperationMetadata> abortRolloutAsync(AbortRolloutRequest request)

Abort a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request AbortRolloutRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

abortRolloutAsync(RolloutName name)

public final OperationFuture<Rollout,OperationMetadata> abortRolloutAsync(RolloutName name)

Abort a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name RolloutName

Required. Name of the Rollout.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

abortRolloutAsync(String name)

public final OperationFuture<Rollout,OperationMetadata> abortRolloutAsync(String name)

Abort a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the Rollout.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

abortRolloutCallable()

public final UnaryCallable<AbortRolloutRequest,Operation> abortRolloutCallable()

Abort a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future = configDeliveryClient.abortRolloutCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<AbortRolloutRequest,Operation>

abortRolloutOperationCallable()

public final OperationCallable<AbortRolloutRequest,Rollout,OperationMetadata> abortRolloutOperationCallable()

Abort a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Rollout, OperationMetadata> future =
       configDeliveryClient.abortRolloutOperationCallable().futureCall(request);
   // Do something.
   Rollout response = future.get();
 }
 
Returns
Type Description
OperationCallable<AbortRolloutRequest,Rollout,OperationMetadata>

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()

createFleetPackageAsync(CreateFleetPackageRequest request)

public final OperationFuture<FleetPackage,OperationMetadata> createFleetPackageAsync(CreateFleetPackageRequest request)

Creates a new FleetPackage in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request CreateFleetPackageRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<FleetPackage,OperationMetadata>

createFleetPackageAsync(LocationName parent, FleetPackage fleetPackage, String fleetPackageId)

public final OperationFuture<FleetPackage,OperationMetadata> createFleetPackageAsync(LocationName parent, FleetPackage fleetPackage, String fleetPackageId)

Creates a new FleetPackage in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId String

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

Returns
Type Description
OperationFuture<FleetPackage,OperationMetadata>

createFleetPackageAsync(String parent, FleetPackage fleetPackage, String fleetPackageId)

public final OperationFuture<FleetPackage,OperationMetadata> createFleetPackageAsync(String parent, FleetPackage fleetPackage, String fleetPackageId)

Creates a new FleetPackage in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId String

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

Returns
Type Description
OperationFuture<FleetPackage,OperationMetadata>

createFleetPackageCallable()

public final UnaryCallable<CreateFleetPackageRequest,Operation> createFleetPackageCallable()

Creates a new FleetPackage in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.createFleetPackageCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateFleetPackageRequest,Operation>

createFleetPackageOperationCallable()

public final OperationCallable<CreateFleetPackageRequest,FleetPackage,OperationMetadata> createFleetPackageOperationCallable()

Creates a new FleetPackage in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<FleetPackage, OperationMetadata> future =
       configDeliveryClient.createFleetPackageOperationCallable().futureCall(request);
   // Do something.
   FleetPackage response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateFleetPackageRequest,FleetPackage,OperationMetadata>

createReleaseAsync(CreateReleaseRequest request)

public final OperationFuture<Release,OperationMetadata> createReleaseAsync(CreateReleaseRequest request)

Creates a new Release in a given project, location and resource bundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request CreateReleaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Release,OperationMetadata>

createReleaseAsync(ResourceBundleName parent, Release release, String releaseId)

public final OperationFuture<Release,OperationMetadata> createReleaseAsync(ResourceBundleName parent, Release release, String releaseId)

Creates a new Release in a given project, location and resource bundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent ResourceBundleName

Required. Value for parent.

release Release

Required. The resource being created

releaseId String

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

Returns
Type Description
OperationFuture<Release,OperationMetadata>

createReleaseAsync(String parent, Release release, String releaseId)

public final OperationFuture<Release,OperationMetadata> createReleaseAsync(String parent, Release release, String releaseId)

Creates a new Release in a given project, location and resource bundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

release Release

Required. The resource being created

releaseId String

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

Returns
Type Description
OperationFuture<Release,OperationMetadata>

createReleaseCallable()

public final UnaryCallable<CreateReleaseRequest,Operation> createReleaseCallable()

Creates a new Release in a given project, location and resource bundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.createReleaseCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateReleaseRequest,Operation>

createReleaseOperationCallable()

public final OperationCallable<CreateReleaseRequest,Release,OperationMetadata> createReleaseOperationCallable()

Creates a new Release in a given project, location and resource bundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Release, OperationMetadata> future =
       configDeliveryClient.createReleaseOperationCallable().futureCall(request);
   // Do something.
   Release response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateReleaseRequest,Release,OperationMetadata>

createResourceBundleAsync(CreateResourceBundleRequest request)

public final OperationFuture<ResourceBundle,OperationMetadata> createResourceBundleAsync(CreateResourceBundleRequest request)

Creates a new ResourceBundle in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request CreateResourceBundleRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<ResourceBundle,OperationMetadata>

createResourceBundleAsync(LocationName parent, ResourceBundle resourceBundle, String resourceBundleId)

public final OperationFuture<ResourceBundle,OperationMetadata> createResourceBundleAsync(LocationName parent, ResourceBundle resourceBundle, String resourceBundleId)

Creates a new ResourceBundle in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent LocationName

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId String

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

Returns
Type Description
OperationFuture<ResourceBundle,OperationMetadata>

createResourceBundleAsync(String parent, ResourceBundle resourceBundle, String resourceBundleId)

public final OperationFuture<ResourceBundle,OperationMetadata> createResourceBundleAsync(String parent, ResourceBundle resourceBundle, String resourceBundleId)

Creates a new ResourceBundle in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId String

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

Returns
Type Description
OperationFuture<ResourceBundle,OperationMetadata>

createResourceBundleCallable()

public final UnaryCallable<CreateResourceBundleRequest,Operation> createResourceBundleCallable()

Creates a new ResourceBundle in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.createResourceBundleCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateResourceBundleRequest,Operation>

createResourceBundleOperationCallable()

public final OperationCallable<CreateResourceBundleRequest,ResourceBundle,OperationMetadata> createResourceBundleOperationCallable()

Creates a new ResourceBundle in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<ResourceBundle, OperationMetadata> future =
       configDeliveryClient.createResourceBundleOperationCallable().futureCall(request);
   // Do something.
   ResourceBundle response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateResourceBundleRequest,ResourceBundle,OperationMetadata>

createVariantAsync(CreateVariantRequest request)

public final OperationFuture<Variant,OperationMetadata> createVariantAsync(CreateVariantRequest request)

Creates a new Variant in a given project, location, resource bundle, and release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request CreateVariantRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Variant,OperationMetadata>

createVariantAsync(ReleaseName parent, Variant variant, String variantId)

public final OperationFuture<Variant,OperationMetadata> createVariantAsync(ReleaseName parent, Variant variant, String variantId)

Creates a new Variant in a given project, location, resource bundle, and release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent ReleaseName

Required. Value for parent.

variant Variant

Required. The resource being created

variantId String

Required. Id of the requesting object

Returns
Type Description
OperationFuture<Variant,OperationMetadata>

createVariantAsync(String parent, Variant variant, String variantId)

public final OperationFuture<Variant,OperationMetadata> createVariantAsync(String parent, Variant variant, String variantId)

Creates a new Variant in a given project, location, resource bundle, and release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
parent String

Required. Value for parent.

variant Variant

Required. The resource being created

variantId String

Required. Id of the requesting object

Returns
Type Description
OperationFuture<Variant,OperationMetadata>

createVariantCallable()

public final UnaryCallable<CreateVariantRequest,Operation> createVariantCallable()

Creates a new Variant in a given project, location, resource bundle, and release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.createVariantCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<CreateVariantRequest,Operation>

createVariantOperationCallable()

public final OperationCallable<CreateVariantRequest,Variant,OperationMetadata> createVariantOperationCallable()

Creates a new Variant in a given project, location, resource bundle, and release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Variant, OperationMetadata> future =
       configDeliveryClient.createVariantOperationCallable().futureCall(request);
   // Do something.
   Variant response = future.get();
 }
 
Returns
Type Description
OperationCallable<CreateVariantRequest,Variant,OperationMetadata>

deleteFleetPackageAsync(DeleteFleetPackageRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteFleetPackageAsync(DeleteFleetPackageRequest request)

Deletes a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request DeleteFleetPackageRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteFleetPackageAsync(FleetPackageName name)

public final OperationFuture<Empty,OperationMetadata> deleteFleetPackageAsync(FleetPackageName name)

Deletes a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name FleetPackageName

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteFleetPackageAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteFleetPackageAsync(String name)

Deletes a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteFleetPackageCallable()

public final UnaryCallable<DeleteFleetPackageRequest,Operation> deleteFleetPackageCallable()

Deletes a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.deleteFleetPackageCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteFleetPackageRequest,Operation>

deleteFleetPackageOperationCallable()

public final OperationCallable<DeleteFleetPackageRequest,Empty,OperationMetadata> deleteFleetPackageOperationCallable()

Deletes a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Empty, OperationMetadata> future =
       configDeliveryClient.deleteFleetPackageOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteFleetPackageRequest,Empty,OperationMetadata>

deleteReleaseAsync(DeleteReleaseRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteReleaseAsync(DeleteReleaseRequest request)

Deletes a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request DeleteReleaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReleaseAsync(ReleaseName name)

public final OperationFuture<Empty,OperationMetadata> deleteReleaseAsync(ReleaseName name)

Deletes a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name ReleaseName

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReleaseAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteReleaseAsync(String name)

Deletes a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteReleaseCallable()

public final UnaryCallable<DeleteReleaseRequest,Operation> deleteReleaseCallable()

Deletes a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.deleteReleaseCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteReleaseRequest,Operation>

deleteReleaseOperationCallable()

public final OperationCallable<DeleteReleaseRequest,Empty,OperationMetadata> deleteReleaseOperationCallable()

Deletes a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Empty, OperationMetadata> future =
       configDeliveryClient.deleteReleaseOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteReleaseRequest,Empty,OperationMetadata>

deleteResourceBundleAsync(DeleteResourceBundleRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteResourceBundleAsync(DeleteResourceBundleRequest request)

Deletes a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request DeleteResourceBundleRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteResourceBundleAsync(ResourceBundleName name)

public final OperationFuture<Empty,OperationMetadata> deleteResourceBundleAsync(ResourceBundleName name)

Deletes a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name ResourceBundleName

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteResourceBundleAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteResourceBundleAsync(String name)

Deletes a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteResourceBundleCallable()

public final UnaryCallable<DeleteResourceBundleRequest,Operation> deleteResourceBundleCallable()

Deletes a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.deleteResourceBundleCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteResourceBundleRequest,Operation>

deleteResourceBundleOperationCallable()

public final OperationCallable<DeleteResourceBundleRequest,Empty,OperationMetadata> deleteResourceBundleOperationCallable()

Deletes a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Empty, OperationMetadata> future =
       configDeliveryClient.deleteResourceBundleOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteResourceBundleRequest,Empty,OperationMetadata>

deleteVariantAsync(DeleteVariantRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteVariantAsync(DeleteVariantRequest request)

Deletes a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request DeleteVariantRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteVariantAsync(VariantName name)

public final OperationFuture<Empty,OperationMetadata> deleteVariantAsync(VariantName name)

Deletes a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name VariantName

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteVariantAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteVariantAsync(String name)

Deletes a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
OperationFuture<Empty,OperationMetadata>

deleteVariantCallable()

public final UnaryCallable<DeleteVariantRequest,Operation> deleteVariantCallable()

Deletes a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.deleteVariantCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
UnaryCallable<DeleteVariantRequest,Operation>

deleteVariantOperationCallable()

public final OperationCallable<DeleteVariantRequest,Empty,OperationMetadata> deleteVariantOperationCallable()

Deletes a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Empty, OperationMetadata> future =
       configDeliveryClient.deleteVariantOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
Type Description
OperationCallable<DeleteVariantRequest,Empty,OperationMetadata>

getFleetPackage(FleetPackageName name)

public final FleetPackage getFleetPackage(FleetPackageName name)

Gets details of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name FleetPackageName

Required. Name of the resource

Returns
Type Description
FleetPackage

getFleetPackage(GetFleetPackageRequest request)

public final FleetPackage getFleetPackage(GetFleetPackageRequest request)

Gets details of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
request GetFleetPackageRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
FleetPackage

getFleetPackage(String name)

public final FleetPackage getFleetPackage(String name)

Gets details of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
FleetPackage

getFleetPackageCallable()

public final UnaryCallable<GetFleetPackageRequest,FleetPackage> getFleetPackageCallable()

Gets details of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<FleetPackage> future =
       configDeliveryClient.getFleetPackageCallable().futureCall(request);
   // Do something.
   FleetPackage response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetFleetPackageRequest,FleetPackage>

getHttpJsonOperationsClient()

public final OperationsClient getHttpJsonOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
request com.google.cloud.location.GetLocationRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Location> future = configDeliveryClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getOperationsClient()

public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
Type Description
OperationsClient

getRelease(GetReleaseRequest request)

public final Release getRelease(GetReleaseRequest request)

Gets details of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
request GetReleaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Release

getRelease(ReleaseName name)

public final Release getRelease(ReleaseName name)

Gets details of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name ReleaseName

Required. Name of the resource

Returns
Type Description
Release

getRelease(String name)

public final Release getRelease(String name)

Gets details of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
Release

getReleaseCallable()

public final UnaryCallable<GetReleaseRequest,Release> getReleaseCallable()

Gets details of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Release> future = configDeliveryClient.getReleaseCallable().futureCall(request);
   // Do something.
   Release response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetReleaseRequest,Release>

getResourceBundle(GetResourceBundleRequest request)

public final ResourceBundle getResourceBundle(GetResourceBundleRequest request)

Gets details of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
request GetResourceBundleRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ResourceBundle

getResourceBundle(ResourceBundleName name)

public final ResourceBundle getResourceBundle(ResourceBundleName name)

Gets details of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name ResourceBundleName

Required. Name of the resource.

Returns
Type Description
ResourceBundle

getResourceBundle(String name)

public final ResourceBundle getResourceBundle(String name)

Gets details of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource.

Returns
Type Description
ResourceBundle

getResourceBundleCallable()

public final UnaryCallable<GetResourceBundleRequest,ResourceBundle> getResourceBundleCallable()

Gets details of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<ResourceBundle> future =
       configDeliveryClient.getResourceBundleCallable().futureCall(request);
   // Do something.
   ResourceBundle response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetResourceBundleRequest,ResourceBundle>

getRollout(GetRolloutRequest request)

public final Rollout getRollout(GetRolloutRequest request)

Gets details of a single Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
request GetRolloutRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Rollout

getRollout(RolloutName name)

public final Rollout getRollout(RolloutName name)

Gets details of a single Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name RolloutName

Required. Name of the resource

Returns
Type Description
Rollout

getRollout(String name)

public final Rollout getRollout(String name)

Gets details of a single Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
Rollout

getRolloutCallable()

public final UnaryCallable<GetRolloutRequest,Rollout> getRolloutCallable()

Gets details of a single Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Rollout> future = configDeliveryClient.getRolloutCallable().futureCall(request);
   // Do something.
   Rollout response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetRolloutRequest,Rollout>

getSettings()

public final ConfigDeliverySettings getSettings()
Returns
Type Description
ConfigDeliverySettings

getStub()

public ConfigDeliveryStub getStub()
Returns
Type Description
ConfigDeliveryStub

getVariant(GetVariantRequest request)

public final Variant getVariant(GetVariantRequest request)

Gets details of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
request GetVariantRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
Variant

getVariant(VariantName name)

public final Variant getVariant(VariantName name)

Gets details of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name VariantName

Required. Name of the resource

Returns
Type Description
Variant

getVariant(String name)

public final Variant getVariant(String name)

Gets details of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
 }
 
Parameter
Name Description
name String

Required. Name of the resource

Returns
Type Description
Variant

getVariantCallable()

public final UnaryCallable<GetVariantRequest,Variant> getVariantCallable()

Gets details of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Variant> future = configDeliveryClient.getVariantCallable().futureCall(request);
   // Do something.
   Variant response = future.get();
 }
 
Returns
Type Description
UnaryCallable<GetVariantRequest,Variant>

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listFleetPackages(ListFleetPackagesRequest request)

public final ConfigDeliveryClient.ListFleetPackagesPagedResponse listFleetPackages(ListFleetPackagesRequest request)

Lists FleetPackages in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
request ListFleetPackagesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ConfigDeliveryClient.ListFleetPackagesPagedResponse

listFleetPackages(LocationName parent)

public final ConfigDeliveryClient.ListFleetPackagesPagedResponse listFleetPackages(LocationName parent)

Lists FleetPackages in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListFleetPackagesRequest.

Returns
Type Description
ConfigDeliveryClient.ListFleetPackagesPagedResponse

listFleetPackages(String parent)

public final ConfigDeliveryClient.ListFleetPackagesPagedResponse listFleetPackages(String parent)

Lists FleetPackages in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListFleetPackagesRequest.

Returns
Type Description
ConfigDeliveryClient.ListFleetPackagesPagedResponse

listFleetPackagesCallable()

public final UnaryCallable<ListFleetPackagesRequest,ListFleetPackagesResponse> listFleetPackagesCallable()

Lists FleetPackages in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListFleetPackagesRequest,ListFleetPackagesResponse>

listFleetPackagesPagedCallable()

public final UnaryCallable<ListFleetPackagesRequest,ConfigDeliveryClient.ListFleetPackagesPagedResponse> listFleetPackagesPagedCallable()

Lists FleetPackages in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<FleetPackage> future =
       configDeliveryClient.listFleetPackagesPagedCallable().futureCall(request);
   // Do something.
   for (FleetPackage element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListFleetPackagesRequest,ListFleetPackagesPagedResponse>

listLocations(ListLocationsRequest request)

public final ConfigDeliveryClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
request com.google.cloud.location.ListLocationsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ConfigDeliveryClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,ConfigDeliveryClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Location> future =
       configDeliveryClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

listReleases(ListReleasesRequest request)

public final ConfigDeliveryClient.ListReleasesPagedResponse listReleases(ListReleasesRequest request)

Lists Releases in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
request ListReleasesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ConfigDeliveryClient.ListReleasesPagedResponse

listReleases(ResourceBundleName parent)

public final ConfigDeliveryClient.ListReleasesPagedResponse listReleases(ResourceBundleName parent)

Lists Releases in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent ResourceBundleName

Required. Parent value for ListReleasesRequest.

Returns
Type Description
ConfigDeliveryClient.ListReleasesPagedResponse

listReleases(String parent)

public final ConfigDeliveryClient.ListReleasesPagedResponse listReleases(String parent)

Lists Releases in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListReleasesRequest.

Returns
Type Description
ConfigDeliveryClient.ListReleasesPagedResponse

listReleasesCallable()

public final UnaryCallable<ListReleasesRequest,ListReleasesResponse> listReleasesCallable()

Lists Releases in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListReleasesRequest,ListReleasesResponse>

listReleasesPagedCallable()

public final UnaryCallable<ListReleasesRequest,ConfigDeliveryClient.ListReleasesPagedResponse> listReleasesPagedCallable()

Lists Releases in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Release> future =
       configDeliveryClient.listReleasesPagedCallable().futureCall(request);
   // Do something.
   for (Release element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListReleasesRequest,ListReleasesPagedResponse>

listResourceBundles(ListResourceBundlesRequest request)

public final ConfigDeliveryClient.ListResourceBundlesPagedResponse listResourceBundles(ListResourceBundlesRequest request)

Lists ResourceBundles in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
request ListResourceBundlesRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ConfigDeliveryClient.ListResourceBundlesPagedResponse

listResourceBundles(LocationName parent)

public final ConfigDeliveryClient.ListResourceBundlesPagedResponse listResourceBundles(LocationName parent)

Lists ResourceBundles in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent LocationName

Required. Parent value for ListResourceBundlesRequest.

Returns
Type Description
ConfigDeliveryClient.ListResourceBundlesPagedResponse

listResourceBundles(String parent)

public final ConfigDeliveryClient.ListResourceBundlesPagedResponse listResourceBundles(String parent)

Lists ResourceBundles in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListResourceBundlesRequest.

Returns
Type Description
ConfigDeliveryClient.ListResourceBundlesPagedResponse

listResourceBundlesCallable()

public final UnaryCallable<ListResourceBundlesRequest,ListResourceBundlesResponse> listResourceBundlesCallable()

Lists ResourceBundles in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListResourceBundlesRequest,ListResourceBundlesResponse>

listResourceBundlesPagedCallable()

public final UnaryCallable<ListResourceBundlesRequest,ConfigDeliveryClient.ListResourceBundlesPagedResponse> listResourceBundlesPagedCallable()

Lists ResourceBundles in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<ResourceBundle> future =
       configDeliveryClient.listResourceBundlesPagedCallable().futureCall(request);
   // Do something.
   for (ResourceBundle element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListResourceBundlesRequest,ListResourceBundlesPagedResponse>

listRollouts(FleetPackageName parent)

public final ConfigDeliveryClient.ListRolloutsPagedResponse listRollouts(FleetPackageName parent)

Lists Rollouts in a given project, location, and Fleet Package.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent FleetPackageName

Required. Parent value for ListRolloutsRequest

Returns
Type Description
ConfigDeliveryClient.ListRolloutsPagedResponse

listRollouts(ListRolloutsRequest request)

public final ConfigDeliveryClient.ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request)

Lists Rollouts in a given project, location, and Fleet Package.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
request ListRolloutsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ConfigDeliveryClient.ListRolloutsPagedResponse

listRollouts(String parent)

public final ConfigDeliveryClient.ListRolloutsPagedResponse listRollouts(String parent)

Lists Rollouts in a given project, location, and Fleet Package.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListRolloutsRequest

Returns
Type Description
ConfigDeliveryClient.ListRolloutsPagedResponse

listRolloutsCallable()

public final UnaryCallable<ListRolloutsRequest,ListRolloutsResponse> listRolloutsCallable()

Lists Rollouts in a given project, location, and Fleet Package.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListRolloutsRequest,ListRolloutsResponse>

listRolloutsPagedCallable()

public final UnaryCallable<ListRolloutsRequest,ConfigDeliveryClient.ListRolloutsPagedResponse> listRolloutsPagedCallable()

Lists Rollouts in a given project, location, and Fleet Package.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Rollout> future =
       configDeliveryClient.listRolloutsPagedCallable().futureCall(request);
   // Do something.
   for (Rollout element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListRolloutsRequest,ListRolloutsPagedResponse>

listVariants(ListVariantsRequest request)

public final ConfigDeliveryClient.ListVariantsPagedResponse listVariants(ListVariantsRequest request)

Lists Variants in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
request ListVariantsRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
ConfigDeliveryClient.ListVariantsPagedResponse

listVariants(ReleaseName parent)

public final ConfigDeliveryClient.ListVariantsPagedResponse listVariants(ReleaseName parent)

Lists Variants in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent ReleaseName

Required. Parent value for ListVariantsRequest.

Returns
Type Description
ConfigDeliveryClient.ListVariantsPagedResponse

listVariants(String parent)

public final ConfigDeliveryClient.ListVariantsPagedResponse listVariants(String parent)

Lists Variants in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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);
   }
 }
 
Parameter
Name Description
parent String

Required. Parent value for ListVariantsRequest.

Returns
Type Description
ConfigDeliveryClient.ListVariantsPagedResponse

listVariantsCallable()

public final UnaryCallable<ListVariantsRequest,ListVariantsResponse> listVariantsCallable()

Lists Variants in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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;
     }
   }
 }
 
Returns
Type Description
UnaryCallable<ListVariantsRequest,ListVariantsResponse>

listVariantsPagedCallable()

public final UnaryCallable<ListVariantsRequest,ConfigDeliveryClient.ListVariantsPagedResponse> listVariantsPagedCallable()

Lists Variants in a given project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Variant> future =
       configDeliveryClient.listVariantsPagedCallable().futureCall(request);
   // Do something.
   for (Variant element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
Type Description
UnaryCallable<ListVariantsRequest,ListVariantsPagedResponse>

resumeRolloutAsync(ResumeRolloutRequest request)

public final OperationFuture<Rollout,OperationMetadata> resumeRolloutAsync(ResumeRolloutRequest request)

Resume a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request ResumeRolloutRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

resumeRolloutAsync(RolloutName name)

public final OperationFuture<Rollout,OperationMetadata> resumeRolloutAsync(RolloutName name)

Resume a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name RolloutName

Required. Name of the Rollout.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

resumeRolloutAsync(String name)

public final OperationFuture<Rollout,OperationMetadata> resumeRolloutAsync(String name)

Resume a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the Rollout.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

resumeRolloutCallable()

public final UnaryCallable<ResumeRolloutRequest,Operation> resumeRolloutCallable()

Resume a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.resumeRolloutCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<ResumeRolloutRequest,Operation>

resumeRolloutOperationCallable()

public final OperationCallable<ResumeRolloutRequest,Rollout,OperationMetadata> resumeRolloutOperationCallable()

Resume a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Rollout, OperationMetadata> future =
       configDeliveryClient.resumeRolloutOperationCallable().futureCall(request);
   // Do something.
   Rollout response = future.get();
 }
 
Returns
Type Description
OperationCallable<ResumeRolloutRequest,Rollout,OperationMetadata>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

suspendRolloutAsync(RolloutName name)

public final OperationFuture<Rollout,OperationMetadata> suspendRolloutAsync(RolloutName name)

Suspend a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name RolloutName

Required. Name of the Rollout.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

suspendRolloutAsync(SuspendRolloutRequest request)

public final OperationFuture<Rollout,OperationMetadata> suspendRolloutAsync(SuspendRolloutRequest request)

Suspend a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request SuspendRolloutRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

suspendRolloutAsync(String name)

public final OperationFuture<Rollout,OperationMetadata> suspendRolloutAsync(String name)

Suspend a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
name String

Required. Name of the Rollout.

Returns
Type Description
OperationFuture<Rollout,OperationMetadata>

suspendRolloutCallable()

public final UnaryCallable<SuspendRolloutRequest,Operation> suspendRolloutCallable()

Suspend a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.suspendRolloutCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<SuspendRolloutRequest,Operation>

suspendRolloutOperationCallable()

public final OperationCallable<SuspendRolloutRequest,Rollout,OperationMetadata> suspendRolloutOperationCallable()

Suspend a Rollout.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Rollout, OperationMetadata> future =
       configDeliveryClient.suspendRolloutOperationCallable().futureCall(request);
   // Do something.
   Rollout response = future.get();
 }
 
Returns
Type Description
OperationCallable<SuspendRolloutRequest,Rollout,OperationMetadata>

updateFleetPackageAsync(FleetPackage fleetPackage, FieldMask updateMask)

public final OperationFuture<FleetPackage,OperationMetadata> updateFleetPackageAsync(FleetPackage fleetPackage, FieldMask updateMask)

Updates the parameters of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
fleetPackage FleetPackage

Required. The resource being updated

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<FleetPackage,OperationMetadata>

updateFleetPackageAsync(UpdateFleetPackageRequest request)

public final OperationFuture<FleetPackage,OperationMetadata> updateFleetPackageAsync(UpdateFleetPackageRequest request)

Updates the parameters of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request UpdateFleetPackageRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<FleetPackage,OperationMetadata>

updateFleetPackageCallable()

public final UnaryCallable<UpdateFleetPackageRequest,Operation> updateFleetPackageCallable()

Updates the parameters of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.updateFleetPackageCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateFleetPackageRequest,Operation>

updateFleetPackageOperationCallable()

public final OperationCallable<UpdateFleetPackageRequest,FleetPackage,OperationMetadata> updateFleetPackageOperationCallable()

Updates the parameters of a single FleetPackage.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<FleetPackage, OperationMetadata> future =
       configDeliveryClient.updateFleetPackageOperationCallable().futureCall(request);
   // Do something.
   FleetPackage response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateFleetPackageRequest,FleetPackage,OperationMetadata>

updateReleaseAsync(Release release, FieldMask updateMask)

public final OperationFuture<Release,OperationMetadata> updateReleaseAsync(Release release, FieldMask updateMask)

Updates the parameters of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
release Release

Required. The resource being updated

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<Release,OperationMetadata>

updateReleaseAsync(UpdateReleaseRequest request)

public final OperationFuture<Release,OperationMetadata> updateReleaseAsync(UpdateReleaseRequest request)

Updates the parameters of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request UpdateReleaseRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Release,OperationMetadata>

updateReleaseCallable()

public final UnaryCallable<UpdateReleaseRequest,Operation> updateReleaseCallable()

Updates the parameters of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.updateReleaseCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateReleaseRequest,Operation>

updateReleaseOperationCallable()

public final OperationCallable<UpdateReleaseRequest,Release,OperationMetadata> updateReleaseOperationCallable()

Updates the parameters of a single Release.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Release, OperationMetadata> future =
       configDeliveryClient.updateReleaseOperationCallable().futureCall(request);
   // Do something.
   Release response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateReleaseRequest,Release,OperationMetadata>

updateResourceBundleAsync(ResourceBundle resourceBundle, FieldMask updateMask)

public final OperationFuture<ResourceBundle,OperationMetadata> updateResourceBundleAsync(ResourceBundle resourceBundle, FieldMask updateMask)

Updates the parameters of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
resourceBundle ResourceBundle

Required. The resource being updated

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<ResourceBundle,OperationMetadata>

updateResourceBundleAsync(UpdateResourceBundleRequest request)

public final OperationFuture<ResourceBundle,OperationMetadata> updateResourceBundleAsync(UpdateResourceBundleRequest request)

Updates the parameters of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request UpdateResourceBundleRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<ResourceBundle,OperationMetadata>

updateResourceBundleCallable()

public final UnaryCallable<UpdateResourceBundleRequest,Operation> updateResourceBundleCallable()

Updates the parameters of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.updateResourceBundleCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateResourceBundleRequest,Operation>

updateResourceBundleOperationCallable()

public final OperationCallable<UpdateResourceBundleRequest,ResourceBundle,OperationMetadata> updateResourceBundleOperationCallable()

Updates the parameters of a single ResourceBundle.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<ResourceBundle, OperationMetadata> future =
       configDeliveryClient.updateResourceBundleOperationCallable().futureCall(request);
   // Do something.
   ResourceBundle response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateResourceBundleRequest,ResourceBundle,OperationMetadata>

updateVariantAsync(UpdateVariantRequest request)

public final OperationFuture<Variant,OperationMetadata> updateVariantAsync(UpdateVariantRequest request)

Updates the parameters of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameter
Name Description
request UpdateVariantRequest

The request object containing all of the parameters for the API call.

Returns
Type Description
OperationFuture<Variant,OperationMetadata>

updateVariantAsync(Variant variant, FieldMask updateMask)

public final OperationFuture<Variant,OperationMetadata> updateVariantAsync(Variant variant, FieldMask updateMask)

Updates the parameters of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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();
 }
 
Parameters
Name Description
variant Variant

Required. The resource being updated

updateMask FieldMask

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.

Returns
Type Description
OperationFuture<Variant,OperationMetadata>

updateVariantCallable()

public final UnaryCallable<UpdateVariantRequest,Operation> updateVariantCallable()

Updates the parameters of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Operation> future =
       configDeliveryClient.updateVariantCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
Type Description
UnaryCallable<UpdateVariantRequest,Operation>

updateVariantOperationCallable()

public final OperationCallable<UpdateVariantRequest,Variant,OperationMetadata> updateVariantOperationCallable()

Updates the parameters of a single Variant.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying 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<Variant, OperationMetadata> future =
       configDeliveryClient.updateVariantOperationCallable().futureCall(request);
   // Do something.
   Variant response = future.get();
 }
 
Returns
Type Description
OperationCallable<UpdateVariantRequest,Variant,OperationMetadata>