Class ToolServiceSettings.Builder (0.11.0)

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

Builder for ToolServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ToolServiceSettings.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(ToolServiceSettings settings)

protected Builder(ToolServiceSettings settings)
Parameter
Name Description
settings ToolServiceSettings

Builder(ToolServiceStubSettings.Builder stubSettings)

protected Builder(ToolServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings ToolServiceStubSettings.Builder

Methods

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

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

build()

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

executeToolSettings()

public UnaryCallSettings.Builder<ExecuteToolRequest,ExecuteToolResponse> executeToolSettings()

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

Returns
Type Description
Builder<ExecuteToolRequest,ExecuteToolResponse>

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>

getStubSettingsBuilder()

public ToolServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ToolServiceStubSettings.Builder

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,ToolServiceClient.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>

retrieveToolSchemaSettings()

public UnaryCallSettings.Builder<RetrieveToolSchemaRequest,RetrieveToolSchemaResponse> retrieveToolSchemaSettings()

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

Returns
Type Description
Builder<RetrieveToolSchemaRequest,RetrieveToolSchemaResponse>

retrieveToolsSettings()

public UnaryCallSettings.Builder<RetrieveToolsRequest,RetrieveToolsResponse> retrieveToolsSettings()

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

Returns
Type Description
Builder<RetrieveToolsRequest,RetrieveToolsResponse>