Class GrpcHubServiceStub
- java.lang.Object
-
- com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStub
-
- com.google.cloud.networkconnectivity.v1alpha1.stub.GrpcHubServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcHubServiceStub extends HubServiceStub
gRPC stub implementation for the HubService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcHubServiceStub(HubServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcHubServiceStub, using the given settings.protectedGrpcHubServiceStub(HubServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcHubServiceStub, 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 GrpcHubServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcHubServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcHubServiceStubcreate(HubServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateHubRequest,com.google.longrunning.Operation>createHubCallable()com.google.api.gax.rpc.OperationCallable<CreateHubRequest,Hub,OperationMetadata>createHubOperationCallable()com.google.api.gax.rpc.UnaryCallable<CreateSpokeRequest,com.google.longrunning.Operation>createSpokeCallable()com.google.api.gax.rpc.OperationCallable<CreateSpokeRequest,Spoke,OperationMetadata>createSpokeOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteHubRequest,com.google.longrunning.Operation>deleteHubCallable()com.google.api.gax.rpc.OperationCallable<DeleteHubRequest,com.google.protobuf.Empty,OperationMetadata>deleteHubOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteSpokeRequest,com.google.longrunning.Operation>deleteSpokeCallable()com.google.api.gax.rpc.OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty,OperationMetadata>deleteSpokeOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetHubRequest,Hub>getHubCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetSpokeRequest,Spoke>getSpokeCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListHubsRequest,ListHubsResponse>listHubsCallable()com.google.api.gax.rpc.UnaryCallable<ListHubsRequest,HubServiceClient.ListHubsPagedResponse>listHubsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListSpokesRequest,ListSpokesResponse>listSpokesCallable()com.google.api.gax.rpc.UnaryCallable<ListSpokesRequest,HubServiceClient.ListSpokesPagedResponse>listSpokesPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateHubRequest,com.google.longrunning.Operation>updateHubCallable()com.google.api.gax.rpc.OperationCallable<UpdateHubRequest,Hub,OperationMetadata>updateHubOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpdateSpokeRequest,com.google.longrunning.Operation>updateSpokeCallable()com.google.api.gax.rpc.OperationCallable<UpdateSpokeRequest,Spoke,OperationMetadata>updateSpokeOperationCallable()
-
-
-
Constructor Detail
-
GrpcHubServiceStub
protected GrpcHubServiceStub(HubServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcHubServiceStub, 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
-
GrpcHubServiceStub
protected GrpcHubServiceStub(HubServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcHubServiceStub, 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 GrpcHubServiceStub create(HubServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcHubServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcHubServiceStub 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 classHubServiceStub
-
listHubsCallable
public com.google.api.gax.rpc.UnaryCallable<ListHubsRequest,ListHubsResponse> listHubsCallable()
- Overrides:
listHubsCallablein classHubServiceStub
-
listHubsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListHubsRequest,HubServiceClient.ListHubsPagedResponse> listHubsPagedCallable()
- Overrides:
listHubsPagedCallablein classHubServiceStub
-
getHubCallable
public com.google.api.gax.rpc.UnaryCallable<GetHubRequest,Hub> getHubCallable()
- Overrides:
getHubCallablein classHubServiceStub
-
createHubCallable
public com.google.api.gax.rpc.UnaryCallable<CreateHubRequest,com.google.longrunning.Operation> createHubCallable()
- Overrides:
createHubCallablein classHubServiceStub
-
createHubOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateHubRequest,Hub,OperationMetadata> createHubOperationCallable()
- Overrides:
createHubOperationCallablein classHubServiceStub
-
updateHubCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateHubRequest,com.google.longrunning.Operation> updateHubCallable()
- Overrides:
updateHubCallablein classHubServiceStub
-
updateHubOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateHubRequest,Hub,OperationMetadata> updateHubOperationCallable()
- Overrides:
updateHubOperationCallablein classHubServiceStub
-
deleteHubCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteHubRequest,com.google.longrunning.Operation> deleteHubCallable()
- Overrides:
deleteHubCallablein classHubServiceStub
-
deleteHubOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteHubRequest,com.google.protobuf.Empty,OperationMetadata> deleteHubOperationCallable()
- Overrides:
deleteHubOperationCallablein classHubServiceStub
-
listSpokesCallable
public com.google.api.gax.rpc.UnaryCallable<ListSpokesRequest,ListSpokesResponse> listSpokesCallable()
- Overrides:
listSpokesCallablein classHubServiceStub
-
listSpokesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSpokesRequest,HubServiceClient.ListSpokesPagedResponse> listSpokesPagedCallable()
- Overrides:
listSpokesPagedCallablein classHubServiceStub
-
getSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<GetSpokeRequest,Spoke> getSpokeCallable()
- Overrides:
getSpokeCallablein classHubServiceStub
-
createSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSpokeRequest,com.google.longrunning.Operation> createSpokeCallable()
- Overrides:
createSpokeCallablein classHubServiceStub
-
createSpokeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateSpokeRequest,Spoke,OperationMetadata> createSpokeOperationCallable()
- Overrides:
createSpokeOperationCallablein classHubServiceStub
-
updateSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSpokeRequest,com.google.longrunning.Operation> updateSpokeCallable()
- Overrides:
updateSpokeCallablein classHubServiceStub
-
updateSpokeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateSpokeRequest,Spoke,OperationMetadata> updateSpokeOperationCallable()
- Overrides:
updateSpokeOperationCallablein classHubServiceStub
-
deleteSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSpokeRequest,com.google.longrunning.Operation> deleteSpokeCallable()
- Overrides:
deleteSpokeCallablein classHubServiceStub
-
deleteSpokeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty,OperationMetadata> deleteSpokeOperationCallable()
- Overrides:
deleteSpokeOperationCallablein classHubServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classHubServiceStub
-
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
-
-