Class GrpcGkeHubStub
- java.lang.Object
-
- com.google.cloud.gkehub.v1alpha.stub.GkeHubStub
-
- com.google.cloud.gkehub.v1alpha.stub.GrpcGkeHubStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcGkeHubStub extends GkeHubStub
gRPC stub implementation for the GkeHub service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcGkeHubStub, using the given settings.protectedGrpcGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcGkeHubStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcGkeHubStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcGkeHubStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcGkeHubStubcreate(GkeHubStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateFeatureRequest,com.google.longrunning.Operation>createFeatureCallable()com.google.api.gax.rpc.OperationCallable<CreateFeatureRequest,Feature,OperationMetadata>createFeatureOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteFeatureRequest,com.google.longrunning.Operation>deleteFeatureCallable()com.google.api.gax.rpc.OperationCallable<DeleteFeatureRequest,com.google.protobuf.Empty,OperationMetadata>deleteFeatureOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetFeatureRequest,Feature>getFeatureCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,ListFeaturesResponse>listFeaturesCallable()com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,GkeHubClient.ListFeaturesPagedResponse>listFeaturesPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateFeatureRequest,com.google.longrunning.Operation>updateFeatureCallable()com.google.api.gax.rpc.OperationCallable<UpdateFeatureRequest,Feature,OperationMetadata>updateFeatureOperationCallable()-
Methods inherited from class com.google.cloud.gkehub.v1alpha.stub.GkeHubStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcGkeHubStub
protected GrpcGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcGkeHubStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcGkeHubStub
protected GrpcGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcGkeHubStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcGkeHubStub create(GkeHubStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcGkeHubStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcGkeHubStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classGkeHubStub
-
listFeaturesCallable
public com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,ListFeaturesResponse> listFeaturesCallable()
- Overrides:
listFeaturesCallablein classGkeHubStub
-
listFeaturesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,GkeHubClient.ListFeaturesPagedResponse> listFeaturesPagedCallable()
- Overrides:
listFeaturesPagedCallablein classGkeHubStub
-
getFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<GetFeatureRequest,Feature> getFeatureCallable()
- Overrides:
getFeatureCallablein classGkeHubStub
-
createFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFeatureRequest,com.google.longrunning.Operation> createFeatureCallable()
- Overrides:
createFeatureCallablein classGkeHubStub
-
createFeatureOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFeatureRequest,Feature,OperationMetadata> createFeatureOperationCallable()
- Overrides:
createFeatureOperationCallablein classGkeHubStub
-
deleteFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFeatureRequest,com.google.longrunning.Operation> deleteFeatureCallable()
- Overrides:
deleteFeatureCallablein classGkeHubStub
-
deleteFeatureOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFeatureRequest,com.google.protobuf.Empty,OperationMetadata> deleteFeatureOperationCallable()
- Overrides:
deleteFeatureOperationCallablein classGkeHubStub
-
updateFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFeatureRequest,com.google.longrunning.Operation> updateFeatureCallable()
- Overrides:
updateFeatureCallablein classGkeHubStub
-
updateFeatureOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFeatureRequest,Feature,OperationMetadata> updateFeatureOperationCallable()
- Overrides:
updateFeatureOperationCallablein classGkeHubStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGkeHubStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-