Class TermsOfServiceServiceSettings.Builder (0.1.0)

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

Builder for TermsOfServiceServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > TermsOfServiceServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(TermsOfServiceServiceSettings settings)

protected Builder(TermsOfServiceServiceSettings settings)
Parameter
Name Description
settings TermsOfServiceServiceSettings

Builder(TermsOfServiceServiceStubSettings.Builder stubSettings)

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

Methods

acceptTermsOfServiceSettings()

public UnaryCallSettings.Builder<AcceptTermsOfServiceRequest,Empty> acceptTermsOfServiceSettings()

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

Returns
Type Description
Builder<AcceptTermsOfServiceRequest,Empty>

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

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

build()

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

getStubSettingsBuilder()

public TermsOfServiceServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
TermsOfServiceServiceStubSettings.Builder

getTermsOfServiceSettings()

public UnaryCallSettings.Builder<GetTermsOfServiceRequest,TermsOfService> getTermsOfServiceSettings()

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

Returns
Type Description
Builder<GetTermsOfServiceRequest,TermsOfService>

retrieveLatestTermsOfServiceSettings()

public UnaryCallSettings.Builder<RetrieveLatestTermsOfServiceRequest,TermsOfService> retrieveLatestTermsOfServiceSettings()

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

Returns
Type Description
Builder<RetrieveLatestTermsOfServiceRequest,TermsOfService>