Class NotificationsApiServiceStubSettings.Builder (0.10.0)

public static class NotificationsApiServiceStubSettings.Builder extends StubSettings.Builder<NotificationsApiServiceStubSettings,NotificationsApiServiceStubSettings.Builder>

Builder for NotificationsApiServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > NotificationsApiServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(NotificationsApiServiceStubSettings settings)

protected Builder(NotificationsApiServiceStubSettings settings)
Parameter
Name Description
settings NotificationsApiServiceStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public NotificationsApiServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
NotificationsApiServiceStubSettings.Builder

build()

public NotificationsApiServiceStubSettings build()
Returns
Type Description
NotificationsApiServiceStubSettings
Overrides
Exceptions
Type Description
IOException

createNotificationSubscriptionSettings()

public UnaryCallSettings.Builder<CreateNotificationSubscriptionRequest,NotificationSubscription> createNotificationSubscriptionSettings()

Returns the builder for the settings used for calls to createNotificationSubscription.

Returns
Type Description
Builder<CreateNotificationSubscriptionRequest,NotificationSubscription>

deleteNotificationSubscriptionSettings()

public UnaryCallSettings.Builder<DeleteNotificationSubscriptionRequest,Empty> deleteNotificationSubscriptionSettings()

Returns the builder for the settings used for calls to deleteNotificationSubscription.

Returns
Type Description
Builder<DeleteNotificationSubscriptionRequest,Empty>

getNotificationSubscriptionSettings()

public UnaryCallSettings.Builder<GetNotificationSubscriptionRequest,NotificationSubscription> getNotificationSubscriptionSettings()

Returns the builder for the settings used for calls to getNotificationSubscription.

Returns
Type Description
Builder<GetNotificationSubscriptionRequest,NotificationSubscription>

listNotificationSubscriptionsSettings()

public PagedCallSettings.Builder<ListNotificationSubscriptionsRequest,ListNotificationSubscriptionsResponse,NotificationsApiServiceClient.ListNotificationSubscriptionsPagedResponse> listNotificationSubscriptionsSettings()

Returns the builder for the settings used for calls to listNotificationSubscriptions.

Returns
Type Description
Builder<ListNotificationSubscriptionsRequest,ListNotificationSubscriptionsResponse,ListNotificationSubscriptionsPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
Type Description
com.google.common.collect.ImmutableList<Builder<?,?>>

updateNotificationSubscriptionSettings()

public UnaryCallSettings.Builder<UpdateNotificationSubscriptionRequest,NotificationSubscription> updateNotificationSubscriptionSettings()

Returns the builder for the settings used for calls to updateNotificationSubscription.

Returns
Type Description
Builder<UpdateNotificationSubscriptionRequest,NotificationSubscription>