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 protected
GrpcAdminServiceStub(AdminServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcAdminServiceStub, using the given settings.protected
GrpcAdminServiceStub(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:
getOperationsStub
in classAdminServiceStub
-
createTopicCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTopicRequest,Topic> createTopicCallable()
- Overrides:
createTopicCallable
in classAdminServiceStub
-
getTopicCallable
public com.google.api.gax.rpc.UnaryCallable<GetTopicRequest,Topic> getTopicCallable()
- Overrides:
getTopicCallable
in classAdminServiceStub
-
getTopicPartitionsCallable
public com.google.api.gax.rpc.UnaryCallable<GetTopicPartitionsRequest,TopicPartitions> getTopicPartitionsCallable()
- Overrides:
getTopicPartitionsCallable
in classAdminServiceStub
-
listTopicsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicsRequest,ListTopicsResponse> listTopicsCallable()
- Overrides:
listTopicsCallable
in classAdminServiceStub
-
listTopicsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicsRequest,AdminServiceClient.ListTopicsPagedResponse> listTopicsPagedCallable()
- Overrides:
listTopicsPagedCallable
in classAdminServiceStub
-
updateTopicCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateTopicRequest,Topic> updateTopicCallable()
- Overrides:
updateTopicCallable
in classAdminServiceStub
-
deleteTopicCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTopicRequest,com.google.protobuf.Empty> deleteTopicCallable()
- Overrides:
deleteTopicCallable
in classAdminServiceStub
-
listTopicSubscriptionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> listTopicSubscriptionsCallable()
- Overrides:
listTopicSubscriptionsCallable
in classAdminServiceStub
-
listTopicSubscriptionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTopicSubscriptionsRequest,AdminServiceClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsPagedCallable()
- Overrides:
listTopicSubscriptionsPagedCallable
in classAdminServiceStub
-
createSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSubscriptionRequest,Subscription> createSubscriptionCallable()
- Overrides:
createSubscriptionCallable
in classAdminServiceStub
-
getSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
- Overrides:
getSubscriptionCallable
in classAdminServiceStub
-
listSubscriptionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
- Overrides:
listSubscriptionsCallable
in classAdminServiceStub
-
listSubscriptionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,AdminServiceClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
- Overrides:
listSubscriptionsPagedCallable
in classAdminServiceStub
-
updateSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
- Overrides:
updateSubscriptionCallable
in classAdminServiceStub
-
deleteSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty> deleteSubscriptionCallable()
- Overrides:
deleteSubscriptionCallable
in classAdminServiceStub
-
seekSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<SeekSubscriptionRequest,com.google.longrunning.Operation> seekSubscriptionCallable()
- Overrides:
seekSubscriptionCallable
in classAdminServiceStub
-
seekSubscriptionOperationCallable
public com.google.api.gax.rpc.OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata> seekSubscriptionOperationCallable()
- Overrides:
seekSubscriptionOperationCallable
in classAdminServiceStub
-
createReservationCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReservationRequest,Reservation> createReservationCallable()
- Overrides:
createReservationCallable
in classAdminServiceStub
-
getReservationCallable
public com.google.api.gax.rpc.UnaryCallable<GetReservationRequest,Reservation> getReservationCallable()
- Overrides:
getReservationCallable
in classAdminServiceStub
-
listReservationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ListReservationsResponse> listReservationsCallable()
- Overrides:
listReservationsCallable
in classAdminServiceStub
-
listReservationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,AdminServiceClient.ListReservationsPagedResponse> listReservationsPagedCallable()
- Overrides:
listReservationsPagedCallable
in classAdminServiceStub
-
updateReservationCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateReservationRequest,Reservation> updateReservationCallable()
- Overrides:
updateReservationCallable
in classAdminServiceStub
-
deleteReservationCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReservationRequest,com.google.protobuf.Empty> deleteReservationCallable()
- Overrides:
deleteReservationCallable
in classAdminServiceStub
-
listReservationTopicsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse> listReservationTopicsCallable()
- Overrides:
listReservationTopicsCallable
in classAdminServiceStub
-
listReservationTopicsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationTopicsRequest,AdminServiceClient.ListReservationTopicsPagedResponse> listReservationTopicsPagedCallable()
- Overrides:
listReservationTopicsPagedCallable
in classAdminServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-