public static class NotificationsApiServiceSettings.Builder extends ClientSettings.Builder<NotificationsApiServiceSettings,NotificationsApiServiceSettings.Builder>
Builder for NotificationsApiServiceSettings.
Constructors
Builder()
protected Builder()
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Builder(NotificationsApiServiceSettings settings)
protected Builder(NotificationsApiServiceSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
NotificationsApiServiceSettings |
Builder(NotificationsApiServiceStubSettings.Builder stubSettings)
protected Builder(NotificationsApiServiceStubSettings.Builder stubSettings)
Parameter | |
---|---|
Name | Description |
stubSettings |
NotificationsApiServiceStubSettings.Builder |
Methods
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
public NotificationsApiServiceSettings.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 |
NotificationsApiServiceSettings.Builder |
build()
public NotificationsApiServiceSettings build()
Returns | |
---|---|
Type | Description |
NotificationsApiServiceSettings |
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> |
getStubSettingsBuilder()
public NotificationsApiServiceStubSettings.Builder getStubSettingsBuilder()
Returns | |
---|---|
Type | Description |
NotificationsApiServiceStubSettings.Builder |
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> |
updateNotificationSubscriptionSettings()
public UnaryCallSettings.Builder<UpdateNotificationSubscriptionRequest,NotificationSubscription> updateNotificationSubscriptionSettings()
Returns the builder for the settings used for calls to updateNotificationSubscription.
Returns | |
---|---|
Type | Description |
Builder<UpdateNotificationSubscriptionRequest,NotificationSubscription> |