Class AccountsServiceSettings.Builder (0.4.0)

public static class AccountsServiceSettings.Builder extends ClientSettings.Builder<AccountsServiceSettings,AccountsServiceSettings.Builder>

Builder for AccountsServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > AccountsServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(AccountsServiceSettings settings)

protected Builder(AccountsServiceSettings settings)
Parameter
NameDescription
settingsAccountsServiceSettings

Builder(AccountsServiceStubSettings.Builder stubSettings)

protected Builder(AccountsServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsAccountsServiceStubSettings.Builder

Methods

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

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

build()

public AccountsServiceSettings build()
Returns
TypeDescription
AccountsServiceSettings
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>

getStubSettingsBuilder()

public AccountsServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
AccountsServiceStubSettings.Builder

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>

updateLabelsSettings()

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

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

Returns
TypeDescription
Builder<UpdateAccountLabelsRequest,Account>