- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public class TargetTcpProxiesClient implements BackgroundResource
Service Description: The TargetTcpProxies API.
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:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
String targetTcpProxy = "targetTcpProxy-337144898";
TargetTcpProxy response = targetTcpProxiesClient.get(project, targetTcpProxy);
}
Note: close() needs to be called on the TargetTcpProxiesClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns 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 TargetTcpProxiesSettings to create(). For example:
To customize credentials:
TargetTcpProxiesSettings targetTcpProxiesSettings =
TargetTcpProxiesSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
TargetTcpProxiesClient targetTcpProxiesClient =
TargetTcpProxiesClient.create(targetTcpProxiesSettings);
To customize the endpoint:
TargetTcpProxiesSettings targetTcpProxiesSettings =
TargetTcpProxiesSettings.newBuilder().setEndpoint(myEndpoint).build();
TargetTcpProxiesClient targetTcpProxiesClient =
TargetTcpProxiesClient.create(targetTcpProxiesSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final TargetTcpProxiesClient create()
Constructs an instance of TargetTcpProxiesClient with default settings.
Type | Description |
TargetTcpProxiesClient |
Type | Description |
IOException |
create(TargetTcpProxiesSettings settings)
public static final TargetTcpProxiesClient create(TargetTcpProxiesSettings settings)
Constructs an instance of TargetTcpProxiesClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Name | Description |
settings | TargetTcpProxiesSettings |
Type | Description |
TargetTcpProxiesClient |
Type | Description |
IOException |
create(TargetTcpProxiesStub stub)
public static final TargetTcpProxiesClient create(TargetTcpProxiesStub stub)
Constructs an instance of TargetTcpProxiesClient, using the given stub for making calls. This is for advanced usage - prefer using create(TargetTcpProxiesSettings).
Name | Description |
stub | TargetTcpProxiesStub |
Type | Description |
TargetTcpProxiesClient |
Constructors
TargetTcpProxiesClient(TargetTcpProxiesSettings settings)
protected TargetTcpProxiesClient(TargetTcpProxiesSettings settings)
Constructs an instance of TargetTcpProxiesClient, 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.
Name | Description |
settings | TargetTcpProxiesSettings |
TargetTcpProxiesClient(TargetTcpProxiesStub stub)
protected TargetTcpProxiesClient(TargetTcpProxiesStub stub)
Name | Description |
stub | TargetTcpProxiesStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
deleteAsync(DeleteTargetTcpProxyRequest request)
public final OperationFuture<Operation,Operation> deleteAsync(DeleteTargetTcpProxyRequest request)
Deletes the specified TargetTcpProxy resource.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
DeleteTargetTcpProxyRequest request =
DeleteTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
Operation response = targetTcpProxiesClient.deleteAsync(request).get();
}
Name | Description |
request | DeleteTargetTcpProxyRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
deleteAsync(String project, String targetTcpProxy)
public final OperationFuture<Operation,Operation> deleteAsync(String project, String targetTcpProxy)
Deletes the specified TargetTcpProxy resource.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
String targetTcpProxy = "targetTcpProxy-337144898";
Operation response = targetTcpProxiesClient.deleteAsync(project, targetTcpProxy).get();
}
Name | Description |
project | String Project ID for this request. |
targetTcpProxy | String Name of the TargetTcpProxy resource to delete. |
Type | Description |
OperationFuture<Operation,Operation> |
deleteCallable()
public final UnaryCallable<DeleteTargetTcpProxyRequest,Operation> deleteCallable()
Deletes the specified TargetTcpProxy resource.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
DeleteTargetTcpProxyRequest request =
DeleteTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
ApiFuture<Operation> future = targetTcpProxiesClient.deleteCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<DeleteTargetTcpProxyRequest,Operation> |
deleteOperationCallable()
public final OperationCallable<DeleteTargetTcpProxyRequest,Operation,Operation> deleteOperationCallable()
Deletes the specified TargetTcpProxy resource.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
DeleteTargetTcpProxyRequest request =
DeleteTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
OperationFuture
Type | Description |
OperationCallable<DeleteTargetTcpProxyRequest,Operation,Operation> |
get(GetTargetTcpProxyRequest request)
public final TargetTcpProxy get(GetTargetTcpProxyRequest request)
Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
GetTargetTcpProxyRequest request =
GetTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
TargetTcpProxy response = targetTcpProxiesClient.get(request);
}
Name | Description |
request | GetTargetTcpProxyRequest The request object containing all of the parameters for the API call. |
Type | Description |
TargetTcpProxy |
get(String project, String targetTcpProxy)
public final TargetTcpProxy get(String project, String targetTcpProxy)
Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
String targetTcpProxy = "targetTcpProxy-337144898";
TargetTcpProxy response = targetTcpProxiesClient.get(project, targetTcpProxy);
}
Name | Description |
project | String Project ID for this request. |
targetTcpProxy | String Name of the TargetTcpProxy resource to return. |
Type | Description |
TargetTcpProxy |
getCallable()
public final UnaryCallable<GetTargetTcpProxyRequest,TargetTcpProxy> getCallable()
Returns the specified TargetTcpProxy resource. Gets a list of available target TCP proxies by making a list() request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
GetTargetTcpProxyRequest request =
GetTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
ApiFuture
Type | Description |
UnaryCallable<GetTargetTcpProxyRequest,TargetTcpProxy> |
getSettings()
public final TargetTcpProxiesSettings getSettings()
Type | Description |
TargetTcpProxiesSettings |
getStub()
public TargetTcpProxiesStub getStub()
Type | Description |
TargetTcpProxiesStub |
insertAsync(InsertTargetTcpProxyRequest request)
public final OperationFuture<Operation,Operation> insertAsync(InsertTargetTcpProxyRequest request)
Creates a TargetTcpProxy resource in the specified project using the data included in the request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
InsertTargetTcpProxyRequest request =
InsertTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxyResource(TargetTcpProxy.newBuilder().build())
.build();
Operation response = targetTcpProxiesClient.insertAsync(request).get();
}
Name | Description |
request | InsertTargetTcpProxyRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
insertAsync(String project, TargetTcpProxy targetTcpProxyResource)
public final OperationFuture<Operation,Operation> insertAsync(String project, TargetTcpProxy targetTcpProxyResource)
Creates a TargetTcpProxy resource in the specified project using the data included in the request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build();
Operation response =
targetTcpProxiesClient.insertAsync(project, targetTcpProxyResource).get();
}
Name | Description |
project | String Project ID for this request. |
targetTcpProxyResource | TargetTcpProxy The body resource for this request |
Type | Description |
OperationFuture<Operation,Operation> |
insertCallable()
public final UnaryCallable<InsertTargetTcpProxyRequest,Operation> insertCallable()
Creates a TargetTcpProxy resource in the specified project using the data included in the request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
InsertTargetTcpProxyRequest request =
InsertTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxyResource(TargetTcpProxy.newBuilder().build())
.build();
ApiFuture<Operation> future = targetTcpProxiesClient.insertCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<InsertTargetTcpProxyRequest,Operation> |
insertOperationCallable()
public final OperationCallable<InsertTargetTcpProxyRequest,Operation,Operation> insertOperationCallable()
Creates a TargetTcpProxy resource in the specified project using the data included in the request.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
InsertTargetTcpProxyRequest request =
InsertTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxyResource(TargetTcpProxy.newBuilder().build())
.build();
OperationFuture
Type | Description |
OperationCallable<InsertTargetTcpProxyRequest,Operation,Operation> |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
list(ListTargetTcpProxiesRequest request)
public final TargetTcpProxiesClient.ListPagedResponse list(ListTargetTcpProxiesRequest request)
Retrieves the list of TargetTcpProxy resources available to the specified project.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
ListTargetTcpProxiesRequest request =
ListTargetTcpProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
for (TargetTcpProxy element : targetTcpProxiesClient.list(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListTargetTcpProxiesRequest The request object containing all of the parameters for the API call. |
Type | Description |
TargetTcpProxiesClient.ListPagedResponse |
list(String project)
public final TargetTcpProxiesClient.ListPagedResponse list(String project)
Retrieves the list of TargetTcpProxy resources available to the specified project.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
for (TargetTcpProxy element : targetTcpProxiesClient.list(project).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
project | String Project ID for this request. |
Type | Description |
TargetTcpProxiesClient.ListPagedResponse |
listCallable()
public final UnaryCallable<ListTargetTcpProxiesRequest,TargetTcpProxyList> listCallable()
Retrieves the list of TargetTcpProxy resources available to the specified project.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
ListTargetTcpProxiesRequest request =
ListTargetTcpProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
while (true) {
TargetTcpProxyList response = targetTcpProxiesClient.listCallable().call(request);
for (TargetTcpProxy element : response.getResponsesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListTargetTcpProxiesRequest,TargetTcpProxyList> |
listPagedCallable()
public final UnaryCallable<ListTargetTcpProxiesRequest,TargetTcpProxiesClient.ListPagedResponse> listPagedCallable()
Retrieves the list of TargetTcpProxy resources available to the specified project.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
ListTargetTcpProxiesRequest request =
ListTargetTcpProxiesRequest.newBuilder()
.setFilter("filter-1274492040")
.setMaxResults(1128457243)
.setOrderBy("orderBy-1207110587")
.setPageToken("pageToken873572522")
.setProject("project-309310695")
.setReturnPartialSuccess(true)
.build();
ApiFuture
Type | Description |
UnaryCallable<ListTargetTcpProxiesRequest,ListPagedResponse> |
setBackendServiceAsync(SetBackendServiceTargetTcpProxyRequest request)
public final OperationFuture<Operation,Operation> setBackendServiceAsync(SetBackendServiceTargetTcpProxyRequest request)
Changes the BackendService for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
SetBackendServiceTargetTcpProxyRequest request =
SetBackendServiceTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxiesSetBackendServiceRequestResource(
TargetTcpProxiesSetBackendServiceRequest.newBuilder().build())
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
Operation response = targetTcpProxiesClient.setBackendServiceAsync(request).get();
}
Name | Description |
request | SetBackendServiceTargetTcpProxyRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
setBackendServiceAsync(String project, String targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource)
public final OperationFuture<Operation,Operation> setBackendServiceAsync(String project, String targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource)
Changes the BackendService for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
String targetTcpProxy = "targetTcpProxy-337144898";
TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource =
TargetTcpProxiesSetBackendServiceRequest.newBuilder().build();
Operation response =
targetTcpProxiesClient
.setBackendServiceAsync(
project, targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource)
.get();
}
Name | Description |
project | String Project ID for this request. |
targetTcpProxy | String Name of the TargetTcpProxy resource whose BackendService resource is to be set. |
targetTcpProxiesSetBackendServiceRequestResource | TargetTcpProxiesSetBackendServiceRequest The body resource for this request |
Type | Description |
OperationFuture<Operation,Operation> |
setBackendServiceCallable()
public final UnaryCallable<SetBackendServiceTargetTcpProxyRequest,Operation> setBackendServiceCallable()
Changes the BackendService for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
SetBackendServiceTargetTcpProxyRequest request =
SetBackendServiceTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxiesSetBackendServiceRequestResource(
TargetTcpProxiesSetBackendServiceRequest.newBuilder().build())
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
ApiFuture<Operation> future =
targetTcpProxiesClient.setBackendServiceCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<SetBackendServiceTargetTcpProxyRequest,Operation> |
setBackendServiceOperationCallable()
public final OperationCallable<SetBackendServiceTargetTcpProxyRequest,Operation,Operation> setBackendServiceOperationCallable()
Changes the BackendService for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
SetBackendServiceTargetTcpProxyRequest request =
SetBackendServiceTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxiesSetBackendServiceRequestResource(
TargetTcpProxiesSetBackendServiceRequest.newBuilder().build())
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
OperationFuture
Type | Description |
OperationCallable<SetBackendServiceTargetTcpProxyRequest,Operation,Operation> |
setProxyHeaderAsync(SetProxyHeaderTargetTcpProxyRequest request)
public final OperationFuture<Operation,Operation> setProxyHeaderAsync(SetProxyHeaderTargetTcpProxyRequest request)
Changes the ProxyHeaderType for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
SetProxyHeaderTargetTcpProxyRequest request =
SetProxyHeaderTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxiesSetProxyHeaderRequestResource(
TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build())
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
Operation response = targetTcpProxiesClient.setProxyHeaderAsync(request).get();
}
Name | Description |
request | SetProxyHeaderTargetTcpProxyRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Operation,Operation> |
setProxyHeaderAsync(String project, String targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource)
public final OperationFuture<Operation,Operation> setProxyHeaderAsync(String project, String targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource)
Changes the ProxyHeaderType for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
String project = "project-309310695";
String targetTcpProxy = "targetTcpProxy-337144898";
TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource =
TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build();
Operation response =
targetTcpProxiesClient
.setProxyHeaderAsync(
project, targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource)
.get();
}
Name | Description |
project | String Project ID for this request. |
targetTcpProxy | String Name of the TargetTcpProxy resource whose ProxyHeader is to be set. |
targetTcpProxiesSetProxyHeaderRequestResource | TargetTcpProxiesSetProxyHeaderRequest The body resource for this request |
Type | Description |
OperationFuture<Operation,Operation> |
setProxyHeaderCallable()
public final UnaryCallable<SetProxyHeaderTargetTcpProxyRequest,Operation> setProxyHeaderCallable()
Changes the ProxyHeaderType for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
SetProxyHeaderTargetTcpProxyRequest request =
SetProxyHeaderTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxiesSetProxyHeaderRequestResource(
TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build())
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
ApiFuture<Operation> future =
targetTcpProxiesClient.setProxyHeaderCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<SetProxyHeaderTargetTcpProxyRequest,Operation> |
setProxyHeaderOperationCallable()
public final OperationCallable<SetProxyHeaderTargetTcpProxyRequest,Operation,Operation> setProxyHeaderOperationCallable()
Changes the ProxyHeaderType for TargetTcpProxy.
Sample code:
try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
SetProxyHeaderTargetTcpProxyRequest request =
SetProxyHeaderTargetTcpProxyRequest.newBuilder()
.setProject("project-309310695")
.setRequestId("requestId693933066")
.setTargetTcpProxiesSetProxyHeaderRequestResource(
TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build())
.setTargetTcpProxy("targetTcpProxy-337144898")
.build();
OperationFuture
Type | Description |
OperationCallable<SetProxyHeaderTargetTcpProxyRequest,Operation,Operation> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()