Class UserServiceStubSettings.Builder (0.1.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(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(UserServiceStubSettings settings)

protected Builder(UserServiceStubSettings settings)
Parameter
Name Description
settings UserServiceStubSettings

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

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>

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<?,?>>

updateUserSettings()

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

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

Returns
Type Description
Builder<UpdateUserRequest,User>