Class MirroringClient

java.lang.Object
com.google.cloud.networksecurity.v1.MirroringClient
All Implemented Interfaces:
BackgroundResource, AutoCloseable

@Generated("by gapic-generator-java") public class MirroringClient extends Object implements BackgroundResource
Service Description: PM2 is the "out-of-band" flavor of the Network Security Integrations product.

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 (MirroringClient mirroringClient = MirroringClient.create()) {
   MirroringEndpointGroupName name =
       MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
   MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
 }
 

Note: close() needs to be called on the MirroringClient 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

ListMirroringEndpointGroups

Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

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

  • listMirroringEndpointGroups(ListMirroringEndpointGroupsRequest request)

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

  • listMirroringEndpointGroups(LocationName parent)

  • listMirroringEndpointGroups(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.

  • listMirroringEndpointGroupsPagedCallable()

  • listMirroringEndpointGroupsCallable()

GetMirroringEndpointGroup

Gets a specific endpoint group. See https://google.aip.dev/131.

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

  • getMirroringEndpointGroup(GetMirroringEndpointGroupRequest request)

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

  • getMirroringEndpointGroup(MirroringEndpointGroupName name)

  • getMirroringEndpointGroup(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.

  • getMirroringEndpointGroupCallable()

CreateMirroringEndpointGroup

Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

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

  • createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request)

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

  • createMirroringEndpointGroupAsync(LocationName parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)

  • createMirroringEndpointGroupAsync(String parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)

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

  • createMirroringEndpointGroupOperationCallable()

  • createMirroringEndpointGroupCallable()

UpdateMirroringEndpointGroup

Updates an endpoint group. See https://google.aip.dev/134.

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

  • updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request)

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

  • updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, 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.

  • updateMirroringEndpointGroupOperationCallable()

  • updateMirroringEndpointGroupCallable()

DeleteMirroringEndpointGroup

