Class HttpJsonNotificationsApiServiceStub (0.2.0)

public class HttpJsonNotificationsApiServiceStub extends NotificationsApiServiceStub

REST stub implementation for the NotificationsApiService service API.

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

Inheritance

java.lang.Object > NotificationsApiServiceStub > HttpJsonNotificationsApiServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(NotificationsApiServiceStubSettings settings)

public static final HttpJsonNotificationsApiServiceStub create(NotificationsApiServiceStubSettings settings)
Parameter
Name Description
settings NotificationsApiServiceStubSettings
Returns
Type Description
HttpJsonNotificationsApiServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonNotificationsApiServiceStub, 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 NotificationsApiServiceStubSettings
clientContext ClientContext

HttpJsonNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createNotificationSubscriptionCallable()

public UnaryCallable<CreateNotificationSubscriptionRequest,NotificationSubscription> createNotificationSubscriptionCallable()
Returns
Type Description
UnaryCallable<CreateNotificationSubscriptionRequest,NotificationSubscription>
Overrides

deleteNotificationSubscriptionCallable()

public UnaryCallable<DeleteNotificationSubscriptionRequest,Empty> deleteNotificationSubscriptionCallable()
Returns
Type Description
UnaryCallable<DeleteNotificationSubscriptionRequest,Empty>
Overrides

getNotificationSubscriptionCallable()

public UnaryCallable<GetNotificationSubscriptionRequest,NotificationSubscription> getNotificationSubscriptionCallable()
Returns
Type Description
UnaryCallable<GetNotificationSubscriptionRequest,NotificationSubscription>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listNotificationSubscriptionsCallable()

public UnaryCallable<ListNotificationSubscriptionsRequest,ListNotificationSubscriptionsResponse> listNotificationSubscriptionsCallable()
Returns
Type Description
UnaryCallable<ListNotificationSubscriptionsRequest,ListNotificationSubscriptionsResponse>
Overrides

listNotificationSubscriptionsPagedCallable()

public UnaryCallable<ListNotificationSubscriptionsRequest,NotificationsApiServiceClient.ListNotificationSubscriptionsPagedResponse> listNotificationSubscriptionsPagedCallable()
Returns
Type Description
UnaryCallable<ListNotificationSubscriptionsRequest,ListNotificationSubscriptionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateNotificationSubscriptionCallable()

public UnaryCallable<UpdateNotificationSubscriptionRequest,NotificationSubscription> updateNotificationSubscriptionCallable()
Returns
Type Description
UnaryCallable<UpdateNotificationSubscriptionRequest,NotificationSubscription>
Overrides