Class BudgetServiceSettings.Builder (2.24.0)

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

Builder for BudgetServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > BudgetServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(BudgetServiceSettings settings)

protected Builder(BudgetServiceSettings settings)
Parameter
NameDescription
settingsBudgetServiceSettings

Builder(BudgetServiceStubSettings.Builder stubSettings)

protected Builder(BudgetServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsBudgetServiceStubSettings.Builder

Methods

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

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

build()

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

createBudgetSettings()

public UnaryCallSettings.Builder<CreateBudgetRequest,Budget> createBudgetSettings()

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

Returns
TypeDescription
Builder<CreateBudgetRequest,Budget>

deleteBudgetSettings()

public UnaryCallSettings.Builder<DeleteBudgetRequest,Empty> deleteBudgetSettings()

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

Returns
TypeDescription
Builder<DeleteBudgetRequest,Empty>

getBudgetSettings()

public UnaryCallSettings.Builder<GetBudgetRequest,Budget> getBudgetSettings()

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

Returns
TypeDescription
Builder<GetBudgetRequest,Budget>

getStubSettingsBuilder()

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

listBudgetsSettings()

public PagedCallSettings.Builder<ListBudgetsRequest,ListBudgetsResponse,BudgetServiceClient.ListBudgetsPagedResponse> listBudgetsSettings()

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

Returns
TypeDescription
Builder<ListBudgetsRequest,ListBudgetsResponse,ListBudgetsPagedResponse>

updateBudgetSettings()

public UnaryCallSettings.Builder<UpdateBudgetRequest,Budget> updateBudgetSettings()

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

Returns
TypeDescription
Builder<UpdateBudgetRequest,Budget>