Class UserServiceSettings.Builder (0.11.0)

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

Builder for UserServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > UserServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(UserServiceSettings settings)

protected Builder(UserServiceSettings settings)
Parameter
Name Description
settings UserServiceSettings

Builder(UserServiceStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getStubSettingsBuilder()

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

getUserSettings()

public UnaryCallSettings.Builder<GetUserRequest,User> getUserSettings()

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

Returns
Type Description
Builder<GetUserRequest,User>