Class ToolsSettings.Builder (0.54.0)

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

Builder for ToolsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ToolsSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ToolsSettings settings)

protected Builder(ToolsSettings settings)
Parameter
Name Description
settings ToolsSettings

Builder(ToolsStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

createToolSettings()

public UnaryCallSettings.Builder<CreateToolRequest,Tool> createToolSettings()

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

Returns
Type Description
Builder<CreateToolRequest,Tool>

deleteToolSettings()

public UnaryCallSettings.Builder<DeleteToolRequest,Empty> deleteToolSettings()

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

Returns
Type Description
Builder<DeleteToolRequest,Empty>

exportToolsOperationSettings()

public OperationCallSettings.Builder<ExportToolsRequest,ExportToolsResponse,ExportToolsMetadata> exportToolsOperationSettings()

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

Returns
Type Description
Builder<ExportToolsRequest,ExportToolsResponse,ExportToolsMetadata>

exportToolsSettings()

public UnaryCallSettings.Builder<ExportToolsRequest,Operation> exportToolsSettings()

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

Returns
Type Description
Builder<ExportToolsRequest,Operation>

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 ToolsStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ToolsStubSettings.Builder

getToolSettings()

public UnaryCallSettings.Builder<GetToolRequest,Tool> getToolSettings()

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

Returns
Type Description
Builder<GetToolRequest,Tool>

listLocationsSettings()

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

listToolsSettings()

public PagedCallSettings.Builder<ListToolsRequest,ListToolsResponse,ToolsClient.ListToolsPagedResponse> listToolsSettings()

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

Returns
Type Description
Builder<ListToolsRequest,ListToolsResponse,ListToolsPagedResponse>

updateToolSettings()

public UnaryCallSettings.Builder<UpdateToolRequest,Tool> updateToolSettings()

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

Returns
Type Description
Builder<UpdateToolRequest,Tool>