Cloud Optimization v1 API - Class FleetRoutingSettings (2.4.0)

public sealed class FleetRoutingSettings : ServiceSettingsBase

Reference documentation and code samples for the Cloud Optimization v1 API class FleetRoutingSettings.

Settings for FleetRoutingClient instances.

Inheritance

object > ServiceSettingsBase > FleetRoutingSettings

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

FleetRoutingSettings()

public FleetRoutingSettings()

Constructs a new FleetRoutingSettings object with default settings.

Properties

BatchOptimizeToursOperationsSettings

public OperationsSettings BatchOptimizeToursOperationsSettings { get; set; }

Long Running Operation settings for calls to FleetRoutingClient.BatchOptimizeTours and FleetRoutingClient.BatchOptimizeToursAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

BatchOptimizeToursSettings

public CallSettings BatchOptimizeToursSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FleetRoutingClient.BatchOptimizeTours and FleetRoutingClient.BatchOptimizeToursAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 10000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 60 seconds.

OptimizeToursSettings

public CallSettings OptimizeToursSettings { get; set; }

CallSettings for synchronous and asynchronous calls to FleetRoutingClient.OptimizeTours and FleetRoutingClient.OptimizeToursAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 10000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 3600 seconds.

Methods

Clone()

public FleetRoutingSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
FleetRoutingSettings

A deep clone of this FleetRoutingSettings object.

GetDefault()

public static FleetRoutingSettings GetDefault()

Get a new instance of the default FleetRoutingSettings.

Returns
TypeDescription
FleetRoutingSettings

A new instance of the default FleetRoutingSettings.