| GitHub Repository | Product Reference |
Service Description: Service for Third-Party Packet Intercept (TPPI). TPPI is the "in-band" flavor of the Network Security Integrations product.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupName name =
InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
}
Note: close() needs to be called on the InterceptClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
ListInterceptEndpointGroups |
Lists endpoint groups in a given project and location. See https://google.aip.dev/132. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"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
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
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
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
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
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
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
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
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
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
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
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
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 For gRPC and client library implementations, the resource name ispassed as the |
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 |
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 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.
Static Methods
create()
public static final InterceptClient create()Constructs an instance of InterceptClient with default settings.
| Returns | |
|---|---|
| Type | Description |
InterceptClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(InterceptSettings settings)
public static final InterceptClient create(InterceptSettings settings)Constructs an instance of InterceptClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
| Parameter | |
|---|---|
| Name | Description |
settings |
InterceptSettings |
| Returns | |
|---|---|
| Type | Description |
InterceptClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(InterceptStub stub)
public static final InterceptClient create(InterceptStub stub)Constructs an instance of InterceptClient, using the given stub for making calls. This is for advanced usage - prefer using create(InterceptSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
InterceptStub |
| Returns | |
|---|---|
| Type | Description |
InterceptClient |
|
Constructors
InterceptClient(InterceptSettings settings)
protected InterceptClient(InterceptSettings settings)Constructs an instance of InterceptClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
| Parameter | |
|---|---|
| Name | Description |
settings |
InterceptSettings |
InterceptClient(InterceptStub stub)
protected InterceptClient(InterceptStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
InterceptStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Parameters | |
|---|---|
| Name | Description |
duration |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
| Exceptions | |
|---|---|
| Type | Description |
InterruptedException |
|
close()
public final void close()createInterceptDeploymentAsync(CreateInterceptDeploymentRequest request)
public final OperationFuture<InterceptDeployment,OperationMetadata> createInterceptDeploymentAsync(CreateInterceptDeploymentRequest request)Creates a deployment in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptDeploymentRequest request =
CreateInterceptDeploymentRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptDeploymentId("interceptDeploymentId-240023390")
.setInterceptDeployment(InterceptDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptDeployment response = interceptClient.createInterceptDeploymentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateInterceptDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeployment,OperationMetadata> |
|
createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)
public final OperationFuture<InterceptDeployment,OperationMetadata> createInterceptDeploymentAsync(LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)Creates a deployment in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
String interceptDeploymentId = "interceptDeploymentId-240023390";
InterceptDeployment response =
interceptClient
.createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location} |
interceptDeployment |
InterceptDeploymentRequired. The deployment to create. |
interceptDeploymentId |
StringRequired. The ID to use for the new deployment, which will become the final component of the deployment's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeployment,OperationMetadata> |
|
createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)
public final OperationFuture<InterceptDeployment,OperationMetadata> createInterceptDeploymentAsync(String parent, InterceptDeployment interceptDeployment, String interceptDeploymentId)Creates a deployment in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
String interceptDeploymentId = "interceptDeploymentId-240023390";
InterceptDeployment response =
interceptClient
.createInterceptDeploymentAsync(parent, interceptDeployment, interceptDeploymentId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location} |
interceptDeployment |
InterceptDeploymentRequired. The deployment to create. |
interceptDeploymentId |
StringRequired. The ID to use for the new deployment, which will become the final component of the deployment's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeployment,OperationMetadata> |
|
createInterceptDeploymentCallable()
public final UnaryCallable<CreateInterceptDeploymentRequest,Operation> createInterceptDeploymentCallable()Creates a deployment in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptDeploymentRequest request =
CreateInterceptDeploymentRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptDeploymentId("interceptDeploymentId-240023390")
.setInterceptDeployment(InterceptDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.createInterceptDeploymentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateInterceptDeploymentRequest,Operation> |
|
createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest request)
public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupAsync(CreateInterceptDeploymentGroupRequest request)Creates a deployment group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptDeploymentGroupRequest request =
CreateInterceptDeploymentGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
.setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptDeploymentGroup response =
interceptClient.createInterceptDeploymentGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateInterceptDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeploymentGroup,OperationMetadata> |
|
createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)
public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupAsync(LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)Creates a deployment group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
InterceptDeploymentGroup interceptDeploymentGroup =
InterceptDeploymentGroup.newBuilder().build();
String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995";
InterceptDeploymentGroup response =
interceptClient
.createInterceptDeploymentGroupAsync(
parent, interceptDeploymentGroup, interceptDeploymentGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location} |
interceptDeploymentGroup |
InterceptDeploymentGroupRequired. The deployment group to create. |
interceptDeploymentGroupId |
StringRequired. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeploymentGroup,OperationMetadata> |
|
createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)
public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupAsync(String parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId)Creates a deployment group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
InterceptDeploymentGroup interceptDeploymentGroup =
InterceptDeploymentGroup.newBuilder().build();
String interceptDeploymentGroupId = "interceptDeploymentGroupId1356790995";
InterceptDeploymentGroup response =
interceptClient
.createInterceptDeploymentGroupAsync(
parent, interceptDeploymentGroup, interceptDeploymentGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location} |
interceptDeploymentGroup |
InterceptDeploymentGroupRequired. The deployment group to create. |
interceptDeploymentGroupId |
StringRequired. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeploymentGroup,OperationMetadata> |
|
createInterceptDeploymentGroupCallable()
public final UnaryCallable<CreateInterceptDeploymentGroupRequest,Operation> createInterceptDeploymentGroupCallable()Creates a deployment group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptDeploymentGroupRequest request =
CreateInterceptDeploymentGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
.setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.createInterceptDeploymentGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateInterceptDeploymentGroupRequest,Operation> |
|
createInterceptDeploymentGroupOperationCallable()
public final OperationCallable<CreateInterceptDeploymentGroupRequest,InterceptDeploymentGroup,OperationMetadata> createInterceptDeploymentGroupOperationCallable()Creates a deployment group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptDeploymentGroupRequest request =
CreateInterceptDeploymentGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptDeploymentGroupId("interceptDeploymentGroupId1356790995")
.setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptDeploymentGroup, OperationMetadata> future =
interceptClient.createInterceptDeploymentGroupOperationCallable().futureCall(request);
// Do something.
InterceptDeploymentGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateInterceptDeploymentGroupRequest,InterceptDeploymentGroup,OperationMetadata> |
|
createInterceptDeploymentOperationCallable()
public final OperationCallable<CreateInterceptDeploymentRequest,InterceptDeployment,OperationMetadata> createInterceptDeploymentOperationCallable()Creates a deployment in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptDeploymentRequest request =
CreateInterceptDeploymentRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptDeploymentId("interceptDeploymentId-240023390")
.setInterceptDeployment(InterceptDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptDeployment, OperationMetadata> future =
interceptClient.createInterceptDeploymentOperationCallable().futureCall(request);
// Do something.
InterceptDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateInterceptDeploymentRequest,InterceptDeployment,OperationMetadata> |
|
createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest request)
public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationAsync(CreateInterceptEndpointGroupAssociationRequest request)Creates an association in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptEndpointGroupAssociationRequest request =
CreateInterceptEndpointGroupAssociationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptEndpointGroupAssociationId(
"interceptEndpointGroupAssociationId-1931364844")
.setInterceptEndpointGroupAssociation(
InterceptEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptEndpointGroupAssociation response =
interceptClient.createInterceptEndpointGroupAssociationAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateInterceptEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> |
|
createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)
public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationAsync(LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)Creates an association in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
InterceptEndpointGroupAssociation.newBuilder().build();
String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844";
InterceptEndpointGroupAssociation response =
interceptClient
.createInterceptEndpointGroupAssociationAsync(
parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
interceptEndpointGroupAssociation |
InterceptEndpointGroupAssociationRequired. The association to create. |
interceptEndpointGroupAssociationId |
StringOptional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> |
|
createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)
public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationAsync(String parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId)Creates an association in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
InterceptEndpointGroupAssociation.newBuilder().build();
String interceptEndpointGroupAssociationId = "interceptEndpointGroupAssociationId-1931364844";
InterceptEndpointGroupAssociation response =
interceptClient
.createInterceptEndpointGroupAssociationAsync(
parent, interceptEndpointGroupAssociation, interceptEndpointGroupAssociationId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
interceptEndpointGroupAssociation |
InterceptEndpointGroupAssociationRequired. The association to create. |
interceptEndpointGroupAssociationId |
StringOptional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> |
|
createInterceptEndpointGroupAssociationCallable()
public final UnaryCallable<CreateInterceptEndpointGroupAssociationRequest,Operation> createInterceptEndpointGroupAssociationCallable()Creates an association in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptEndpointGroupAssociationRequest request =
CreateInterceptEndpointGroupAssociationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptEndpointGroupAssociationId(
"interceptEndpointGroupAssociationId-1931364844")
.setInterceptEndpointGroupAssociation(
InterceptEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.createInterceptEndpointGroupAssociationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateInterceptEndpointGroupAssociationRequest,Operation> |
|
createInterceptEndpointGroupAssociationOperationCallable()
public final OperationCallable<CreateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation,OperationMetadata> createInterceptEndpointGroupAssociationOperationCallable()Creates an association in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptEndpointGroupAssociationRequest request =
CreateInterceptEndpointGroupAssociationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptEndpointGroupAssociationId(
"interceptEndpointGroupAssociationId-1931364844")
.setInterceptEndpointGroupAssociation(
InterceptEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptEndpointGroupAssociation, OperationMetadata> future =
interceptClient
.createInterceptEndpointGroupAssociationOperationCallable()
.futureCall(request);
// Do something.
InterceptEndpointGroupAssociation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation,OperationMetadata> |
|
createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest request)
public final OperationFuture<InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupAsync(CreateInterceptEndpointGroupRequest request)Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptEndpointGroupRequest request =
CreateInterceptEndpointGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
.setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptEndpointGroup response =
interceptClient.createInterceptEndpointGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateInterceptEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroup,OperationMetadata> |
|
createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)
public final OperationFuture<InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupAsync(LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189";
InterceptEndpointGroup response =
interceptClient
.createInterceptEndpointGroupAsync(
parent, interceptEndpointGroup, interceptEndpointGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location} |
interceptEndpointGroup |
InterceptEndpointGroupRequired. The endpoint group to create. |
interceptEndpointGroupId |
StringRequired. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroup,OperationMetadata> |
|
createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)
public final OperationFuture<InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupAsync(String parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId)Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
String interceptEndpointGroupId = "interceptEndpointGroupId-1281880189";
InterceptEndpointGroup response =
interceptClient
.createInterceptEndpointGroupAsync(
parent, interceptEndpointGroup, interceptEndpointGroupId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location} |
interceptEndpointGroup |
InterceptEndpointGroupRequired. The endpoint group to create. |
interceptEndpointGroupId |
StringRequired. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroup,OperationMetadata> |
|
createInterceptEndpointGroupCallable()
public final UnaryCallable<CreateInterceptEndpointGroupRequest,Operation> createInterceptEndpointGroupCallable()Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptEndpointGroupRequest request =
CreateInterceptEndpointGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
.setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.createInterceptEndpointGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateInterceptEndpointGroupRequest,Operation> |
|
createInterceptEndpointGroupOperationCallable()
public final OperationCallable<CreateInterceptEndpointGroupRequest,InterceptEndpointGroup,OperationMetadata> createInterceptEndpointGroupOperationCallable()Creates an endpoint group in a given project and location. See https://google.aip.dev/133.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
CreateInterceptEndpointGroupRequest request =
CreateInterceptEndpointGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInterceptEndpointGroupId("interceptEndpointGroupId-1281880189")
.setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptEndpointGroup, OperationMetadata> future =
interceptClient.createInterceptEndpointGroupOperationCallable().futureCall(request);
// Do something.
InterceptEndpointGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<CreateInterceptEndpointGroupRequest,InterceptEndpointGroup,OperationMetadata> |
|
deleteInterceptDeploymentAsync(DeleteInterceptDeploymentRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentAsync(DeleteInterceptDeploymentRequest request)Deletes a deployment. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptDeploymentRequest request =
DeleteInterceptDeploymentRequest.newBuilder()
.setName(
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
interceptClient.deleteInterceptDeploymentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteInterceptDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptDeploymentAsync(InterceptDeploymentName name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentAsync(InterceptDeploymentName name)Deletes a deployment. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptDeploymentName name =
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]");
interceptClient.deleteInterceptDeploymentAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptDeploymentNameRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptDeploymentAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentAsync(String name)Deletes a deployment. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString();
interceptClient.deleteInterceptDeploymentAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the resource |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptDeploymentCallable()
public final UnaryCallable<DeleteInterceptDeploymentRequest,Operation> deleteInterceptDeploymentCallable()Deletes a deployment. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptDeploymentRequest request =
DeleteInterceptDeploymentRequest.newBuilder()
.setName(
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.deleteInterceptDeploymentCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteInterceptDeploymentRequest,Operation> |
|
deleteInterceptDeploymentGroupAsync(DeleteInterceptDeploymentGroupRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentGroupAsync(DeleteInterceptDeploymentGroupRequest request)Deletes a deployment group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptDeploymentGroupRequest request =
DeleteInterceptDeploymentGroupRequest.newBuilder()
.setName(
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
interceptClient.deleteInterceptDeploymentGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteInterceptDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptDeploymentGroupAsync(InterceptDeploymentGroupName name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentGroupAsync(InterceptDeploymentGroupName name)Deletes a deployment group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptDeploymentGroupName name =
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]");
interceptClient.deleteInterceptDeploymentGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptDeploymentGroupNameRequired. The deployment group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptDeploymentGroupAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptDeploymentGroupAsync(String name)Deletes a deployment group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString();
interceptClient.deleteInterceptDeploymentGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The deployment group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptDeploymentGroupCallable()
public final UnaryCallable<DeleteInterceptDeploymentGroupRequest,Operation> deleteInterceptDeploymentGroupCallable()Deletes a deployment group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptDeploymentGroupRequest request =
DeleteInterceptDeploymentGroupRequest.newBuilder()
.setName(
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.deleteInterceptDeploymentGroupCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteInterceptDeploymentGroupRequest,Operation> |
|
deleteInterceptDeploymentGroupOperationCallable()
public final OperationCallable<DeleteInterceptDeploymentGroupRequest,Empty,OperationMetadata> deleteInterceptDeploymentGroupOperationCallable()Deletes a deployment group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptDeploymentGroupRequest request =
DeleteInterceptDeploymentGroupRequest.newBuilder()
.setName(
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
interceptClient.deleteInterceptDeploymentGroupOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteInterceptDeploymentGroupRequest,Empty,OperationMetadata> |
|
deleteInterceptDeploymentOperationCallable()
public final OperationCallable<DeleteInterceptDeploymentRequest,Empty,OperationMetadata> deleteInterceptDeploymentOperationCallable()Deletes a deployment. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptDeploymentRequest request =
DeleteInterceptDeploymentRequest.newBuilder()
.setName(
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
interceptClient.deleteInterceptDeploymentOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteInterceptDeploymentRequest,Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(DeleteInterceptEndpointGroupAssociationRequest request)Deletes an association. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptEndpointGroupAssociationRequest request =
DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
.setName(
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.setRequestId("requestId693933066")
.build();
interceptClient.deleteInterceptEndpointGroupAssociationAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteInterceptEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name)Deletes an association. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupAssociationName name =
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]");
interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptEndpointGroupAssociationNameRequired. The association to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAssociationAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationAsync(String name)Deletes an association. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString();
interceptClient.deleteInterceptEndpointGroupAssociationAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The association to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAssociationCallable()
public final UnaryCallable<DeleteInterceptEndpointGroupAssociationRequest,Operation> deleteInterceptEndpointGroupAssociationCallable()Deletes an association. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptEndpointGroupAssociationRequest request =
DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
.setName(
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.deleteInterceptEndpointGroupAssociationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteInterceptEndpointGroupAssociationRequest,Operation> |
|
deleteInterceptEndpointGroupAssociationOperationCallable()
public final OperationCallable<DeleteInterceptEndpointGroupAssociationRequest,Empty,OperationMetadata> deleteInterceptEndpointGroupAssociationOperationCallable()Deletes an association. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptEndpointGroupAssociationRequest request =
DeleteInterceptEndpointGroupAssociationRequest.newBuilder()
.setName(
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
interceptClient
.deleteInterceptEndpointGroupAssociationOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteInterceptEndpointGroupAssociationRequest,Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAsync(DeleteInterceptEndpointGroupRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAsync(DeleteInterceptEndpointGroupRequest request)Deletes an endpoint group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptEndpointGroupRequest request =
DeleteInterceptEndpointGroupRequest.newBuilder()
.setName(
InterceptEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
interceptClient.deleteInterceptEndpointGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteInterceptEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAsync(InterceptEndpointGroupName name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAsync(InterceptEndpointGroupName name)Deletes an endpoint group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupName name =
InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
interceptClient.deleteInterceptEndpointGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptEndpointGroupNameRequired. The endpoint group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteInterceptEndpointGroupAsync(String name)Deletes an endpoint group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString();
interceptClient.deleteInterceptEndpointGroupAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The endpoint group to delete. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<Empty,OperationMetadata> |
|
deleteInterceptEndpointGroupCallable()
public final UnaryCallable<DeleteInterceptEndpointGroupRequest,Operation> deleteInterceptEndpointGroupCallable()Deletes an endpoint group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptEndpointGroupRequest request =
DeleteInterceptEndpointGroupRequest.newBuilder()
.setName(
InterceptEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.deleteInterceptEndpointGroupCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteInterceptEndpointGroupRequest,Operation> |
|
deleteInterceptEndpointGroupOperationCallable()
public final OperationCallable<DeleteInterceptEndpointGroupRequest,Empty,OperationMetadata> deleteInterceptEndpointGroupOperationCallable()Deletes an endpoint group. See https://google.aip.dev/135.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
DeleteInterceptEndpointGroupRequest request =
DeleteInterceptEndpointGroupRequest.newBuilder()
.setName(
InterceptEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
interceptClient.deleteInterceptEndpointGroupOperationCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<DeleteInterceptEndpointGroupRequest,Empty,OperationMetadata> |
|
getIamPolicy(GetIamPolicyRequest request)
public final Policy getIamPolicy(GetIamPolicyRequest request)Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
Policy response = interceptClient.getIamPolicy(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
getIamPolicyCallable()
public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
ApiFuture<Policy> future = interceptClient.getIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
|
getInterceptDeployment(GetInterceptDeploymentRequest request)
public final InterceptDeployment getInterceptDeployment(GetInterceptDeploymentRequest request)Gets a specific deployment. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptDeploymentRequest request =
GetInterceptDeploymentRequest.newBuilder()
.setName(
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString())
.build();
InterceptDeployment response = interceptClient.getInterceptDeployment(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetInterceptDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptDeployment |
|
getInterceptDeployment(InterceptDeploymentName name)
public final InterceptDeployment getInterceptDeployment(InterceptDeploymentName name)Gets a specific deployment. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptDeploymentName name =
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]");
InterceptDeployment response = interceptClient.getInterceptDeployment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptDeploymentNameRequired. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} |
| Returns | |
|---|---|
| Type | Description |
InterceptDeployment |
|
getInterceptDeployment(String name)
public final InterceptDeployment getInterceptDeployment(String name)Gets a specific deployment. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString();
InterceptDeployment response = interceptClient.getInterceptDeployment(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} |
| Returns | |
|---|---|
| Type | Description |
InterceptDeployment |
|
getInterceptDeploymentCallable()
public final UnaryCallable<GetInterceptDeploymentRequest,InterceptDeployment> getInterceptDeploymentCallable()Gets a specific deployment. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptDeploymentRequest request =
GetInterceptDeploymentRequest.newBuilder()
.setName(
InterceptDeploymentName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT]")
.toString())
.build();
ApiFuture<InterceptDeployment> future =
interceptClient.getInterceptDeploymentCallable().futureCall(request);
// Do something.
InterceptDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetInterceptDeploymentRequest,InterceptDeployment> |
|
getInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest request)
public final InterceptDeploymentGroup getInterceptDeploymentGroup(GetInterceptDeploymentGroupRequest request)Gets a specific deployment group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptDeploymentGroupRequest request =
GetInterceptDeploymentGroupRequest.newBuilder()
.setName(
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString())
.build();
InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetInterceptDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentGroup |
|
getInterceptDeploymentGroup(InterceptDeploymentGroupName name)
public final InterceptDeploymentGroup getInterceptDeploymentGroup(InterceptDeploymentGroupName name)Gets a specific deployment group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptDeploymentGroupName name =
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]");
InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptDeploymentGroupNameRequired. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group} |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentGroup |
|
getInterceptDeploymentGroup(String name)
public final InterceptDeploymentGroup getInterceptDeploymentGroup(String name)Gets a specific deployment group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptDeploymentGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString();
InterceptDeploymentGroup response = interceptClient.getInterceptDeploymentGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group} |
| Returns | |
|---|---|
| Type | Description |
InterceptDeploymentGroup |
|
getInterceptDeploymentGroupCallable()
public final UnaryCallable<GetInterceptDeploymentGroupRequest,InterceptDeploymentGroup> getInterceptDeploymentGroupCallable()Gets a specific deployment group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptDeploymentGroupRequest request =
GetInterceptDeploymentGroupRequest.newBuilder()
.setName(
InterceptDeploymentGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_DEPLOYMENT_GROUP]")
.toString())
.build();
ApiFuture<InterceptDeploymentGroup> future =
interceptClient.getInterceptDeploymentGroupCallable().futureCall(request);
// Do something.
InterceptDeploymentGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetInterceptDeploymentGroupRequest,InterceptDeploymentGroup> |
|
getInterceptEndpointGroup(GetInterceptEndpointGroupRequest request)
public final InterceptEndpointGroup getInterceptEndpointGroup(GetInterceptEndpointGroupRequest request)Gets a specific endpoint group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptEndpointGroupRequest request =
GetInterceptEndpointGroupRequest.newBuilder()
.setName(
InterceptEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString())
.build();
InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetInterceptEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptEndpointGroup |
|
getInterceptEndpointGroup(InterceptEndpointGroupName name)
public final InterceptEndpointGroup getInterceptEndpointGroup(InterceptEndpointGroupName name)Gets a specific endpoint group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupName name =
InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]");
InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptEndpointGroupNameRequired. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} |
| Returns | |
|---|---|
| Type | Description |
InterceptEndpointGroup |
|
getInterceptEndpointGroup(String name)
public final InterceptEndpointGroup getInterceptEndpointGroup(String name)Gets a specific endpoint group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptEndpointGroupName.of("[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString();
InterceptEndpointGroup response = interceptClient.getInterceptEndpointGroup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} |
| Returns | |
|---|---|
| Type | Description |
InterceptEndpointGroup |
|
getInterceptEndpointGroupAssociation(GetInterceptEndpointGroupAssociationRequest request)
public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(GetInterceptEndpointGroupAssociationRequest request)Gets a specific association. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptEndpointGroupAssociationRequest request =
GetInterceptEndpointGroupAssociationRequest.newBuilder()
.setName(
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.build();
InterceptEndpointGroupAssociation response =
interceptClient.getInterceptEndpointGroupAssociation(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetInterceptEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptEndpointGroupAssociation |
|
getInterceptEndpointGroupAssociation(InterceptEndpointGroupAssociationName name)
public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(InterceptEndpointGroupAssociationName name)Gets a specific association. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupAssociationName name =
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]");
InterceptEndpointGroupAssociation response =
interceptClient.getInterceptEndpointGroupAssociation(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
InterceptEndpointGroupAssociationNameRequired. The name of the association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} |
| Returns | |
|---|---|
| Type | Description |
InterceptEndpointGroupAssociation |
|
getInterceptEndpointGroupAssociation(String name)
public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation(String name)Gets a specific association. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String name =
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString();
InterceptEndpointGroupAssociation response =
interceptClient.getInterceptEndpointGroupAssociation(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The name of the association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association} |
| Returns | |
|---|---|
| Type | Description |
InterceptEndpointGroupAssociation |
|
getInterceptEndpointGroupAssociationCallable()
public final UnaryCallable<GetInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation> getInterceptEndpointGroupAssociationCallable()Gets a specific association. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptEndpointGroupAssociationRequest request =
GetInterceptEndpointGroupAssociationRequest.newBuilder()
.setName(
InterceptEndpointGroupAssociationName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP_ASSOCIATION]")
.toString())
.build();
ApiFuture<InterceptEndpointGroupAssociation> future =
interceptClient.getInterceptEndpointGroupAssociationCallable().futureCall(request);
// Do something.
InterceptEndpointGroupAssociation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation> |
|
getInterceptEndpointGroupCallable()
public final UnaryCallable<GetInterceptEndpointGroupRequest,InterceptEndpointGroup> getInterceptEndpointGroupCallable()Gets a specific endpoint group. See https://google.aip.dev/131.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetInterceptEndpointGroupRequest request =
GetInterceptEndpointGroupRequest.newBuilder()
.setName(
InterceptEndpointGroupName.of(
"[PROJECT]", "[LOCATION]", "[INTERCEPT_ENDPOINT_GROUP]")
.toString())
.build();
ApiFuture<InterceptEndpointGroup> future =
interceptClient.getInterceptEndpointGroupCallable().futureCall(request);
// Do something.
InterceptEndpointGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetInterceptEndpointGroupRequest,InterceptEndpointGroup> |
|
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = interceptClient.getLocation(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.cloud.location.GetLocationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.cloud.location.Location |
|
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()Gets information about a location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future = interceptClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
getOperationsClient()
public final OperationsClient getOperationsClient()Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
| Returns | |
|---|---|
| Type | Description |
OperationsClient |
|
getSettings()
public final InterceptSettings getSettings()| Returns | |
|---|---|
| Type | Description |
InterceptSettings |
|
getStub()
public InterceptStub getStub()| Returns | |
|---|---|
| Type | Description |
InterceptStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest request)
public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(ListInterceptDeploymentGroupsRequest request)Lists deployment groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptDeploymentGroupsRequest request =
ListInterceptDeploymentGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (InterceptDeploymentGroup element :
interceptClient.listInterceptDeploymentGroups(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListInterceptDeploymentGroupsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptDeploymentGroupsPagedResponse |
|
listInterceptDeploymentGroups(LocationName parent)
public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(LocationName parent)Lists deployment groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (InterceptDeploymentGroup element :
interceptClient.listInterceptDeploymentGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of deployment groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptDeploymentGroupsPagedResponse |
|
listInterceptDeploymentGroups(String parent)
public final InterceptClient.ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups(String parent)Lists deployment groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (InterceptDeploymentGroup element :
interceptClient.listInterceptDeploymentGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of deployment groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptDeploymentGroupsPagedResponse |
|
listInterceptDeploymentGroupsCallable()
public final UnaryCallable<ListInterceptDeploymentGroupsRequest,ListInterceptDeploymentGroupsResponse> listInterceptDeploymentGroupsCallable()Lists deployment groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptDeploymentGroupsRequest request =
ListInterceptDeploymentGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterceptDeploymentGroupsResponse response =
interceptClient.listInterceptDeploymentGroupsCallable().call(request);
for (InterceptDeploymentGroup element : response.getInterceptDeploymentGroupsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptDeploymentGroupsRequest,ListInterceptDeploymentGroupsResponse> |
|
listInterceptDeploymentGroupsPagedCallable()
public final UnaryCallable<ListInterceptDeploymentGroupsRequest,InterceptClient.ListInterceptDeploymentGroupsPagedResponse> listInterceptDeploymentGroupsPagedCallable()Lists deployment groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptDeploymentGroupsRequest request =
ListInterceptDeploymentGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<InterceptDeploymentGroup> future =
interceptClient.listInterceptDeploymentGroupsPagedCallable().futureCall(request);
// Do something.
for (InterceptDeploymentGroup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptDeploymentGroupsRequest,ListInterceptDeploymentGroupsPagedResponse> |
|
listInterceptDeployments(ListInterceptDeploymentsRequest request)
public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(ListInterceptDeploymentsRequest request)Lists deployments in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptDeploymentsRequest request =
ListInterceptDeploymentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (InterceptDeployment element :
interceptClient.listInterceptDeployments(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListInterceptDeploymentsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptDeploymentsPagedResponse |
|
listInterceptDeployments(LocationName parent)
public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(LocationName parent)Lists deployments in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (InterceptDeployment element :
interceptClient.listInterceptDeployments(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of deployments. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptDeploymentsPagedResponse |
|
listInterceptDeployments(String parent)
public final InterceptClient.ListInterceptDeploymentsPagedResponse listInterceptDeployments(String parent)Lists deployments in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (InterceptDeployment element :
interceptClient.listInterceptDeployments(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of deployments. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptDeploymentsPagedResponse |
|
listInterceptDeploymentsCallable()
public final UnaryCallable<ListInterceptDeploymentsRequest,ListInterceptDeploymentsResponse> listInterceptDeploymentsCallable()Lists deployments in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptDeploymentsRequest request =
ListInterceptDeploymentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterceptDeploymentsResponse response =
interceptClient.listInterceptDeploymentsCallable().call(request);
for (InterceptDeployment element : response.getInterceptDeploymentsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptDeploymentsRequest,ListInterceptDeploymentsResponse> |
|
listInterceptDeploymentsPagedCallable()
public final UnaryCallable<ListInterceptDeploymentsRequest,InterceptClient.ListInterceptDeploymentsPagedResponse> listInterceptDeploymentsPagedCallable()Lists deployments in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptDeploymentsRequest request =
ListInterceptDeploymentsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<InterceptDeployment> future =
interceptClient.listInterceptDeploymentsPagedCallable().futureCall(request);
// Do something.
for (InterceptDeployment element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptDeploymentsRequest,ListInterceptDeploymentsPagedResponse> |
|
listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest request)
public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(ListInterceptEndpointGroupAssociationsRequest request)Lists associations in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptEndpointGroupAssociationsRequest request =
ListInterceptEndpointGroupAssociationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (InterceptEndpointGroupAssociation element :
interceptClient.listInterceptEndpointGroupAssociations(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListInterceptEndpointGroupAssociationsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse |
|
listInterceptEndpointGroupAssociations(LocationName parent)
public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(LocationName parent)Lists associations in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (InterceptEndpointGroupAssociation element :
interceptClient.listInterceptEndpointGroupAssociations(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of associations. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse |
|
listInterceptEndpointGroupAssociations(String parent)
public final InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse listInterceptEndpointGroupAssociations(String parent)Lists associations in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (InterceptEndpointGroupAssociation element :
interceptClient.listInterceptEndpointGroupAssociations(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of associations. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse |
|
listInterceptEndpointGroupAssociationsCallable()
public final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,ListInterceptEndpointGroupAssociationsResponse> listInterceptEndpointGroupAssociationsCallable()Lists associations in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptEndpointGroupAssociationsRequest request =
ListInterceptEndpointGroupAssociationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterceptEndpointGroupAssociationsResponse response =
interceptClient.listInterceptEndpointGroupAssociationsCallable().call(request);
for (InterceptEndpointGroupAssociation element :
response.getInterceptEndpointGroupAssociationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,ListInterceptEndpointGroupAssociationsResponse> |
|
listInterceptEndpointGroupAssociationsPagedCallable()
public final UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,InterceptClient.ListInterceptEndpointGroupAssociationsPagedResponse> listInterceptEndpointGroupAssociationsPagedCallable()Lists associations in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptEndpointGroupAssociationsRequest request =
ListInterceptEndpointGroupAssociationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<InterceptEndpointGroupAssociation> future =
interceptClient.listInterceptEndpointGroupAssociationsPagedCallable().futureCall(request);
// Do something.
for (InterceptEndpointGroupAssociation element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptEndpointGroupAssociationsRequest,ListInterceptEndpointGroupAssociationsPagedResponse> |
|
listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest request)
public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(ListInterceptEndpointGroupsRequest request)Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptEndpointGroupsRequest request =
ListInterceptEndpointGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (InterceptEndpointGroup element :
interceptClient.listInterceptEndpointGroups(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListInterceptEndpointGroupsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptEndpointGroupsPagedResponse |
|
listInterceptEndpointGroups(LocationName parent)
public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(LocationName parent)Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (InterceptEndpointGroup element :
interceptClient.listInterceptEndpointGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of endpoint groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptEndpointGroupsPagedResponse |
|
listInterceptEndpointGroups(String parent)
public final InterceptClient.ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups(String parent)Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (InterceptEndpointGroup element :
interceptClient.listInterceptEndpointGroups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of endpoint groups. Example:
|
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListInterceptEndpointGroupsPagedResponse |
|
listInterceptEndpointGroupsCallable()
public final UnaryCallable<ListInterceptEndpointGroupsRequest,ListInterceptEndpointGroupsResponse> listInterceptEndpointGroupsCallable()Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptEndpointGroupsRequest request =
ListInterceptEndpointGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInterceptEndpointGroupsResponse response =
interceptClient.listInterceptEndpointGroupsCallable().call(request);
for (InterceptEndpointGroup element : response.getInterceptEndpointGroupsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptEndpointGroupsRequest,ListInterceptEndpointGroupsResponse> |
|
listInterceptEndpointGroupsPagedCallable()
public final UnaryCallable<ListInterceptEndpointGroupsRequest,InterceptClient.ListInterceptEndpointGroupsPagedResponse> listInterceptEndpointGroupsPagedCallable()Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListInterceptEndpointGroupsRequest request =
ListInterceptEndpointGroupsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<InterceptEndpointGroup> future =
interceptClient.listInterceptEndpointGroupsPagedCallable().futureCall(request);
// Do something.
for (InterceptEndpointGroup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListInterceptEndpointGroupsRequest,ListInterceptEndpointGroupsPagedResponse> |
|
listLocations(ListLocationsRequest request)
public final InterceptClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)Lists information about the supported locations for this service.
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If name is empty, the method lists thepublic
locations available to all projects. * **Project-specificlocations**: If
name follows the formatprojects/{project}, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.
For gRPC and client library implementations, the resource name ispassed as the name field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : interceptClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.cloud.location.ListLocationsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
InterceptClient.ListLocationsPagedResponse |
|
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()Lists information about the supported locations for this service.
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If name is empty, the method lists thepublic
locations available to all projects. * **Project-specificlocations**: If
name follows the formatprojects/{project}, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.
For gRPC and client library implementations, the resource name ispassed as the name field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response = interceptClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
|
listLocationsPagedCallable()
public final UnaryCallable<ListLocationsRequest,InterceptClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field:
* **Global locations**: If name is empty, the method lists thepublic
locations available to all projects. * **Project-specificlocations**: If
name follows the formatprojects/{project}, the method lists locations visible to
thatspecific project. This includes public, private, or otherproject-specific locations enabled
for the project.
For gRPC and client library implementations, the resource name ispassed as the name field.
For direct service calls, the resourcename isincorporated into the request path based on the
specific serviceimplementation and version.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future = interceptClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
|
setIamPolicy(SetIamPolicyRequest request)
public final Policy setIamPolicy(SetIamPolicyRequest request)Sets the access control policy on the specified resource. Replacesany existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Policy response = interceptClient.setIamPolicy(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
setIamPolicyCallable()
public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()Sets the access control policy on the specified resource. Replacesany existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Policy> future = interceptClient.setIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()testIamPermissions(TestIamPermissionsRequest request)
public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)Returns permissions that a caller has on the specified resource. If theresource does not exist,
this will return an empty set ofpermissions, not a NOT_FOUND error.
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.addAllPermissions(new ArrayList<String>())
.build();
TestIamPermissionsResponse response = interceptClient.testIamPermissions(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.TestIamPermissionsResponse |
|
testIamPermissionsCallable()
public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()Returns permissions that a caller has on the specified resource. If theresource does not exist,
this will return an empty set ofpermissions, not a NOT_FOUND error.
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
AddressGroupName.ofProjectLocationAddressGroupName(
"[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
.toString())
.addAllPermissions(new ArrayList<String>())
.build();
ApiFuture<TestIamPermissionsResponse> future =
interceptClient.testIamPermissionsCallable().futureCall(request);
// Do something.
TestIamPermissionsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
|
updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, FieldMask updateMask)
public final OperationFuture<InterceptDeployment,OperationMetadata> updateInterceptDeploymentAsync(InterceptDeployment interceptDeployment, FieldMask updateMask)Updates a deployment. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptDeployment interceptDeployment = InterceptDeployment.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
InterceptDeployment response =
interceptClient.updateInterceptDeploymentAsync(interceptDeployment, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
interceptDeployment |
InterceptDeploymentRequired. The deployment to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
deployment (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeployment,OperationMetadata> |
|
updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest request)
public final OperationFuture<InterceptDeployment,OperationMetadata> updateInterceptDeploymentAsync(UpdateInterceptDeploymentRequest request)Updates a deployment. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptDeploymentRequest request =
UpdateInterceptDeploymentRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptDeployment(InterceptDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptDeployment response = interceptClient.updateInterceptDeploymentAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateInterceptDeploymentRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeployment,OperationMetadata> |
|
updateInterceptDeploymentCallable()
public final UnaryCallable<UpdateInterceptDeploymentRequest,Operation> updateInterceptDeploymentCallable()Updates a deployment. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptDeploymentRequest request =
UpdateInterceptDeploymentRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptDeployment(InterceptDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.updateInterceptDeploymentCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateInterceptDeploymentRequest,Operation> |
|
updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, FieldMask updateMask)
public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> updateInterceptDeploymentGroupAsync(InterceptDeploymentGroup interceptDeploymentGroup, FieldMask updateMask)Updates a deployment group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptDeploymentGroup interceptDeploymentGroup =
InterceptDeploymentGroup.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
InterceptDeploymentGroup response =
interceptClient
.updateInterceptDeploymentGroupAsync(interceptDeploymentGroup, updateMask)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
interceptDeploymentGroup |
InterceptDeploymentGroupRequired. The deployment group to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
deployment group (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeploymentGroup,OperationMetadata> |
|
updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest request)
public final OperationFuture<InterceptDeploymentGroup,OperationMetadata> updateInterceptDeploymentGroupAsync(UpdateInterceptDeploymentGroupRequest request)Updates a deployment group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptDeploymentGroupRequest request =
UpdateInterceptDeploymentGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptDeploymentGroup response =
interceptClient.updateInterceptDeploymentGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateInterceptDeploymentGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptDeploymentGroup,OperationMetadata> |
|
updateInterceptDeploymentGroupCallable()
public final UnaryCallable<UpdateInterceptDeploymentGroupRequest,Operation> updateInterceptDeploymentGroupCallable()Updates a deployment group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptDeploymentGroupRequest request =
UpdateInterceptDeploymentGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.updateInterceptDeploymentGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateInterceptDeploymentGroupRequest,Operation> |
|
updateInterceptDeploymentGroupOperationCallable()
public final OperationCallable<UpdateInterceptDeploymentGroupRequest,InterceptDeploymentGroup,OperationMetadata> updateInterceptDeploymentGroupOperationCallable()Updates a deployment group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptDeploymentGroupRequest request =
UpdateInterceptDeploymentGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptDeploymentGroup(InterceptDeploymentGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptDeploymentGroup, OperationMetadata> future =
interceptClient.updateInterceptDeploymentGroupOperationCallable().futureCall(request);
// Do something.
InterceptDeploymentGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateInterceptDeploymentGroupRequest,InterceptDeploymentGroup,OperationMetadata> |
|
updateInterceptDeploymentOperationCallable()
public final OperationCallable<UpdateInterceptDeploymentRequest,InterceptDeployment,OperationMetadata> updateInterceptDeploymentOperationCallable()Updates a deployment. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptDeploymentRequest request =
UpdateInterceptDeploymentRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptDeployment(InterceptDeployment.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptDeployment, OperationMetadata> future =
interceptClient.updateInterceptDeploymentOperationCallable().futureCall(request);
// Do something.
InterceptDeployment response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateInterceptDeploymentRequest,InterceptDeployment,OperationMetadata> |
|
updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, FieldMask updateMask)
public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> updateInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, FieldMask updateMask)Updates an association. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroupAssociation interceptEndpointGroupAssociation =
InterceptEndpointGroupAssociation.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
InterceptEndpointGroupAssociation response =
interceptClient
.updateInterceptEndpointGroupAssociationAsync(
interceptEndpointGroupAssociation, updateMask)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
interceptEndpointGroupAssociation |
InterceptEndpointGroupAssociationRequired. The association to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
association (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> |
|
updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest request)
public final OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> updateInterceptEndpointGroupAssociationAsync(UpdateInterceptEndpointGroupAssociationRequest request)Updates an association. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptEndpointGroupAssociationRequest request =
UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptEndpointGroupAssociation(
InterceptEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptEndpointGroupAssociation response =
interceptClient.updateInterceptEndpointGroupAssociationAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateInterceptEndpointGroupAssociationRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroupAssociation,OperationMetadata> |
|
updateInterceptEndpointGroupAssociationCallable()
public final UnaryCallable<UpdateInterceptEndpointGroupAssociationRequest,Operation> updateInterceptEndpointGroupAssociationCallable()Updates an association. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptEndpointGroupAssociationRequest request =
UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptEndpointGroupAssociation(
InterceptEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.updateInterceptEndpointGroupAssociationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateInterceptEndpointGroupAssociationRequest,Operation> |
|
updateInterceptEndpointGroupAssociationOperationCallable()
public final OperationCallable<UpdateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation,OperationMetadata> updateInterceptEndpointGroupAssociationOperationCallable()Updates an association. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptEndpointGroupAssociationRequest request =
UpdateInterceptEndpointGroupAssociationRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptEndpointGroupAssociation(
InterceptEndpointGroupAssociation.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptEndpointGroupAssociation, OperationMetadata> future =
interceptClient
.updateInterceptEndpointGroupAssociationOperationCallable()
.futureCall(request);
// Do something.
InterceptEndpointGroupAssociation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateInterceptEndpointGroupAssociationRequest,InterceptEndpointGroupAssociation,OperationMetadata> |
|
updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, FieldMask updateMask)
public final OperationFuture<InterceptEndpointGroup,OperationMetadata> updateInterceptEndpointGroupAsync(InterceptEndpointGroup interceptEndpointGroup, FieldMask updateMask)Updates an endpoint group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
InterceptEndpointGroup interceptEndpointGroup = InterceptEndpointGroup.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
InterceptEndpointGroup response =
interceptClient
.updateInterceptEndpointGroupAsync(interceptEndpointGroup, updateMask)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
interceptEndpointGroup |
InterceptEndpointGroupRequired. The endpoint group to update. |
updateMask |
FieldMaskOptional. The list of fields to update. Fields are specified relative to the
endpoint group (e.g. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroup,OperationMetadata> |
|
updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest request)
public final OperationFuture<InterceptEndpointGroup,OperationMetadata> updateInterceptEndpointGroupAsync(UpdateInterceptEndpointGroupRequest request)Updates an endpoint group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptEndpointGroupRequest request =
UpdateInterceptEndpointGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
InterceptEndpointGroup response =
interceptClient.updateInterceptEndpointGroupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateInterceptEndpointGroupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<InterceptEndpointGroup,OperationMetadata> |
|
updateInterceptEndpointGroupCallable()
public final UnaryCallable<UpdateInterceptEndpointGroupRequest,Operation> updateInterceptEndpointGroupCallable()Updates an endpoint group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptEndpointGroupRequest request =
UpdateInterceptEndpointGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
interceptClient.updateInterceptEndpointGroupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateInterceptEndpointGroupRequest,Operation> |
|
updateInterceptEndpointGroupOperationCallable()
public final OperationCallable<UpdateInterceptEndpointGroupRequest,InterceptEndpointGroup,OperationMetadata> updateInterceptEndpointGroupOperationCallable()Updates an endpoint group. See https://google.aip.dev/134.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (InterceptClient interceptClient = InterceptClient.create()) {
UpdateInterceptEndpointGroupRequest request =
UpdateInterceptEndpointGroupRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInterceptEndpointGroup(InterceptEndpointGroup.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<InterceptEndpointGroup, OperationMetadata> future =
interceptClient.updateInterceptEndpointGroupOperationCallable().futureCall(request);
// Do something.
InterceptEndpointGroup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<UpdateInterceptEndpointGroupRequest,InterceptEndpointGroup,OperationMetadata> |
|