# Class MirroringClient (0.96.0)

0.96.0 (latest) 0.94.0 0.91.0 0.90.0 0.88.0 0.86.0 0.85.0 0.83.0 0.81.0 0.79.0 0.78.0 0.77.0 0.76.0 0.75.0 0.73.0 0.71.0 0.70.0 0.67.0 0.66.0 0.65.0 0.63.0 0.62.0 0.61.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.52.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.4

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java) | [Product Reference](https://cloud.google.com/traffic-director/docs/reference/network-security/rest) |

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

| 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() |
[Methods]

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with
these names, this class includes a format method for each type of name, and additionally a parse
method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of 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.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> MirroringClient

## Static Methods

### create()

    public static final MirroringClient create()

Constructs an instance of MirroringClient with default settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(MirroringSettings settings)

    public static final MirroringClient create(MirroringSettings settings)

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(MirroringStub stub)

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.stub.MirroringStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient` |   |

## Constructors

### MirroringClient(MirroringSettings settings)

    protected MirroringClient(MirroringSettings settings)

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringSettings` |

### MirroringClient(MirroringStub stub)

    protected MirroringClient(MirroringStub stub)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.stub.MirroringStub` |

## Methods

### awaitTermination(long duration, TimeUnit unit)

    public boolean awaitTermination(long duration, TimeUnit unit)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `unit` | `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### close()

    public final void close()

### createMirroringDeploymentAsync(CreateMirroringDeploymentRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location} |
| `mirroringDeployment` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment` Required. The deployment to create. |
| `mirroringDeploymentId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location} |
| `mirroringDeployment` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment` Required. The deployment to create. |
| `mirroringDeploymentId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createMirroringDeploymentGroupAsync(CreateMirroringDeploymentGroupRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location} |
| `mirroringDeploymentGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup` Required. The deployment group to create. |
| `mirroringDeploymentGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location} |
| `mirroringDeploymentGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup` Required. The deployment group to create. |
| `mirroringDeploymentGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createMirroringEndpointGroupAssociationAsync(CreateMirroringEndpointGroupAssociationRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
| `mirroringEndpointGroupAssociation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` Required. The association to create. |
| `mirroringEndpointGroupAssociationId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
| `mirroringEndpointGroupAssociation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` Required. The association to create. |
| `mirroringEndpointGroupAssociationId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createMirroringEndpointGroupAsync(CreateMirroringEndpointGroupRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location} |
| `mirroringEndpointGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup` Required. The endpoint group to create. |
| `mirroringEndpointGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

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

    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** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location} |
| `mirroringEndpointGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup` Required. The endpoint group to create. |
| `mirroringEndpointGroupId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateMirroringEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringDeploymentAsync(DeleteMirroringDeploymentRequest request)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringDeploymentAsync(MirroringDeploymentName name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentName` Required. Name of the resource |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringDeploymentAsync(String name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteMirroringDeploymentGroupAsync(DeleteMirroringDeploymentGroupRequest request)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringDeploymentGroupAsync(MirroringDeploymentGroupName name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName` Required. The deployment group to delete. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringDeploymentGroupAsync(String name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The deployment group to delete. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteMirroringDeploymentGroupOperationCallable()

    public final OperationCallable<DeleteMirroringDeploymentGroupRequest,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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentGroupRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringDeploymentOperationCallable()

    public final OperationCallable<DeleteMirroringDeploymentRequest,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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringDeploymentRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringEndpointGroupAssociationAsync(DeleteMirroringEndpointGroupAssociationRequest request)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName` Required. The association to delete. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringEndpointGroupAssociationAsync(String name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The association to delete. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteMirroringEndpointGroupAssociationOperationCallable()

    public final OperationCallable<DeleteMirroringEndpointGroupAssociationRequest,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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupAssociationRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringEndpointGroupAsync(DeleteMirroringEndpointGroupRequest request)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringEndpointGroupAsync(MirroringEndpointGroupName name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupName` Required. The endpoint group to delete. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteMirroringEndpointGroupAsync(String name)

    public final OperationFuture<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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The endpoint group to delete. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteMirroringEndpointGroupOperationCallable()

    public final OperationCallable<DeleteMirroringEndpointGroupRequest,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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteMirroringEndpointGroupRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### getIamPolicy(GetIamPolicyRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.GetIamPolicyRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.iam.v1.Policy` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>` |   |

### getLocation(GetLocationRequest request)

    public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (MirroringClient mirroringClient = MirroringClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       Location response = mirroringClient.getLocation(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.cloud.location.GetLocationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.cloud.location.Location` |   |

### getLocationCallable()

    public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (MirroringClient mirroringClient = MirroringClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       ApiFuture<Location> future = mirroringClient.getLocationCallable().futureCall(request);
       // Do something.
       Location response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>` |   |

### getMirroringDeployment(GetMirroringDeploymentRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment` |   |

### getMirroringDeployment(MirroringDeploymentName name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentName` Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment` |   |

### getMirroringDeployment(String name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment>` |   |

### getMirroringDeploymentGroup(GetMirroringDeploymentGroupRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup` |   |

### getMirroringDeploymentGroup(MirroringDeploymentGroupName name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroupName` Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup` |   |

### getMirroringDeploymentGroup(String name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup>` |   |

### getMirroringEndpointGroup(GetMirroringEndpointGroupRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup` |   |

### getMirroringEndpointGroup(MirroringEndpointGroupName name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupName` Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup` |   |

### getMirroringEndpointGroup(String name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup` |   |

### getMirroringEndpointGroupAssociation(GetMirroringEndpointGroupAssociationRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |   |

### getMirroringEndpointGroupAssociation(MirroringEndpointGroupAssociationName name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociationName` Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |   |

### getMirroringEndpointGroupAssociation(String name)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetMirroringEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup>` |   |

### getOperationsClient()

    public final OperationsClient getOperationsClient()

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.OperationsClient.html` |   |

### getSettings()

    public final MirroringSettings getSettings()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringSettings` |   |

### getStub()

    public MirroringStub getStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.stub.MirroringStub` |   |

### isShutdown()

    public boolean isShutdown()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isTerminated()

    public boolean isTerminated()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listLocations(ListLocationsRequest request)

    public final MirroringClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.cloud.location.ListLocationsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse` |   |

### 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;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>` |   |

### listLocationsPagedCallable()

    public final UnaryCallable<ListLocationsRequest,MirroringClient.ListLocationsPagedResponse> 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);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListLocationsPagedResponse>` |   |

### listMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest request)

    public final MirroringClient.ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups(ListMirroringDeploymentGroupsRequest request)

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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse` |   |

### listMirroringDeploymentGroups(LocationName parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse` |   |

### listMirroringDeploymentGroups(String parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse` |   |

### 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;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse>` |   |

### listMirroringDeploymentGroupsPagedCallable()

    public final UnaryCallable<ListMirroringDeploymentGroupsRequest,MirroringClient.ListMirroringDeploymentGroupsPagedResponse> 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);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentGroupsPagedResponse>` |   |

### listMirroringDeployments(ListMirroringDeploymentsRequest request)

    public final MirroringClient.ListMirroringDeploymentsPagedResponse listMirroringDeployments(ListMirroringDeploymentsRequest request)

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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse` |   |

### listMirroringDeployments(LocationName parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse` |   |

### listMirroringDeployments(String parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse` |   |

### 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;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse>` |   |

### listMirroringDeploymentsPagedCallable()

    public final UnaryCallable<ListMirroringDeploymentsRequest,MirroringClient.ListMirroringDeploymentsPagedResponse> 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);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringDeploymentsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringDeploymentsPagedResponse>` |   |

### listMirroringEndpointGroupAssociations(ListMirroringEndpointGroupAssociationsRequest request)

    public final MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse listMirroringEndpointGroupAssociations(ListMirroringEndpointGroupAssociationsRequest request)

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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse` |   |

### listMirroringEndpointGroupAssociations(LocationName parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse` |   |

### listMirroringEndpointGroupAssociations(String parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse` |   |

### listMirroringEndpointGroupAssociationsCallable()

    public final UnaryCallable<ListMirroringEndpointGroupAssociationsRequest,ListMirroringEndpointGroupAssociationsResponse> 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;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse>` |   |

### listMirroringEndpointGroupAssociationsPagedCallable()

    public final UnaryCallable<ListMirroringEndpointGroupAssociationsRequest,MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse> 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);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupAssociationsPagedResponse>` |   |

### listMirroringEndpointGroups(ListMirroringEndpointGroupsRequest request)

    public final MirroringClient.ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups(ListMirroringEndpointGroupsRequest request)

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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse` |   |

### listMirroringEndpointGroups(LocationName parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.LocationName` Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse` |   |

### listMirroringEndpointGroups(String parent)

    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);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse` |   |

### 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;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse>` |   |

### listMirroringEndpointGroupsPagedCallable()

    public final UnaryCallable<ListMirroringEndpointGroupsRequest,MirroringClient.ListMirroringEndpointGroupsPagedResponse> 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);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListMirroringEndpointGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringClient.ListMirroringEndpointGroupsPagedResponse>` |   |

### setIamPolicy(SetIamPolicyRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.SetIamPolicyRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.iam.v1.Policy` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()

### testIamPermissions(TestIamPermissionsRequest request)

    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);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `com.google.iam.v1.TestIamPermissionsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.iam.v1.TestIamPermissionsResponse` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>` |   |

### updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, FieldMask updateMask)

    public final OperationFuture<MirroringDeployment,OperationMetadata> updateMirroringDeploymentAsync(MirroringDeployment mirroringDeployment, 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** ||
|---|---|
| **Name** | **Description** |
| `mirroringDeployment` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment` Required. The deployment to update. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateMirroringDeploymentAsync(UpdateMirroringDeploymentRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, FieldMask updateMask)

    public final OperationFuture<MirroringDeploymentGroup,OperationMetadata> updateMirroringDeploymentGroupAsync(MirroringDeploymentGroup mirroringDeploymentGroup, 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** ||
|---|---|
| **Name** | **Description** |
| `mirroringDeploymentGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup` Required. The deployment group to update. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateMirroringDeploymentGroupAsync(UpdateMirroringDeploymentGroupRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, FieldMask updateMask)

    public final OperationFuture<MirroringEndpointGroupAssociation,OperationMetadata> updateMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, 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** ||
|---|---|
| **Name** | **Description** |
| `mirroringEndpointGroupAssociation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation` Required. The association to update. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateMirroringEndpointGroupAssociationAsync(UpdateMirroringEndpointGroupAssociationRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, FieldMask updateMask)

    public final OperationFuture<MirroringEndpointGroup,OperationMetadata> updateMirroringEndpointGroupAsync(MirroringEndpointGroup mirroringEndpointGroup, 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** ||
|---|---|
| **Name** | **Description** |
| `mirroringEndpointGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup` Required. The endpoint group to update. |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` 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. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateMirroringEndpointGroupAsync(UpdateMirroringEndpointGroupRequest request)

    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();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.longrunning.OperationFuture.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### 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();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.OperationCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateMirroringEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.MirroringEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |