Class InterceptClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupName name =
InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
}
Note: close() needs to be called on the InterceptClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
ListInterceptEndpointGroups |
Lists endpoint groups in a given project and location. See https://google.aip.dev/132. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInterceptClient(InterceptSettings settings) Constructs an instance of InterceptClient, using the given settings.protectedInterceptClient(InterceptStub stub) -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final InterceptClientcreate()Constructs an instance of InterceptClient with default settings.static final InterceptClientcreate(InterceptSettings settings) Constructs an instance of InterceptClient, using the given settings.static final InterceptClientcreate(InterceptStub stub) Constructs an instance of InterceptClient, using the given stub for making calls.Creates a deployment in a given project and location.createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) Creates a deployment in a given project and location.createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) Creates a deployment in a given project and location.Creates a deployment in a given project and location.Creates a deployment group in a given project and location.createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) Creates a deployment group in a given project and location.createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) Creates a deployment group in a given project and location.Creates a deployment group in a given project and location.final OperationCallable<CreateInterceptDeploymentGroupRequest,InterceptDeploymentGroup, OperationMetadata> Creates a deployment group in a given project and location.Creates a deployment in a given project and location.createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest request) Creates an association in a given project and location.createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) Creates an association in a given project and location.createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) Creates an association in a given project and location.Creates an association in a given project and location.final OperationCallable<CreateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation, OperationMetadata> Creates an association in a given project and location.Creates an endpoint group in a given project and location.createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) Creates an endpoint group in a given project and location.createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) Creates an endpoint group in a given project and location.Creates an endpoint group in a given project and location.final OperationCallable<CreateInterceptEndpointGroupRequest,InterceptEndpointGroup, OperationMetadata> Creates an endpoint group in a given project and location.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a deployment.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a deployment.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a deployment.Deletes a deployment.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a deployment group.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a deployment group.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a deployment group.Deletes a deployment group.final OperationCallable<DeleteInterceptDeploymentGroupRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a deployment group.final OperationCallable<DeleteInterceptDeploymentRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a deployment.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest request) Deletes an association.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an association.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an association.Deletes an association.final OperationCallable<DeleteInterceptEndpointGroupAssociationRequest,com.google.protobuf.Empty, OperationMetadata> Deletes an association.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an endpoint group.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an endpoint group.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an endpoint group.Deletes an endpoint group.final OperationCallable<DeleteInterceptEndpointGroupRequest,com.google.protobuf.Empty, OperationMetadata> Deletes an endpoint group.final PolicygetIamPolicy(GetIamPolicyRequest request) Gets the access control policy for a resource.Gets the access control policy for a resource.final InterceptDeploymentGets a specific deployment.final InterceptDeploymentGets a specific deployment.final InterceptDeploymentgetInterceptDeployment(String name) Gets a specific deployment.Gets a specific deployment.final InterceptDeploymentGroupGets a specific deployment group.final InterceptDeploymentGroupGets a specific deployment group.final InterceptDeploymentGroupGets a specific deployment group.Gets a specific deployment group.final InterceptEndpointGroupGets a specific endpoint group.final InterceptEndpointGroupGets a specific endpoint group.final InterceptEndpointGroupGets a specific endpoint group.Gets a specific association.Gets a specific association.Gets a specific association.Gets a specific association.Gets a specific endpoint group.final LocationgetLocation(GetLocationRequest request) Gets information about a location.Gets information about a location.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final InterceptSettingsgetStub()booleanbooleanLists deployment groups in a given project and location.Lists deployment groups in a given project and location.listInterceptDeploymentGroups(String parent) Lists deployment groups in a given project and location.Lists deployment groups in a given project and location.final UnaryCallable<ListInterceptDeploymentGroupsRequest,InterceptClient.ListInterceptDeploymentGroupsPagedResponse> Lists deployment groups in a given project and location.Lists deployments in a given project and location.listInterceptDeployments(LocationName parent) Lists deployments in a given project and location.listInterceptDeployments(String parent) Lists deployments in a given project and location.Lists deployments in a given project and location.final UnaryCallable<ListInterceptDeploymentsRequest,InterceptClient.ListInterceptDeploymentsPagedResponse> Lists deployments in a given project and location.Lists associations in a given project and location.Lists associations in a given project and location.Lists associations in a given project and location.final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,ListInterceptEndpointGroupAssociationsResponse> Lists associations in a given project and location.final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse> Lists associations in a given project and location.Lists endpoint groups in a given project and location.Lists endpoint groups in a given project and location.listInterceptEndpointGroups(String parent) Lists endpoint groups in a given project and location.Lists endpoint groups in a given project and location.final UnaryCallable<ListInterceptEndpointGroupsRequest,InterceptClient.ListInterceptEndpointGroupsPagedResponse> Lists endpoint groups in a given project and location.listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Lists information about the supported locations for this service.Lists information about the supported locations for this service.final PolicysetIamPolicy(SetIamPolicyRequest request) Sets the access control policy on the specified resource.Sets the access control policy on the specified resource.voidshutdown()voidReturns permissions that a caller has on the specified resource.Returns permissions that a caller has on the specified resource.updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, com.google.protobuf.FieldMask updateMask) Updates a deployment.Updates a deployment.Updates a deployment.updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, com.google.protobuf.FieldMask updateMask) Updates a deployment group.Updates a deployment group.Updates a deployment group.final OperationCallable<UpdateInterceptDeploymentGroupRequest,InterceptDeploymentGroup, OperationMetadata> Updates a deployment group.Updates a deployment.updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, com.google.protobuf.FieldMask updateMask) Updates an association.updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest request) Updates an association.Updates an association.final OperationCallable<UpdateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation, OperationMetadata> Updates an association.updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, com.google.protobuf.FieldMask updateMask) Updates an endpoint group.Updates an endpoint group.Updates an endpoint group.final OperationCallable<UpdateInterceptEndpointGroupRequest,InterceptEndpointGroup, OperationMetadata> Updates an endpoint group.
-
Constructor Details
-
InterceptClient
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
-
-
Method Details
-
create
Constructs an instance of InterceptClient with default settings.- Throws:
IOException
-
create
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
Constructs an instance of InterceptClient, using the given stub for making calls. This is for advanced usage - prefer using create(InterceptSettings). -
getSettings
-
getStub
-
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
public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest request) Lists endpoint groups in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptEndpointGroupsRequest request = ListInterceptEndpointGroupsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (InterceptEndpointGroup element : interceptClient.listInterceptEndpointGroups(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listInterceptEndpointGroupsPagedCallable
public final UnaryCallable<ListInterceptEndpointGroupsRequest,InterceptClient.ListInterceptEndpointGroupsPagedResponse> listInterceptEndpointGroupsPagedCallable()Lists endpoint groups in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptEndpointGroupsRequest request = ListInterceptEndpointGroupsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<InterceptEndpointGroup> future = interceptClient.listInterceptEndpointGroupsPagedCallable().futureCall(request); // Do something. for (InterceptEndpointGroup element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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, createInterceptEndpointGroupOperationCallable()OperationMetadata> 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, updateInterceptEndpointGroupOperationCallable()OperationMetadata> 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, deleteInterceptEndpointGroupOperationCallable()OperationMetadata> 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
public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest request) Lists associations in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptEndpointGroupAssociationsRequest request = ListInterceptEndpointGroupAssociationsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (InterceptEndpointGroupAssociation element : interceptClient.listInterceptEndpointGroupAssociations(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listInterceptEndpointGroupAssociationsPagedCallable
public final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse> listInterceptEndpointGroupAssociationsPagedCallable()Lists associations in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptEndpointGroupAssociationsRequest request = ListInterceptEndpointGroupAssociationsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<InterceptEndpointGroupAssociation> future = interceptClient.listInterceptEndpointGroupAssociationsPagedCallable().futureCall(request); // Do something. for (InterceptEndpointGroupAssociation element : future.get().iterateAll()) { // doThingsWith(element); } } -
listInterceptEndpointGroupAssociationsCallable
public final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,ListInterceptEndpointGroupAssociationsResponse> listInterceptEndpointGroupAssociationsCallable()Lists associations in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptEndpointGroupAssociationsRequest request = ListInterceptEndpointGroupAssociationsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListInterceptEndpointGroupAssociationsResponse response = interceptClient.listInterceptEndpointGroupAssociationsCallable().call(request); for (InterceptEndpointGroupAssociation element : response.getInterceptEndpointGroupAssociationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
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
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, createInterceptEndpointGroupAssociationOperationCallable()OperationMetadata> 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, updateInterceptEndpointGroupAssociationOperationCallable()OperationMetadata> 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, deleteInterceptEndpointGroupAssociationOperationCallable()OperationMetadata> 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
public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest request) Lists deployment groups in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptDeploymentGroupsRequest request = ListInterceptDeploymentGroupsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (InterceptDeploymentGroup element : interceptClient.listInterceptDeploymentGroups(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listInterceptDeploymentGroupsPagedCallable
public final UnaryCallable<ListInterceptDeploymentGroupsRequest,InterceptClient.ListInterceptDeploymentGroupsPagedResponse> listInterceptDeploymentGroupsPagedCallable()Lists deployment groups in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptDeploymentGroupsRequest request = ListInterceptDeploymentGroupsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<InterceptDeploymentGroup> future = interceptClient.listInterceptDeploymentGroupsPagedCallable().futureCall(request); // Do something. for (InterceptDeploymentGroup element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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, createInterceptDeploymentGroupOperationCallable()OperationMetadata> 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, updateInterceptDeploymentGroupOperationCallable()OperationMetadata> 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, deleteInterceptDeploymentGroupOperationCallable()OperationMetadata> 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
public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(ListInterceptDeploymentsRequest request) Lists deployments in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptDeploymentsRequest request = ListInterceptDeploymentsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (InterceptDeployment element : interceptClient.listInterceptDeployments(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listInterceptDeploymentsPagedCallable
public final UnaryCallable<ListInterceptDeploymentsRequest,InterceptClient.ListInterceptDeploymentsPagedResponse> listInterceptDeploymentsPagedCallable()Lists deployments in a given project and location. See https://google.aip.dev/132.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListInterceptDeploymentsRequest request = ListInterceptDeploymentsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<InterceptDeployment> future = interceptClient.listInterceptDeploymentsPagedCallable().futureCall(request); // Do something. for (InterceptDeployment element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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
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, createInterceptDeploymentOperationCallable()OperationMetadata> 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, updateInterceptDeploymentOperationCallable()OperationMetadata> 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, deleteInterceptDeploymentOperationCallable()OperationMetadata> 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
public final UnaryCallable<ListLocationsRequest,InterceptClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project.
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (InterceptClient interceptClient = InterceptClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<Location> future = interceptClient.listLocationsPagedCallable().futureCall(request); // Do something. for (Location element : future.get().iterateAll()) { // doThingsWith(element); } } -
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
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
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
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
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
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
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
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:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-