Class FleetRoutingSettings.Builder (1.10.0)

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

Builder for FleetRoutingSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > FleetRoutingSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(FleetRoutingSettings settings)

protected Builder(FleetRoutingSettings settings)
Parameter
NameDescription
settingsFleetRoutingSettings

Builder(FleetRoutingStubSettings.Builder stubSettings)

protected Builder(FleetRoutingStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsFleetRoutingStubSettings.Builder

Methods

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

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

batchOptimizeToursOperationSettings()

public OperationCallSettings.Builder<BatchOptimizeToursRequest,BatchOptimizeToursResponse,AsyncModelMetadata> batchOptimizeToursOperationSettings()

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

Returns
TypeDescription
Builder<BatchOptimizeToursRequest,BatchOptimizeToursResponse,AsyncModelMetadata>

batchOptimizeToursSettings()

public UnaryCallSettings.Builder<BatchOptimizeToursRequest,Operation> batchOptimizeToursSettings()

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

Returns
TypeDescription
Builder<BatchOptimizeToursRequest,Operation>

build()

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

getStubSettingsBuilder()

public FleetRoutingStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
FleetRoutingStubSettings.Builder

optimizeToursSettings()

public UnaryCallSettings.Builder<OptimizeToursRequest,OptimizeToursResponse> optimizeToursSettings()

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

Returns
TypeDescription
Builder<OptimizeToursRequest,OptimizeToursResponse>