Class GrpcAdminServiceStub (1.12.22)

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.

Inheritance

java.lang.Object > AdminServiceStub > GrpcAdminServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcAdminServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcAdminServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAdminServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcAdminServiceStub
Exceptions
TypeDescription
IOException

create(AdminServiceStubSettings settings)

public static final GrpcAdminServiceStub create(AdminServiceStubSettings settings)
Parameter
NameDescription
settingsAdminServiceStubSettings
Returns
TypeDescription
GrpcAdminServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext)

protected GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsAdminServiceStubSettings
clientContextClientContext

GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsAdminServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createReservationCallable()

public UnaryCallable<CreateReservationRequest,Reservation> createReservationCallable()
Returns
TypeDescription
UnaryCallable<CreateReservationRequest,Reservation>
Overrides

createSubscriptionCallable()

public UnaryCallable<CreateSubscriptionRequest,Subscription> createSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<CreateSubscriptionRequest,Subscription>
Overrides

createTopicCallable()

public UnaryCallable<CreateTopicRequest,Topic> createTopicCallable()
Returns
TypeDescription
UnaryCallable<CreateTopicRequest,Topic>
Overrides

deleteReservationCallable()

public UnaryCallable<DeleteReservationRequest,Empty> deleteReservationCallable()
Returns
TypeDescription
UnaryCallable<DeleteReservationRequest,Empty>
Overrides

deleteSubscriptionCallable()

public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<DeleteSubscriptionRequest,Empty>
Overrides

deleteTopicCallable()

public UnaryCallable<DeleteTopicRequest,Empty> deleteTopicCallable()
Returns
TypeDescription
UnaryCallable<DeleteTopicRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getReservationCallable()

public UnaryCallable<GetReservationRequest,Reservation> getReservationCallable()
Returns
TypeDescription
UnaryCallable<GetReservationRequest,Reservation>
Overrides

getSubscriptionCallable()

public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<GetSubscriptionRequest,Subscription>
Overrides

getTopicCallable()

public UnaryCallable<GetTopicRequest,Topic> getTopicCallable()
Returns
TypeDescription
UnaryCallable<GetTopicRequest,Topic>
Overrides

getTopicPartitionsCallable()

public UnaryCallable<GetTopicPartitionsRequest,TopicPartitions> getTopicPartitionsCallable()
Returns
TypeDescription
UnaryCallable<GetTopicPartitionsRequest,TopicPartitions>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listReservationTopicsCallable()

public UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse> listReservationTopicsCallable()
Returns
TypeDescription
UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse>
Overrides

listReservationTopicsPagedCallable()

public UnaryCallable<ListReservationTopicsRequest,AdminServiceClient.ListReservationTopicsPagedResponse> listReservationTopicsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsPagedResponse>
Overrides

listReservationsCallable()

public UnaryCallable<ListReservationsRequest,ListReservationsResponse> listReservationsCallable()
Returns
TypeDescription
UnaryCallable<ListReservationsRequest,ListReservationsResponse>
Overrides

listReservationsPagedCallable()

public UnaryCallable<ListReservationsRequest,AdminServiceClient.ListReservationsPagedResponse> listReservationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReservationsRequest,ListReservationsPagedResponse>
Overrides

listSubscriptionsCallable()

public UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
Returns
TypeDescription
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse>
Overrides

listSubscriptionsPagedCallable()

public UnaryCallable<ListSubscriptionsRequest,AdminServiceClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse>
Overrides

listTopicSubscriptionsCallable()

public UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> listTopicSubscriptionsCallable()
Returns
TypeDescription
UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse>
Overrides

listTopicSubscriptionsPagedCallable()

public UnaryCallable<ListTopicSubscriptionsRequest,AdminServiceClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsPagedResponse>
Overrides

listTopicsCallable()

public UnaryCallable<ListTopicsRequest,ListTopicsResponse> listTopicsCallable()
Returns
TypeDescription
UnaryCallable<ListTopicsRequest,ListTopicsResponse>
Overrides

listTopicsPagedCallable()

public UnaryCallable<ListTopicsRequest,AdminServiceClient.ListTopicsPagedResponse> listTopicsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTopicsRequest,ListTopicsPagedResponse>
Overrides

seekSubscriptionCallable()

public UnaryCallable<SeekSubscriptionRequest,Operation> seekSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<SeekSubscriptionRequest,Operation>
Overrides

seekSubscriptionOperationCallable()

public OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata> seekSubscriptionOperationCallable()
Returns
TypeDescription
OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateReservationCallable()

public UnaryCallable<UpdateReservationRequest,Reservation> updateReservationCallable()
Returns
TypeDescription
UnaryCallable<UpdateReservationRequest,Reservation>
Overrides

updateSubscriptionCallable()

public UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<UpdateSubscriptionRequest,Subscription>
Overrides

updateTopicCallable()

public UnaryCallable<UpdateTopicRequest,Topic> updateTopicCallable()
Returns
TypeDescription
UnaryCallable<UpdateTopicRequest,Topic>
Overrides