Class EmailPreferencesServiceStubSettings.Builder (0.2.0)

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

Builder for EmailPreferencesServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > EmailPreferencesServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(EmailPreferencesServiceStubSettings settings)

protected Builder(EmailPreferencesServiceStubSettings settings)
Parameter
Name Description
settings EmailPreferencesServiceStubSettings

Methods

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

public EmailPreferencesServiceStubSettings.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
EmailPreferencesServiceStubSettings.Builder

build()

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

getEmailPreferencesSettings()

public UnaryCallSettings.Builder<GetEmailPreferencesRequest,EmailPreferences> getEmailPreferencesSettings()

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

Returns
Type Description
Builder<GetEmailPreferencesRequest,EmailPreferences>

unaryMethodSettingsBuilders()

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

updateEmailPreferencesSettings()

public UnaryCallSettings.Builder<UpdateEmailPreferencesRequest,EmailPreferences> updateEmailPreferencesSettings()

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

Returns
Type Description
Builder<UpdateEmailPreferencesRequest,EmailPreferences>