Class GrpcAdminServiceStub (1.13.8)

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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcAdminServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAdminServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcAdminServiceStub
Exceptions
Type Description
IOException

create(AdminServiceStubSettings settings)

public static final GrpcAdminServiceStub create(AdminServiceStubSettings settings)
Parameter
Name Description
settings AdminServiceStubSettings
Returns
Type Description
GrpcAdminServiceStub
Exceptions
Type Description
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
Name Description
settings AdminServiceStubSettings
clientContext ClientContext

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
Name Description
settings AdminServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createReservationCallable()

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

createSubscriptionCallable()

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

createTopicCallable()

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

deleteReservationCallable()

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

deleteSubscriptionCallable()

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

deleteTopicCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getReservationCallable()

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

getSubscriptionCallable()

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

getTopicCallable()

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

getTopicPartitionsCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listReservationTopicsCallable()

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

listReservationTopicsPagedCallable()

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

listReservationsCallable()

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

listReservationsPagedCallable()

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

listSubscriptionsCallable()

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

listSubscriptionsPagedCallable()

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

listTopicSubscriptionsCallable()

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

listTopicSubscriptionsPagedCallable()

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

listTopicsCallable()

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

listTopicsPagedCallable()

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

seekSubscriptionCallable()

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

seekSubscriptionOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateReservationCallable()

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

updateSubscriptionCallable()

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

updateTopicCallable()

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