Class GrpcHubServiceStub
- java.lang.Object
-
- com.google.cloud.networkconnectivity.v1.stub.HubServiceStub
-
- com.google.cloud.networkconnectivity.v1.stub.GrpcHubServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@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 protected
GrpcHubServiceStub(HubServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcHubServiceStub, using the given settings.protected
GrpcHubServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcHubServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcHubServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcHubServiceStub
create(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.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetSpokeRequest,Spoke>
getSpokeCallable()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classHubServiceStub
-
listHubsCallable
public com.google.api.gax.rpc.UnaryCallable<ListHubsRequest,ListHubsResponse> listHubsCallable()
- Overrides:
listHubsCallable
in classHubServiceStub
-
listHubsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListHubsRequest,HubServiceClient.ListHubsPagedResponse> listHubsPagedCallable()
- Overrides:
listHubsPagedCallable
in classHubServiceStub
-
getHubCallable
public com.google.api.gax.rpc.UnaryCallable<GetHubRequest,Hub> getHubCallable()
- Overrides:
getHubCallable
in classHubServiceStub
-
createHubCallable
public com.google.api.gax.rpc.UnaryCallable<CreateHubRequest,com.google.longrunning.Operation> createHubCallable()
- Overrides:
createHubCallable
in classHubServiceStub
-
createHubOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateHubRequest,Hub,OperationMetadata> createHubOperationCallable()
- Overrides:
createHubOperationCallable
in classHubServiceStub
-
updateHubCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateHubRequest,com.google.longrunning.Operation> updateHubCallable()
- Overrides:
updateHubCallable
in classHubServiceStub
-
updateHubOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateHubRequest,Hub,OperationMetadata> updateHubOperationCallable()
- Overrides:
updateHubOperationCallable
in classHubServiceStub
-
deleteHubCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteHubRequest,com.google.longrunning.Operation> deleteHubCallable()
- Overrides:
deleteHubCallable
in classHubServiceStub
-
deleteHubOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteHubRequest,com.google.protobuf.Empty,OperationMetadata> deleteHubOperationCallable()
- Overrides:
deleteHubOperationCallable
in classHubServiceStub
-
listSpokesCallable
public com.google.api.gax.rpc.UnaryCallable<ListSpokesRequest,ListSpokesResponse> listSpokesCallable()
- Overrides:
listSpokesCallable
in classHubServiceStub
-
listSpokesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSpokesRequest,HubServiceClient.ListSpokesPagedResponse> listSpokesPagedCallable()
- Overrides:
listSpokesPagedCallable
in classHubServiceStub
-
getSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<GetSpokeRequest,Spoke> getSpokeCallable()
- Overrides:
getSpokeCallable
in classHubServiceStub
-
createSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSpokeRequest,com.google.longrunning.Operation> createSpokeCallable()
- Overrides:
createSpokeCallable
in classHubServiceStub
-
createSpokeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateSpokeRequest,Spoke,OperationMetadata> createSpokeOperationCallable()
- Overrides:
createSpokeOperationCallable
in classHubServiceStub
-
updateSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSpokeRequest,com.google.longrunning.Operation> updateSpokeCallable()
- Overrides:
updateSpokeCallable
in classHubServiceStub
-
updateSpokeOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateSpokeRequest,Spoke,OperationMetadata> updateSpokeOperationCallable()
- Overrides:
updateSpokeOperationCallable
in classHubServiceStub
-
deleteSpokeCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSpokeRequest,com.google.longrunning.Operation> deleteSpokeCallable()
- Overrides:
deleteSpokeCallable
in classHubServiceStub
-
deleteSpokeOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty,OperationMetadata> deleteSpokeOperationCallable()
- Overrides:
deleteSpokeOperationCallable
in classHubServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-