Class AccountsServiceStubSettings.Builder (0.2.0)

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

Builder for AccountsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > AccountsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(AccountsServiceStubSettings settings)

protected Builder(AccountsServiceStubSettings settings)
Parameter
NameDescription
settingsAccountsServiceStubSettings

Methods

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

public AccountsServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
AccountsServiceStubSettings.Builder

build()

public AccountsServiceStubSettings build()
Returns
TypeDescription
AccountsServiceStubSettings
Overrides
Exceptions
TypeDescription
IOException

getAccountSettings()

public UnaryCallSettings.Builder<GetAccountRequest,Account> getAccountSettings()

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

Returns
TypeDescription
Builder<GetAccountRequest,Account>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

listChildAccountsSettings()

public PagedCallSettings.Builder<ListChildAccountsRequest,ListChildAccountsResponse,AccountsServiceClient.ListChildAccountsPagedResponse> listChildAccountsSettings()

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

Returns
TypeDescription
Builder<ListChildAccountsRequest,ListChildAccountsResponse,ListChildAccountsPagedResponse>

unaryMethodSettingsBuilders()

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

updateLabelsSettings()

public UnaryCallSettings.Builder<UpdateAccountLabelsRequest,Account> updateLabelsSettings()

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

Returns
TypeDescription
Builder<UpdateAccountLabelsRequest,Account>