Class AdvisoryNotificationsServiceStubSettings.Builder (0.28.0)

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

Builder for AdvisoryNotificationsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > AdvisoryNotificationsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(AdvisoryNotificationsServiceStubSettings settings)

protected Builder(AdvisoryNotificationsServiceStubSettings settings)
Parameter
NameDescription
settingsAdvisoryNotificationsServiceStubSettings

Methods

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

public AdvisoryNotificationsServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
AdvisoryNotificationsServiceStubSettings.Builder

build()

public AdvisoryNotificationsServiceStubSettings build()
Returns
TypeDescription
AdvisoryNotificationsServiceStubSettings
Overrides
Exceptions
TypeDescription
IOException

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getNotificationSettings()

public UnaryCallSettings.Builder<GetNotificationRequest,Notification> getNotificationSettings()

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

Returns
TypeDescription
Builder<GetNotificationRequest,Notification>

getSettingsSettings()

public UnaryCallSettings.Builder<GetSettingsRequest,Settings> getSettingsSettings()

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

Returns
TypeDescription
Builder<GetSettingsRequest,Settings>

listNotificationsSettings()

public PagedCallSettings.Builder<ListNotificationsRequest,ListNotificationsResponse,AdvisoryNotificationsServiceClient.ListNotificationsPagedResponse> listNotificationsSettings()

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

Returns
TypeDescription
Builder<ListNotificationsRequest,ListNotificationsResponse,ListNotificationsPagedResponse>

unaryMethodSettingsBuilders()

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

updateSettingsSettings()

public UnaryCallSettings.Builder<UpdateSettingsRequest,Settings> updateSettingsSettings()

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

Returns
TypeDescription
Builder<UpdateSettingsRequest,Settings>