Deletes an endpoint group. See https://google.aip.dev/135.

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

  • deleteMirroringEndpointGroupAsync(DeleteMirroringEndpointGroupRequest request)

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

  • deleteMirroringEndpointGroupAsync(MirroringEndpointGroupName name)

  • deleteMirroringEndpointGroupAsync(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.

  • deleteMirroringEndpointGroupOperationCallable()

  • deleteMirroringEndpointGroupCallable()

ListMirroringEndpointGroupAssociations

Lists associations in a given project and location. See https://google.aip.dev/132.

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

  • listMirroringEndpointGroupAssociations(ListMirroringEndpointGroupAssociationsRequest request)

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

  • listMirroringEndpointGroupAssociations(LocationName parent)

  • listMirroringEndpointGroupAssociations(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.

  • listMirroringEndpointGroupAssociationsPagedCallable()

  • listMirroringEndpointGroupAssociationsCallable()

GetMirroringEndpointGroupAssociation

Gets a specific association. See https://google.aip.dev/131.

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

  • getMirroringEndpointGroupAssociation(GetMirroringEndpointGroupAssociationRequest request)

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

  • getMirroringEndpointGroupAssociation(MirroringEndpointGroupAssociationName name)

  • getMirroringEndpointGroupAssociation(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.

  • getMirroringEndpointGroupAssociationCallable()

CreateMirroringEndpointGroupAssociation

Creates an association in a given project and location. See https://google.aip.dev/133.

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

  • createMirroringEndpointGroupAssociationAsync(CreateMirroringEndpointGroupAssociationRequest request)

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

  • createMirroringEndpointGroupAssociationAsync(LocationName parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)

  • createMirroringEndpointGroupAssociationAsync(String parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)

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

  • createMirroringEndpointGroupAssociationOperationCallable()

  • createMirroringEndpointGroupAssociationCallable()

UpdateMirroringEndpointGroupAssociation

Updates an association. See https://google.aip.dev/134.

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

  • updateMirroringEndpointGroupAssociationAsync(UpdateMirroringEndpointGroupAssociationRequest request)

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

  • updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, 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.

  • updateMirroringEndpointGroupAssociationOperationCallable()

  • updateMirroringEndpointGroupAssociationCallable()

DeleteMirroringEndpointGroupAssociation

Deletes an association. See https://google.aip.dev/135.

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

  • deleteMirroringEndpointGroupAssociationAsync(DeleteMirroringEndpointGroupAssociationRequest request)

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

  • deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name)

  • deleteMirroringEndpointGroupAssociationAsync(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.

  • deleteMirroringEndpointGroupAssociationOperationCallable()

  • deleteMirroringEndpointGroupAssociationCallable()

ListMirroringDeploymentGroups

Lists deployment groups in a given project and location. See https://google.aip.dev/132.

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

  • listMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest request)

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

  • listMirroringDeploymentGroups(LocationName parent)

  • listMirroringDeploymentGroups(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.

  • listMirroringDeploymentGroupsPagedCallable()

  • listMirroringDeploymentGroupsCallable()

GetMirroringDeploymentGroup

Gets a specific deployment group. See https://google.aip.dev/131.

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

  • getMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest request)

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

  • getMirroringDeploymentGroup(MirroringDeploymentGroupName name)

  • getMirroringDeploymentGroup(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.

  • getMirroringDeploymentGroupCallable()

CreateMirroringDeploymentGroup

Creates a deployment group in a given project and location. See https://google.aip.dev/133.

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

  • createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request)

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

  • createMirroringDeploymentGroupAsync(LocationName parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)

  • createMirroringDeploymentGroupAsync(String parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)

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

  • createMirroringDeploymentGroupOperationCallable()

  • createMirroringDeploymentGroupCallable()

UpdateMirroringDeploymentGroup

Updates a deployment group. See https://google.aip.dev/134.

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

  • updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request)

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

  • updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, 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.

  • updateMirroringDeploymentGroupOperationCallable()

  • updateMirroringDeploymentGroupCallable()

DeleteMirroringDeploymentGroup

Deletes a deployment group. See https://google.aip.dev/135.

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

  • deleteMirroringDeploymentGroupAsync(DeleteMirroringDeploymentGroupRequest request)

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

  • deleteMirroringDeploymentGroupAsync(MirroringDeploymentGroupName name)

  • deleteMirroringDeploymentGroupAsync(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.

  • deleteMirroringDeploymentGroupOperationCallable()

  • deleteMirroringDeploymentGroupCallable()

ListMirroringDeployments

Lists deployments in a given project and location. See https://google.aip.dev/132.

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

  • listMirroringDeployments(ListMirroringDeploymentsRequest request)

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

  • listMirroringDeployments(LocationName parent)

  • listMirroringDeployments(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.

  • listMirroringDeploymentsPagedCallable()

  • listMirroringDeploymentsCallable()

GetMirroringDeployment

Gets a specific deployment. See https://google.aip.dev/131.

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

  • getMirroringDeployment(GetMirroringDeploymentRequest request)

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

  • getMirroringDeployment(MirroringDeploymentName name)

  • getMirroringDeployment(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.

  • getMirroringDeploymentCallable()

CreateMirroringDeployment

Creates a deployment in a given project and location. See https://google.aip.dev/133.

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

  • createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request)

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

  • createMirroringDeploymentAsync(LocationName parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)

  • createMirroringDeploymentAsync(String parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)

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

  • createMirroringDeploymentOperationCallable()

  • createMirroringDeploymentCallable()

UpdateMirroringDeployment

Updates a deployment. See https://google.aip.dev/134.

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

  • updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request)

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

  • updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, 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.

  • updateMirroringDeploymentOperationCallable()

  • updateMirroringDeploymentCallable()

DeleteMirroringDeployment

Deletes a deployment. See https://google.aip.dev/135.

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

  • deleteMirroringDeploymentAsync(DeleteMirroringDeploymentRequest request)

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

  • deleteMirroringDeploymentAsync(MirroringDeploymentName name)

  • deleteMirroringDeploymentAsync(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.

  • deleteMirroringDeploymentOperationCallable()

  • deleteMirroringDeploymentCallable()

ListLocations

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

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()

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy.

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

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

  • setIamPolicy(SetIamPolicyRequest request)

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

  • setIamPolicyCallable()

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

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

  • getIamPolicy(GetIamPolicyRequest request)

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

  • getIamPolicyCallable()

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

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

  • testIamPermissions(TestIamPermissionsRequest request)

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

  • testIamPermissionsCallable()

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 MirroringSettings 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
 MirroringSettings mirroringSettings =
     MirroringSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 MirroringClient mirroringClient = MirroringClient.create(mirroringSettings);
 

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
 MirroringSettings mirroringSettings =
     MirroringSettings.newBuilder().setEndpoint(myEndpoint).build();
 MirroringClient mirroringClient = MirroringClient.create(mirroringSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

  • Constructor Details

    • MirroringClient

      protected MirroringClient(MirroringSettings settings) throws IOException
      Constructs an instance of MirroringClient, 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.
      Throws:
      IOException
    • MirroringClient

      protected MirroringClient(MirroringStub stub)
  • Method Details

    • create

      public static final MirroringClient create() throws IOException
      Constructs an instance of MirroringClient with default settings.
      Throws:
      IOException
    • create

      public static final MirroringClient create(MirroringSettings settings) throws IOException
      Constructs an instance of MirroringClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
      Throws:
      IOException
    • create

      public static final MirroringClient create(MirroringStub stub)
      Constructs an instance of MirroringClient, using the given stub for making calls. This is for advanced usage - prefer using create(MirroringSettings).
    • getSettings

      public final MirroringSettings getSettings()
    • getStub

      public MirroringStub getStub()
    • 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.
    • listMirroringEndpointGroups

      public final MirroringClient.ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(LocationName parent)
      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         for (MirroringEndpointGroup element :
             mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringEndpointGroups

      public final MirroringClient.ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(String parent)
      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         for (MirroringEndpointGroup element :
             mirroringClient.listMirroringEndpointGroups(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringEndpointGroups

      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringEndpointGroupsRequest request =
             ListMirroringEndpointGroupsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (MirroringEndpointGroup element :
             mirroringClient.listMirroringEndpointGroups(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listMirroringEndpointGroupsPagedCallable

      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringEndpointGroupsRequest request =
             ListMirroringEndpointGroupsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<MirroringEndpointGroup> future =
             mirroringClient.listMirroringEndpointGroupsPagedCallable().futureCall(request);
         // Do something.
         for (MirroringEndpointGroup element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listMirroringEndpointGroupsCallable

      public final UnaryCallable<ListMirroringEndpointGroupsRequest,ListMirroringEndpointGroupsResponse> listMirroringEndpointGroupsCallable()
      Lists endpoint groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringEndpointGroupsRequest request =
             ListMirroringEndpointGroupsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListMirroringEndpointGroupsResponse response =
               mirroringClient.listMirroringEndpointGroupsCallable().call(request);
           for (MirroringEndpointGroup element : response.getMirroringEndpointGroupsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getMirroringEndpointGroup

      public final MirroringEndpointGroup getMirroringEndpointGroup(MirroringEndpointGroupName name)
      Gets a specific endpoint group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringEndpointGroupName name =
             MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
         MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
       }
       
      Parameters:
      name - Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
      Throws:
      ApiException - if the remote call fails
    • getMirroringEndpointGroup

      public final MirroringEndpointGroup getMirroringEndpointGroup(String name)
      Gets a specific endpoint group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                 .toString();
         MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(name);
       }
       
      Parameters:
      name - Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}
      Throws:
      ApiException - if the remote call fails
    • getMirroringEndpointGroup

      public final MirroringEndpointGroup getMirroringEndpointGroup(GetMirroringEndpointGroupRequest request)
      Gets a specific endpoint group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringEndpointGroupRequest request =
             GetMirroringEndpointGroupRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                         .toString())
                 .build();
         MirroringEndpointGroup response = mirroringClient.getMirroringEndpointGroup(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getMirroringEndpointGroupCallable

      public final UnaryCallable<GetMirroringEndpointGroupRequest,MirroringEndpointGroup> getMirroringEndpointGroupCallable()
      Gets a specific endpoint group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringEndpointGroupRequest request =
             GetMirroringEndpointGroupRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                         .toString())
                 .build();
         ApiFuture<MirroringEndpointGroup> future =
             mirroringClient.getMirroringEndpointGroupCallable().futureCall(request);
         // Do something.
         MirroringEndpointGroup response = future.get();
       }
       
    • createMirroringEndpointGroupAsync

      public final OperationFuture<MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupAsync(LocationName parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)
      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
         String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834";
         MirroringEndpointGroup response =
             mirroringClient
                 .createMirroringEndpointGroupAsync(
                     parent, mirroringEndpointGroup, mirroringEndpointGroupId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location}
      mirroringEndpointGroup - Required. The endpoint group to create.
      mirroringEndpointGroupId - Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createMirroringEndpointGroupAsync

      public final OperationFuture<MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupAsync(String parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId)
      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
         String mirroringEndpointGroupId = "mirroringEndpointGroupId436276834";
         MirroringEndpointGroup response =
             mirroringClient
                 .createMirroringEndpointGroupAsync(
                     parent, mirroringEndpointGroup, mirroringEndpointGroupId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location}
      mirroringEndpointGroup - Required. The endpoint group to create.
      mirroringEndpointGroupId - Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createMirroringEndpointGroupAsync

      public final OperationFuture<MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request)
      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringEndpointGroupRequest request =
             CreateMirroringEndpointGroupRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
                 .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringEndpointGroup response =
             mirroringClient.createMirroringEndpointGroupAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createMirroringEndpointGroupOperationCallable

      public final OperationCallable<CreateMirroringEndpointGroupRequest,MirroringEndpointGroup,OperationMetadata> createMirroringEndpointGroupOperationCallable()
      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringEndpointGroupRequest request =
             CreateMirroringEndpointGroupRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
                 .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringEndpointGroup, OperationMetadata> future =
             mirroringClient.createMirroringEndpointGroupOperationCallable().futureCall(request);
         // Do something.
         MirroringEndpointGroup response = future.get();
       }
       
    • createMirroringEndpointGroupCallable

      public final UnaryCallable<CreateMirroringEndpointGroupRequest,Operation> createMirroringEndpointGroupCallable()
      Creates an endpoint group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringEndpointGroupRequest request =
             CreateMirroringEndpointGroupRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringEndpointGroupId("mirroringEndpointGroupId436276834")
                 .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.createMirroringEndpointGroupCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • updateMirroringEndpointGroupAsync

      public final OperationFuture<MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, com.google.protobuf.FieldMask updateMask)
      Updates an endpoint group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringEndpointGroup mirroringEndpointGroup = MirroringEndpointGroup.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         MirroringEndpointGroup response =
             mirroringClient
                 .updateMirroringEndpointGroupAsync(mirroringEndpointGroup, updateMask)
                 .get();
       }
       
      Parameters:
      mirroringEndpointGroup - Required. The endpoint group to update.
      updateMask - Optional. The list of fields to update. Fields are specified relative to the endpoint group (e.g. `description`; *not* `mirroring_endpoint_group.description`). See https://google.aip.dev/161 for more details.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringEndpointGroupAsync

      public final OperationFuture<MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request)
      Updates an endpoint group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringEndpointGroupRequest request =
             UpdateMirroringEndpointGroupRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringEndpointGroup response =
             mirroringClient.updateMirroringEndpointGroupAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringEndpointGroupOperationCallable

      public final OperationCallable<UpdateMirroringEndpointGroupRequest,MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupOperationCallable()
      Updates an endpoint group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringEndpointGroupRequest request =
             UpdateMirroringEndpointGroupRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringEndpointGroup, OperationMetadata> future =
             mirroringClient.updateMirroringEndpointGroupOperationCallable().futureCall(request);
         // Do something.
         MirroringEndpointGroup response = future.get();
       }
       
    • updateMirroringEndpointGroupCallable

      public final UnaryCallable<UpdateMirroringEndpointGroupRequest,Operation> updateMirroringEndpointGroupCallable()
      Updates an endpoint group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringEndpointGroupRequest request =
             UpdateMirroringEndpointGroupRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringEndpointGroup(MirroringEndpointGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.updateMirroringEndpointGroupCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteMirroringEndpointGroupAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAsync(MirroringEndpointGroupName name)
      Deletes an endpoint group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringEndpointGroupName name =
             MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]");
         mirroringClient.deleteMirroringEndpointGroupAsync(name).get();
       }
       
      Parameters:
      name - Required. The endpoint group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringEndpointGroupAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAsync(String name)
      Deletes an endpoint group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                 .toString();
         mirroringClient.deleteMirroringEndpointGroupAsync(name).get();
       }
       
      Parameters:
      name - Required. The endpoint group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringEndpointGroupAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAsync(DeleteMirroringEndpointGroupRequest request)
      Deletes an endpoint group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringEndpointGroupRequest request =
             DeleteMirroringEndpointGroupRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         mirroringClient.deleteMirroringEndpointGroupAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringEndpointGroupOperationCallable

      public final OperationCallable<DeleteMirroringEndpointGroupRequest,com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupOperationCallable()
      Deletes an endpoint group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringEndpointGroupRequest request =
             DeleteMirroringEndpointGroupRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             mirroringClient.deleteMirroringEndpointGroupOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteMirroringEndpointGroupCallable

      public final UnaryCallable<DeleteMirroringEndpointGroupRequest,Operation> deleteMirroringEndpointGroupCallable()
      Deletes an endpoint group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringEndpointGroupRequest request =
             DeleteMirroringEndpointGroupRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.deleteMirroringEndpointGroupCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listMirroringEndpointGroupAssociations

      public final MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse listMirroringEndpointGroupAssociations(LocationName parent)
      Lists associations in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         for (MirroringEndpointGroupAssociation element :
             mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringEndpointGroupAssociations

      public final MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse listMirroringEndpointGroupAssociations(String parent)
      Lists associations in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         for (MirroringEndpointGroupAssociation element :
             mirroringClient.listMirroringEndpointGroupAssociations(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringEndpointGroupAssociations

      Lists associations in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringEndpointGroupAssociationsRequest request =
             ListMirroringEndpointGroupAssociationsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (MirroringEndpointGroupAssociation element :
             mirroringClient.listMirroringEndpointGroupAssociations(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listMirroringEndpointGroupAssociationsPagedCallable

      Lists associations in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringEndpointGroupAssociationsRequest request =
             ListMirroringEndpointGroupAssociationsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<MirroringEndpointGroupAssociation> future =
             mirroringClient.listMirroringEndpointGroupAssociationsPagedCallable().futureCall(request);
         // Do something.
         for (MirroringEndpointGroupAssociation element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listMirroringEndpointGroupAssociationsCallable

      Lists associations in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringEndpointGroupAssociationsRequest request =
             ListMirroringEndpointGroupAssociationsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListMirroringEndpointGroupAssociationsResponse response =
               mirroringClient.listMirroringEndpointGroupAssociationsCallable().call(request);
           for (MirroringEndpointGroupAssociation element :
               response.getMirroringEndpointGroupAssociationsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getMirroringEndpointGroupAssociation

      public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(MirroringEndpointGroupAssociationName name)
      Gets a specific association. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringEndpointGroupAssociationName name =
             MirroringEndpointGroupAssociationName.of(
                 "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]");
         MirroringEndpointGroupAssociation response =
             mirroringClient.getMirroringEndpointGroupAssociation(name);
       }
       
      Parameters:
      name - Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
      Throws:
      ApiException - if the remote call fails
    • getMirroringEndpointGroupAssociation

      public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(String name)
      Gets a specific association. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringEndpointGroupAssociationName.of(
                     "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                 .toString();
         MirroringEndpointGroupAssociation response =
             mirroringClient.getMirroringEndpointGroupAssociation(name);
       }
       
      Parameters:
      name - Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
      Throws:
      ApiException - if the remote call fails
    • getMirroringEndpointGroupAssociation

      public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation(GetMirroringEndpointGroupAssociationRequest request)
      Gets a specific association. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringEndpointGroupAssociationRequest request =
             GetMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupAssociationName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                         .toString())
                 .build();
         MirroringEndpointGroupAssociation response =
             mirroringClient.getMirroringEndpointGroupAssociation(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getMirroringEndpointGroupAssociationCallable

      public final UnaryCallable<GetMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation> getMirroringEndpointGroupAssociationCallable()
      Gets a specific association. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringEndpointGroupAssociationRequest request =
             GetMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupAssociationName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                         .toString())
                 .build();
         ApiFuture<MirroringEndpointGroupAssociation> future =
             mirroringClient.getMirroringEndpointGroupAssociationCallable().futureCall(request);
         // Do something.
         MirroringEndpointGroupAssociation response = future.get();
       }
       
    • createMirroringEndpointGroupAssociationAsync

      public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationAsync(LocationName parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)
      Creates an association in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
             MirroringEndpointGroupAssociation.newBuilder().build();
         String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507";
         MirroringEndpointGroupAssociation response =
             mirroringClient
                 .createMirroringEndpointGroupAssociationAsync(
                     parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location}
      mirroringEndpointGroupAssociation - Required. The association to create.
      mirroringEndpointGroupAssociationId - Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.
      Throws:
      ApiException - if the remote call fails
    • createMirroringEndpointGroupAssociationAsync

      public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationAsync(String parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId)
      Creates an association in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
             MirroringEndpointGroupAssociation.newBuilder().build();
         String mirroringEndpointGroupAssociationId = "mirroringEndpointGroupAssociationId-1957886507";
         MirroringEndpointGroupAssociation response =
             mirroringClient
                 .createMirroringEndpointGroupAssociationAsync(
                     parent, mirroringEndpointGroupAssociation, mirroringEndpointGroupAssociationId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location}
      mirroringEndpointGroupAssociation - Required. The association to create.
      mirroringEndpointGroupAssociationId - Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.
      Throws:
      ApiException - if the remote call fails
    • createMirroringEndpointGroupAssociationAsync

      public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationAsync(CreateMirroringEndpointGroupAssociationRequest request)
      Creates an association in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringEndpointGroupAssociationRequest request =
             CreateMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringEndpointGroupAssociationId(
                     "mirroringEndpointGroupAssociationId-1957886507")
                 .setMirroringEndpointGroupAssociation(
                     MirroringEndpointGroupAssociation.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringEndpointGroupAssociation response =
             mirroringClient.createMirroringEndpointGroupAssociationAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createMirroringEndpointGroupAssociationOperationCallable

      public final OperationCallable<CreateMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation,OperationMetadata> createMirroringEndpointGroupAssociationOperationCallable()
      Creates an association in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringEndpointGroupAssociationRequest request =
             CreateMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringEndpointGroupAssociationId(
                     "mirroringEndpointGroupAssociationId-1957886507")
                 .setMirroringEndpointGroupAssociation(
                     MirroringEndpointGroupAssociation.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringEndpointGroupAssociation, OperationMetadata> future =
             mirroringClient
                 .createMirroringEndpointGroupAssociationOperationCallable()
                 .futureCall(request);
         // Do something.
         MirroringEndpointGroupAssociation response = future.get();
       }
       
    • createMirroringEndpointGroupAssociationCallable

      public final UnaryCallable<CreateMirroringEndpointGroupAssociationRequest,Operation> createMirroringEndpointGroupAssociationCallable()
      Creates an association in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringEndpointGroupAssociationRequest request =
             CreateMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringEndpointGroupAssociationId(
                     "mirroringEndpointGroupAssociationId-1957886507")
                 .setMirroringEndpointGroupAssociation(
                     MirroringEndpointGroupAssociation.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.createMirroringEndpointGroupAssociationCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • updateMirroringEndpointGroupAssociationAsync

      public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, com.google.protobuf.FieldMask updateMask)
      Updates an association. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation =
             MirroringEndpointGroupAssociation.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         MirroringEndpointGroupAssociation response =
             mirroringClient
                 .updateMirroringEndpointGroupAssociationAsync(
                     mirroringEndpointGroupAssociation, updateMask)
                 .get();
       }
       
      Parameters:
      mirroringEndpointGroupAssociation - Required. The association to update.
      updateMask - Optional. The list of fields to update. Fields are specified relative to the association (e.g. `description`; *not* `mirroring_endpoint_group_association.description`). See https://google.aip.dev/161 for more details.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringEndpointGroupAssociationAsync

      public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationAsync(UpdateMirroringEndpointGroupAssociationRequest request)
      Updates an association. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringEndpointGroupAssociationRequest request =
             UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringEndpointGroupAssociation(
                     MirroringEndpointGroupAssociation.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringEndpointGroupAssociation response =
             mirroringClient.updateMirroringEndpointGroupAssociationAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringEndpointGroupAssociationOperationCallable

      public final OperationCallable<UpdateMirroringEndpointGroupAssociationRequest,MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationOperationCallable()
      Updates an association. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringEndpointGroupAssociationRequest request =
             UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringEndpointGroupAssociation(
                     MirroringEndpointGroupAssociation.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringEndpointGroupAssociation, OperationMetadata> future =
             mirroringClient
                 .updateMirroringEndpointGroupAssociationOperationCallable()
                 .futureCall(request);
         // Do something.
         MirroringEndpointGroupAssociation response = future.get();
       }
       
    • updateMirroringEndpointGroupAssociationCallable

      public final UnaryCallable<UpdateMirroringEndpointGroupAssociationRequest,Operation> updateMirroringEndpointGroupAssociationCallable()
      Updates an association. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringEndpointGroupAssociationRequest request =
             UpdateMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringEndpointGroupAssociation(
                     MirroringEndpointGroupAssociation.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.updateMirroringEndpointGroupAssociationCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteMirroringEndpointGroupAssociationAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name)
      Deletes an association. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringEndpointGroupAssociationName name =
             MirroringEndpointGroupAssociationName.of(
                 "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]");
         mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get();
       }
       
      Parameters:
      name - Required. The association to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringEndpointGroupAssociationAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationAsync(String name)
      Deletes an association. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringEndpointGroupAssociationName.of(
                     "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                 .toString();
         mirroringClient.deleteMirroringEndpointGroupAssociationAsync(name).get();
       }
       
      Parameters:
      name - Required. The association to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringEndpointGroupAssociationAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationAsync(DeleteMirroringEndpointGroupAssociationRequest request)
      Deletes an association. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringEndpointGroupAssociationRequest request =
             DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupAssociationName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         mirroringClient.deleteMirroringEndpointGroupAssociationAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringEndpointGroupAssociationOperationCallable

      public final OperationCallable<DeleteMirroringEndpointGroupAssociationRequest,com.google.protobuf.Empty,OperationMetadata> deleteMirroringEndpointGroupAssociationOperationCallable()
      Deletes an association. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringEndpointGroupAssociationRequest request =
             DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupAssociationName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             mirroringClient
                 .deleteMirroringEndpointGroupAssociationOperationCallable()
                 .futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteMirroringEndpointGroupAssociationCallable

      public final UnaryCallable<DeleteMirroringEndpointGroupAssociationRequest,Operation> deleteMirroringEndpointGroupAssociationCallable()
      Deletes an association. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringEndpointGroupAssociationRequest request =
             DeleteMirroringEndpointGroupAssociationRequest.newBuilder()
                 .setName(
                     MirroringEndpointGroupAssociationName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_ENDPOINT_GROUP_ASSOCIATION]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.deleteMirroringEndpointGroupAssociationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listMirroringDeploymentGroups

      public final MirroringClient.ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups(LocationName parent)
      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         for (MirroringDeploymentGroup element :
             mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringDeploymentGroups

      public final MirroringClient.ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups(String parent)
      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         for (MirroringDeploymentGroup element :
             mirroringClient.listMirroringDeploymentGroups(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringDeploymentGroups

      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringDeploymentGroupsRequest request =
             ListMirroringDeploymentGroupsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (MirroringDeploymentGroup element :
             mirroringClient.listMirroringDeploymentGroups(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listMirroringDeploymentGroupsPagedCallable

      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringDeploymentGroupsRequest request =
             ListMirroringDeploymentGroupsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<MirroringDeploymentGroup> future =
             mirroringClient.listMirroringDeploymentGroupsPagedCallable().futureCall(request);
         // Do something.
         for (MirroringDeploymentGroup element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listMirroringDeploymentGroupsCallable

      public final UnaryCallable<ListMirroringDeploymentGroupsRequest,ListMirroringDeploymentGroupsResponse> listMirroringDeploymentGroupsCallable()
      Lists deployment groups in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringDeploymentGroupsRequest request =
             ListMirroringDeploymentGroupsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListMirroringDeploymentGroupsResponse response =
               mirroringClient.listMirroringDeploymentGroupsCallable().call(request);
           for (MirroringDeploymentGroup element : response.getMirroringDeploymentGroupsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getMirroringDeploymentGroup

      public final MirroringDeploymentGroup getMirroringDeploymentGroup(MirroringDeploymentGroupName name)
      Gets a specific deployment group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringDeploymentGroupName name =
             MirroringDeploymentGroupName.of(
                 "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]");
         MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name);
       }
       
      Parameters:
      name - Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
      Throws:
      ApiException - if the remote call fails
    • getMirroringDeploymentGroup

      public final MirroringDeploymentGroup getMirroringDeploymentGroup(String name)
      Gets a specific deployment group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                 .toString();
         MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(name);
       }
       
      Parameters:
      name - Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}
      Throws:
      ApiException - if the remote call fails
    • getMirroringDeploymentGroup

      public final MirroringDeploymentGroup getMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest request)
      Gets a specific deployment group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringDeploymentGroupRequest request =
             GetMirroringDeploymentGroupRequest.newBuilder()
                 .setName(
                     MirroringDeploymentGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                         .toString())
                 .build();
         MirroringDeploymentGroup response = mirroringClient.getMirroringDeploymentGroup(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getMirroringDeploymentGroupCallable

      public final UnaryCallable<GetMirroringDeploymentGroupRequest,MirroringDeploymentGroup> getMirroringDeploymentGroupCallable()
      Gets a specific deployment group. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringDeploymentGroupRequest request =
             GetMirroringDeploymentGroupRequest.newBuilder()
                 .setName(
                     MirroringDeploymentGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                         .toString())
                 .build();
         ApiFuture<MirroringDeploymentGroup> future =
             mirroringClient.getMirroringDeploymentGroupCallable().futureCall(request);
         // Do something.
         MirroringDeploymentGroup response = future.get();
       }
       
    • createMirroringDeploymentGroupAsync

      public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupAsync(LocationName parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)
      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         MirroringDeploymentGroup mirroringDeploymentGroup =
             MirroringDeploymentGroup.newBuilder().build();
         String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862";
         MirroringDeploymentGroup response =
             mirroringClient
                 .createMirroringDeploymentGroupAsync(
                     parent, mirroringDeploymentGroup, mirroringDeploymentGroupId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location}
      mirroringDeploymentGroup - Required. The deployment group to create.
      mirroringDeploymentGroupId - Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createMirroringDeploymentGroupAsync

      public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupAsync(String parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId)
      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         MirroringDeploymentGroup mirroringDeploymentGroup =
             MirroringDeploymentGroup.newBuilder().build();
         String mirroringDeploymentGroupId = "mirroringDeploymentGroupId-1056718862";
         MirroringDeploymentGroup response =
             mirroringClient
                 .createMirroringDeploymentGroupAsync(
                     parent, mirroringDeploymentGroup, mirroringDeploymentGroupId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location}
      mirroringDeploymentGroup - Required. The deployment group to create.
      mirroringDeploymentGroupId - Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createMirroringDeploymentGroupAsync

      public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request)
      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringDeploymentGroupRequest request =
             CreateMirroringDeploymentGroupRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
                 .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringDeploymentGroup response =
             mirroringClient.createMirroringDeploymentGroupAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createMirroringDeploymentGroupOperationCallable

      public final OperationCallable<CreateMirroringDeploymentGroupRequest,MirroringDeploymentGroup,OperationMetadata> createMirroringDeploymentGroupOperationCallable()
      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringDeploymentGroupRequest request =
             CreateMirroringDeploymentGroupRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
                 .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringDeploymentGroup, OperationMetadata> future =
             mirroringClient.createMirroringDeploymentGroupOperationCallable().futureCall(request);
         // Do something.
         MirroringDeploymentGroup response = future.get();
       }
       
    • createMirroringDeploymentGroupCallable

      public final UnaryCallable<CreateMirroringDeploymentGroupRequest,Operation> createMirroringDeploymentGroupCallable()
      Creates a deployment group in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringDeploymentGroupRequest request =
             CreateMirroringDeploymentGroupRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringDeploymentGroupId("mirroringDeploymentGroupId-1056718862")
                 .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.createMirroringDeploymentGroupCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • updateMirroringDeploymentGroupAsync

      public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, com.google.protobuf.FieldMask updateMask)
      Updates a deployment group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringDeploymentGroup mirroringDeploymentGroup =
             MirroringDeploymentGroup.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         MirroringDeploymentGroup response =
             mirroringClient
                 .updateMirroringDeploymentGroupAsync(mirroringDeploymentGroup, updateMask)
                 .get();
       }
       
      Parameters:
      mirroringDeploymentGroup - Required. The deployment group to update.
      updateMask - Optional. The list of fields to update. Fields are specified relative to the deployment group (e.g. `description`; *not* `mirroring_deployment_group.description`). See https://google.aip.dev/161 for more details.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringDeploymentGroupAsync

      public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request)
      Updates a deployment group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringDeploymentGroupRequest request =
             UpdateMirroringDeploymentGroupRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringDeploymentGroup response =
             mirroringClient.updateMirroringDeploymentGroupAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringDeploymentGroupOperationCallable

      public final OperationCallable<UpdateMirroringDeploymentGroupRequest,MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupOperationCallable()
      Updates a deployment group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringDeploymentGroupRequest request =
             UpdateMirroringDeploymentGroupRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringDeploymentGroup, OperationMetadata> future =
             mirroringClient.updateMirroringDeploymentGroupOperationCallable().futureCall(request);
         // Do something.
         MirroringDeploymentGroup response = future.get();
       }
       
    • updateMirroringDeploymentGroupCallable

      public final UnaryCallable<UpdateMirroringDeploymentGroupRequest,Operation> updateMirroringDeploymentGroupCallable()
      Updates a deployment group. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringDeploymentGroupRequest request =
             UpdateMirroringDeploymentGroupRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringDeploymentGroup(MirroringDeploymentGroup.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.updateMirroringDeploymentGroupCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteMirroringDeploymentGroupAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentGroupAsync(MirroringDeploymentGroupName name)
      Deletes a deployment group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringDeploymentGroupName name =
             MirroringDeploymentGroupName.of(
                 "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]");
         mirroringClient.deleteMirroringDeploymentGroupAsync(name).get();
       }
       
      Parameters:
      name - Required. The deployment group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringDeploymentGroupAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentGroupAsync(String name)
      Deletes a deployment group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                 .toString();
         mirroringClient.deleteMirroringDeploymentGroupAsync(name).get();
       }
       
      Parameters:
      name - Required. The deployment group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringDeploymentGroupAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentGroupAsync(DeleteMirroringDeploymentGroupRequest request)
      Deletes a deployment group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringDeploymentGroupRequest request =
             DeleteMirroringDeploymentGroupRequest.newBuilder()
                 .setName(
                     MirroringDeploymentGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         mirroringClient.deleteMirroringDeploymentGroupAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringDeploymentGroupOperationCallable

      public final OperationCallable<DeleteMirroringDeploymentGroupRequest,com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentGroupOperationCallable()
      Deletes a deployment group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringDeploymentGroupRequest request =
             DeleteMirroringDeploymentGroupRequest.newBuilder()
                 .setName(
                     MirroringDeploymentGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             mirroringClient.deleteMirroringDeploymentGroupOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteMirroringDeploymentGroupCallable

      public final UnaryCallable<DeleteMirroringDeploymentGroupRequest,Operation> deleteMirroringDeploymentGroupCallable()
      Deletes a deployment group. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringDeploymentGroupRequest request =
             DeleteMirroringDeploymentGroupRequest.newBuilder()
                 .setName(
                     MirroringDeploymentGroupName.of(
                             "[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT_GROUP]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.deleteMirroringDeploymentGroupCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listMirroringDeployments

      public final MirroringClient.ListMirroringDeploymentsPagedResponse listMirroringDeployments(LocationName parent)
      Lists deployments in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         for (MirroringDeployment element :
             mirroringClient.listMirroringDeployments(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployments. Example: `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringDeployments

      public final MirroringClient.ListMirroringDeploymentsPagedResponse listMirroringDeployments(String parent)
      Lists deployments in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         for (MirroringDeployment element :
             mirroringClient.listMirroringDeployments(parent).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployments. Example: `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listMirroringDeployments

      Lists deployments in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringDeploymentsRequest request =
             ListMirroringDeploymentsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         for (MirroringDeployment element :
             mirroringClient.listMirroringDeployments(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listMirroringDeploymentsPagedCallable

      Lists deployments in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringDeploymentsRequest request =
             ListMirroringDeploymentsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         ApiFuture<MirroringDeployment> future =
             mirroringClient.listMirroringDeploymentsPagedCallable().futureCall(request);
         // Do something.
         for (MirroringDeployment element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listMirroringDeploymentsCallable

      public final UnaryCallable<ListMirroringDeploymentsRequest,ListMirroringDeploymentsResponse> listMirroringDeploymentsCallable()
      Lists deployments in a given project and location. See https://google.aip.dev/132.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListMirroringDeploymentsRequest request =
             ListMirroringDeploymentsRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .setFilter("filter-1274492040")
                 .setOrderBy("orderBy-1207110587")
                 .build();
         while (true) {
           ListMirroringDeploymentsResponse response =
               mirroringClient.listMirroringDeploymentsCallable().call(request);
           for (MirroringDeployment element : response.getMirroringDeploymentsList()) {
             // doThingsWith(element);
           }
           String nextPageToken = response.getNextPageToken();
           if (!Strings.isNullOrEmpty(nextPageToken)) {
             request = request.toBuilder().setPageToken(nextPageToken).build();
           } else {
             break;
           }
         }
       }
       
    • getMirroringDeployment

      public final MirroringDeployment getMirroringDeployment(MirroringDeploymentName name)
      Gets a specific deployment. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringDeploymentName name =
             MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]");
         MirroringDeployment response = mirroringClient.getMirroringDeployment(name);
       }
       
      Parameters:
      name - Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
      Throws:
      ApiException - if the remote call fails
    • getMirroringDeployment

      public final MirroringDeployment getMirroringDeployment(String name)
      Gets a specific deployment. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                 .toString();
         MirroringDeployment response = mirroringClient.getMirroringDeployment(name);
       }
       
      Parameters:
      name - Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}
      Throws:
      ApiException - if the remote call fails
    • getMirroringDeployment

      public final MirroringDeployment getMirroringDeployment(GetMirroringDeploymentRequest request)
      Gets a specific deployment. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringDeploymentRequest request =
             GetMirroringDeploymentRequest.newBuilder()
                 .setName(
                     MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                         .toString())
                 .build();
         MirroringDeployment response = mirroringClient.getMirroringDeployment(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getMirroringDeploymentCallable

      public final UnaryCallable<GetMirroringDeploymentRequest,MirroringDeployment> getMirroringDeploymentCallable()
      Gets a specific deployment. See https://google.aip.dev/131.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetMirroringDeploymentRequest request =
             GetMirroringDeploymentRequest.newBuilder()
                 .setName(
                     MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                         .toString())
                 .build();
         ApiFuture<MirroringDeployment> future =
             mirroringClient.getMirroringDeploymentCallable().futureCall(request);
         // Do something.
         MirroringDeployment response = future.get();
       }
       
    • createMirroringDeploymentAsync

      public final OperationFuture<MirroringDeployment,OperationMetadata> createMirroringDeploymentAsync(LocationName parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)
      Creates a deployment in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
         MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
         String mirroringDeploymentId = "mirroringDeploymentId-895939037";
         MirroringDeployment response =
             mirroringClient
                 .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location}
      mirroringDeployment - Required. The deployment to create.
      mirroringDeploymentId - Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.
      Throws:
      ApiException - if the remote call fails
    • createMirroringDeploymentAsync

      public final OperationFuture<MirroringDeployment,OperationMetadata> createMirroringDeploymentAsync(String parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId)
      Creates a deployment in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
         MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
         String mirroringDeploymentId = "mirroringDeploymentId-895939037";
         MirroringDeployment response =
             mirroringClient
                 .createMirroringDeploymentAsync(parent, mirroringDeployment, mirroringDeploymentId)
                 .get();
       }
       
      Parameters:
      parent - Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location}
      mirroringDeployment - Required. The deployment to create.
      mirroringDeploymentId - Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.
      Throws:
      ApiException - if the remote call fails
    • createMirroringDeploymentAsync

      public final OperationFuture<MirroringDeployment,OperationMetadata> createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request)
      Creates a deployment in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringDeploymentRequest request =
             CreateMirroringDeploymentRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringDeploymentId("mirroringDeploymentId-895939037")
                 .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringDeployment response = mirroringClient.createMirroringDeploymentAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • createMirroringDeploymentOperationCallable

      public final OperationCallable<CreateMirroringDeploymentRequest,MirroringDeployment,OperationMetadata> createMirroringDeploymentOperationCallable()
      Creates a deployment in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringDeploymentRequest request =
             CreateMirroringDeploymentRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringDeploymentId("mirroringDeploymentId-895939037")
                 .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringDeployment, OperationMetadata> future =
             mirroringClient.createMirroringDeploymentOperationCallable().futureCall(request);
         // Do something.
         MirroringDeployment response = future.get();
       }
       
    • createMirroringDeploymentCallable

      public final UnaryCallable<CreateMirroringDeploymentRequest,Operation> createMirroringDeploymentCallable()
      Creates a deployment in a given project and location. See https://google.aip.dev/133.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         CreateMirroringDeploymentRequest request =
             CreateMirroringDeploymentRequest.newBuilder()
                 .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                 .setMirroringDeploymentId("mirroringDeploymentId-895939037")
                 .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.createMirroringDeploymentCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • updateMirroringDeploymentAsync

      public final OperationFuture<MirroringDeployment,OperationMetadata> updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, com.google.protobuf.FieldMask updateMask)
      Updates a deployment. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringDeployment mirroringDeployment = MirroringDeployment.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         MirroringDeployment response =
             mirroringClient.updateMirroringDeploymentAsync(mirroringDeployment, updateMask).get();
       }
       
      Parameters:
      mirroringDeployment - Required. The deployment to update.
      updateMask - Optional. The list of fields to update. Fields are specified relative to the deployment (e.g. `description`; *not* `mirroring_deployment.description`). See https://google.aip.dev/161 for more details.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringDeploymentAsync

      public final OperationFuture<MirroringDeployment,OperationMetadata> updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request)
      Updates a deployment. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringDeploymentRequest request =
             UpdateMirroringDeploymentRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         MirroringDeployment response = mirroringClient.updateMirroringDeploymentAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • updateMirroringDeploymentOperationCallable

      public final OperationCallable<UpdateMirroringDeploymentRequest,MirroringDeployment,OperationMetadata> updateMirroringDeploymentOperationCallable()
      Updates a deployment. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringDeploymentRequest request =
             UpdateMirroringDeploymentRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<MirroringDeployment, OperationMetadata> future =
             mirroringClient.updateMirroringDeploymentOperationCallable().futureCall(request);
         // Do something.
         MirroringDeployment response = future.get();
       }
       
    • updateMirroringDeploymentCallable

      public final UnaryCallable<UpdateMirroringDeploymentRequest,Operation> updateMirroringDeploymentCallable()
      Updates a deployment. See https://google.aip.dev/134.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         UpdateMirroringDeploymentRequest request =
             UpdateMirroringDeploymentRequest.newBuilder()
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .setMirroringDeployment(MirroringDeployment.newBuilder().build())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.updateMirroringDeploymentCallable().futureCall(request);
         // Do something.
         Operation response = future.get();
       }
       
    • deleteMirroringDeploymentAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentAsync(MirroringDeploymentName name)
      Deletes a deployment. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         MirroringDeploymentName name =
             MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]");
         mirroringClient.deleteMirroringDeploymentAsync(name).get();
       }
       
      Parameters:
      name - Required. Name of the resource
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringDeploymentAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentAsync(String name)
      Deletes a deployment. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         String name =
             MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                 .toString();
         mirroringClient.deleteMirroringDeploymentAsync(name).get();
       }
       
      Parameters:
      name - Required. Name of the resource
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringDeploymentAsync

      public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentAsync(DeleteMirroringDeploymentRequest request)
      Deletes a deployment. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringDeploymentRequest request =
             DeleteMirroringDeploymentRequest.newBuilder()
                 .setName(
                     MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         mirroringClient.deleteMirroringDeploymentAsync(request).get();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteMirroringDeploymentOperationCallable

      public final OperationCallable<DeleteMirroringDeploymentRequest,com.google.protobuf.Empty,OperationMetadata> deleteMirroringDeploymentOperationCallable()
      Deletes a deployment. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringDeploymentRequest request =
             DeleteMirroringDeploymentRequest.newBuilder()
                 .setName(
                     MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         OperationFuture<Empty, OperationMetadata> future =
             mirroringClient.deleteMirroringDeploymentOperationCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • deleteMirroringDeploymentCallable

      public final UnaryCallable<DeleteMirroringDeploymentRequest,Operation> deleteMirroringDeploymentCallable()
      Deletes a deployment. See https://google.aip.dev/135.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         DeleteMirroringDeploymentRequest request =
             DeleteMirroringDeploymentRequest.newBuilder()
                 .setName(
                     MirroringDeploymentName.of("[PROJECT]", "[LOCATION]", "[MIRRORING_DEPLOYMENT]")
                         .toString())
                 .setRequestId("requestId693933066")
                 .build();
         ApiFuture<Operation> future =
             mirroringClient.deleteMirroringDeploymentCallable().futureCall(request);
         // Do something.
         future.get();
       }
       
    • listLocations

      Lists information about the supported locations for this service.

      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:

      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListLocationsRequest request =
             ListLocationsRequest.newBuilder()
                 .setName("name3373707")
                 .setFilter("filter-1274492040")
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .build();
         for (Location element : mirroringClient.listLocations(request).iterateAll()) {
           // doThingsWith(element);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listLocationsPagedCallable

      Lists information about the supported locations for this service.

      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:

      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListLocationsRequest request =
             ListLocationsRequest.newBuilder()
                 .setName("name3373707")
                 .setFilter("filter-1274492040")
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .build();
         ApiFuture<Location> future = mirroringClient.listLocationsPagedCallable().futureCall(request);
         // Do something.
         for (Location element : future.get().iterateAll()) {
           // doThingsWith(element);
         }
       }
       
    • listLocationsCallable

      public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
      Lists information about the supported locations for this service.

      This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:

      * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.

      For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         ListLocationsRequest request =
             ListLocationsRequest.newBuilder()
                 .setName("name3373707")
                 .setFilter("filter-1274492040")
                 .setPageSize(883849137)
                 .setPageToken("pageToken873572522")
                 .build();
         while (true) {
           ListLocationsResponse response = mirroringClient.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;
           }
         }
       }
       
    • getLocation

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
         Location response = mirroringClient.getLocation(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
         ApiFuture<Location> future = mirroringClient.getLocationCallable().futureCall(request);
         // Do something.
         Location response = future.get();
       }
       
    • setIamPolicy

      public final Policy setIamPolicy(SetIamPolicyRequest request)
      Sets the access control policy on the specified resource. Replacesany existing policy.

      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         SetIamPolicyRequest request =
             SetIamPolicyRequest.newBuilder()
                 .setResource(
                     AddressGroupName.ofProjectLocationAddressGroupName(
                             "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                         .toString())
                 .setPolicy(Policy.newBuilder().build())
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .build();
         Policy response = mirroringClient.setIamPolicy(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • setIamPolicyCallable

      public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
      Sets the access control policy on the specified resource. Replacesany existing policy.

      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         SetIamPolicyRequest request =
             SetIamPolicyRequest.newBuilder()
                 .setResource(
                     AddressGroupName.ofProjectLocationAddressGroupName(
                             "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                         .toString())
                 .setPolicy(Policy.newBuilder().build())
                 .setUpdateMask(FieldMask.newBuilder().build())
                 .build();
         ApiFuture<Policy> future = mirroringClient.setIamPolicyCallable().futureCall(request);
         // Do something.
         Policy response = future.get();
       }
       
    • getIamPolicy

      public final Policy getIamPolicy(GetIamPolicyRequest request)
      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetIamPolicyRequest request =
             GetIamPolicyRequest.newBuilder()
                 .setResource(
                     AddressGroupName.ofProjectLocationAddressGroupName(
                             "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                         .toString())
                 .setOptions(GetPolicyOptions.newBuilder().build())
                 .build();
         Policy response = mirroringClient.getIamPolicy(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getIamPolicyCallable

      public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
      Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         GetIamPolicyRequest request =
             GetIamPolicyRequest.newBuilder()
                 .setResource(
                     AddressGroupName.ofProjectLocationAddressGroupName(
                             "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                         .toString())
                 .setOptions(GetPolicyOptions.newBuilder().build())
                 .build();
         ApiFuture<Policy> future = mirroringClient.getIamPolicyCallable().futureCall(request);
         // Do something.
         Policy response = future.get();
       }
       
    • testIamPermissions

      public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)
      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.

      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         TestIamPermissionsRequest request =
             TestIamPermissionsRequest.newBuilder()
                 .setResource(
                     AddressGroupName.ofProjectLocationAddressGroupName(
                             "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                         .toString())
                 .addAllPermissions(new ArrayList<String>())
                 .build();
         TestIamPermissionsResponse response = mirroringClient.testIamPermissions(request);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • testIamPermissionsCallable

      public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
      Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.

      Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

      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 (MirroringClient mirroringClient = MirroringClient.create()) {
         TestIamPermissionsRequest request =
             TestIamPermissionsRequest.newBuilder()
                 .setResource(
                     AddressGroupName.ofProjectLocationAddressGroupName(
                             "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                         .toString())
                 .addAllPermissions(new ArrayList<String>())
                 .build();
         ApiFuture<TestIamPermissionsResponse> future =
             mirroringClient.testIamPermissionsCallable().futureCall(request);
         // Do something.
         TestIamPermissionsResponse response = future.get();
       }
       
    • close

      public final void close()
      Specified by:
      close in interface AutoCloseable
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface BackgroundResource
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface BackgroundResource
    • isTerminated

      public boolean isTerminated()
      Specified by:
      isTerminated in interface BackgroundResource
    • shutdownNow

      public void shutdownNow()
      Specified by:
      shutdownNow in interface BackgroundResource
    • awaitTermination

      public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
      Specified by:
      awaitTermination in interface BackgroundResource
      Throws:
      InterruptedException