Class GrpcAdminServiceStub
java.lang.Object
com.google.cloud.pubsublite.v1.stub.AdminServiceStub
com.google.cloud.pubsublite.v1.stub.GrpcAdminServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
gRPC stub implementation for the AdminService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcAdminServiceStub(AdminServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcAdminServiceStub, using the given settings.protectedGrpcAdminServiceStub(AdminServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcAdminServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcAdminServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcAdminServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcAdminServiceStubcreate(AdminServiceStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateReservationRequest,Reservation> com.google.api.gax.rpc.UnaryCallable<CreateSubscriptionRequest,Subscription> com.google.api.gax.rpc.UnaryCallable<CreateTopicRequest,Topic> com.google.api.gax.rpc.UnaryCallable<DeleteReservationRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteTopicRequest,com.google.protobuf.Empty> com.google.longrunning.stub.GrpcOperationsStubcom.google.api.gax.rpc.UnaryCallable<GetReservationRequest,Reservation> com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription> com.google.api.gax.rpc.UnaryCallable<GetTopicRequest,Topic> com.google.api.gax.rpc.UnaryCallable<GetTopicPartitionsRequest,TopicPartitions> booleanbooleancom.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ListReservationsResponse> com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,AdminServiceClient.ListReservationsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse> com.google.api.gax.rpc.UnaryCallable<ListReservationTopicsRequest,AdminServiceClient.ListReservationTopicsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,AdminServiceClient.ListSubscriptionsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListTopicsRequest,ListTopicsResponse> com.google.api.gax.rpc.UnaryCallable<ListTopicsRequest,AdminServiceClient.ListTopicsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> com.google.api.gax.rpc.UnaryCallable<ListTopicSubscriptionsRequest,AdminServiceClient.ListTopicSubscriptionsPagedResponse> com.google.api.gax.rpc.UnaryCallable<SeekSubscriptionRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse, OperationMetadata> voidshutdown()voidcom.google.api.gax.rpc.UnaryCallable<UpdateReservationRequest,Reservation> com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription> com.google.api.gax.rpc.UnaryCallable<UpdateTopicRequest,Topic>
-
Constructor Details
-
GrpcAdminServiceStub
protected GrpcAdminServiceStub(AdminServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcAdminServiceStub, 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
-
GrpcAdminServiceStub
protected GrpcAdminServiceStub(AdminServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcAdminServiceStub, 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
public static final GrpcAdminServiceStub create(AdminServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcAdminServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcAdminServiceStub 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 classAdminServiceStub
-
createTopicCallable
- Overrides:
createTopicCallablein classAdminServiceStub
-
getTopicCallable
- Overrides:
getTopicCallablein classAdminServiceStub
-
getTopicPartitionsCallable
public com.google.api.gax.rpc.UnaryCallable<GetTopicPartitionsRequest,TopicPartitions> getTopicPartitionsCallable()- Overrides:
getTopicPartitionsCallablein classAdminServiceStub
-
listTopicsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicsRequest,ListTopicsResponse> listTopicsCallable()- Overrides:
listTopicsCallablein classAdminServiceStub
-
listTopicsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicsRequest,AdminServiceClient.ListTopicsPagedResponse> listTopicsPagedCallable()- Overrides:
listTopicsPagedCallablein classAdminServiceStub
-
updateTopicCallable
- Overrides:
updateTopicCallablein classAdminServiceStub
-
deleteTopicCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTopicRequest,com.google.protobuf.Empty> deleteTopicCallable()- Overrides:
deleteTopicCallablein classAdminServiceStub
-
listTopicSubscriptionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> listTopicSubscriptionsCallable()- Overrides:
listTopicSubscriptionsCallablein classAdminServiceStub
-
listTopicSubscriptionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicSubscriptionsRequest,AdminServiceClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsPagedCallable()- Overrides:
listTopicSubscriptionsPagedCallablein classAdminServiceStub
-
createSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSubscriptionRequest,Subscription> createSubscriptionCallable()- Overrides:
createSubscriptionCallablein classAdminServiceStub
-
getSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()- Overrides:
getSubscriptionCallablein classAdminServiceStub
-
listSubscriptionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()- Overrides:
listSubscriptionsCallablein classAdminServiceStub
-
listSubscriptionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,AdminServiceClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()- Overrides:
listSubscriptionsPagedCallablein classAdminServiceStub
-
updateSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()- Overrides:
updateSubscriptionCallablein classAdminServiceStub
-
deleteSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty> deleteSubscriptionCallable()- Overrides:
deleteSubscriptionCallablein classAdminServiceStub
-
seekSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<SeekSubscriptionRequest,com.google.longrunning.Operation> seekSubscriptionCallable()- Overrides:
seekSubscriptionCallablein classAdminServiceStub
-
seekSubscriptionOperationCallable
public com.google.api.gax.rpc.OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse, seekSubscriptionOperationCallable()OperationMetadata> - Overrides:
seekSubscriptionOperationCallablein classAdminServiceStub
-
createReservationCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReservationRequest,Reservation> createReservationCallable()- Overrides:
createReservationCallablein classAdminServiceStub
-
getReservationCallable
public com.google.api.gax.rpc.UnaryCallable<GetReservationRequest,Reservation> getReservationCallable()- Overrides:
getReservationCallablein classAdminServiceStub
-
listReservationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ListReservationsResponse> listReservationsCallable()- Overrides:
listReservationsCallablein classAdminServiceStub
-
listReservationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,AdminServiceClient.ListReservationsPagedResponse> listReservationsPagedCallable()- Overrides:
listReservationsPagedCallablein classAdminServiceStub
-
updateReservationCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateReservationRequest,Reservation> updateReservationCallable()- Overrides:
updateReservationCallablein classAdminServiceStub
-
deleteReservationCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReservationRequest,com.google.protobuf.Empty> deleteReservationCallable()- Overrides:
deleteReservationCallablein classAdminServiceStub
-
listReservationTopicsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse> listReservationTopicsCallable()- Overrides:
listReservationTopicsCallablein classAdminServiceStub
-
listReservationTopicsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationTopicsRequest,AdminServiceClient.ListReservationTopicsPagedResponse> listReservationTopicsPagedCallable()- Overrides:
listReservationTopicsPagedCallablein classAdminServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAdminServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-