Class TermsOfServiceServiceStubSettings.Builder (0.9.0)

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

Builder for TermsOfServiceServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > TermsOfServiceServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(TermsOfServiceServiceStubSettings settings)

protected Builder(TermsOfServiceServiceStubSettings settings)
Parameter
Name Description
settings TermsOfServiceServiceStubSettings

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 TermsOfServiceServiceStubSettings.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
TermsOfServiceServiceStubSettings.Builder

build()

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

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>

unaryMethodSettingsBuilders()

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