Class CompanionAgentsStubSettings.Builder (4.105.0)

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

Builder for CompanionAgentsStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CompanionAgentsStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(@Nullable ClientContext clientContext)

protected Builder(@Nullable ClientContext clientContext)
Parameter
Name Description
clientContext @org.jspecify.annotations.Nullable com.google.api.gax.rpc.ClientContext

Builder(CompanionAgentsStubSettings settings)

protected Builder(CompanionAgentsStubSettings settings)
Parameter
Name Description
settings CompanionAgentsStubSettings

Methods

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

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

build()

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

createCompanionAgentSettings()

public UnaryCallSettings.Builder<CreateCompanionAgentRequest,CompanionAgent> createCompanionAgentSettings()

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

Returns
Type Description
Builder<CreateCompanionAgentRequest,CompanionAgent>

deleteCompanionAgentSettings()

public UnaryCallSettings.Builder<DeleteCompanionAgentRequest,Empty> deleteCompanionAgentSettings()

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

Returns
Type Description
Builder<DeleteCompanionAgentRequest,Empty>

getCompanionAgentSettings()

public UnaryCallSettings.Builder<GetCompanionAgentRequest,CompanionAgent> getCompanionAgentSettings()

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

Returns
Type Description
Builder<GetCompanionAgentRequest,CompanionAgent>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

listCompanionAgentsSettings()

public PagedCallSettings.Builder<ListCompanionAgentsRequest,ListCompanionAgentsResponse,CompanionAgentsClient.ListCompanionAgentsPagedResponse> listCompanionAgentsSettings()

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

Returns
Type Description
Builder<ListCompanionAgentsRequest,ListCompanionAgentsResponse,ListCompanionAgentsPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,CompanionAgentsClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

unaryMethodSettingsBuilders()

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

updateCompanionAgentSettings()

public UnaryCallSettings.Builder<UpdateCompanionAgentRequest,CompanionAgent> updateCompanionAgentSettings()

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

Returns
Type Description
Builder<UpdateCompanionAgentRequest,CompanionAgent>