Class UserServiceSettings.Builder (0.9.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(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

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

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

createUserSettings()

public UnaryCallSettings.Builder<CreateUserRequest,User> createUserSettings()

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

Returns
Type Description
Builder<CreateUserRequest,User>

deleteUserSettings()

public UnaryCallSettings.Builder<DeleteUserRequest,Empty> deleteUserSettings()

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

Returns
Type Description
Builder<DeleteUserRequest,Empty>

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>

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>

updateUserSettings()

public UnaryCallSettings.Builder<UpdateUserRequest,User> updateUserSettings()

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

Returns
Type Description
Builder<UpdateUserRequest,User>