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
@Generated("by gapic-generator-java") public class GrpcAdminServiceStub extends AdminServiceStub
gRPC stub implementation for the AdminService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcAdminServiceStub(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
-
-
-
Constructor Detail
-
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 Detail
-
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
public com.google.api.gax.rpc.UnaryCallable<CreateTopicRequest,Topic> createTopicCallable()
- Overrides:
createTopicCallablein classAdminServiceStub
-
getTopicCallable
public com.google.api.gax.rpc.UnaryCallable<GetTopicRequest,Topic> 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
public com.google.api.gax.rpc.UnaryCallable<UpdateTopicRequest,Topic> 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,OperationMetadata> seekSubscriptionOperationCallable()
- 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-