Class HttpJsonGkeHubStub
- java.lang.Object
-
- com.google.cloud.gkehub.v1alpha2.stub.GkeHubStub
-
- com.google.cloud.gkehub.v1alpha2.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 protectedHttpJsonGkeHubStub(GkeHubStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonGkeHubStub, using the given settings.protectedHttpJsonGkeHubStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonGkeHubStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonGkeHubStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonGkeHubStubcreate(GkeHubStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateMembershipRequest,com.google.longrunning.Operation>createMembershipCallable()com.google.api.gax.rpc.OperationCallable<CreateMembershipRequest,Membership,OperationMetadata>createMembershipOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteMembershipRequest,com.google.longrunning.Operation>deleteMembershipCallable()com.google.api.gax.rpc.OperationCallable<DeleteMembershipRequest,com.google.protobuf.Empty,OperationMetadata>deleteMembershipOperationCallable()com.google.api.gax.rpc.UnaryCallable<GenerateConnectManifestRequest,GenerateConnectManifestResponse>generateConnectManifestCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetMembershipRequest,Membership>getMembershipCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<InitializeHubRequest,InitializeHubResponse>initializeHubCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListMembershipsRequest,ListMembershipsResponse>listMembershipsCallable()com.google.api.gax.rpc.UnaryCallable<ListMembershipsRequest,GkeHubClient.ListMembershipsPagedResponse>listMembershipsPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateMembershipRequest,com.google.longrunning.Operation>updateMembershipCallable()com.google.api.gax.rpc.OperationCallable<UpdateMembershipRequest,Membership,OperationMetadata>updateMembershipOperationCallable()-
Methods inherited from class com.google.cloud.gkehub.v1alpha2.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:
getHttpJsonOperationsStubin classGkeHubStub
-
listMembershipsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMembershipsRequest,ListMembershipsResponse> listMembershipsCallable()
- Overrides:
listMembershipsCallablein classGkeHubStub
-
listMembershipsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMembershipsRequest,GkeHubClient.ListMembershipsPagedResponse> listMembershipsPagedCallable()
- Overrides:
listMembershipsPagedCallablein classGkeHubStub
-
getMembershipCallable
public com.google.api.gax.rpc.UnaryCallable<GetMembershipRequest,Membership> getMembershipCallable()
- Overrides:
getMembershipCallablein classGkeHubStub
-
createMembershipCallable
public com.google.api.gax.rpc.UnaryCallable<CreateMembershipRequest,com.google.longrunning.Operation> createMembershipCallable()
- Overrides:
createMembershipCallablein classGkeHubStub
-
createMembershipOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateMembershipRequest,Membership,OperationMetadata> createMembershipOperationCallable()
- Overrides:
createMembershipOperationCallablein classGkeHubStub
-
deleteMembershipCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteMembershipRequest,com.google.longrunning.Operation> deleteMembershipCallable()
- Overrides:
deleteMembershipCallablein classGkeHubStub
-
deleteMembershipOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteMembershipRequest,com.google.protobuf.Empty,OperationMetadata> deleteMembershipOperationCallable()
- Overrides:
deleteMembershipOperationCallablein classGkeHubStub
-
updateMembershipCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateMembershipRequest,com.google.longrunning.Operation> updateMembershipCallable()
- Overrides:
updateMembershipCallablein classGkeHubStub
-
updateMembershipOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateMembershipRequest,Membership,OperationMetadata> updateMembershipOperationCallable()
- Overrides:
updateMembershipOperationCallablein classGkeHubStub
-
generateConnectManifestCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateConnectManifestRequest,GenerateConnectManifestResponse> generateConnectManifestCallable()
- Overrides:
generateConnectManifestCallablein classGkeHubStub
-
initializeHubCallable
public com.google.api.gax.rpc.UnaryCallable<InitializeHubRequest,InitializeHubResponse> initializeHubCallable()
- Overrides:
initializeHubCallablein 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
-
-