Class ToolsStubSettings.Builder (0.52.0)

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

Builder for ToolsStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ToolsStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ToolsStubSettings settings)

protected Builder(ToolsStubSettings settings)
Parameter
NameDescription
settingsToolsStubSettings

Methods

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

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

build()

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

createToolSettings()

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

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

Returns
TypeDescription
Builder<CreateToolRequest,Tool>

deleteToolSettings()

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

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

Returns
TypeDescription
Builder<DeleteToolRequest,Empty>

exportToolsOperationSettings()

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

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

Returns
TypeDescription
Builder<ExportToolsRequest,ExportToolsResponse,ExportToolsMetadata>

exportToolsSettings()

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

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

Returns
TypeDescription
Builder<ExportToolsRequest,Operation>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getLocationSettings()

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

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

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

getToolSettings()

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

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

Returns
TypeDescription
Builder<GetToolRequest,Tool>

listLocationsSettings()

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

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

Returns
TypeDescription
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
TypeDescription
Builder<ListToolsRequest,ListToolsResponse,ListToolsPagedResponse>

unaryMethodSettingsBuilders()

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

updateToolSettings()

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

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

Returns
TypeDescription
Builder<UpdateToolRequest,Tool>