Class RoleServiceStubSettings.Builder (0.3.0)

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

Builder for RoleServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > RoleServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(RoleServiceStubSettings settings)

protected Builder(RoleServiceStubSettings settings)
Parameter
Name Description
settings RoleServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getRoleSettings()

public UnaryCallSettings.Builder<GetRoleRequest,Role> getRoleSettings()

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

Returns
Type Description
Builder<GetRoleRequest,Role>

listRolesSettings()

public PagedCallSettings.Builder<ListRolesRequest,ListRolesResponse,RoleServiceClient.ListRolesPagedResponse> listRolesSettings()

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

Returns
Type Description
Builder<ListRolesRequest,ListRolesResponse,ListRolesPagedResponse>

unaryMethodSettingsBuilders()

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