Class RouteOptimizationSettings
Settings for RouteOptimizationClient instances.
Inherited Members
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class RouteOptimizationSettings : ServiceSettingsBase
Constructors
RouteOptimizationSettings()
Constructs a new RouteOptimizationSettings object with default settings.
Declaration
public RouteOptimizationSettings()
Properties
BatchOptimizeToursOperationsSettings
Long Running Operation settings for calls to RouteOptimizationClient.BatchOptimizeTours
and
RouteOptimizationClient.BatchOptimizeToursAsync
.
Declaration
public OperationsSettings BatchOptimizeToursOperationsSettings { get; set; }
Property Value
Type | Description |
---|---|
OperationsSettings |
Remarks
Uses default Google.Api.Gax.PollSettings of:
- Initial delay: 20 seconds.
- Delay multiplier: 1.5
- Maximum delay: 45 seconds.
- Total timeout: 24 hours.
BatchOptimizeToursSettings
CallSettings for synchronous and asynchronous calls to
RouteOptimizationClient.BatchOptimizeTours
and RouteOptimizationClient.BatchOptimizeToursAsync
.
Declaration
public CallSettings BatchOptimizeToursSettings { get; set; }
Property Value
Type | Description |
---|---|
CallSettings |
Remarks
- This call will not be retried.
- No timeout is applied.
OptimizeToursSettings
CallSettings for synchronous and asynchronous calls to
RouteOptimizationClient.OptimizeTours
and RouteOptimizationClient.OptimizeToursAsync
.
Declaration
public CallSettings OptimizeToursSettings { get; set; }
Property Value
Type | Description |
---|---|
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()
Creates a deep clone of this object, with all the same property values.
Declaration
public RouteOptimizationSettings Clone()
Returns
Type | Description |
---|---|
RouteOptimizationSettings | A deep clone of this RouteOptimizationSettings object. |
GetDefault()
Get a new instance of the default RouteOptimizationSettings.
Declaration
public static RouteOptimizationSettings GetDefault()
Returns
Type | Description |
---|---|
RouteOptimizationSettings | A new instance of the default RouteOptimizationSettings. |