Class GrpcSubscriptionsServiceStub (0.12.0)

public class GrpcSubscriptionsServiceStub extends SubscriptionsServiceStub

gRPC stub implementation for the SubscriptionsService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SubscriptionsServiceStub > GrpcSubscriptionsServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcSubscriptionsServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcSubscriptionsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SubscriptionsServiceStubSettings settings)

public static final GrpcSubscriptionsServiceStub create(SubscriptionsServiceStubSettings settings)
Parameter
Name Description
settings SubscriptionsServiceStubSettings
Returns
Type Description
GrpcSubscriptionsServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext)

protected GrpcSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSubscriptionsServiceStub, 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 SubscriptionsServiceStubSettings
clientContext ClientContext

GrpcSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSubscriptionsServiceStub, 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 SubscriptionsServiceStubSettings
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

createSubscriptionCallable()

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

createSubscriptionOperationCallable()

public OperationCallable<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata> createSubscriptionOperationCallable()
Returns
Type Description
OperationCallable<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata>
Overrides

deleteSubscriptionCallable()

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

deleteSubscriptionOperationCallable()

public OperationCallable<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata> deleteSubscriptionOperationCallable()
Returns
Type Description
OperationCallable<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getSubscriptionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSubscriptionsCallable()

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

listSubscriptionsPagedCallable()

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

reactivateSubscriptionCallable()

public UnaryCallable<ReactivateSubscriptionRequest,Operation> reactivateSubscriptionCallable()
Returns
Type Description
UnaryCallable<ReactivateSubscriptionRequest,Operation>
Overrides

reactivateSubscriptionOperationCallable()

public OperationCallable<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata> reactivateSubscriptionOperationCallable()
Returns
Type Description
OperationCallable<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSubscriptionCallable()

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

updateSubscriptionOperationCallable()

public OperationCallable<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata> updateSubscriptionOperationCallable()
Returns
Type Description
OperationCallable<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata>
Overrides