Class EmailPreferencesServiceSettings.Builder (0.1.0)

public static class EmailPreferencesServiceSettings.Builder extends ClientSettings.Builder<EmailPreferencesServiceSettings,EmailPreferencesServiceSettings.Builder>

Builder for EmailPreferencesServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > EmailPreferencesServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(EmailPreferencesServiceSettings settings)

protected Builder(EmailPreferencesServiceSettings settings)
Parameter
Name Description
settings EmailPreferencesServiceSettings

Builder(EmailPreferencesServiceStubSettings.Builder stubSettings)

protected Builder(EmailPreferencesServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings EmailPreferencesServiceStubSettings.Builder

Methods

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

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

build()

public EmailPreferencesServiceSettings build()
Returns
Type Description
EmailPreferencesServiceSettings
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>

getStubSettingsBuilder()

public EmailPreferencesServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
EmailPreferencesServiceStubSettings.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>