Class UserServiceStubSettings.Builder (0.2.0)

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

Builder for UserServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > UserServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(UserServiceStubSettings settings)

protected Builder(UserServiceStubSettings settings)
Parameter
Name Description
settings UserServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getUserSettings()

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

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

Returns
Type Description
Builder<GetUserRequest,User>

listUsersSettings()

public PagedCallSettings.Builder<ListUsersRequest,ListUsersResponse,UserServiceClient.ListUsersPagedResponse> listUsersSettings()

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

Returns
Type Description
Builder<ListUsersRequest,ListUsersResponse,ListUsersPagedResponse>

unaryMethodSettingsBuilders()

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