Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AddressesClient addressesClient = AddressesClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * String address = "address-1147692044";
+ * RegionAddressesMoveRequest regionAddressesMoveRequestResource =
+ * RegionAddressesMoveRequest.newBuilder().build();
+ * Operation response =
+ * addressesClient
+ * .moveAsync(project, region, address, regionAddressesMoveRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Source project ID which the Address is moved from.
+ * @param region Name of the region for this request.
+ * @param address Name of the address resource to move.
+ * @param regionAddressesMoveRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AddressesClient addressesClient = AddressesClient.create()) {
+ * MoveAddressRequest request =
+ * MoveAddressRequest.newBuilder()
+ * .setAddress("address-1147692044")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRegionAddressesMoveRequestResource(
+ * RegionAddressesMoveRequest.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = addressesClient.moveAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AddressesClient addressesClient = AddressesClient.create()) {
+ * MoveAddressRequest request =
+ * MoveAddressRequest.newBuilder()
+ * .setAddress("address-1147692044")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRegionAddressesMoveRequestResource(
+ * RegionAddressesMoveRequest.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * addressesClient.moveOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AddressesClient addressesClient = AddressesClient.create()) {
+ * MoveAddressRequest request =
+ * MoveAddressRequest.newBuilder()
+ * .setAddress("address-1147692044")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRegionAddressesMoveRequestResource(
+ * RegionAddressesMoveRequest.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = addressesClient.moveCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * BulkInsertDiskResource bulkInsertDiskResourceResource =
+ * BulkInsertDiskResource.newBuilder().build();
+ * Operation response =
+ * disksClient.bulkInsertAsync(project, zone, bulkInsertDiskResourceResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param bulkInsertDiskResourceResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * BulkInsertDiskRequest request =
+ * BulkInsertDiskRequest.newBuilder()
+ * .setBulkInsertDiskResourceResource(BulkInsertDiskResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = disksClient.bulkInsertAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * BulkInsertDiskRequest request =
+ * BulkInsertDiskRequest.newBuilder()
+ * .setBulkInsertDiskResourceResource(BulkInsertDiskResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * disksClient.bulkInsertOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * BulkInsertDiskRequest request =
+ * BulkInsertDiskRequest.newBuilder()
+ * .setBulkInsertDiskResourceResource(BulkInsertDiskResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future = disksClient.bulkInsertCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String disk = "disk3083677";
+ * DisksStartAsyncReplicationRequest disksStartAsyncReplicationRequestResource =
+ * DisksStartAsyncReplicationRequest.newBuilder().build();
+ * Operation response =
+ * disksClient
+ * .startAsyncReplicationAsync(
+ * project, zone, disk, disksStartAsyncReplicationRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param disk The name of the persistent disk.
+ * @param disksStartAsyncReplicationRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StartAsyncReplicationDiskRequest request =
+ * StartAsyncReplicationDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setDisksStartAsyncReplicationRequestResource(
+ * DisksStartAsyncReplicationRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = disksClient.startAsyncReplicationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StartAsyncReplicationDiskRequest request =
+ * StartAsyncReplicationDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setDisksStartAsyncReplicationRequestResource(
+ * DisksStartAsyncReplicationRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * disksClient.startAsyncReplicationOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StartAsyncReplicationDiskRequest request =
+ * StartAsyncReplicationDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setDisksStartAsyncReplicationRequestResource(
+ * DisksStartAsyncReplicationRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future = disksClient.startAsyncReplicationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String disk = "disk3083677";
+ * Operation response = disksClient.stopAsyncReplicationAsync(project, zone, disk).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param disk The name of the persistent disk.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StopAsyncReplicationDiskRequest request =
+ * StopAsyncReplicationDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = disksClient.stopAsyncReplicationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StopAsyncReplicationDiskRequest request =
+ * StopAsyncReplicationDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * disksClient.stopAsyncReplicationOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StopAsyncReplicationDiskRequest request =
+ * StopAsyncReplicationDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future = disksClient.stopAsyncReplicationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * DisksStopGroupAsyncReplicationResource disksStopGroupAsyncReplicationResourceResource =
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build();
+ * Operation response =
+ * disksClient
+ * .stopGroupAsyncReplicationAsync(
+ * project, zone, disksStopGroupAsyncReplicationResourceResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request. This must be the zone of the primary or
+ * secondary disks in the consistency group.
+ * @param disksStopGroupAsyncReplicationResourceResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StopGroupAsyncReplicationDiskRequest request =
+ * StopGroupAsyncReplicationDiskRequest.newBuilder()
+ * .setDisksStopGroupAsyncReplicationResourceResource(
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = disksClient.stopGroupAsyncReplicationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StopGroupAsyncReplicationDiskRequest request =
+ * StopGroupAsyncReplicationDiskRequest.newBuilder()
+ * .setDisksStopGroupAsyncReplicationResourceResource(
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * disksClient.stopGroupAsyncReplicationOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DisksClient disksClient = DisksClient.create()) {
+ * StopGroupAsyncReplicationDiskRequest request =
+ * StopGroupAsyncReplicationDiskRequest.newBuilder()
+ * .setDisksStopGroupAsyncReplicationResourceResource(
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * disksClient.stopGroupAsyncReplicationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
+ * String project = "project-309310695";
+ * String address = "address-1147692044";
+ * GlobalAddressesMoveRequest globalAddressesMoveRequestResource =
+ * GlobalAddressesMoveRequest.newBuilder().build();
+ * Operation response =
+ * globalAddressesClient
+ * .moveAsync(project, address, globalAddressesMoveRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Source project ID which the Address is moved from.
+ * @param address Name of the address resource to move.
+ * @param globalAddressesMoveRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
+ * MoveGlobalAddressRequest request =
+ * MoveGlobalAddressRequest.newBuilder()
+ * .setAddress("address-1147692044")
+ * .setGlobalAddressesMoveRequestResource(
+ * GlobalAddressesMoveRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalAddressesClient.moveAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
+ * MoveGlobalAddressRequest request =
+ * MoveGlobalAddressRequest.newBuilder()
+ * .setAddress("address-1147692044")
+ * .setGlobalAddressesMoveRequestResource(
+ * GlobalAddressesMoveRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalAddressesClient.moveOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
+ * MoveGlobalAddressRequest request =
+ * MoveGlobalAddressRequest.newBuilder()
+ * .setAddress("address-1147692044")
+ * .setGlobalAddressesMoveRequestResource(
+ * GlobalAddressesMoveRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = globalAddressesClient.moveCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThis class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * String project = "project-309310695";
+ * String interconnectRemoteLocation = "interconnectRemoteLocation-993839543";
+ * InterconnectRemoteLocation response =
+ * interconnectRemoteLocationsClient.get(project, interconnectRemoteLocation);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the InterconnectRemoteLocationsClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
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 + * InterconnectRemoteLocationsSettings to create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * InterconnectRemoteLocationsSettings interconnectRemoteLocationsSettings =
+ * InterconnectRemoteLocationsSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create(interconnectRemoteLocationsSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * InterconnectRemoteLocationsSettings interconnectRemoteLocationsSettings =
+ * InterconnectRemoteLocationsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create(interconnectRemoteLocationsSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class InterconnectRemoteLocationsClient implements BackgroundResource { + private final InterconnectRemoteLocationsSettings settings; + private final InterconnectRemoteLocationsStub stub; + + /** Constructs an instance of InterconnectRemoteLocationsClient with default settings. */ + public static final InterconnectRemoteLocationsClient create() throws IOException { + return create(InterconnectRemoteLocationsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of InterconnectRemoteLocationsClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final InterconnectRemoteLocationsClient create( + InterconnectRemoteLocationsSettings settings) throws IOException { + return new InterconnectRemoteLocationsClient(settings); + } + + /** + * Constructs an instance of InterconnectRemoteLocationsClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(InterconnectRemoteLocationsSettings). + */ + public static final InterconnectRemoteLocationsClient create( + InterconnectRemoteLocationsStub stub) { + return new InterconnectRemoteLocationsClient(stub); + } + + /** + * Constructs an instance of InterconnectRemoteLocationsClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected InterconnectRemoteLocationsClient(InterconnectRemoteLocationsSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((InterconnectRemoteLocationsStubSettings) settings.getStubSettings()).createStub(); + } + + protected InterconnectRemoteLocationsClient(InterconnectRemoteLocationsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final InterconnectRemoteLocationsSettings getSettings() { + return settings; + } + + public InterconnectRemoteLocationsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making a list() request. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * String project = "project-309310695";
+ * String interconnectRemoteLocation = "interconnectRemoteLocation-993839543";
+ * InterconnectRemoteLocation response =
+ * interconnectRemoteLocationsClient.get(project, interconnectRemoteLocation);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param interconnectRemoteLocation Name of the interconnect remote location to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final InterconnectRemoteLocation get(String project, String interconnectRemoteLocation) {
+ GetInterconnectRemoteLocationRequest request =
+ GetInterconnectRemoteLocationRequest.newBuilder()
+ .setProject(project)
+ .setInterconnectRemoteLocation(interconnectRemoteLocation)
+ .build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details for the specified interconnect remote location. Gets a list of available
+ * interconnect remote locations by making a list() request.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * GetInterconnectRemoteLocationRequest request =
+ * GetInterconnectRemoteLocationRequest.newBuilder()
+ * .setInterconnectRemoteLocation("interconnectRemoteLocation-993839543")
+ * .setProject("project-309310695")
+ * .build();
+ * InterconnectRemoteLocation response = interconnectRemoteLocationsClient.get(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final InterconnectRemoteLocation get(GetInterconnectRemoteLocationRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details for the specified interconnect remote location. Gets a list of available
+ * interconnect remote locations by making a list() request.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * GetInterconnectRemoteLocationRequest request =
+ * GetInterconnectRemoteLocationRequest.newBuilder()
+ * .setInterconnectRemoteLocation("interconnectRemoteLocation-993839543")
+ * .setProject("project-309310695")
+ * .build();
+ * ApiFuture future =
+ * interconnectRemoteLocationsClient.getCallable().futureCall(request);
+ * // Do something.
+ * InterconnectRemoteLocation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * String project = "project-309310695";
+ * for (InterconnectRemoteLocation element :
+ * interconnectRemoteLocationsClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListInterconnectRemoteLocationsRequest request =
+ ListInterconnectRemoteLocationsRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of interconnect remote locations available to the specified project.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * ListInterconnectRemoteLocationsRequest request =
+ * ListInterconnectRemoteLocationsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (InterconnectRemoteLocation element :
+ * interconnectRemoteLocationsClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(ListInterconnectRemoteLocationsRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of interconnect remote locations available to the specified project.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * ListInterconnectRemoteLocationsRequest request =
+ * ListInterconnectRemoteLocationsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future =
+ * interconnectRemoteLocationsClient.listPagedCallable().futureCall(request);
+ * // Do something.
+ * for (InterconnectRemoteLocation element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * ListInterconnectRemoteLocationsRequest request =
+ * ListInterconnectRemoteLocationsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * InterconnectRemoteLocationList response =
+ * interconnectRemoteLocationsClient.listCallable().call(request);
+ * for (InterconnectRemoteLocation element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of get to 30 seconds: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * InterconnectRemoteLocationsSettings.Builder interconnectRemoteLocationsSettingsBuilder =
+ * InterconnectRemoteLocationsSettings.newBuilder();
+ * interconnectRemoteLocationsSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * interconnectRemoteLocationsSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * InterconnectRemoteLocationsSettings interconnectRemoteLocationsSettings =
+ * interconnectRemoteLocationsSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class InterconnectRemoteLocationsSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * ======================= InterconnectRemoteLocationsClient =======================
+ *
+ * Service Description: The InterconnectRemoteLocations API.
+ *
+ * Sample for InterconnectRemoteLocationsClient:
+ *
+ * ======================= InterconnectsClient =======================
*
* Service Description: The Interconnects API.
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStub.java
index 65d6a47c1e04..ee9df54e44fa 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStub.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStub.java
@@ -30,6 +30,7 @@
import com.google.cloud.compute.v1.GetAddressRequest;
import com.google.cloud.compute.v1.InsertAddressRequest;
import com.google.cloud.compute.v1.ListAddressesRequest;
+import com.google.cloud.compute.v1.MoveAddressRequest;
import com.google.cloud.compute.v1.Operation;
import com.google.cloud.compute.v1.SetLabelsAddressRequest;
import javax.annotation.Generated;
@@ -81,6 +82,14 @@ public UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * BulkInsertDiskResource bulkInsertDiskResourceResource =
+ * BulkInsertDiskResource.newBuilder().build();
+ * Operation response =
+ * regionDisksClient.bulkInsertAsync(project, region, bulkInsertDiskResourceResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request.
+ * @param bulkInsertDiskResourceResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * BulkInsertRegionDiskRequest request =
+ * BulkInsertRegionDiskRequest.newBuilder()
+ * .setBulkInsertDiskResourceResource(BulkInsertDiskResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = regionDisksClient.bulkInsertAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * BulkInsertRegionDiskRequest request =
+ * BulkInsertRegionDiskRequest.newBuilder()
+ * .setBulkInsertDiskResourceResource(BulkInsertDiskResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * BulkInsertRegionDiskRequest request =
+ * BulkInsertRegionDiskRequest.newBuilder()
+ * .setBulkInsertDiskResourceResource(BulkInsertDiskResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * String disk = "disk3083677";
+ * RegionDisksStartAsyncReplicationRequest regionDisksStartAsyncReplicationRequestResource =
+ * RegionDisksStartAsyncReplicationRequest.newBuilder().build();
+ * Operation response =
+ * regionDisksClient
+ * .startAsyncReplicationAsync(
+ * project, region, disk, regionDisksStartAsyncReplicationRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request.
+ * @param disk The name of the persistent disk.
+ * @param regionDisksStartAsyncReplicationRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StartAsyncReplicationRegionDiskRequest request =
+ * StartAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRegionDisksStartAsyncReplicationRequestResource(
+ * RegionDisksStartAsyncReplicationRequest.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = regionDisksClient.startAsyncReplicationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StartAsyncReplicationRegionDiskRequest request =
+ * StartAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRegionDisksStartAsyncReplicationRequestResource(
+ * RegionDisksStartAsyncReplicationRequest.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StartAsyncReplicationRegionDiskRequest request =
+ * StartAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRegionDisksStartAsyncReplicationRequestResource(
+ * RegionDisksStartAsyncReplicationRequest.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * String disk = "disk3083677";
+ * Operation response = regionDisksClient.stopAsyncReplicationAsync(project, region, disk).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request.
+ * @param disk The name of the persistent disk.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StopAsyncReplicationRegionDiskRequest request =
+ * StopAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = regionDisksClient.stopAsyncReplicationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StopAsyncReplicationRegionDiskRequest request =
+ * StopAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StopAsyncReplicationRegionDiskRequest request =
+ * StopAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisk("disk3083677")
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * String project = "project-309310695";
+ * String region = "region-934795532";
+ * DisksStopGroupAsyncReplicationResource disksStopGroupAsyncReplicationResourceResource =
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build();
+ * Operation response =
+ * regionDisksClient
+ * .stopGroupAsyncReplicationAsync(
+ * project, region, disksStopGroupAsyncReplicationResourceResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param region The name of the region for this request. This must be the region of the primary
+ * or secondary disks in the consistency group.
+ * @param disksStopGroupAsyncReplicationResourceResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StopGroupAsyncReplicationRegionDiskRequest request =
+ * StopGroupAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisksStopGroupAsyncReplicationResourceResource(
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = regionDisksClient.stopGroupAsyncReplicationAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StopGroupAsyncReplicationRegionDiskRequest request =
+ * StopGroupAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisksStopGroupAsyncReplicationResourceResource(
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
+ * StopGroupAsyncReplicationRegionDiskRequest request =
+ * StopGroupAsyncReplicationRegionDiskRequest.newBuilder()
+ * .setDisksStopGroupAsyncReplicationResourceResource(
+ * DisksStopGroupAsyncReplicationResource.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRegion("region-934795532")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (InterconnectRemoteLocationsClient interconnectRemoteLocationsClient =
+ * InterconnectRemoteLocationsClient.create()) {
+ * String project = "project-309310695";
+ * String interconnectRemoteLocation = "interconnectRemoteLocation-993839543";
+ * InterconnectRemoteLocation response =
+ * interconnectRemoteLocationsClient.get(project, interconnectRemoteLocation);
+ * }
+ * }
+ *
*