@BetaApi @Generated(value="by gapic-generator-java") public class GkeHubClient extends Object implements com.google.api.gax.core.BackgroundResource
The GKE Hub service operates on the following resources:
GKE Hub is currently only available in the global region.
**Membership management may be non-trivial:** it is recommended to use one of the Google-provided client libraries or tools where possible when working with Membership resources.
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 (GkeHubClient gkeHubClient = GkeHubClient.create()) {
String name = "name3373707";
Feature response = gkeHubClient.getFeature(name);
}
Note: close() needs to be called on the GkeHubClient 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:
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 GkeHubSettings 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
GkeHubSettings gkeHubSettings =
GkeHubSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
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
GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier and Type | Class and Description |
|---|---|
static class |
GkeHubClient.ListFeaturesFixedSizeCollection |
static class |
GkeHubClient.ListFeaturesPage |
static class |
GkeHubClient.ListFeaturesPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
GkeHubClient(GkeHubSettings settings)
Constructs an instance of GkeHubClient, using the given settings.
|
protected |
GkeHubClient(GkeHubStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GkeHubClient |
create()
Constructs an instance of GkeHubClient with default settings.
|
static GkeHubClient |
create(GkeHubSettings settings)
Constructs an instance of GkeHubClient, using the given settings.
|
static GkeHubClient |
create(GkeHubStub stub)
Constructs an instance of GkeHubClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> |
createFeatureAsync(CreateFeatureRequest request)
Adds a new Feature.
|
com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> |
createFeatureAsync(String parent,
Feature resource,
String featureId)
Adds a new Feature.
|
com.google.api.gax.rpc.UnaryCallable<CreateFeatureRequest,com.google.longrunning.Operation> |
createFeatureCallable()
Adds a new Feature.
|
com.google.api.gax.rpc.OperationCallable<CreateFeatureRequest,Feature,OperationMetadata> |
createFeatureOperationCallable()
Adds a new Feature.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteFeatureAsync(DeleteFeatureRequest request)
Removes a Feature.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteFeatureAsync(String name)
Removes a Feature.
|
com.google.api.gax.rpc.UnaryCallable<DeleteFeatureRequest,com.google.longrunning.Operation> |
deleteFeatureCallable()
Removes a Feature.
|
com.google.api.gax.rpc.OperationCallable<DeleteFeatureRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteFeatureOperationCallable()
Removes a Feature.
|
Feature |
getFeature(GetFeatureRequest request)
Gets details of a single Feature.
|
Feature |
getFeature(String name)
Gets details of a single Feature.
|
com.google.api.gax.rpc.UnaryCallable<GetFeatureRequest,Feature> |
getFeatureCallable()
Gets details of a single Feature.
|
com.google.api.gax.httpjson.longrunning.OperationsClient |
getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
com.google.longrunning.OperationsClient |
getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
GkeHubSettings |
getSettings() |
GkeHubStub |
getStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
GkeHubClient.ListFeaturesPagedResponse |
listFeatures(ListFeaturesRequest request)
Lists Features in a given project and location.
|
GkeHubClient.ListFeaturesPagedResponse |
listFeatures(String parent)
Lists Features in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,ListFeaturesResponse> |
listFeaturesCallable()
Lists Features in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,GkeHubClient.ListFeaturesPagedResponse> |
listFeaturesPagedCallable()
Lists Features in a given project and location.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> |
updateFeatureAsync(String name,
Feature resource,
com.google.protobuf.FieldMask updateMask)
Updates an existing Feature.
|
com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> |
updateFeatureAsync(UpdateFeatureRequest request)
Updates an existing Feature.
|
com.google.api.gax.rpc.UnaryCallable<UpdateFeatureRequest,com.google.longrunning.Operation> |
updateFeatureCallable()
Updates an existing Feature.
|
com.google.api.gax.rpc.OperationCallable<UpdateFeatureRequest,Feature,OperationMetadata> |
updateFeatureOperationCallable()
Updates an existing Feature.
|
protected GkeHubClient(GkeHubSettings settings) throws IOException
IOExceptionprotected GkeHubClient(GkeHubStub stub)
public static final GkeHubClient create() throws IOException
IOExceptionpublic static final GkeHubClient create(GkeHubSettings settings) throws IOException
IOExceptionpublic static final GkeHubClient create(GkeHubStub stub)
public final GkeHubSettings getSettings()
public GkeHubStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
@BetaApi public final com.google.api.gax.httpjson.longrunning.OperationsClient getHttpJsonOperationsClient()
public final GkeHubClient.ListFeaturesPagedResponse listFeatures(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
String parent = "parent-995424086";
for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - The parent (project and location) where the Features will be listed. Specified in
the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final GkeHubClient.ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
ListFeaturesRequest request =
ListFeaturesRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,GkeHubClient.ListFeaturesPagedResponse> listFeaturesPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
ListFeaturesRequest request =
ListFeaturesRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Feature> future = gkeHubClient.listFeaturesPagedCallable().futureCall(request);
// Do something.
for (Feature element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,ListFeaturesResponse> listFeaturesCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
ListFeaturesRequest request =
ListFeaturesRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
for (Feature element : response.getResourcesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Feature getFeature(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
String name = "name3373707";
Feature response = gkeHubClient.getFeature(name);
}
name - The Feature resource name in the format
`projects/*/locations/*/features/*`com.google.api.gax.rpc.ApiException - if the remote call failspublic final Feature getFeature(GetFeatureRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
Feature response = gkeHubClient.getFeature(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetFeatureRequest,Feature> getFeatureCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
ApiFuture<Feature> future = gkeHubClient.getFeatureCallable().futureCall(request);
// Do something.
Feature response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> createFeatureAsync(String parent, Feature resource, String featureId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
String parent = "parent-995424086";
Feature resource = Feature.newBuilder().build();
String featureId = "featureId-420503887";
Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
}
parent - The parent (project and location) where the Feature will be created. Specified in
the format `projects/*/locations/*`.resource - The Feature resource to create.featureId - The ID of the feature to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> createFeatureAsync(CreateFeatureRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent("parent-995424086")
.setFeatureId("featureId-420503887")
.setResource(Feature.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Feature response = gkeHubClient.createFeatureAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateFeatureRequest,Feature,OperationMetadata> createFeatureOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent("parent-995424086")
.setFeatureId("featureId-420503887")
.setResource(Feature.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Feature, OperationMetadata> future =
gkeHubClient.createFeatureOperationCallable().futureCall(request);
// Do something.
Feature response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateFeatureRequest,com.google.longrunning.Operation> createFeatureCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent("parent-995424086")
.setFeatureId("featureId-420503887")
.setResource(Feature.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = gkeHubClient.createFeatureCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteFeatureAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
String name = "name3373707";
gkeHubClient.deleteFeatureAsync(name).get();
}
name - The Feature resource name in the format
`projects/*/locations/*/features/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteFeatureAsync(DeleteFeatureRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
DeleteFeatureRequest request =
DeleteFeatureRequest.newBuilder()
.setName("name3373707")
.setForce(true)
.setRequestId("requestId693933066")
.build();
gkeHubClient.deleteFeatureAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteFeatureRequest,com.google.protobuf.Empty,OperationMetadata> deleteFeatureOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
DeleteFeatureRequest request =
DeleteFeatureRequest.newBuilder()
.setName("name3373707")
.setForce(true)
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
gkeHubClient.deleteFeatureOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteFeatureRequest,com.google.longrunning.Operation> deleteFeatureCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
DeleteFeatureRequest request =
DeleteFeatureRequest.newBuilder()
.setName("name3373707")
.setForce(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = gkeHubClient.deleteFeatureCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> updateFeatureAsync(String name, Feature resource, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
String name = "name3373707";
Feature resource = Feature.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
}
name - The Feature resource name in the format
`projects/*/locations/*/features/*`.resource - Only fields specified in update_mask are updated. If you specify a field in the
update_mask but don't specify its value here that field will be deleted. If you are
updating a map field, set the value of a key to null or empty string to delete the key from
the map. It's not possible to update a key's value to the empty string. If you specify the
update_mask to be a special path "*", fully replaces all user-modifiable fields to
match `resource`.updateMask - Mask of fields to update.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Feature,OperationMetadata> updateFeatureAsync(UpdateFeatureRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
UpdateFeatureRequest request =
UpdateFeatureRequest.newBuilder()
.setName("name3373707")
.setUpdateMask(FieldMask.newBuilder().build())
.setResource(Feature.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Feature response = gkeHubClient.updateFeatureAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateFeatureRequest,Feature,OperationMetadata> updateFeatureOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
UpdateFeatureRequest request =
UpdateFeatureRequest.newBuilder()
.setName("name3373707")
.setUpdateMask(FieldMask.newBuilder().build())
.setResource(Feature.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Feature, OperationMetadata> future =
gkeHubClient.updateFeatureOperationCallable().futureCall(request);
// Do something.
Feature response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateFeatureRequest,com.google.longrunning.Operation> updateFeatureCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
UpdateFeatureRequest request =
UpdateFeatureRequest.newBuilder()
.setName("name3373707")
.setUpdateMask(FieldMask.newBuilder().build())
.setResource(Feature.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future = gkeHubClient.updateFeatureCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2022 Google LLC. All rights reserved.