public sealed class FleetRoutingSettings : ServiceSettingsBase
Settings for FleetRoutingClient instances.
Namespace
Google.Cloud.Optimization.V1Assembly
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 | |
---|---|
Type | Description |
OperationsSettings |
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 | |
---|---|
Type | Description |
CallSettings |
- 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 | |
---|---|
Type | Description |
CallSettings |
- 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 | |
---|---|
Type | Description |
FleetRoutingSettings | A deep clone of this FleetRoutingSettings object. |
GetDefault()
public static FleetRoutingSettings GetDefault()
Get a new instance of the default FleetRoutingSettings.
Returns | |
---|---|
Type | Description |
FleetRoutingSettings | A new instance of the default FleetRoutingSettings. |