Class GrpcHubServiceStub
java.lang.Object
com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStub
com.google.cloud.networkconnectivity.v1alpha1.stub.GrpcHubServiceStub
- All Implemented Interfaces:
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
ConstructorsModifierConstructorDescriptionprotectedGrpcHubServiceStub(HubServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcHubServiceStub, using the given settings.protectedGrpcHubServiceStub(HubServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcHubServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcHubServiceStubcreate(ClientContext clientContext) static final GrpcHubServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcHubServiceStubcreate(HubServiceStubSettings settings) OperationCallable<DeleteHubRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcHubServiceStub
protected GrpcHubServiceStub(HubServiceStubSettings settings, 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, ClientContext clientContext, 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 Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcHubServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classHubServiceStub
-
listHubsCallable
- Overrides:
listHubsCallablein classHubServiceStub
-
listHubsPagedCallable
public UnaryCallable<ListHubsRequest,HubServiceClient.ListHubsPagedResponse> listHubsPagedCallable()- Overrides:
listHubsPagedCallablein classHubServiceStub
-
getHubCallable
- Overrides:
getHubCallablein classHubServiceStub
-
createHubCallable
- Overrides:
createHubCallablein classHubServiceStub
-
createHubOperationCallable
- Overrides:
createHubOperationCallablein classHubServiceStub
-
updateHubCallable
- Overrides:
updateHubCallablein classHubServiceStub
-
updateHubOperationCallable
- Overrides:
updateHubOperationCallablein classHubServiceStub
-
deleteHubCallable
- Overrides:
deleteHubCallablein classHubServiceStub
-
deleteHubOperationCallable
public OperationCallable<DeleteHubRequest,com.google.protobuf.Empty, deleteHubOperationCallable()OperationMetadata> - Overrides:
deleteHubOperationCallablein classHubServiceStub
-
listSpokesCallable
- Overrides:
listSpokesCallablein classHubServiceStub
-
listSpokesPagedCallable
public UnaryCallable<ListSpokesRequest,HubServiceClient.ListSpokesPagedResponse> listSpokesPagedCallable()- Overrides:
listSpokesPagedCallablein classHubServiceStub
-
getSpokeCallable
- Overrides:
getSpokeCallablein classHubServiceStub
-
createSpokeCallable
- Overrides:
createSpokeCallablein classHubServiceStub
-
createSpokeOperationCallable
- Overrides:
createSpokeOperationCallablein classHubServiceStub
-
updateSpokeCallable
- Overrides:
updateSpokeCallablein classHubServiceStub
-
updateSpokeOperationCallable
- Overrides:
updateSpokeOperationCallablein classHubServiceStub
-
deleteSpokeCallable
- Overrides:
deleteSpokeCallablein classHubServiceStub
-
deleteSpokeOperationCallable
public OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty, deleteSpokeOperationCallable()OperationMetadata> - 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
- Throws:
InterruptedException
-