Class ToolServiceStubSettings.Builder (0.1.0)

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

Builder for ToolServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ToolServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ToolServiceStubSettings settings)

protected Builder(ToolServiceStubSettings settings)
Parameter
Name Description
settings ToolServiceStubSettings

Methods

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

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

build()

public ToolServiceStubSettings build()
Returns
Type Description
ToolServiceStubSettings
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>

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>

unaryMethodSettingsBuilders()

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