Class Vehicle (1.6.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 VehicleextendsGeneratedMessageV3implementsVehicleOrBuilder Models a vehicle in a shipment problem. Solving a shipment problem will
build a route starting from start_location and ending at end_location
for this vehicle. A route is a sequence of visits (see ShipmentRoute).
Protobuf type google.cloud.optimization.v1.Vehicle
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > VehicleImplements
VehicleOrBuilderInherited Members
Static Fields
BREAK_RULE_FIELD_NUMBER
publicstaticfinalintBREAK_RULE_FIELD_NUMBERBREAK_RULE_INDICES_FIELD_NUMBER
publicstaticfinalintBREAK_RULE_INDICES_FIELD_NUMBERCAPACITIES_FIELD_NUMBER
publicstaticfinalintCAPACITIES_FIELD_NUMBERCOST_PER_HOUR_FIELD_NUMBER
publicstaticfinalintCOST_PER_HOUR_FIELD_NUMBERCOST_PER_KILOMETER_FIELD_NUMBER
publicstaticfinalintCOST_PER_KILOMETER_FIELD_NUMBERCOST_PER_TRAVELED_HOUR_FIELD_NUMBER
publicstaticfinalintCOST_PER_TRAVELED_HOUR_FIELD_NUMBEREND_LOAD_INTERVALS_FIELD_NUMBER
publicstaticfinalintEND_LOAD_INTERVALS_FIELD_NUMBEREND_LOCATION_FIELD_NUMBER
publicstaticfinalintEND_LOCATION_FIELD_NUMBEREND_TAGS_FIELD_NUMBER
publicstaticfinalintEND_TAGS_FIELD_NUMBEREND_TIME_WINDOWS_FIELD_NUMBER
publicstaticfinalintEND_TIME_WINDOWS_FIELD_NUMBEREND_WAYPOINT_FIELD_NUMBER
publicstaticfinalintEND_WAYPOINT_FIELD_NUMBEREXTRA_VISIT_DURATION_FOR_VISIT_TYPE_FIELD_NUMBER
publicstaticfinalintEXTRA_VISIT_DURATION_FOR_VISIT_TYPE_FIELD_NUMBERFIXED_COST_FIELD_NUMBER
publicstaticfinalintFIXED_COST_FIELD_NUMBERIGNORE_FIELD_NUMBER
publicstaticfinalintIGNORE_FIELD_NUMBERLABEL_FIELD_NUMBER
publicstaticfinalintLABEL_FIELD_NUMBERLOAD_LIMITS_FIELD_NUMBER
publicstaticfinalintLOAD_LIMITS_FIELD_NUMBERROUTE_DISTANCE_LIMIT_FIELD_NUMBER
publicstaticfinalintROUTE_DISTANCE_LIMIT_FIELD_NUMBERROUTE_DURATION_LIMIT_FIELD_NUMBER
publicstaticfinalintROUTE_DURATION_LIMIT_FIELD_NUMBERSTART_LOAD_INTERVALS_FIELD_NUMBER
publicstaticfinalintSTART_LOAD_INTERVALS_FIELD_NUMBERSTART_LOCATION_FIELD_NUMBER
publicstaticfinalintSTART_LOCATION_FIELD_NUMBERSTART_TAGS_FIELD_NUMBER
publicstaticfinalintSTART_TAGS_FIELD_NUMBERSTART_TIME_WINDOWS_FIELD_NUMBER
publicstaticfinalintSTART_TIME_WINDOWS_FIELD_NUMBERSTART_WAYPOINT_FIELD_NUMBER
publicstaticfinalintSTART_WAYPOINT_FIELD_NUMBERTRAVEL_DURATION_LIMIT_FIELD_NUMBER
publicstaticfinalintTRAVEL_DURATION_LIMIT_FIELD_NUMBERTRAVEL_DURATION_MULTIPLE_FIELD_NUMBER
publicstaticfinalintTRAVEL_DURATION_MULTIPLE_FIELD_NUMBERTRAVEL_MODE_FIELD_NUMBER
publicstaticfinalintTRAVEL_MODE_FIELD_NUMBERUNLOADING_POLICY_FIELD_NUMBER
publicstaticfinalintUNLOADING_POLICY_FIELD_NUMBERUSED_IF_ROUTE_IS_EMPTY_FIELD_NUMBER
publicstaticfinalintUSED_IF_ROUTE_IS_EMPTY_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticVehiclegetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticVehicle.BuildernewBuilder()newBuilder(Vehicle prototype)
publicstaticVehicle.BuildernewBuilder(Vehicleprototype)parseDelimitedFrom(InputStream input)
publicstaticVehicleparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVehicleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticVehicleparseFrom(byte[]data)byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticVehicleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)byte[]parseFrom(ByteString data)
publicstaticVehicleparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticVehicleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticVehicleparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVehicleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticVehicleparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVehicleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticVehicleparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticVehicleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<Vehicle>parser()Methods
containsExtraVisitDurationForVisitType(String key)
publicbooleancontainsExtraVisitDurationForVisitType(Stringkey) Specifies a map from visit_types strings to durations. The duration is time
in addition to
VisitRequest.duration
to be taken at visits with the specified visit_types. This extra visit
duration adds cost if cost_per_hour is specified. Keys (i.e.
visit_types) cannot be empty strings.
If a visit request has multiple types, a duration will be added for each
type in the map.
map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24;
containsLoadLimits(String key)
publicbooleancontainsLoadLimits(Stringkey)Capacities of the vehicle (weight, volume, # of pallets for example). The keys in the map are the identifiers of the type of load, consistent with the keys of the Shipment.load_demands field. If a given key is absent from this map, the corresponding capacity is considered to be limitless.
map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
equals(Object obj)
publicbooleanequals(Objectobj)getBreakRule()
publicBreakRulegetBreakRule()Describes the break schedule to be enforced on this vehicle. If empty, no breaks will be scheduled for this vehicle.
.google.cloud.optimization.v1.BreakRule break_rule = 25;
The breakRule.
getBreakRuleIndices(int index) (deprecated)
publicintgetBreakRuleIndices(intindex)Deprecated. google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1436
Deprecated: No longer used.
Indices in the break_rule field in the source
[ShipmentModel][]. They correspond to break rules enforced on the vehicle.
As of 2018/03, at most one rule index per vehicle can be specified.
repeated int32 break_rule_indices = 29 [deprecated = true];
The breakRuleIndices at the given index.
getBreakRuleIndicesCount() (deprecated)
publicintgetBreakRuleIndicesCount()Deprecated. google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1436
Deprecated: No longer used.
Indices in the break_rule field in the source
[ShipmentModel][]. They correspond to break rules enforced on the vehicle.
As of 2018/03, at most one rule index per vehicle can be specified.
repeated int32 break_rule_indices = 29 [deprecated = true];
The count of breakRuleIndices.
getBreakRuleIndicesList() (deprecated)
publicList<Integer>getBreakRuleIndicesList()Deprecated. google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1436
Deprecated: No longer used.
Indices in the break_rule field in the source
[ShipmentModel][]. They correspond to break rules enforced on the vehicle.
As of 2018/03, at most one rule index per vehicle can be specified.
repeated int32 break_rule_indices = 29 [deprecated = true];
getBreakRuleOrBuilder()
publicBreakRuleOrBuildergetBreakRuleOrBuilder()Describes the break schedule to be enforced on this vehicle. If empty, no breaks will be scheduled for this vehicle.
.google.cloud.optimization.v1.BreakRule break_rule = 25;
getCapacities(int index)
publicCapacityQuantitygetCapacities(intindex)Deprecated: Use [Vehicle.load_limits][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
getCapacitiesCount()
publicintgetCapacitiesCount()Deprecated: Use [Vehicle.load_limits][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
getCapacitiesList()
publicList<CapacityQuantity>getCapacitiesList()Deprecated: Use [Vehicle.load_limits][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
getCapacitiesOrBuilder(int index)
publicCapacityQuantityOrBuildergetCapacitiesOrBuilder(intindex)Deprecated: Use [Vehicle.load_limits][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
getCapacitiesOrBuilderList()
publicList<?extendsCapacityQuantityOrBuilder>getCapacitiesOrBuilderList()Deprecated: Use [Vehicle.load_limits][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
getCostPerHour()
publicdoublegetCostPerHour() Vehicle costs: all costs add up and must be in the same unit as
Shipment.penalty_cost.
Cost per hour of the vehicle route. This cost is applied to the total time
taken by the route, and includes travel time, waiting time, and visit time.
Using cost_per_hour instead of just cost_per_traveled_hour may result
in additional latency.
double cost_per_hour = 16;
The costPerHour.
getCostPerKilometer()
publicdoublegetCostPerKilometer() Cost per kilometer of the vehicle route. This cost is applied to the
distance reported in the
ShipmentRoute.transitions
and does not apply to any distance implicitly traveled from the
arrival_location to the departure_location of a single VisitRequest.
double cost_per_kilometer = 18;
The costPerKilometer.
getCostPerTraveledHour()
publicdoublegetCostPerTraveledHour()Cost per traveled hour of the vehicle route. This cost is applied only to travel time taken by the route (i.e., that reported in ShipmentRoute.transitions), and excludes waiting time and visit time.
double cost_per_traveled_hour = 17;
The costPerTraveledHour.
getDefaultInstanceForType()
publicVehiclegetDefaultInstanceForType()getEndLoadIntervals(int index)
publicCapacityQuantityIntervalgetEndLoadIntervals(intindex)Deprecated: Use [Vehicle.LoadLimit.end_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
getEndLoadIntervalsCount()
publicintgetEndLoadIntervalsCount()Deprecated: Use [Vehicle.LoadLimit.end_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
getEndLoadIntervalsList()
publicList<CapacityQuantityInterval>getEndLoadIntervalsList()Deprecated: Use [Vehicle.LoadLimit.end_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
getEndLoadIntervalsOrBuilder(int index)
publicCapacityQuantityIntervalOrBuildergetEndLoadIntervalsOrBuilder(intindex)Deprecated: Use [Vehicle.LoadLimit.end_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
getEndLoadIntervalsOrBuilderList()
publicList<?extendsCapacityQuantityIntervalOrBuilder>getEndLoadIntervalsOrBuilderList()Deprecated: Use [Vehicle.LoadLimit.end_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
getEndLocation()
publicLatLnggetEndLocation() Geographic location where the vehicle ends after it has completed its last
VisitRequest. If not specified the vehicle's ShipmentRoute ends
immediately when it completes its last VisitRequest.
If the shipment model has duration and distance matrices, end_location
must not be specified.
.google.type.LatLng end_location = 5;
The endLocation.
getEndLocationOrBuilder()
publicLatLngOrBuildergetEndLocationOrBuilder() Geographic location where the vehicle ends after it has completed its last
VisitRequest. If not specified the vehicle's ShipmentRoute ends
immediately when it completes its last VisitRequest.
If the shipment model has duration and distance matrices, end_location
must not be specified.
.google.type.LatLng end_location = 5;
getEndTags(int index)
publicStringgetEndTags(intindex)Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
The endTags at the given index.
getEndTagsBytes(int index)
publicByteStringgetEndTagsBytes(intindex)Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
The bytes of the endTags at the given index.
getEndTagsCount()
publicintgetEndTagsCount()Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
The count of endTags.
getEndTagsList()
publicProtocolStringListgetEndTagsList()Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
A list containing the endTags.
getEndTimeWindows(int index)
publicTimeWindowgetEndTimeWindows(intindex) Time windows during which the vehicle may arrive at its end location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
getEndTimeWindowsCount()
publicintgetEndTimeWindowsCount() Time windows during which the vehicle may arrive at its end location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
getEndTimeWindowsList()
publicList<TimeWindow>getEndTimeWindowsList() Time windows during which the vehicle may arrive at its end location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
getEndTimeWindowsOrBuilder(int index)
publicTimeWindowOrBuildergetEndTimeWindowsOrBuilder(intindex) Time windows during which the vehicle may arrive at its end location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
getEndTimeWindowsOrBuilderList()
publicList<?extendsTimeWindowOrBuilder>getEndTimeWindowsOrBuilderList() Time windows during which the vehicle may arrive at its end location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow end_time_windows = 10;
getEndWaypoint()
publicWaypointgetEndWaypoint() Waypoint representing a geographic location where the vehicle ends after
it has completed its last VisitRequest. If neither end_waypoint nor
end_location is specified, the vehicle's ShipmentRoute ends immediately
when it completes its last VisitRequest.
If the shipment model has duration and distance matrices, end_waypoint
must not be specified.
.google.cloud.optimization.v1.Waypoint end_waypoint = 6;
The endWaypoint.
getEndWaypointOrBuilder()
publicWaypointOrBuildergetEndWaypointOrBuilder() Waypoint representing a geographic location where the vehicle ends after
it has completed its last VisitRequest. If neither end_waypoint nor
end_location is specified, the vehicle's ShipmentRoute ends immediately
when it completes its last VisitRequest.
If the shipment model has duration and distance matrices, end_waypoint
must not be specified.
.google.cloud.optimization.v1.Waypoint end_waypoint = 6;
getExtraVisitDurationForVisitType()
publicMap<String,Duration>getExtraVisitDurationForVisitType()Use #getExtraVisitDurationForVisitTypeMap() instead.
getExtraVisitDurationForVisitTypeCount()
publicintgetExtraVisitDurationForVisitTypeCount() Specifies a map from visit_types strings to durations. The duration is time
in addition to
VisitRequest.duration
to be taken at visits with the specified visit_types. This extra visit
duration adds cost if cost_per_hour is specified. Keys (i.e.
visit_types) cannot be empty strings.
If a visit request has multiple types, a duration will be added for each
type in the map.
map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24;
getExtraVisitDurationForVisitTypeMap()
publicMap<String,Duration>getExtraVisitDurationForVisitTypeMap() Specifies a map from visit_types strings to durations. The duration is time
in addition to
VisitRequest.duration
to be taken at visits with the specified visit_types. This extra visit
duration adds cost if cost_per_hour is specified. Keys (i.e.
visit_types) cannot be empty strings.
If a visit request has multiple types, a duration will be added for each
type in the map.
map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24;
getExtraVisitDurationForVisitTypeOrDefault(String key, Duration defaultValue)
publicDurationgetExtraVisitDurationForVisitTypeOrDefault(Stringkey,DurationdefaultValue) Specifies a map from visit_types strings to durations. The duration is time
in addition to
VisitRequest.duration
to be taken at visits with the specified visit_types. This extra visit
duration adds cost if cost_per_hour is specified. Keys (i.e.
visit_types) cannot be empty strings.
If a visit request has multiple types, a duration will be added for each
type in the map.
map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24;
getExtraVisitDurationForVisitTypeOrThrow(String key)
publicDurationgetExtraVisitDurationForVisitTypeOrThrow(Stringkey) Specifies a map from visit_types strings to durations. The duration is time
in addition to
VisitRequest.duration
to be taken at visits with the specified visit_types. This extra visit
duration adds cost if cost_per_hour is specified. Keys (i.e.
visit_types) cannot be empty strings.
If a visit request has multiple types, a duration will be added for each
type in the map.
map<string, .google.protobuf.Duration> extra_visit_duration_for_visit_type = 24;
getFixedCost()
publicdoublegetFixedCost()Fixed cost applied if this vehicle is used to handle a shipment.
double fixed_cost = 19;
The fixedCost.
getIgnore()
publicbooleangetIgnore() If true, used_if_route_is_empty must be false, and this vehicle will
remain unused.
If a shipment is performed by an ignored vehicle in
injected_first_solution_routes, it is skipped in the first solution but
is free to be performed in the response.
If a shipment is performed by an ignored vehicle in
injected_solution_constraint and any related pickup/delivery is
constrained to remain on the vehicle (i.e., not relaxed to level
RELAX_ALL_AFTER_THRESHOLD), it is skipped in the response.
If a shipment has a non-empty allowed_vehicle_indices field and all of
the allowed vehicles are ignored, it is skipped in the response.
bool ignore = 28;
The ignore.
getLabel()
publicStringgetLabel() Specifies a label for this vehicle. This label is reported in the response
as the vehicle_label of the corresponding
ShipmentRoute.
string label = 27;
The label.
getLabelBytes()
publicByteStringgetLabelBytes() Specifies a label for this vehicle. This label is reported in the response
as the vehicle_label of the corresponding
ShipmentRoute.
string label = 27;
The bytes for label.
getLoadLimits()
publicMap<String,Vehicle.LoadLimit>getLoadLimits()Use #getLoadLimitsMap() instead.
getLoadLimitsCount()
publicintgetLoadLimitsCount()Capacities of the vehicle (weight, volume, # of pallets for example). The keys in the map are the identifiers of the type of load, consistent with the keys of the Shipment.load_demands field. If a given key is absent from this map, the corresponding capacity is considered to be limitless.
map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
getLoadLimitsMap()
publicMap<String,Vehicle.LoadLimit>getLoadLimitsMap()Capacities of the vehicle (weight, volume, # of pallets for example). The keys in the map are the identifiers of the type of load, consistent with the keys of the Shipment.load_demands field. If a given key is absent from this map, the corresponding capacity is considered to be limitless.
map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
getLoadLimitsOrDefault(String key, Vehicle.LoadLimit defaultValue)
publicVehicle.LoadLimitgetLoadLimitsOrDefault(Stringkey,Vehicle.LoadLimitdefaultValue)Capacities of the vehicle (weight, volume, # of pallets for example). The keys in the map are the identifiers of the type of load, consistent with the keys of the Shipment.load_demands field. If a given key is absent from this map, the corresponding capacity is considered to be limitless.
map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
getLoadLimitsOrThrow(String key)
publicVehicle.LoadLimitgetLoadLimitsOrThrow(Stringkey)Capacities of the vehicle (weight, volume, # of pallets for example). The keys in the map are the identifiers of the type of load, consistent with the keys of the Shipment.load_demands field. If a given key is absent from this map, the corresponding capacity is considered to be limitless.
map<string, .google.cloud.optimization.v1.Vehicle.LoadLimit> load_limits = 30;
getParserForType()
publicParser<Vehicle>getParserForType()getRouteDistanceLimit()
publicDistanceLimitgetRouteDistanceLimit() Limit applied to the total distance of the vehicle's route. In a given
OptimizeToursResponse, the route distance is the sum of all its
transitions.travel_distance_meters.
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
The routeDistanceLimit.
getRouteDistanceLimitOrBuilder()
publicDistanceLimitOrBuildergetRouteDistanceLimitOrBuilder() Limit applied to the total distance of the vehicle's route. In a given
OptimizeToursResponse, the route distance is the sum of all its
transitions.travel_distance_meters.
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
getRouteDurationLimit()
publicVehicle.DurationLimitgetRouteDurationLimit() Limit applied to the total duration of the vehicle's route. In a given
OptimizeToursResponse, the route duration of a vehicle is the
difference between its vehicle_end_time and vehicle_start_time.
.google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
The routeDurationLimit.
getRouteDurationLimitOrBuilder()
publicVehicle.DurationLimitOrBuildergetRouteDurationLimitOrBuilder() Limit applied to the total duration of the vehicle's route. In a given
OptimizeToursResponse, the route duration of a vehicle is the
difference between its vehicle_end_time and vehicle_start_time.
.google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
getSerializedSize()
publicintgetSerializedSize()getStartLoadIntervals(int index)
publicCapacityQuantityIntervalgetStartLoadIntervals(intindex)Deprecated: Use [Vehicle.LoadLimit.start_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
getStartLoadIntervalsCount()
publicintgetStartLoadIntervalsCount()Deprecated: Use [Vehicle.LoadLimit.start_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
getStartLoadIntervalsList()
publicList<CapacityQuantityInterval>getStartLoadIntervalsList()Deprecated: Use [Vehicle.LoadLimit.start_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
getStartLoadIntervalsOrBuilder(int index)
publicCapacityQuantityIntervalOrBuildergetStartLoadIntervalsOrBuilder(intindex)Deprecated: Use [Vehicle.LoadLimit.start_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
getStartLoadIntervalsOrBuilderList()
publicList<?extendsCapacityQuantityIntervalOrBuilder>getStartLoadIntervalsOrBuilderList()Deprecated: Use [Vehicle.LoadLimit.start_load_interval][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
getStartLocation()
publicLatLnggetStartLocation() Geographic location where the vehicle starts before picking up any
shipments. If not specified, the vehicle starts at its first pickup.
If the shipment model has duration and distance matrices, start_location
must not be specified.
.google.type.LatLng start_location = 3;
The startLocation.
getStartLocationOrBuilder()
publicLatLngOrBuildergetStartLocationOrBuilder() Geographic location where the vehicle starts before picking up any
shipments. If not specified, the vehicle starts at its first pickup.
If the shipment model has duration and distance matrices, start_location
must not be specified.
.google.type.LatLng start_location = 3;
getStartTags(int index)
publicStringgetStartTags(intindex)Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
The startTags at the given index.
getStartTagsBytes(int index)
publicByteStringgetStartTagsBytes(intindex)Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
The bytes of the startTags at the given index.
getStartTagsCount()
publicintgetStartTagsCount()Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
The count of startTags.
getStartTagsList()
publicProtocolStringListgetStartTagsList()Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
A list containing the startTags.
getStartTimeWindows(int index)
publicTimeWindowgetStartTimeWindows(intindex) Time windows during which the vehicle may depart its start location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
getStartTimeWindowsCount()
publicintgetStartTimeWindowsCount() Time windows during which the vehicle may depart its start location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
getStartTimeWindowsList()
publicList<TimeWindow>getStartTimeWindowsList() Time windows during which the vehicle may depart its start location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
getStartTimeWindowsOrBuilder(int index)
publicTimeWindowOrBuildergetStartTimeWindowsOrBuilder(intindex) Time windows during which the vehicle may depart its start location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
getStartTimeWindowsOrBuilderList()
publicList<?extendsTimeWindowOrBuilder>getStartTimeWindowsOrBuilderList() Time windows during which the vehicle may depart its start location.
They must be within the global time limits (see
ShipmentModel.global_*
fields). If unspecified, there is no limitation besides those global time
limits.
Time windows belonging to the same repeated field must be disjoint, i.e. no
time window can overlap with or be adjacent to another, and they must be in
chronological order.
cost_per_hour_after_soft_end_time and soft_end_time can only be set if
there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow start_time_windows = 9;
getStartWaypoint()
publicWaypointgetStartWaypoint() Waypoint representing a geographic location where the vehicle starts before
picking up any shipments. If neither start_waypoint nor start_location
is specified, the vehicle starts at its first pickup.
If the shipment model has duration and distance matrices, start_waypoint
must not be specified.
.google.cloud.optimization.v1.Waypoint start_waypoint = 4;
The startWaypoint.
getStartWaypointOrBuilder()
publicWaypointOrBuildergetStartWaypointOrBuilder() Waypoint representing a geographic location where the vehicle starts before
picking up any shipments. If neither start_waypoint nor start_location
is specified, the vehicle starts at its first pickup.
If the shipment model has duration and distance matrices, start_waypoint
must not be specified.
.google.cloud.optimization.v1.Waypoint start_waypoint = 4;
getTravelDurationLimit()
publicVehicle.DurationLimitgetTravelDurationLimit() Limit applied to the travel duration of the vehicle's route. In a given
OptimizeToursResponse, the route travel duration is the sum of all its
transitions.travel_duration.
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
The travelDurationLimit.
getTravelDurationLimitOrBuilder()
publicVehicle.DurationLimitOrBuildergetTravelDurationLimitOrBuilder() Limit applied to the travel duration of the vehicle's route. In a given
OptimizeToursResponse, the route travel duration is the sum of all its
transitions.travel_duration.
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
getTravelDurationMultiple()
publicdoublegetTravelDurationMultiple() Specifies a multiplicative factor that can be used to increase or decrease
travel times of this vehicle. For example, setting this to 2.0 means
that this vehicle is slower and has travel times that are twice what they
are for standard vehicles. This multiple does not affect visit durations.
It does affect cost if cost_per_hour or cost_per_traveled_hour are
specified. This must be in the range [0.001, 1000.0]. If unset, the vehicle
is standard, and this multiple is considered 1.0.
WARNING: Travel times will be rounded to the nearest second after this
multiple is applied but before performing any numerical operations, thus,
a small multiple may result in a loss of precision.
See also extra_visit_duration_for_visit_type below.
optional double travel_duration_multiple = 11;
The travelDurationMultiple.
getTravelMode()
publicVehicle.TravelModegetTravelMode() The travel mode which affects the roads usable by the vehicle and its
speed. See also travel_duration_multiple.
.google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1;
The travelMode.
getTravelModeValue()
publicintgetTravelModeValue() The travel mode which affects the roads usable by the vehicle and its
speed. See also travel_duration_multiple.
.google.cloud.optimization.v1.Vehicle.TravelMode travel_mode = 1;
The enum numeric value on the wire for travelMode.
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()getUnloadingPolicy()
publicVehicle.UnloadingPolicygetUnloadingPolicy()Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
The unloadingPolicy.
getUnloadingPolicyValue()
publicintgetUnloadingPolicyValue()Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
The enum numeric value on the wire for unloadingPolicy.
getUsedIfRouteIsEmpty()
publicbooleangetUsedIfRouteIsEmpty() This field only applies to vehicles when their route does not serve any
shipments. It indicates if the vehicle should be considered as used or not
in this case.
If true, the vehicle goes from its start to its end location even if it
doesn't serve any shipments, and time and distance costs resulting from its
start --> end travel are taken into account.
Otherwise, it doesn't travel from its start to its end location, and no
break_rule or delay (from TransitionAttributes) are scheduled for this
vehicle. In this case, the vehicle's ShipmentRoute doesn't contain any
information except for the vehicle index and label.
bool used_if_route_is_empty = 20;
The usedIfRouteIsEmpty.
hasBreakRule()
publicbooleanhasBreakRule()Describes the break schedule to be enforced on this vehicle. If empty, no breaks will be scheduled for this vehicle.
.google.cloud.optimization.v1.BreakRule break_rule = 25;
Whether the breakRule field is set.
hasEndLocation()
publicbooleanhasEndLocation() Geographic location where the vehicle ends after it has completed its last
VisitRequest. If not specified the vehicle's ShipmentRoute ends
immediately when it completes its last VisitRequest.
If the shipment model has duration and distance matrices, end_location
must not be specified.
.google.type.LatLng end_location = 5;
Whether the endLocation field is set.
hasEndWaypoint()
publicbooleanhasEndWaypoint() Waypoint representing a geographic location where the vehicle ends after
it has completed its last VisitRequest. If neither end_waypoint nor
end_location is specified, the vehicle's ShipmentRoute ends immediately
when it completes its last VisitRequest.
If the shipment model has duration and distance matrices, end_waypoint
must not be specified.
.google.cloud.optimization.v1.Waypoint end_waypoint = 6;
Whether the endWaypoint field is set.
hasRouteDistanceLimit()
publicbooleanhasRouteDistanceLimit() Limit applied to the total distance of the vehicle's route. In a given
OptimizeToursResponse, the route distance is the sum of all its
transitions.travel_distance_meters.
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
Whether the routeDistanceLimit field is set.
hasRouteDurationLimit()
publicbooleanhasRouteDurationLimit() Limit applied to the total duration of the vehicle's route. In a given
OptimizeToursResponse, the route duration of a vehicle is the
difference between its vehicle_end_time and vehicle_start_time.
.google.cloud.optimization.v1.Vehicle.DurationLimit route_duration_limit = 21;
Whether the routeDurationLimit field is set.
hasStartLocation()
publicbooleanhasStartLocation() Geographic location where the vehicle starts before picking up any
shipments. If not specified, the vehicle starts at its first pickup.
If the shipment model has duration and distance matrices, start_location
must not be specified.
.google.type.LatLng start_location = 3;
Whether the startLocation field is set.
hasStartWaypoint()
publicbooleanhasStartWaypoint() Waypoint representing a geographic location where the vehicle starts before
picking up any shipments. If neither start_waypoint nor start_location
is specified, the vehicle starts at its first pickup.
If the shipment model has duration and distance matrices, start_waypoint
must not be specified.
.google.cloud.optimization.v1.Waypoint start_waypoint = 4;
Whether the startWaypoint field is set.
hasTravelDurationLimit()
publicbooleanhasTravelDurationLimit() Limit applied to the travel duration of the vehicle's route. In a given
OptimizeToursResponse, the route travel duration is the sum of all its
transitions.travel_duration.
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
Whether the travelDurationLimit field is set.
hasTravelDurationMultiple()
publicbooleanhasTravelDurationMultiple() Specifies a multiplicative factor that can be used to increase or decrease
travel times of this vehicle. For example, setting this to 2.0 means
that this vehicle is slower and has travel times that are twice what they
are for standard vehicles. This multiple does not affect visit durations.
It does affect cost if cost_per_hour or cost_per_traveled_hour are
specified. This must be in the range [0.001, 1000.0]. If unset, the vehicle
is standard, and this multiple is considered 1.0.
WARNING: Travel times will be rounded to the nearest second after this
multiple is applied but before performing any numerical operations, thus,
a small multiple may result in a loss of precision.
See also extra_visit_duration_for_visit_type below.
optional double travel_duration_multiple = 11;
Whether the travelDurationMultiple field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicVehicle.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedVehicle.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicVehicle.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)