Class GrpcHubServiceStub
java.lang.Object
com.google.cloud.networkconnectivity.v1beta.stub.HubServiceStub
com.google.cloud.networkconnectivity.v1beta.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<DeleteGatewayAdvertisedRouteRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeleteHubRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanUnaryCallable<ListGatewayAdvertisedRoutesRequest,HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse> voidshutdown()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
-
listHubSpokesCallable
- Overrides:
listHubSpokesCallablein classHubServiceStub
-
listHubSpokesPagedCallable
public UnaryCallable<ListHubSpokesRequest,HubServiceClient.ListHubSpokesPagedResponse> listHubSpokesPagedCallable()- Overrides:
listHubSpokesPagedCallablein classHubServiceStub
-
queryHubStatusCallable
- Overrides:
queryHubStatusCallablein classHubServiceStub
-
queryHubStatusPagedCallable
public UnaryCallable<QueryHubStatusRequest,HubServiceClient.QueryHubStatusPagedResponse> queryHubStatusPagedCallable()- Overrides:
queryHubStatusPagedCallablein 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
-
rejectHubSpokeCallable
- Overrides:
rejectHubSpokeCallablein classHubServiceStub
-
rejectHubSpokeOperationCallable
public OperationCallable<RejectHubSpokeRequest,RejectHubSpokeResponse, rejectHubSpokeOperationCallable()OperationMetadata> - Overrides:
rejectHubSpokeOperationCallablein classHubServiceStub
-
acceptHubSpokeCallable
- Overrides:
acceptHubSpokeCallablein classHubServiceStub
-
acceptHubSpokeOperationCallable
public OperationCallable<AcceptHubSpokeRequest,AcceptHubSpokeResponse, acceptHubSpokeOperationCallable()OperationMetadata> - Overrides:
acceptHubSpokeOperationCallablein classHubServiceStub
-
acceptSpokeUpdateCallable
- Overrides:
acceptSpokeUpdateCallablein classHubServiceStub
-
acceptSpokeUpdateOperationCallable
public OperationCallable<AcceptSpokeUpdateRequest,AcceptSpokeUpdateResponse, acceptSpokeUpdateOperationCallable()OperationMetadata> - Overrides:
acceptSpokeUpdateOperationCallablein classHubServiceStub
-
rejectSpokeUpdateCallable
- Overrides:
rejectSpokeUpdateCallablein classHubServiceStub
-
rejectSpokeUpdateOperationCallable
public OperationCallable<RejectSpokeUpdateRequest,RejectSpokeUpdateResponse, rejectSpokeUpdateOperationCallable()OperationMetadata> - Overrides:
rejectSpokeUpdateOperationCallablein classHubServiceStub
-
deleteSpokeCallable
- Overrides:
deleteSpokeCallablein classHubServiceStub
-
deleteSpokeOperationCallable
public OperationCallable<DeleteSpokeRequest,com.google.protobuf.Empty, deleteSpokeOperationCallable()OperationMetadata> - Overrides:
deleteSpokeOperationCallablein classHubServiceStub
-
getRouteTableCallable
- Overrides:
getRouteTableCallablein classHubServiceStub
-
getRouteCallable
- Overrides:
getRouteCallablein classHubServiceStub
-
listRoutesCallable
- Overrides:
listRoutesCallablein classHubServiceStub
-
listRoutesPagedCallable
public UnaryCallable<ListRoutesRequest,HubServiceClient.ListRoutesPagedResponse> listRoutesPagedCallable()- Overrides:
listRoutesPagedCallablein classHubServiceStub
-
listRouteTablesCallable
- Overrides:
listRouteTablesCallablein classHubServiceStub
-
listRouteTablesPagedCallable
public UnaryCallable<ListRouteTablesRequest,HubServiceClient.ListRouteTablesPagedResponse> listRouteTablesPagedCallable()- Overrides:
listRouteTablesPagedCallablein classHubServiceStub
-
getGroupCallable
- Overrides:
getGroupCallablein classHubServiceStub
-
listGroupsCallable
- Overrides:
listGroupsCallablein classHubServiceStub
-
listGroupsPagedCallable
public UnaryCallable<ListGroupsRequest,HubServiceClient.ListGroupsPagedResponse> listGroupsPagedCallable()- Overrides:
listGroupsPagedCallablein classHubServiceStub
-
updateGroupCallable
- Overrides:
updateGroupCallablein classHubServiceStub
-
updateGroupOperationCallable
- Overrides:
updateGroupOperationCallablein classHubServiceStub
-
createGatewayAdvertisedRouteCallable
public UnaryCallable<CreateGatewayAdvertisedRouteRequest,Operation> createGatewayAdvertisedRouteCallable()- Overrides:
createGatewayAdvertisedRouteCallablein classHubServiceStub
-
createGatewayAdvertisedRouteOperationCallable
public OperationCallable<CreateGatewayAdvertisedRouteRequest,GatewayAdvertisedRoute, createGatewayAdvertisedRouteOperationCallable()OperationMetadata> - Overrides:
createGatewayAdvertisedRouteOperationCallablein classHubServiceStub
-
getGatewayAdvertisedRouteCallable
public UnaryCallable<GetGatewayAdvertisedRouteRequest,GatewayAdvertisedRoute> getGatewayAdvertisedRouteCallable()- Overrides:
getGatewayAdvertisedRouteCallablein classHubServiceStub
-
listGatewayAdvertisedRoutesCallable
public UnaryCallable<ListGatewayAdvertisedRoutesRequest,ListGatewayAdvertisedRoutesResponse> listGatewayAdvertisedRoutesCallable()- Overrides:
listGatewayAdvertisedRoutesCallablein classHubServiceStub
-
listGatewayAdvertisedRoutesPagedCallable
public UnaryCallable<ListGatewayAdvertisedRoutesRequest,HubServiceClient.ListGatewayAdvertisedRoutesPagedResponse> listGatewayAdvertisedRoutesPagedCallable()- Overrides:
listGatewayAdvertisedRoutesPagedCallablein classHubServiceStub
-
updateGatewayAdvertisedRouteCallable
public UnaryCallable<UpdateGatewayAdvertisedRouteRequest,Operation> updateGatewayAdvertisedRouteCallable()- Overrides:
updateGatewayAdvertisedRouteCallablein classHubServiceStub
-
updateGatewayAdvertisedRouteOperationCallable
public OperationCallable<UpdateGatewayAdvertisedRouteRequest,GatewayAdvertisedRoute, updateGatewayAdvertisedRouteOperationCallable()OperationMetadata> - Overrides:
updateGatewayAdvertisedRouteOperationCallablein classHubServiceStub
-
deleteGatewayAdvertisedRouteCallable
public UnaryCallable<DeleteGatewayAdvertisedRouteRequest,Operation> deleteGatewayAdvertisedRouteCallable()- Overrides:
deleteGatewayAdvertisedRouteCallablein classHubServiceStub
-
deleteGatewayAdvertisedRouteOperationCallable
public OperationCallable<DeleteGatewayAdvertisedRouteRequest,com.google.protobuf.Empty, deleteGatewayAdvertisedRouteOperationCallable()OperationMetadata> - Overrides:
deleteGatewayAdvertisedRouteOperationCallablein classHubServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classHubServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,HubServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classHubServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classHubServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classHubServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classHubServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein 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
-