Class InterceptClient

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

@Generated("by gapic-generator-java") public class InterceptClient extends Object implements BackgroundResource
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().

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

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.

  • Constructor Details

    • InterceptClient

      protected InterceptClient(InterceptSettings settings) throws IOException
      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.
      Throws:
      IOException
    • InterceptClient

      protected InterceptClient(InterceptStub stub)
  • Method Details

    • create

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

      public static final InterceptClient create(InterceptSettings settings) throws IOException
      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.
      Throws:
      IOException
    • create

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

      public final InterceptSettings getSettings()
    • getStub

      public InterceptStub getStub()
    • getOperationsClient

      public final OperationsClient getOperationsClient()
      Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
    • listInterceptEndpointGroups

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptEndpointGroups

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptEndpointGroups

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getInterceptEndpointGroup

      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);
       }
       
      Parameters:
      name - Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
      Throws:
      ApiException - if the remote call fails
    • getInterceptEndpointGroup

      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);
       }
       
      Parameters:
      name - Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
      Throws:
      ApiException - if the remote call fails
    • getInterceptEndpointGroup

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createInterceptEndpointGroupAsync

      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:
      parent - Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location}
      interceptEndpointGroup - Required. The endpoint group to create.
      interceptEndpointGroupId - Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createInterceptEndpointGroupAsync

      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:
      parent - Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location}
      interceptEndpointGroup - Required. The endpoint group to create.
      interceptEndpointGroupId - Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createInterceptEndpointGroupAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • updateInterceptEndpointGroupAsync

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (InterceptClient interceptClient = InterceptClient.create()) {
         InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         InterceptEndpointGroup response =
             interceptClient
                 .updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask)
                 .get();
       }
       
      Parameters:
      interceptEndpointGroup - Required. The endpoint group to update.
      updateMask - Optional. The list of fields to update. Fields are specified relative to the endpoint group (e.g. `description`; *not* `intercept_endpoint_group.description`). See https://google.aip.dev/161 for more details.
      Throws:
      ApiException - if the remote call fails
    • updateInterceptEndpointGroupAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • deleteInterceptEndpointGroupAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The endpoint group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptEndpointGroupAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The endpoint group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptEndpointGroupAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptEndpointGroupOperationCallable

      public final OperationCallable<DeleteInterceptEndpointGroupRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • listInterceptEndpointGroupAssociations

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptEndpointGroupAssociations

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptEndpointGroupAssociations

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getInterceptEndpointGroupAssociation

      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);
       }
       
      Parameters:
      name - Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
      Throws:
      ApiException - if the remote call fails
    • getInterceptEndpointGroupAssociation

      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);
       }
       
      Parameters:
      name - Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
      Throws:
      ApiException - if the remote call fails
    • getInterceptEndpointGroupAssociation

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createInterceptEndpointGroupAssociationAsync

      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:
      parent - Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location}
      interceptEndpointGroupAssociation - Required. The association to create.
      interceptEndpointGroupAssociationId - Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.
      Throws:
      ApiException - if the remote call fails
    • createInterceptEndpointGroupAssociationAsync

      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:
      parent - Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location}
      interceptEndpointGroupAssociation - Required. The association to create.
      interceptEndpointGroupAssociationId - Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.
      Throws:
      ApiException - if the remote call fails
    • createInterceptEndpointGroupAssociationAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • updateInterceptEndpointGroupAssociationAsync

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (InterceptClient interceptClient = InterceptClient.create()) {
         InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
             InterceptEndpointGroupAssociation.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         InterceptEndpointGroupAssociation response =
             interceptClient
                 .updateInterceptEndpointGroupAssociationAsync(
                     interceptEndpointGroupAssociation, updateMask)
                 .get();
       }
       
      Parameters:
      interceptEndpointGroupAssociation - Required. The association to update.
      updateMask - 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.
      Throws:
      ApiException - if the remote call fails
    • updateInterceptEndpointGroupAssociationAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • deleteInterceptEndpointGroupAssociationAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The association to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptEndpointGroupAssociationAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The association to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptEndpointGroupAssociationAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptEndpointGroupAssociationOperationCallable

      public final OperationCallable<DeleteInterceptEndpointGroupAssociationRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • listInterceptDeploymentGroups

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptDeploymentGroups

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptDeploymentGroups

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getInterceptDeploymentGroup

      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);
       }
       
      Parameters:
      name - Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
      Throws:
      ApiException - if the remote call fails
    • getInterceptDeploymentGroup

      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);
       }
       
      Parameters:
      name - Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
      Throws:
      ApiException - if the remote call fails
    • getInterceptDeploymentGroup

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createInterceptDeploymentGroupAsync

      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:
      parent - Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location}
      interceptDeploymentGroup - Required. The deployment group to create.
      interceptDeploymentGroupId - Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createInterceptDeploymentGroupAsync

      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:
      parent - Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location}
      interceptDeploymentGroup - Required. The deployment group to create.
      interceptDeploymentGroupId - Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.
      Throws:
      ApiException - if the remote call fails
    • createInterceptDeploymentGroupAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • updateInterceptDeploymentGroupAsync

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (InterceptClient interceptClient = InterceptClient.create()) {
         InterceptDeploymentGroup interceptDeploymentGroup =
             InterceptDeploymentGroup.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         InterceptDeploymentGroup response =
             interceptClient
                 .updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask)
                 .get();
       }
       
      Parameters:
      interceptDeploymentGroup - Required. The deployment group to update.
      updateMask - Optional. The list of fields to update. Fields are specified relative to the deployment group (e.g. `description`; *not* `intercept_deployment_group.description`). See https://google.aip.dev/161 for more details.
      Throws:
      ApiException - if the remote call fails
    • updateInterceptDeploymentGroupAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • deleteInterceptDeploymentGroupAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The deployment group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptDeploymentGroupAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. The deployment group to delete.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptDeploymentGroupAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptDeploymentGroupOperationCallable

      public final OperationCallable<DeleteInterceptDeploymentGroupRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • listInterceptDeployments

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployments. Example: `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptDeployments

      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);
         }
       }
       
      Parameters:
      parent - Required. The parent, which owns this collection of deployments. Example: `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more details.
      Throws:
      ApiException - if the remote call fails
    • listInterceptDeployments

      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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getInterceptDeployment

      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);
       }
       
      Parameters:
      name - Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
      Throws:
      ApiException - if the remote call fails
    • getInterceptDeployment

      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);
       }
       
      Parameters:
      name - Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
      Throws:
      ApiException - if the remote call fails
    • getInterceptDeployment

      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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • createInterceptDeploymentAsync

      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:
      parent - Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location}
      interceptDeployment - Required. The deployment to create.
      interceptDeploymentId - Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.
      Throws:
      ApiException - if the remote call fails
    • createInterceptDeploymentAsync

      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:
      parent - Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location}
      interceptDeployment - Required. The deployment to create.
      interceptDeploymentId - Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.
      Throws:
      ApiException - if the remote call fails
    • createInterceptDeploymentAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • updateInterceptDeploymentAsync

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (InterceptClient interceptClient = InterceptClient.create()) {
         InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
         FieldMask updateMask = FieldMask.newBuilder().build();
         InterceptDeployment response =
             interceptClient.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get();
       }
       
      Parameters:
      interceptDeployment - Required. The deployment to update.
      updateMask - 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.
      Throws:
      ApiException - if the remote call fails
    • updateInterceptDeploymentAsync

      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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • 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();
       }
       
    • 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();
       }
       
    • deleteInterceptDeploymentAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. Name of the resource
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptDeploymentAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      name - Required. Name of the resource
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptDeploymentAsync

      public final OperationFuture<com.google.protobuf.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();
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • deleteInterceptDeploymentOperationCallable

      public final OperationCallable<DeleteInterceptDeploymentRequest,com.google.protobuf.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();
       }
       
    • 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();
       }
       
    • listLocations

      Lists information about the supported locations for this service.

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

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

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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);
         }
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • listLocationsPagedCallable

      Lists information about the supported locations for this service.

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

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

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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);
         }
       }
       
    • 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;
           }
         }
       }
       
    • getLocation

      public final Location getLocation(GetLocationRequest request)
      Gets information about a location.

      Sample code:

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

      public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()
      Gets information about a location.

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (InterceptClient interceptClient = InterceptClient.create()) {
         GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
         ApiFuture<Location> future = interceptClient.getLocationCallable().futureCall(request);
         // Do something.
         Location response = future.get();
       }
       
    • setIamPolicy

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

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • setIamPolicyCallable

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

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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();
       }
       
    • getIamPolicy

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • getIamPolicyCallable

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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();
       }
       
    • testIamPermissions

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

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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);
       }
       
      Parameters:
      request - The request object containing all of the parameters for the API call.
      Throws:
      ApiException - if the remote call fails
    • testIamPermissionsCallable

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

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

      Sample code:

      
       // This snippet has been automatically generated and should be regarded as a code template only.
       // It will require modifications to work:
       // - It may require correct/in-range values for request initialization.
       // - It may require specifying regional endpoints when creating the service client as shown in
       // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
       try (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();
       }
       
    • close

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

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

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

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

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

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