Class GrpcSubscriptionsServiceStub (0.5.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcSubscriptionsServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SubscriptionsServiceStubSettings settings)

public static final GrpcSubscriptionsServiceStub create(SubscriptionsServiceStubSettings settings)
Parameter
NameDescription
settingsSubscriptionsServiceStubSettings
Returns
TypeDescription
GrpcSubscriptionsServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsSubscriptionsServiceStubSettings
clientContextClientContext

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
NameDescription
settingsSubscriptionsServiceStubSettings
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

createSubscriptionCallable()

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

createSubscriptionOperationCallable()

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

deleteSubscriptionCallable()

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

deleteSubscriptionOperationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getSubscriptionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSubscriptionsCallable()

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

listSubscriptionsPagedCallable()

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

reactivateSubscriptionCallable()

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

reactivateSubscriptionOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSubscriptionCallable()

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

updateSubscriptionOperationCallable()

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