# Class InterceptClient (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/InterceptClient.java) | [Product Reference](https://cloud.google.com/traffic-director/docs/reference/network-security/rest) |

Service Description: Service for Third-Party Packet Intercept (TPPI). TPPI is the "in-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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroupName name =
           InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
       InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
     }
     
Note: close() needs to be called on the InterceptClient 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 |
|---|---|---|
| ListInterceptEndpointGroups | 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. - listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listInterceptEndpointGroups(LocationName parent) - listInterceptEndpointGroups(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. - listInterceptEndpointGroupsPagedCallable() - listInterceptEndpointGroupsCallable() |
| GetInterceptEndpointGroup | 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. - getInterceptEndpointGroup(GetInterceptEndpointGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getInterceptEndpointGroup(InterceptEndpointGroupName name) - getInterceptEndpointGroup(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. - getInterceptEndpointGroupCallable() |
| CreateInterceptEndpointGroup | 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. - createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) - createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createInterceptEndpointGroupOperationCallable() - createInterceptEndpointGroupCallable() |
| UpdateInterceptEndpointGroup | 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. - updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, 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. - updateInterceptEndpointGroupOperationCallable() - updateInterceptEndpointGroupCallable() |
| DeleteInterceptEndpointGroup | 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. - deleteInterceptEndpointGroupAsync(DeleteInterceptEndpointGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteInterceptEndpointGroupAsync(InterceptEndpointGroupName name) - deleteInterceptEndpointGroupAsync(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. - deleteInterceptEndpointGroupOperationCallable() - deleteInterceptEndpointGroupCallable() |
| ListInterceptEndpointGroupAssociations | 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. - listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listInterceptEndpointGroupAssociations(LocationName parent) - listInterceptEndpointGroupAssociations(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. - listInterceptEndpointGroupAssociationsPagedCallable() - listInterceptEndpointGroupAssociationsCallable() |
| GetInterceptEndpointGroupAssociation | 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. - getInterceptEndpointGroupAssociation(GetInterceptEndpointGroupAssociationRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getInterceptEndpointGroupAssociation(InterceptEndpointGroupAssociationName name) - getInterceptEndpointGroupAssociation(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. - getInterceptEndpointGroupAssociationCallable() |
| CreateInterceptEndpointGroupAssociation | 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. - createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) - createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createInterceptEndpointGroupAssociationOperationCallable() - createInterceptEndpointGroupAssociationCallable() |
| UpdateInterceptEndpointGroupAssociation | 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. - updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, 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. - updateInterceptEndpointGroupAssociationOperationCallable() - updateInterceptEndpointGroupAssociationCallable() |
| DeleteInterceptEndpointGroupAssociation | 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. - deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name) - deleteInterceptEndpointGroupAssociationAsync(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. - deleteInterceptEndpointGroupAssociationOperationCallable() - deleteInterceptEndpointGroupAssociationCallable() |
| ListInterceptDeploymentGroups | 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. - listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listInterceptDeploymentGroups(LocationName parent) - listInterceptDeploymentGroups(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. - listInterceptDeploymentGroupsPagedCallable() - listInterceptDeploymentGroupsCallable() |
| GetInterceptDeploymentGroup | 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. - getInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getInterceptDeploymentGroup(InterceptDeploymentGroupName name) - getInterceptDeploymentGroup(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. - getInterceptDeploymentGroupCallable() |
| CreateInterceptDeploymentGroup | 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. - createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) - createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createInterceptDeploymentGroupOperationCallable() - createInterceptDeploymentGroupCallable() |
| UpdateInterceptDeploymentGroup | 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. - updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, 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. - updateInterceptDeploymentGroupOperationCallable() - updateInterceptDeploymentGroupCallable() |
| DeleteInterceptDeploymentGroup | 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. - deleteInterceptDeploymentGroupAsync(DeleteInterceptDeploymentGroupRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteInterceptDeploymentGroupAsync(InterceptDeploymentGroupName name) - deleteInterceptDeploymentGroupAsync(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. - deleteInterceptDeploymentGroupOperationCallable() - deleteInterceptDeploymentGroupCallable() |
| ListInterceptDeployments | 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. - listInterceptDeployments(ListInterceptDeploymentsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listInterceptDeployments(LocationName parent) - listInterceptDeployments(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. - listInterceptDeploymentsPagedCallable() - listInterceptDeploymentsCallable() |
| GetInterceptDeployment | 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. - getInterceptDeployment(GetInterceptDeploymentRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getInterceptDeployment(InterceptDeploymentName name) - getInterceptDeployment(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. - getInterceptDeploymentCallable() |
| CreateInterceptDeployment | 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. - createInterceptDeploymentAsync(CreateInterceptDeploymentRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) - createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createInterceptDeploymentOperationCallable() - createInterceptDeploymentCallable() |
| UpdateInterceptDeployment | 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. - updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, 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. - updateInterceptDeploymentOperationCallable() - updateInterceptDeploymentCallable() |
| DeleteInterceptDeployment | 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. - deleteInterceptDeploymentAsync(DeleteInterceptDeploymentRequest request) Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. - deleteInterceptDeploymentAsync(InterceptDeploymentName name) - deleteInterceptDeploymentAsync(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. - deleteInterceptDeploymentOperationCallable() - deleteInterceptDeploymentCallable() |
| 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 InterceptSettings 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
     InterceptSettings interceptSettings =
         InterceptSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     InterceptClient interceptClient = InterceptClient.create(interceptSettings);
     
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
     InterceptSettings interceptSettings =
         InterceptSettings.newBuilder().setEndpoint(myEndpoint).build();
     InterceptClient interceptClient = InterceptClient.create(interceptSettings);
     
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) \> InterceptClient

## Static Methods

### create()

    public static final InterceptClient create()

Constructs an instance of InterceptClient with default settings.

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

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

### create(InterceptSettings settings)

    public static final InterceptClient create(InterceptSettings settings)

Constructs an instance of InterceptClient, 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.InterceptSettings` |

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

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

### create(InterceptStub stub)

    public static final InterceptClient create(InterceptStub stub)

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

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

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

## Constructors

### InterceptClient(InterceptSettings settings)

    protected InterceptClient(InterceptSettings settings)

Constructs an instance of InterceptClient, 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.InterceptSettings` |

### InterceptClient(InterceptStub stub)

    protected InterceptClient(InterceptStub stub)

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

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

### createInterceptDeploymentAsync(CreateInterceptDeploymentRequest request)

    public final OperationFuture<InterceptDeployment,OperationMetadata> createInterceptDeploymentAsync(CreateInterceptDeploymentRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptDeploymentRequest request =
           CreateInterceptDeploymentRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptDeploymentId("interceptDeploymentId-240023390")
               .setInterceptDeployment(InterceptDeployment.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptDeployment response = interceptClient.createInterceptDeploymentAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateInterceptDeploymentRequest` 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.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)

    public final OperationFuture<InterceptDeployment,OperationMetadata> createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
       String interceptDeploymentId = "interceptDeploymentId-240023390";
       InterceptDeployment response =
           interceptClient
               .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId)
               .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} |
| `interceptDeployment` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeployment` Required. The deployment to create. |
| `interceptDeploymentId` | `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.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)

    public final OperationFuture<InterceptDeployment,OperationMetadata> createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
       String interceptDeploymentId = "interceptDeploymentId-240023390";
       InterceptDeployment response =
           interceptClient
               .createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId)
               .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} |
| `interceptDeployment` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeployment` Required. The deployment to create. |
| `interceptDeploymentId` | `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.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentCallable()

    public final UnaryCallable<CreateInterceptDeploymentRequest,Operation> createInterceptDeploymentCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptDeploymentRequest request =
           CreateInterceptDeploymentRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptDeploymentId("interceptDeploymentId-240023390")
               .setInterceptDeployment(InterceptDeployment.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.createInterceptDeploymentCallable().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.CreateInterceptDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest request)

    public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptDeploymentGroupRequest request =
           CreateInterceptDeploymentGroupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
               .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptDeploymentGroup response =
           interceptClient.createInterceptDeploymentGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateInterceptDeploymentGroupRequest` 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.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)

    public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       InterceptDeploymentGroup interceptDeploymentGroup =
           InterceptDeploymentGroup.newBuilder().build();
       String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995";
       InterceptDeploymentGroup response =
           interceptClient
               .createInterceptDeploymentGroupAsync(
                   parent, interceptDeploymentGroup, interceptDeploymentGroupId)
               .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} |
| `interceptDeploymentGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroup` Required. The deployment group to create. |
| `interceptDeploymentGroupId` | `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.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)

    public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       InterceptDeploymentGroup interceptDeploymentGroup =
           InterceptDeploymentGroup.newBuilder().build();
       String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995";
       InterceptDeploymentGroup response =
           interceptClient
               .createInterceptDeploymentGroupAsync(
                   parent, interceptDeploymentGroup, interceptDeploymentGroupId)
               .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} |
| `interceptDeploymentGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroup` Required. The deployment group to create. |
| `interceptDeploymentGroupId` | `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.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentGroupCallable()

    public final UnaryCallable<CreateInterceptDeploymentGroupRequest,Operation> createInterceptDeploymentGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptDeploymentGroupRequest request =
           CreateInterceptDeploymentGroupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
               .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.createInterceptDeploymentGroupCallable().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.CreateInterceptDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createInterceptDeploymentGroupOperationCallable()

    public final OperationCallable<CreateInterceptDeploymentGroupRequest,InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptDeploymentGroupRequest request =
           CreateInterceptDeploymentGroupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
               .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptDeploymentGroup, OperationMetadata> future =
           interceptClient.createInterceptDeploymentGroupOperationCallable().futureCall(request);
       // Do something.
       InterceptDeploymentGroup 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.CreateInterceptDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptDeploymentOperationCallable()

    public final OperationCallable<CreateInterceptDeploymentRequest,InterceptDeployment,OperationMetadata> createInterceptDeploymentOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptDeploymentRequest request =
           CreateInterceptDeploymentRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptDeploymentId("interceptDeploymentId-240023390")
               .setInterceptDeployment(InterceptDeployment.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptDeployment, OperationMetadata> future =
           interceptClient.createInterceptDeploymentOperationCallable().futureCall(request);
       // Do something.
       InterceptDeployment 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.CreateInterceptDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest request)

    public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptEndpointGroupAssociationRequest request =
           CreateInterceptEndpointGroupAssociationRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptEndpointGroupAssociationId(
                   "interceptEndpointGroupAssociationId-1931364844")
               .setInterceptEndpointGroupAssociation(
                   InterceptEndpointGroupAssociation.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptEndpointGroupAssociation response =
           interceptClient.createInterceptEndpointGroupAssociationAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupAssociationRequest` 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.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)

    public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
           InterceptEndpointGroupAssociation.newBuilder().build();
       String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844";
       InterceptEndpointGroupAssociation response =
           interceptClient
               .createInterceptEndpointGroupAssociationAsync(
                   parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId)
               .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} |
| `interceptEndpointGroupAssociation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation` Required. The association to create. |
| `interceptEndpointGroupAssociationId` | `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.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)

    public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
           InterceptEndpointGroupAssociation.newBuilder().build();
       String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844";
       InterceptEndpointGroupAssociation response =
           interceptClient
               .createInterceptEndpointGroupAssociationAsync(
                   parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId)
               .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} |
| `interceptEndpointGroupAssociation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation` Required. The association to create. |
| `interceptEndpointGroupAssociationId` | `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.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAssociationCallable()

    public final UnaryCallable<CreateInterceptEndpointGroupAssociationRequest,Operation> createInterceptEndpointGroupAssociationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptEndpointGroupAssociationRequest request =
           CreateInterceptEndpointGroupAssociationRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptEndpointGroupAssociationId(
                   "interceptEndpointGroupAssociationId-1931364844")
               .setInterceptEndpointGroupAssociation(
                   InterceptEndpointGroupAssociation.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.createInterceptEndpointGroupAssociationCallable().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.CreateInterceptEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createInterceptEndpointGroupAssociationOperationCallable()

    public final OperationCallable<CreateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptEndpointGroupAssociationRequest request =
           CreateInterceptEndpointGroupAssociationRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptEndpointGroupAssociationId(
                   "interceptEndpointGroupAssociationId-1931364844")
               .setInterceptEndpointGroupAssociation(
                   InterceptEndpointGroupAssociation.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptEndpointGroupAssociation, OperationMetadata> future =
           interceptClient
               .createInterceptEndpointGroupAssociationOperationCallable()
               .futureCall(request);
       // Do something.
       InterceptEndpointGroupAssociation 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.CreateInterceptEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest request)

    public final OperationFuture<InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptEndpointGroupRequest request =
           CreateInterceptEndpointGroupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
               .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptEndpointGroup response =
           interceptClient.createInterceptEndpointGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.CreateInterceptEndpointGroupRequest` 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.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)

    public final OperationFuture<InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
       String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189";
       InterceptEndpointGroup response =
           interceptClient
               .createInterceptEndpointGroupAsync(
                   parent, interceptEndpointGroup, interceptEndpointGroupId)
               .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} |
| `interceptEndpointGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroup` Required. The endpoint group to create. |
| `interceptEndpointGroupId` | `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.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)

    public final OperationFuture<InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)

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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
       String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189";
       InterceptEndpointGroup response =
           interceptClient
               .createInterceptEndpointGroupAsync(
                   parent, interceptEndpointGroup, interceptEndpointGroupId)
               .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} |
| `interceptEndpointGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroup` Required. The endpoint group to create. |
| `interceptEndpointGroupId` | `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.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### createInterceptEndpointGroupCallable()

    public final UnaryCallable<CreateInterceptEndpointGroupRequest,Operation> createInterceptEndpointGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptEndpointGroupRequest request =
           CreateInterceptEndpointGroupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
               .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.createInterceptEndpointGroupCallable().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.CreateInterceptEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### createInterceptEndpointGroupOperationCallable()

    public final OperationCallable<CreateInterceptEndpointGroupRequest,InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       CreateInterceptEndpointGroupRequest request =
           CreateInterceptEndpointGroupRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
               .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptEndpointGroup, OperationMetadata> future =
           interceptClient.createInterceptEndpointGroupOperationCallable().futureCall(request);
       // Do something.
       InterceptEndpointGroup 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.CreateInterceptEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### deleteInterceptDeploymentAsync(DeleteInterceptDeploymentRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentAsync(DeleteInterceptDeploymentRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptDeploymentRequest request =
           DeleteInterceptDeploymentRequest.newBuilder()
               .setName(
                   InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       interceptClient.deleteInterceptDeploymentAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentRequest` 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>` |   |

### deleteInterceptDeploymentAsync(InterceptDeploymentName name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentAsync(InterceptDeploymentName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptDeploymentName name =
           InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]");
       interceptClient.deleteInterceptDeploymentAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentName` 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>` |   |

### deleteInterceptDeploymentAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentAsync(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
               .toString();
       interceptClient.deleteInterceptDeploymentAsync(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>` |   |

### deleteInterceptDeploymentCallable()

    public final UnaryCallable<DeleteInterceptDeploymentRequest,Operation> deleteInterceptDeploymentCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptDeploymentRequest request =
           DeleteInterceptDeploymentRequest.newBuilder()
               .setName(
                   InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.deleteInterceptDeploymentCallable().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.DeleteInterceptDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteInterceptDeploymentGroupAsync(DeleteInterceptDeploymentGroupRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentGroupAsync(DeleteInterceptDeploymentGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptDeploymentGroupRequest request =
           DeleteInterceptDeploymentGroupRequest.newBuilder()
               .setName(
                   InterceptDeploymentGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       interceptClient.deleteInterceptDeploymentGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteInterceptDeploymentGroupRequest` 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>` |   |

### deleteInterceptDeploymentGroupAsync(InterceptDeploymentGroupName name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentGroupAsync(InterceptDeploymentGroupName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptDeploymentGroupName name =
           InterceptDeploymentGroupName.of(
               "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]");
       interceptClient.deleteInterceptDeploymentGroupAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName` 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>` |   |

### deleteInterceptDeploymentGroupAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentGroupAsync(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
               .toString();
       interceptClient.deleteInterceptDeploymentGroupAsync(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>` |   |

### deleteInterceptDeploymentGroupCallable()

    public final UnaryCallable<DeleteInterceptDeploymentGroupRequest,Operation> deleteInterceptDeploymentGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptDeploymentGroupRequest request =
           DeleteInterceptDeploymentGroupRequest.newBuilder()
               .setName(
                   InterceptDeploymentGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.deleteInterceptDeploymentGroupCallable().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.DeleteInterceptDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteInterceptDeploymentGroupOperationCallable()

    public final OperationCallable<DeleteInterceptDeploymentGroupRequest,Empty,OperationMetadata> deleteInterceptDeploymentGroupOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptDeploymentGroupRequest request =
           DeleteInterceptDeploymentGroupRequest.newBuilder()
               .setName(
                   InterceptDeploymentGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           interceptClient.deleteInterceptDeploymentGroupOperationCallable().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.DeleteInterceptDeploymentGroupRequest,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>` |   |

### deleteInterceptDeploymentOperationCallable()

    public final OperationCallable<DeleteInterceptDeploymentRequest,Empty,OperationMetadata> deleteInterceptDeploymentOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptDeploymentRequest request =
           DeleteInterceptDeploymentRequest.newBuilder()
               .setName(
                   InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           interceptClient.deleteInterceptDeploymentOperationCallable().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.DeleteInterceptDeploymentRequest,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>` |   |

### deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptEndpointGroupAssociationRequest request =
           DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupAssociationName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       interceptClient.deleteInterceptEndpointGroupAssociationAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupAssociationRequest` 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>` |   |

### deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroupAssociationName name =
           InterceptEndpointGroupAssociationName.of(
               "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]");
       interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName` 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>` |   |

### deleteInterceptEndpointGroupAssociationAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptEndpointGroupAssociationName.of(
                   "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
               .toString();
       interceptClient.deleteInterceptEndpointGroupAssociationAsync(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>` |   |

### deleteInterceptEndpointGroupAssociationCallable()

    public final UnaryCallable<DeleteInterceptEndpointGroupAssociationRequest,Operation> deleteInterceptEndpointGroupAssociationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptEndpointGroupAssociationRequest request =
           DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupAssociationName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.deleteInterceptEndpointGroupAssociationCallable().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.DeleteInterceptEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteInterceptEndpointGroupAssociationOperationCallable()

    public final OperationCallable<DeleteInterceptEndpointGroupAssociationRequest,Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptEndpointGroupAssociationRequest request =
           DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupAssociationName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           interceptClient
               .deleteInterceptEndpointGroupAssociationOperationCallable()
               .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.DeleteInterceptEndpointGroupAssociationRequest,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>` |   |

### deleteInterceptEndpointGroupAsync(DeleteInterceptEndpointGroupRequest request)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAsync(DeleteInterceptEndpointGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptEndpointGroupRequest request =
           DeleteInterceptEndpointGroupRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       interceptClient.deleteInterceptEndpointGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.DeleteInterceptEndpointGroupRequest` 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>` |   |

### deleteInterceptEndpointGroupAsync(InterceptEndpointGroupName name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAsync(InterceptEndpointGroupName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroupName name =
           InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
       interceptClient.deleteInterceptEndpointGroupAsync(name).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupName` 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>` |   |

### deleteInterceptEndpointGroupAsync(String name)

    public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAsync(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
               .toString();
       interceptClient.deleteInterceptEndpointGroupAsync(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>` |   |

### deleteInterceptEndpointGroupCallable()

    public final UnaryCallable<DeleteInterceptEndpointGroupRequest,Operation> deleteInterceptEndpointGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptEndpointGroupRequest request =
           DeleteInterceptEndpointGroupRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.deleteInterceptEndpointGroupCallable().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.DeleteInterceptEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### deleteInterceptEndpointGroupOperationCallable()

    public final OperationCallable<DeleteInterceptEndpointGroupRequest,Empty,OperationMetadata> deleteInterceptEndpointGroupOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       DeleteInterceptEndpointGroupRequest request =
           DeleteInterceptEndpointGroupRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                       .toString())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<Empty, OperationMetadata> future =
           interceptClient.deleteInterceptEndpointGroupOperationCallable().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.DeleteInterceptEndpointGroupRequest,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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setOptions(GetPolicyOptions.newBuilder().build())
               .build();
       Policy response = interceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setOptions(GetPolicyOptions.newBuilder().build())
               .build();
       ApiFuture<Policy> future = interceptClient.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>` |   |

### getInterceptDeployment(GetInterceptDeploymentRequest request)

    public final InterceptDeployment getInterceptDeployment(GetInterceptDeploymentRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptDeploymentRequest request =
           GetInterceptDeploymentRequest.newBuilder()
               .setName(
                   InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                       .toString())
               .build();
       InterceptDeployment response = interceptClient.getInterceptDeployment(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetInterceptDeploymentRequest` 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.InterceptDeployment` |   |

### getInterceptDeployment(InterceptDeploymentName name)

    public final InterceptDeployment getInterceptDeployment(InterceptDeploymentName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptDeploymentName name =
           InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]");
       InterceptDeployment response = interceptClient.getInterceptDeployment(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentName` Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} |

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

### getInterceptDeployment(String name)

    public final InterceptDeployment getInterceptDeployment(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
               .toString();
       InterceptDeployment response = interceptClient.getInterceptDeployment(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}/interceptDeployments/{intercept_deployment} |

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

### getInterceptDeploymentCallable()

    public final UnaryCallable<GetInterceptDeploymentRequest,InterceptDeployment> getInterceptDeploymentCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptDeploymentRequest request =
           GetInterceptDeploymentRequest.newBuilder()
               .setName(
                   InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
                       .toString())
               .build();
       ApiFuture<InterceptDeployment> future =
           interceptClient.getInterceptDeploymentCallable().futureCall(request);
       // Do something.
       InterceptDeployment 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.GetInterceptDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeployment>` |   |

### getInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest request)

    public final InterceptDeploymentGroup getInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptDeploymentGroupRequest request =
           GetInterceptDeploymentGroupRequest.newBuilder()
               .setName(
                   InterceptDeploymentGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                       .toString())
               .build();
       InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetInterceptDeploymentGroupRequest` 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.InterceptDeploymentGroup` |   |

### getInterceptDeploymentGroup(InterceptDeploymentGroupName name)

    public final InterceptDeploymentGroup getInterceptDeploymentGroup(InterceptDeploymentGroupName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptDeploymentGroupName name =
           InterceptDeploymentGroupName.of(
               "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]");
       InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroupName` Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group} |

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

### getInterceptDeploymentGroup(String name)

    public final InterceptDeploymentGroup getInterceptDeploymentGroup(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
               .toString();
       InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(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}/interceptDeploymentGroups/{intercept_deployment_group} |

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

### getInterceptDeploymentGroupCallable()

    public final UnaryCallable<GetInterceptDeploymentGroupRequest,InterceptDeploymentGroup> getInterceptDeploymentGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptDeploymentGroupRequest request =
           GetInterceptDeploymentGroupRequest.newBuilder()
               .setName(
                   InterceptDeploymentGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
                       .toString())
               .build();
       ApiFuture<InterceptDeploymentGroup> future =
           interceptClient.getInterceptDeploymentGroupCallable().futureCall(request);
       // Do something.
       InterceptDeploymentGroup 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.GetInterceptDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroup>` |   |

### getInterceptEndpointGroup(GetInterceptEndpointGroupRequest request)

    public final InterceptEndpointGroup getInterceptEndpointGroup(GetInterceptEndpointGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptEndpointGroupRequest request =
           GetInterceptEndpointGroupRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                       .toString())
               .build();
       InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupRequest` 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.InterceptEndpointGroup` |   |

### getInterceptEndpointGroup(InterceptEndpointGroupName name)

    public final InterceptEndpointGroup getInterceptEndpointGroup(InterceptEndpointGroupName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroupName name =
           InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
       InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupName` Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} |

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

### getInterceptEndpointGroup(String name)

    public final InterceptEndpointGroup getInterceptEndpointGroup(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
               .toString();
       InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(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}/interceptEndpointGroups/{intercept_endpoint_group} |

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

### getInterceptEndpointGroupAssociation(GetInterceptEndpointGroupAssociationRequest request)

    public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(GetInterceptEndpointGroupAssociationRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptEndpointGroupAssociationRequest request =
           GetInterceptEndpointGroupAssociationRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupAssociationName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                       .toString())
               .build();
       InterceptEndpointGroupAssociation response =
           interceptClient.getInterceptEndpointGroupAssociation(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.GetInterceptEndpointGroupAssociationRequest` 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.InterceptEndpointGroupAssociation` |   |

### getInterceptEndpointGroupAssociation(InterceptEndpointGroupAssociationName name)

    public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(InterceptEndpointGroupAssociationName 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroupAssociationName name =
           InterceptEndpointGroupAssociationName.of(
               "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]");
       InterceptEndpointGroupAssociation response =
           interceptClient.getInterceptEndpointGroupAssociation(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociationName` Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} |

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

### getInterceptEndpointGroupAssociation(String name)

    public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String name =
           InterceptEndpointGroupAssociationName.of(
                   "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
               .toString();
       InterceptEndpointGroupAssociation response =
           interceptClient.getInterceptEndpointGroupAssociation(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}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} |

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

### getInterceptEndpointGroupAssociationCallable()

    public final UnaryCallable<GetInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation> getInterceptEndpointGroupAssociationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptEndpointGroupAssociationRequest request =
           GetInterceptEndpointGroupAssociationRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupAssociationName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
                       .toString())
               .build();
       ApiFuture<InterceptEndpointGroupAssociation> future =
           interceptClient.getInterceptEndpointGroupAssociationCallable().futureCall(request);
       // Do something.
       InterceptEndpointGroupAssociation 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.GetInterceptEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation>` |   |

### getInterceptEndpointGroupCallable()

    public final UnaryCallable<GetInterceptEndpointGroupRequest,InterceptEndpointGroup> getInterceptEndpointGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetInterceptEndpointGroupRequest request =
           GetInterceptEndpointGroupRequest.newBuilder()
               .setName(
                   InterceptEndpointGroupName.of(
                           "[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
                       .toString())
               .build();
       ApiFuture<InterceptEndpointGroup> future =
           interceptClient.getInterceptEndpointGroupCallable().futureCall(request);
       // Do something.
       InterceptEndpointGroup 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.GetInterceptEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroup>` |   |

### 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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       Location response = interceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
       ApiFuture<Location> future = interceptClient.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>` |   |

### 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 InterceptSettings getSettings()

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

### getStub()

    public InterceptStub getStub()

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

### 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` |   |

### listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest request)

    public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptDeploymentGroupsRequest request =
           ListInterceptDeploymentGroupsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (InterceptDeploymentGroup element :
           interceptClient.listInterceptDeploymentGroups(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.ListInterceptDeploymentGroupsRequest` 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.InterceptClient.ListInterceptDeploymentGroupsPagedResponse` |   |

### listInterceptDeploymentGroups(LocationName parent)

    public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (InterceptDeploymentGroup element :
           interceptClient.listInterceptDeploymentGroups(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.InterceptClient.ListInterceptDeploymentGroupsPagedResponse` |   |

### listInterceptDeploymentGroups(String parent)

    public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (InterceptDeploymentGroup element :
           interceptClient.listInterceptDeploymentGroups(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.InterceptClient.ListInterceptDeploymentGroupsPagedResponse` |   |

### listInterceptDeploymentGroupsCallable()

    public final UnaryCallable<ListInterceptDeploymentGroupsRequest,ListInterceptDeploymentGroupsResponse> listInterceptDeploymentGroupsCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptDeploymentGroupsRequest request =
           ListInterceptDeploymentGroupsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListInterceptDeploymentGroupsResponse response =
             interceptClient.listInterceptDeploymentGroupsCallable().call(request);
         for (InterceptDeploymentGroup element : response.getInterceptDeploymentGroupsList()) {
           // 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.ListInterceptDeploymentGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse>` |   |

### listInterceptDeploymentGroupsPagedCallable()

    public final UnaryCallable<ListInterceptDeploymentGroupsRequest,InterceptClient.ListInterceptDeploymentGroupsPagedResponse> listInterceptDeploymentGroupsPagedCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptDeploymentGroupsRequest request =
           ListInterceptDeploymentGroupsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<InterceptDeploymentGroup> future =
           interceptClient.listInterceptDeploymentGroupsPagedCallable().futureCall(request);
       // Do something.
       for (InterceptDeploymentGroup 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.ListInterceptDeploymentGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentGroupsPagedResponse>` |   |

### listInterceptDeployments(ListInterceptDeploymentsRequest request)

    public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(ListInterceptDeploymentsRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptDeploymentsRequest request =
           ListInterceptDeploymentsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (InterceptDeployment element :
           interceptClient.listInterceptDeployments(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.ListInterceptDeploymentsRequest` 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.InterceptClient.ListInterceptDeploymentsPagedResponse` |   |

### listInterceptDeployments(LocationName parent)

    public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (InterceptDeployment element :
           interceptClient.listInterceptDeployments(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.InterceptClient.ListInterceptDeploymentsPagedResponse` |   |

### listInterceptDeployments(String parent)

    public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (InterceptDeployment element :
           interceptClient.listInterceptDeployments(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.InterceptClient.ListInterceptDeploymentsPagedResponse` |   |

### listInterceptDeploymentsCallable()

    public final UnaryCallable<ListInterceptDeploymentsRequest,ListInterceptDeploymentsResponse> listInterceptDeploymentsCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptDeploymentsRequest request =
           ListInterceptDeploymentsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListInterceptDeploymentsResponse response =
             interceptClient.listInterceptDeploymentsCallable().call(request);
         for (InterceptDeployment element : response.getInterceptDeploymentsList()) {
           // 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.ListInterceptDeploymentsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse>` |   |

### listInterceptDeploymentsPagedCallable()

    public final UnaryCallable<ListInterceptDeploymentsRequest,InterceptClient.ListInterceptDeploymentsPagedResponse> listInterceptDeploymentsPagedCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptDeploymentsRequest request =
           ListInterceptDeploymentsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<InterceptDeployment> future =
           interceptClient.listInterceptDeploymentsPagedCallable().futureCall(request);
       // Do something.
       for (InterceptDeployment 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.ListInterceptDeploymentsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptDeploymentsPagedResponse>` |   |

### listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest request)

    public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptEndpointGroupAssociationsRequest request =
           ListInterceptEndpointGroupAssociationsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (InterceptEndpointGroupAssociation element :
           interceptClient.listInterceptEndpointGroupAssociations(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.ListInterceptEndpointGroupAssociationsRequest` 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.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse` |   |

### listInterceptEndpointGroupAssociations(LocationName parent)

    public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (InterceptEndpointGroupAssociation element :
           interceptClient.listInterceptEndpointGroupAssociations(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.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse` |   |

### listInterceptEndpointGroupAssociations(String parent)

    public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (InterceptEndpointGroupAssociation element :
           interceptClient.listInterceptEndpointGroupAssociations(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.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse` |   |

### listInterceptEndpointGroupAssociationsCallable()

    public final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,ListInterceptEndpointGroupAssociationsResponse> listInterceptEndpointGroupAssociationsCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptEndpointGroupAssociationsRequest request =
           ListInterceptEndpointGroupAssociationsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListInterceptEndpointGroupAssociationsResponse response =
             interceptClient.listInterceptEndpointGroupAssociationsCallable().call(request);
         for (InterceptEndpointGroupAssociation element :
             response.getInterceptEndpointGroupAssociationsList()) {
           // 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.ListInterceptEndpointGroupAssociationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse>` |   |

### listInterceptEndpointGroupAssociationsPagedCallable()

    public final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse> listInterceptEndpointGroupAssociationsPagedCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptEndpointGroupAssociationsRequest request =
           ListInterceptEndpointGroupAssociationsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<InterceptEndpointGroupAssociation> future =
           interceptClient.listInterceptEndpointGroupAssociationsPagedCallable().futureCall(request);
       // Do something.
       for (InterceptEndpointGroupAssociation 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.ListInterceptEndpointGroupAssociationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse>` |   |

### listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest request)

    public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptEndpointGroupsRequest request =
           ListInterceptEndpointGroupsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (InterceptEndpointGroup element :
           interceptClient.listInterceptEndpointGroups(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.ListInterceptEndpointGroupsRequest` 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.InterceptClient.ListInterceptEndpointGroupsPagedResponse` |   |

### listInterceptEndpointGroups(LocationName parent)

    public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(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 (InterceptClient interceptClient = InterceptClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (InterceptEndpointGroup element :
           interceptClient.listInterceptEndpointGroups(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.InterceptClient.ListInterceptEndpointGroupsPagedResponse` |   |

### listInterceptEndpointGroups(String parent)

    public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(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 (InterceptClient interceptClient = InterceptClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (InterceptEndpointGroup element :
           interceptClient.listInterceptEndpointGroups(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.InterceptClient.ListInterceptEndpointGroupsPagedResponse` |   |

### listInterceptEndpointGroupsCallable()

    public final UnaryCallable<ListInterceptEndpointGroupsRequest,ListInterceptEndpointGroupsResponse> listInterceptEndpointGroupsCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptEndpointGroupsRequest request =
           ListInterceptEndpointGroupsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListInterceptEndpointGroupsResponse response =
             interceptClient.listInterceptEndpointGroupsCallable().call(request);
         for (InterceptEndpointGroup element : response.getInterceptEndpointGroupsList()) {
           // 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.ListInterceptEndpointGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse>` |   |

### listInterceptEndpointGroupsPagedCallable()

    public final UnaryCallable<ListInterceptEndpointGroupsRequest,InterceptClient.ListInterceptEndpointGroupsPagedResponse> listInterceptEndpointGroupsPagedCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListInterceptEndpointGroupsRequest request =
           ListInterceptEndpointGroupsRequest.newBuilder()
               .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<InterceptEndpointGroup> future =
           interceptClient.listInterceptEndpointGroupsPagedCallable().futureCall(request);
       // Do something.
       for (InterceptEndpointGroup 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.ListInterceptEndpointGroupsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptClient.ListInterceptEndpointGroupsPagedResponse>` |   |

### listLocations(ListLocationsRequest request)

    public final InterceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       for (Location element : interceptClient.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.InterceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       while (true) {
         ListLocationsResponse response = interceptClient.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,InterceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       ListLocationsRequest request =
           ListLocationsRequest.newBuilder()
               .setName("name3373707")
               .setFilter("filter-1274492040")
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
       ApiFuture<Location> future = interceptClient.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.InterceptClient.ListLocationsPagedResponse>` |   |

### 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 (InterceptClient interceptClient = InterceptClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .setPolicy(Policy.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       Policy response = interceptClient.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 (InterceptClient interceptClient = InterceptClient.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 = interceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .addAllPermissions(new ArrayList<String>())
               .build();
       TestIamPermissionsResponse response = interceptClient.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 (InterceptClient interceptClient = InterceptClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
               .setResource(
                   AddressGroupName.ofProjectLocationAddressGroupName(
                           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
                       .toString())
               .addAllPermissions(new ArrayList<String>())
               .build();
       ApiFuture<TestIamPermissionsResponse> future =
           interceptClient.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>` |   |

### updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, FieldMask updateMask)

    public final OperationFuture<InterceptDeployment,OperationMetadata> updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       InterceptDeployment response =
           interceptClient.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `interceptDeployment` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeployment` 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\* `intercept_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.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest request)

    public final OperationFuture<InterceptDeployment,OperationMetadata> updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptDeploymentRequest request =
           UpdateInterceptDeploymentRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptDeployment(InterceptDeployment.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptDeployment response = interceptClient.updateInterceptDeploymentAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentRequest` 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.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptDeploymentCallable()

    public final UnaryCallable<UpdateInterceptDeploymentRequest,Operation> updateInterceptDeploymentCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptDeploymentRequest request =
           UpdateInterceptDeploymentRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptDeployment(InterceptDeployment.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.updateInterceptDeploymentCallable().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.UpdateInterceptDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, FieldMask updateMask)

    public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptDeploymentGroup interceptDeploymentGroup =
           InterceptDeploymentGroup.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       InterceptDeploymentGroup response =
           interceptClient
               .updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `interceptDeploymentGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroup` 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\* `intercept_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.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest request)

    public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptDeploymentGroupRequest request =
           UpdateInterceptDeploymentGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptDeploymentGroup response =
           interceptClient.updateInterceptDeploymentGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateInterceptDeploymentGroupRequest` 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.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptDeploymentGroupCallable()

    public final UnaryCallable<UpdateInterceptDeploymentGroupRequest,Operation> updateInterceptDeploymentGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptDeploymentGroupRequest request =
           UpdateInterceptDeploymentGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.updateInterceptDeploymentGroupCallable().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.UpdateInterceptDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateInterceptDeploymentGroupOperationCallable()

    public final OperationCallable<UpdateInterceptDeploymentGroupRequest,InterceptDeploymentGroup,OperationMetadata> updateInterceptDeploymentGroupOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptDeploymentGroupRequest request =
           UpdateInterceptDeploymentGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptDeploymentGroup, OperationMetadata> future =
           interceptClient.updateInterceptDeploymentGroupOperationCallable().futureCall(request);
       // Do something.
       InterceptDeploymentGroup 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.UpdateInterceptDeploymentGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeploymentGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptDeploymentOperationCallable()

    public final OperationCallable<UpdateInterceptDeploymentRequest,InterceptDeployment,OperationMetadata> updateInterceptDeploymentOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptDeploymentRequest request =
           UpdateInterceptDeploymentRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptDeployment(InterceptDeployment.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptDeployment, OperationMetadata> future =
           interceptClient.updateInterceptDeploymentOperationCallable().futureCall(request);
       // Do something.
       InterceptDeployment 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.UpdateInterceptDeploymentRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptDeployment,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, FieldMask updateMask)

    public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
           InterceptEndpointGroupAssociation.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       InterceptEndpointGroupAssociation response =
           interceptClient
               .updateInterceptEndpointGroupAssociationAsync(
                   interceptEndpointGroupAssociation, updateMask)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `interceptEndpointGroupAssociation` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation` 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\* `intercept_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.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest request)

    public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptEndpointGroupAssociationRequest request =
           UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptEndpointGroupAssociation(
                   InterceptEndpointGroupAssociation.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptEndpointGroupAssociation response =
           interceptClient.updateInterceptEndpointGroupAssociationAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupAssociationRequest` 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.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptEndpointGroupAssociationCallable()

    public final UnaryCallable<UpdateInterceptEndpointGroupAssociationRequest,Operation> updateInterceptEndpointGroupAssociationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptEndpointGroupAssociationRequest request =
           UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptEndpointGroupAssociation(
                   InterceptEndpointGroupAssociation.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.updateInterceptEndpointGroupAssociationCallable().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.UpdateInterceptEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateInterceptEndpointGroupAssociationOperationCallable()

    public final OperationCallable<UpdateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation,OperationMetadata> updateInterceptEndpointGroupAssociationOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptEndpointGroupAssociationRequest request =
           UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptEndpointGroupAssociation(
                   InterceptEndpointGroupAssociation.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptEndpointGroupAssociation, OperationMetadata> future =
           interceptClient
               .updateInterceptEndpointGroupAssociationOperationCallable()
               .futureCall(request);
       // Do something.
       InterceptEndpointGroupAssociation 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.UpdateInterceptEndpointGroupAssociationRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, FieldMask updateMask)

    public final OperationFuture<InterceptEndpointGroup,OperationMetadata> updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, 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 (InterceptClient interceptClient = InterceptClient.create()) {
       InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       InterceptEndpointGroup response =
           interceptClient
               .updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask)
               .get();
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `interceptEndpointGroup` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroup` 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\* `intercept_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.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest request)

    public final OperationFuture<InterceptEndpointGroup,OperationMetadata> updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest 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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptEndpointGroupRequest request =
           UpdateInterceptEndpointGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       InterceptEndpointGroup response =
           interceptClient.updateInterceptEndpointGroupAsync(request).get();
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.UpdateInterceptEndpointGroupRequest` 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.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |

### updateInterceptEndpointGroupCallable()

    public final UnaryCallable<UpdateInterceptEndpointGroupRequest,Operation> updateInterceptEndpointGroupCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptEndpointGroupRequest request =
           UpdateInterceptEndpointGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       ApiFuture<Operation> future =
           interceptClient.updateInterceptEndpointGroupCallable().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.UpdateInterceptEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### updateInterceptEndpointGroupOperationCallable()

    public final OperationCallable<UpdateInterceptEndpointGroupRequest,InterceptEndpointGroup,OperationMetadata> updateInterceptEndpointGroupOperationCallable()

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 (InterceptClient interceptClient = InterceptClient.create()) {
       UpdateInterceptEndpointGroupRequest request =
           UpdateInterceptEndpointGroupRequest.newBuilder()
               .setUpdateMask(FieldMask.newBuilder().build())
               .setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
               .setRequestId("requestId693933066")
               .build();
       OperationFuture<InterceptEndpointGroup, OperationMetadata> future =
           interceptClient.updateInterceptEndpointGroupOperationCallable().futureCall(request);
       // Do something.
       InterceptEndpointGroup 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.UpdateInterceptEndpointGroupRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.InterceptEndpointGroup,https://docs.cloud.google.com/java/docs/reference/google-cloud-network-security/latest/com.google.cloud.networksecurity.v1.OperationMetadata>` |   |