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.
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()
createSubscriptionCallable()
public UnaryCallable<CreateSubscriptionRequest,Operation> createSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSubscriptionRequest,Operation> |
createSubscriptionOperationCallable()
public OperationCallable<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata> createSubscriptionOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata> |
deleteSubscriptionCallable()
public UnaryCallable<DeleteSubscriptionRequest,Operation> deleteSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSubscriptionRequest,Operation> |
deleteSubscriptionOperationCallable()
public OperationCallable<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata> deleteSubscriptionOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
getSubscriptionCallable()
public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSubscriptionRequest,Subscription> |
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> |
listSubscriptionsPagedCallable()
public UnaryCallable<ListSubscriptionsRequest,SubscriptionsServiceClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse> |
reactivateSubscriptionCallable()
public UnaryCallable<ReactivateSubscriptionRequest,Operation> reactivateSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ReactivateSubscriptionRequest,Operation> |
reactivateSubscriptionOperationCallable()
public OperationCallable<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata> reactivateSubscriptionOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateSubscriptionCallable()
public UnaryCallable<UpdateSubscriptionRequest,Operation> updateSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSubscriptionRequest,Operation> |
updateSubscriptionOperationCallable()
public OperationCallable<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata> updateSubscriptionOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata> |