Class HttpJsonSubscriptionsServiceStub (0.16.0)

public class HttpJsonSubscriptionsServiceStub extends SubscriptionsServiceStub

REST stub implementation for the SubscriptionsService service API.

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

Inheritance

java.lang.Object > SubscriptionsServiceStub > HttpJsonSubscriptionsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SubscriptionsServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSubscriptionsServiceStub(SubscriptionsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSubscriptionsServiceStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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