Class HttpJsonGkeHubStub
- java.lang.Object
-
- com.google.cloud.gkehub.v1beta.stub.GkeHubStub
-
- com.google.cloud.gkehub.v1beta.stub.HttpJsonGkeHubStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonGkeHubStub extends GkeHubStub
REST 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 protected
HttpJsonGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonGkeHubStub, using the given settings.protected
HttpJsonGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonGkeHubStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonGkeHubStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonGkeHubStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonGkeHubStub
create(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.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,ListFeaturesResponse>
listFeaturesCallable()
com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,GkeHubClient.ListFeaturesPagedResponse>
listFeaturesPagedCallable()
void
shutdown()
void
shutdownNow()
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.v1beta.stub.GkeHubStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonGkeHubStub
protected HttpJsonGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonGkeHubStub, 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
-
HttpJsonGkeHubStub
protected HttpJsonGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonGkeHubStub, 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 HttpJsonGkeHubStub create(GkeHubStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonGkeHubStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonGkeHubStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classGkeHubStub
-
listFeaturesCallable
public com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,ListFeaturesResponse> listFeaturesCallable()
- Overrides:
listFeaturesCallable
in classGkeHubStub
-
listFeaturesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFeaturesRequest,GkeHubClient.ListFeaturesPagedResponse> listFeaturesPagedCallable()
- Overrides:
listFeaturesPagedCallable
in classGkeHubStub
-
getFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<GetFeatureRequest,Feature> getFeatureCallable()
- Overrides:
getFeatureCallable
in classGkeHubStub
-
createFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFeatureRequest,com.google.longrunning.Operation> createFeatureCallable()
- Overrides:
createFeatureCallable
in classGkeHubStub
-
createFeatureOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFeatureRequest,Feature,OperationMetadata> createFeatureOperationCallable()
- Overrides:
createFeatureOperationCallable
in classGkeHubStub
-
deleteFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFeatureRequest,com.google.longrunning.Operation> deleteFeatureCallable()
- Overrides:
deleteFeatureCallable
in classGkeHubStub
-
deleteFeatureOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFeatureRequest,com.google.protobuf.Empty,OperationMetadata> deleteFeatureOperationCallable()
- Overrides:
deleteFeatureOperationCallable
in classGkeHubStub
-
updateFeatureCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFeatureRequest,com.google.longrunning.Operation> updateFeatureCallable()
- Overrides:
updateFeatureCallable
in classGkeHubStub
-
updateFeatureOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFeatureRequest,Feature,OperationMetadata> updateFeatureOperationCallable()
- Overrides:
updateFeatureOperationCallable
in classGkeHubStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-