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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSubscriptionsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSubscriptionsServiceStub
Exceptions
TypeDescription
IOException

create(SubscriptionsServiceStubSettings settings)

public static final HttpJsonSubscriptionsServiceStub create(SubscriptionsServiceStubSettings settings)
Parameter
NameDescription
settingsSubscriptionsServiceStubSettings
Returns
TypeDescription
HttpJsonSubscriptionsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsSubscriptionsServiceStubSettings
clientContextClientContext

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

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

getHttpJsonOperationsStub()

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