Class OptimizeToursRequest (1.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
publicfinalclass OptimizeToursRequestextendsGeneratedMessageV3implementsOptimizeToursRequestOrBuilderRequest to be given to a tour optimization solver which defines the shipment model to solve as well as optimization parameters.
Protobuf type google.cloud.optimization.v1.OptimizeToursRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OptimizeToursRequestImplements
OptimizeToursRequestOrBuilderInherited Members
Static Fields
ALLOW_LARGE_DEADLINE_DESPITE_INTERRUPTION_RISK_FIELD_NUMBER
publicstaticfinalintALLOW_LARGE_DEADLINE_DESPITE_INTERRUPTION_RISK_FIELD_NUMBERCONSIDER_ROAD_TRAFFIC_FIELD_NUMBER
publicstaticfinalintCONSIDER_ROAD_TRAFFIC_FIELD_NUMBERGEODESIC_METERS_PER_SECOND_FIELD_NUMBER
publicstaticfinalintGEODESIC_METERS_PER_SECOND_FIELD_NUMBERINJECTED_FIRST_SOLUTION_ROUTES_FIELD_NUMBER
publicstaticfinalintINJECTED_FIRST_SOLUTION_ROUTES_FIELD_NUMBERINJECTED_SOLUTION_CONSTRAINT_FIELD_NUMBER
publicstaticfinalintINJECTED_SOLUTION_CONSTRAINT_FIELD_NUMBERINTERPRET_INJECTED_SOLUTIONS_USING_LABELS_FIELD_NUMBER
publicstaticfinalintINTERPRET_INJECTED_SOLUTIONS_USING_LABELS_FIELD_NUMBERLABEL_FIELD_NUMBER
publicstaticfinalintLABEL_FIELD_NUMBERMAX_VALIDATION_ERRORS_FIELD_NUMBER
publicstaticfinalintMAX_VALIDATION_ERRORS_FIELD_NUMBERMODEL_FIELD_NUMBER
publicstaticfinalintMODEL_FIELD_NUMBERPARENT_FIELD_NUMBER
publicstaticfinalintPARENT_FIELD_NUMBERPOPULATE_POLYLINES_FIELD_NUMBER
publicstaticfinalintPOPULATE_POLYLINES_FIELD_NUMBERPOPULATE_TRANSITION_POLYLINES_FIELD_NUMBER
publicstaticfinalintPOPULATE_TRANSITION_POLYLINES_FIELD_NUMBERPOPULATE_TRAVEL_STEP_POLYLINES_FIELD_NUMBER
publicstaticfinalintPOPULATE_TRAVEL_STEP_POLYLINES_FIELD_NUMBERREFRESH_DETAILS_ROUTES_FIELD_NUMBER
publicstaticfinalintREFRESH_DETAILS_ROUTES_FIELD_NUMBERSEARCH_MODE_FIELD_NUMBER
publicstaticfinalintSEARCH_MODE_FIELD_NUMBERSOLVING_MODE_FIELD_NUMBER
publicstaticfinalintSOLVING_MODE_FIELD_NUMBERTIMEOUT_FIELD_NUMBER
publicstaticfinalintTIMEOUT_FIELD_NUMBERUSE_GEODESIC_DISTANCES_FIELD_NUMBER
publicstaticfinalintUSE_GEODESIC_DISTANCES_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticOptimizeToursRequestgetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticOptimizeToursRequest.BuildernewBuilder()newBuilder(OptimizeToursRequest prototype)
publicstaticOptimizeToursRequest.BuildernewBuilder(OptimizeToursRequestprototype)parseDelimitedFrom(InputStream input)
publicstaticOptimizeToursRequestparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticOptimizeToursRequestparseFrom(byte[]data)data
byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)data
byte[]parseFrom(ByteString data)
publicstaticOptimizeToursRequestparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticOptimizeToursRequestparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticOptimizeToursRequestparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticOptimizeToursRequestparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<OptimizeToursRequest>parser()Methods
equals(Object obj)
publicbooleanequals(Objectobj)getAllowLargeDeadlineDespiteInterruptionRisk()
publicbooleangetAllowLargeDeadlineDespiteInterruptionRisk()If this is set, then the request can have a deadline (see https://grpc.io/blog/deadlines) of up to 60 minutes. Otherwise, the maximum deadline is only 30 minutes. Note that long-lived requests have a significantly larger (but still small) risk of interruption.
bool allow_large_deadline_despite_interruption_risk = 14;
boolean
The allowLargeDeadlineDespiteInterruptionRisk.
getConsiderRoadTraffic()
publicbooleangetConsiderRoadTraffic() Consider traffic estimation in calculating ShipmentRoute fields
Transition.travel_duration,
Visit.start_time,
and vehicle_end_time; in setting the
ShipmentRoute.has_traffic_infeasibilities
field, and in calculating the
OptimizeToursResponse.total_cost
field.
bool consider_road_traffic = 11;
boolean
The considerRoadTraffic.
getDefaultInstanceForType()
publicOptimizeToursRequestgetDefaultInstanceForType()getGeodesicMetersPerSecond()
publicdoublegetGeodesicMetersPerSecond() When use_geodesic_distances is true, this field must be set and defines
the speed applied to compute travel times. Its value must be at least 1.0
meters/seconds.
optional double geodesic_meters_per_second = 16;
double
The geodesicMetersPerSecond.
getInjectedFirstSolutionRoutes(int index)
publicShipmentRoutegetInjectedFirstSolutionRoutes(intindex)Guide the optimization algorithm in finding a first solution that is similar to a previous solution. The model is constrained when the first solution is built. Any shipments not performed on a route are implicitly skipped in the first solution, but they may be performed in successive solutions. The solution must satisfy some basic validity assumptions:
- for all routes,
vehicle_indexmust be in range and not be duplicated. - for all visits,
shipment_indexandvisit_request_indexmust be in range. - a shipment may only be referenced on one route.
- the pickup of a pickup-delivery shipment must be performed before the delivery.
- no more than one pickup alternative or delivery alternative of a shipment may be performed.
- for all routes, times are increasing (i.e.,
vehicle_start_time <= visits[0].start_time <= visits[1].start_time ... <= vehicle_end_time). - a shipment may only be performed on a vehicle that is allowed. A
vehicle is allowed if
Shipment.allowed_vehicle_indices
is empty or its
vehicle_indexis included in Shipment.allowed_vehicle_indices. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7;
getInjectedFirstSolutionRoutesCount()
publicintgetInjectedFirstSolutionRoutesCount()Guide the optimization algorithm in finding a first solution that is similar to a previous solution. The model is constrained when the first solution is built. Any shipments not performed on a route are implicitly skipped in the first solution, but they may be performed in successive solutions. The solution must satisfy some basic validity assumptions:
- for all routes,
vehicle_indexmust be in range and not be duplicated. - for all visits,
shipment_indexandvisit_request_indexmust be in range. - a shipment may only be referenced on one route.
- the pickup of a pickup-delivery shipment must be performed before the delivery.
- no more than one pickup alternative or delivery alternative of a shipment may be performed.
- for all routes, times are increasing (i.e.,
vehicle_start_time <= visits[0].start_time <= visits[1].start_time ... <= vehicle_end_time). - a shipment may only be performed on a vehicle that is allowed. A
vehicle is allowed if
Shipment.allowed_vehicle_indices
is empty or its
vehicle_indexis included in Shipment.allowed_vehicle_indices. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7;
getInjectedFirstSolutionRoutesList()
publicList<ShipmentRoute>getInjectedFirstSolutionRoutesList()Guide the optimization algorithm in finding a first solution that is similar to a previous solution. The model is constrained when the first solution is built. Any shipments not performed on a route are implicitly skipped in the first solution, but they may be performed in successive solutions. The solution must satisfy some basic validity assumptions:
- for all routes,
vehicle_indexmust be in range and not be duplicated. - for all visits,
shipment_indexandvisit_request_indexmust be in range. - a shipment may only be referenced on one route.
- the pickup of a pickup-delivery shipment must be performed before the delivery.
- no more than one pickup alternative or delivery alternative of a shipment may be performed.
- for all routes, times are increasing (i.e.,
vehicle_start_time <= visits[0].start_time <= visits[1].start_time ... <= vehicle_end_time). - a shipment may only be performed on a vehicle that is allowed. A
vehicle is allowed if
Shipment.allowed_vehicle_indices
is empty or its
vehicle_indexis included in Shipment.allowed_vehicle_indices. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7;
getInjectedFirstSolutionRoutesOrBuilder(int index)
publicShipmentRouteOrBuildergetInjectedFirstSolutionRoutesOrBuilder(intindex)Guide the optimization algorithm in finding a first solution that is similar to a previous solution. The model is constrained when the first solution is built. Any shipments not performed on a route are implicitly skipped in the first solution, but they may be performed in successive solutions. The solution must satisfy some basic validity assumptions:
- for all routes,
vehicle_indexmust be in range and not be duplicated. - for all visits,
shipment_indexandvisit_request_indexmust be in range. - a shipment may only be referenced on one route.
- the pickup of a pickup-delivery shipment must be performed before the delivery.
- no more than one pickup alternative or delivery alternative of a shipment may be performed.
- for all routes, times are increasing (i.e.,
vehicle_start_time <= visits[0].start_time <= visits[1].start_time ... <= vehicle_end_time). - a shipment may only be performed on a vehicle that is allowed. A
vehicle is allowed if
Shipment.allowed_vehicle_indices
is empty or its
vehicle_indexis included in Shipment.allowed_vehicle_indices. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7;
getInjectedFirstSolutionRoutesOrBuilderList()
publicList<?extendsShipmentRouteOrBuilder>getInjectedFirstSolutionRoutesOrBuilderList()Guide the optimization algorithm in finding a first solution that is similar to a previous solution. The model is constrained when the first solution is built. Any shipments not performed on a route are implicitly skipped in the first solution, but they may be performed in successive solutions. The solution must satisfy some basic validity assumptions:
- for all routes,
vehicle_indexmust be in range and not be duplicated. - for all visits,
shipment_indexandvisit_request_indexmust be in range. - a shipment may only be referenced on one route.
- the pickup of a pickup-delivery shipment must be performed before the delivery.
- no more than one pickup alternative or delivery alternative of a shipment may be performed.
- for all routes, times are increasing (i.e.,
vehicle_start_time <= visits[0].start_time <= visits[1].start_time ... <= vehicle_end_time). - a shipment may only be performed on a vehicle that is allowed. A
vehicle is allowed if
Shipment.allowed_vehicle_indices
is empty or its
vehicle_indexis included in Shipment.allowed_vehicle_indices. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
repeated .google.cloud.optimization.v1.ShipmentRoute injected_first_solution_routes = 7;
List<? extends com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
getInjectedSolutionConstraint()
publicInjectedSolutionConstraintgetInjectedSolutionConstraint()Constrain the optimization algorithm to find a final solution that is similar to a previous solution. For example, this may be used to freeze portions of routes which have already been completed or which are to be completed but must not be modified. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
.google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8;
InjectedSolutionConstraint
The injectedSolutionConstraint.
getInjectedSolutionConstraintOrBuilder()
publicInjectedSolutionConstraintOrBuildergetInjectedSolutionConstraintOrBuilder()Constrain the optimization algorithm to find a final solution that is similar to a previous solution. For example, this may be used to freeze portions of routes which have already been completed or which are to be completed but must not be modified. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
.google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8;
getInterpretInjectedSolutionsUsingLabels()
publicbooleangetInterpretInjectedSolutionsUsingLabels()If true:
- uses
ShipmentRoute.vehicle_label
instead of
vehicle_indexto match routes in an injected solution with vehicles in the request; reuses the mapping of original ShipmentRoute.vehicle_index to new ShipmentRoute.vehicle_index to update ConstraintRelaxation.vehicle_indices if non-empty, but the mapping must be unambiguous (i.e., multipleShipmentRoutes must not share the same originalvehicle_index). - uses
ShipmentRoute.Visit.shipment_label
instead of
shipment_indexto match visits in an injected solution with shipments in the request; - uses
SkippedShipment.label
instead of
SkippedShipment.index
to
match skipped shipments in the injected solution with request
shipments.
This interpretation applies to the
injected_first_solution_routes,injected_solution_constraint, andrefresh_details_routesfields. It can be used when shipment or vehicle indices in the request have changed since the solution was created, perhaps because shipments or vehicles have been removed from or added to the request. If true, labels in the following categories must appear at most once in their category: - Vehicle.label in the request;
- Shipment.label in the request;
- ShipmentRoute.vehicle_label in the injected solution;
- SkippedShipment.label and ShipmentRoute.Visit.shipment_label in
the injected solution (except pickup/delivery visit pairs, whose
shipment_labelmust appear twice). If avehicle_labelin the injected solution does not correspond to a request vehicle, the corresponding route is removed from the solution along with its visits. If ashipment_labelin the injected solution does not correspond to a request shipment, the corresponding visit is removed from the solution. If a SkippedShipment.label in the injected solution does not correspond to a request shipment, theSkippedShipmentis removed from the solution. Removing route visits or entire routes from an injected solution may have an effect on the implied constraints, which may lead to change in solution, validation errors, or infeasibility. NOTE: The caller must ensure that each Vehicle.label (resp. Shipment.label) uniquely identifies a vehicle (resp. shipment) entity used across the two relevant requests: the past request that produced theOptimizeToursResponseused in the injected solution and the current request that includes the injected solution. The uniqueness checks described above are not enough to guarantee this requirement.
bool interpret_injected_solutions_using_labels = 10;
boolean
The interpretInjectedSolutionsUsingLabels.
getLabel()
publicStringgetLabel()Label that may be used to identify this request, reported back in the OptimizeToursResponse.request_label.
string label = 17;
String
The label.
getLabelBytes()
publicByteStringgetLabelBytes()Label that may be used to identify this request, reported back in the OptimizeToursResponse.request_label.
string label = 17;
ByteString
The bytes for label.
getMaxValidationErrors()
publicintgetMaxValidationErrors()Truncates the number of validation errors returned. These errors are typically attached to an INVALID_ARGUMENT error payload as a BadRequest error detail (https://cloud.google.com/apis/design/errors#error_details), unless solving_mode=VALIDATE_ONLY: see the OptimizeToursResponse.validation_errors field. This defaults to 100 and is capped at 10,000.
optional int32 max_validation_errors = 5;
int
The maxValidationErrors.
getModel()
publicShipmentModelgetModel()Shipment model to solve.
.google.cloud.optimization.v1.ShipmentModel model = 3;
ShipmentModel
The model.
getModelOrBuilder()
publicShipmentModelOrBuildergetModelOrBuilder()Shipment model to solve.
.google.cloud.optimization.v1.ShipmentModel model = 3;
getParent()
publicStringgetParent() Required. Target project and location to make a call.
Format: projects/{project-id}/locations/{location-id}.
If no location is specified, a region will be chosen automatically.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
String
The parent.
getParentBytes()
publicByteStringgetParentBytes() Required. Target project and location to make a call.
Format: projects/{project-id}/locations/{location-id}.
If no location is specified, a region will be chosen automatically.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
ByteString
The bytes for parent.
getParserForType()
publicParser<OptimizeToursRequest>getParserForType()getPopulatePolylines()
publicbooleangetPopulatePolylines() If true, polylines will be populated in response ShipmentRoutes.
bool populate_polylines = 12;
boolean
The populatePolylines.
getPopulateTransitionPolylines()
publicbooleangetPopulateTransitionPolylines() If true, polylines will be populated in response
ShipmentRoute.transitions.
Note that in this case, the polylines will also be populated in the
deprecated travel_steps.
bool populate_transition_polylines = 13;
boolean
The populateTransitionPolylines.
getPopulateTravelStepPolylines() (deprecated)
publicbooleangetPopulateTravelStepPolylines()Deprecated. google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=351
Deprecated: Use
OptimizeToursRequest.populate_transition_polylines
instead. If true, polylines will be populated in response
ShipmentRoute.transitions.
Note that in this case, the polylines will also be populated in the
deprecated travel_steps.
bool populate_travel_step_polylines = 20 [deprecated = true];
boolean
The populateTravelStepPolylines.
getRefreshDetailsRoutes(int index)
publicShipmentRoutegetRefreshDetailsRoutes(intindex) If non-empty, the given routes will be refreshed, without modifying their
underlying sequence of visits or travel times: only other details will be
updated. This does not solve the model.
As of 2020/11, this only populates the polylines of non-empty routes and
requires that populate_polylines is true.
The route_polyline fields of the passed-in routes may be inconsistent
with route transitions.
This field must not be used together with injected_first_solution_routes
or injected_solution_constraint.
Shipment.ignore and Vehicle.ignore have no effect on the behavior.
Polylines are still populated between all visits in all non-empty routes
regardless of whether the related shipments or vehicles are ignored.
repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
getRefreshDetailsRoutesCount()
publicintgetRefreshDetailsRoutesCount() If non-empty, the given routes will be refreshed, without modifying their
underlying sequence of visits or travel times: only other details will be
updated. This does not solve the model.
As of 2020/11, this only populates the polylines of non-empty routes and
requires that populate_polylines is true.
The route_polyline fields of the passed-in routes may be inconsistent
with route transitions.
This field must not be used together with injected_first_solution_routes
or injected_solution_constraint.
Shipment.ignore and Vehicle.ignore have no effect on the behavior.
Polylines are still populated between all visits in all non-empty routes
regardless of whether the related shipments or vehicles are ignored.
repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
getRefreshDetailsRoutesList()
publicList<ShipmentRoute>getRefreshDetailsRoutesList() If non-empty, the given routes will be refreshed, without modifying their
underlying sequence of visits or travel times: only other details will be
updated. This does not solve the model.
As of 2020/11, this only populates the polylines of non-empty routes and
requires that populate_polylines is true.
The route_polyline fields of the passed-in routes may be inconsistent
with route transitions.
This field must not be used together with injected_first_solution_routes
or injected_solution_constraint.
Shipment.ignore and Vehicle.ignore have no effect on the behavior.
Polylines are still populated between all visits in all non-empty routes
regardless of whether the related shipments or vehicles are ignored.
repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
getRefreshDetailsRoutesOrBuilder(int index)
publicShipmentRouteOrBuildergetRefreshDetailsRoutesOrBuilder(intindex) If non-empty, the given routes will be refreshed, without modifying their
underlying sequence of visits or travel times: only other details will be
updated. This does not solve the model.
As of 2020/11, this only populates the polylines of non-empty routes and
requires that populate_polylines is true.
The route_polyline fields of the passed-in routes may be inconsistent
with route transitions.
This field must not be used together with injected_first_solution_routes
or injected_solution_constraint.
Shipment.ignore and Vehicle.ignore have no effect on the behavior.
Polylines are still populated between all visits in all non-empty routes
regardless of whether the related shipments or vehicles are ignored.
repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
getRefreshDetailsRoutesOrBuilderList()
publicList<?extendsShipmentRouteOrBuilder>getRefreshDetailsRoutesOrBuilderList() If non-empty, the given routes will be refreshed, without modifying their
underlying sequence of visits or travel times: only other details will be
updated. This does not solve the model.
As of 2020/11, this only populates the polylines of non-empty routes and
requires that populate_polylines is true.
The route_polyline fields of the passed-in routes may be inconsistent
with route transitions.
This field must not be used together with injected_first_solution_routes
or injected_solution_constraint.
Shipment.ignore and Vehicle.ignore have no effect on the behavior.
Polylines are still populated between all visits in all non-empty routes
regardless of whether the related shipments or vehicles are ignored.
repeated .google.cloud.optimization.v1.ShipmentRoute refresh_details_routes = 9;
List<? extends com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>
getSearchMode()
publicOptimizeToursRequest.SearchModegetSearchMode()Search mode used to solve the request.
.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6;
OptimizeToursRequest.SearchMode
The searchMode.
getSearchModeValue()
publicintgetSearchModeValue()Search mode used to solve the request.
.google.cloud.optimization.v1.OptimizeToursRequest.SearchMode search_mode = 6;
int
The enum numeric value on the wire for searchMode.
getSerializedSize()
publicintgetSerializedSize()getSolvingMode()
publicOptimizeToursRequest.SolvingModegetSolvingMode() By default, the solving mode is DEFAULT_SOLVE (0).
.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4;
OptimizeToursRequest.SolvingMode
The solvingMode.
getSolvingModeValue()
publicintgetSolvingModeValue() By default, the solving mode is DEFAULT_SOLVE (0).
.google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode solving_mode = 4;
int
The enum numeric value on the wire for solvingMode.
getTimeout()
publicDurationgetTimeout()If this timeout is set, the server returns a response before the timeout period has elapsed or the server deadline for synchronous requests is reached, whichever is sooner. For asynchronous requests, the server will generate a solution (if possible) before the timeout has elapsed.
.google.protobuf.Duration timeout = 2;
Duration
The timeout.
getTimeoutOrBuilder()
publicDurationOrBuildergetTimeoutOrBuilder()If this timeout is set, the server returns a response before the timeout period has elapsed or the server deadline for synchronous requests is reached, whichever is sooner. For asynchronous requests, the server will generate a solution (if possible) before the timeout has elapsed.
.google.protobuf.Duration timeout = 2;
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()getUseGeodesicDistances()
publicbooleangetUseGeodesicDistances() If true, travel distances will be computed using geodesic distances instead
of Google Maps distances, and travel times will be computed using geodesic
distances with a speed defined by geodesic_meters_per_second.
bool use_geodesic_distances = 15;
boolean
The useGeodesicDistances.
hasGeodesicMetersPerSecond()
publicbooleanhasGeodesicMetersPerSecond() When use_geodesic_distances is true, this field must be set and defines
the speed applied to compute travel times. Its value must be at least 1.0
meters/seconds.
optional double geodesic_meters_per_second = 16;
boolean
Whether the geodesicMetersPerSecond field is set.
hasInjectedSolutionConstraint()
publicbooleanhasInjectedSolutionConstraint()Constrain the optimization algorithm to find a final solution that is similar to a previous solution. For example, this may be used to freeze portions of routes which have already been completed or which are to be completed but must not be modified. If the injected solution is not feasible, a validation error is not necessarily returned and an error indicating infeasibility may be returned instead.
.google.cloud.optimization.v1.InjectedSolutionConstraint injected_solution_constraint = 8;
boolean
Whether the injectedSolutionConstraint field is set.
hasMaxValidationErrors()
publicbooleanhasMaxValidationErrors()Truncates the number of validation errors returned. These errors are typically attached to an INVALID_ARGUMENT error payload as a BadRequest error detail (https://cloud.google.com/apis/design/errors#error_details), unless solving_mode=VALIDATE_ONLY: see the OptimizeToursResponse.validation_errors field. This defaults to 100 and is capped at 10,000.
optional int32 max_validation_errors = 5;
boolean
Whether the maxValidationErrors field is set.
hasModel()
publicbooleanhasModel()Shipment model to solve.
.google.cloud.optimization.v1.ShipmentModel model = 3;
boolean
Whether the model field is set.
hasTimeout()
publicbooleanhasTimeout()If this timeout is set, the server returns a response before the timeout period has elapsed or the server deadline for synchronous requests is reached, whichever is sooner. For asynchronous requests, the server will generate a solution (if possible) before the timeout has elapsed.
.google.protobuf.Duration timeout = 2;
boolean
Whether the timeout field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicOptimizeToursRequest.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedOptimizeToursRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicOptimizeToursRequest.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)