Class GrpcNotificationsApiServiceStub (0.10.0)

public class GrpcNotificationsApiServiceStub extends NotificationsApiServiceStub

gRPC stub implementation for the NotificationsApiService service API.

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

Inheritance

java.lang.Object > NotificationsApiServiceStub > GrpcNotificationsApiServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(NotificationsApiServiceStubSettings settings)

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

Constructors

GrpcNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext)

protected GrpcNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext)

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

GrpcNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcNotificationsApiServiceStub(NotificationsApiServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcNotificationsApiServiceStub, 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 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()
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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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