Package com.google.cloud.optimization.v1
Class Vehicle.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
- com.google.cloud.optimization.v1.Vehicle.Builder
-
- All Implemented Interfaces:
VehicleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Vehicle
public static final class Vehicle.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder> implements VehicleOrBuilder
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 typegoogle.cloud.optimization.v1.Vehicle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Vehicle.Builder
addAllBreakRuleIndices(Iterable<? extends Integer> values)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.Vehicle.Builder
addAllCapacities(Iterable<? extends CapacityQuantity> values)
Deprecated.Vehicle.Builder
addAllEndLoadIntervals(Iterable<? extends CapacityQuantityInterval> values)
Deprecated.Vehicle.Builder
addAllEndTags(Iterable<String> values)
Specifies tags attached to the end of the vehicle's route.Vehicle.Builder
addAllEndTimeWindows(Iterable<? extends TimeWindow> values)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
addAllStartLoadIntervals(Iterable<? extends CapacityQuantityInterval> values)
Deprecated.Vehicle.Builder
addAllStartTags(Iterable<String> values)
Specifies tags attached to the start of the vehicle's route.Vehicle.Builder
addAllStartTimeWindows(Iterable<? extends TimeWindow> values)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
addBreakRuleIndices(int value)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.Vehicle.Builder
addCapacities(int index, CapacityQuantity value)
Deprecated.Vehicle.Builder
addCapacities(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Vehicle.Builder
addCapacities(CapacityQuantity value)
Deprecated.Vehicle.Builder
addCapacities(CapacityQuantity.Builder builderForValue)
Deprecated.CapacityQuantity.Builder
addCapacitiesBuilder()
Deprecated.CapacityQuantity.Builder
addCapacitiesBuilder(int index)
Deprecated.Vehicle.Builder
addEndLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Vehicle.Builder
addEndLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Vehicle.Builder
addEndLoadIntervals(CapacityQuantityInterval value)
Deprecated.Vehicle.Builder
addEndLoadIntervals(CapacityQuantityInterval.Builder builderForValue)
Deprecated.CapacityQuantityInterval.Builder
addEndLoadIntervalsBuilder()
Deprecated.CapacityQuantityInterval.Builder
addEndLoadIntervalsBuilder(int index)
Deprecated.Vehicle.Builder
addEndTags(String value)
Specifies tags attached to the end of the vehicle's route.Vehicle.Builder
addEndTagsBytes(com.google.protobuf.ByteString value)
Specifies tags attached to the end of the vehicle's route.Vehicle.Builder
addEndTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
addEndTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
addEndTimeWindows(TimeWindow value)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
addEndTimeWindows(TimeWindow.Builder builderForValue)
Time windows during which the vehicle may arrive at its end location.TimeWindow.Builder
addEndTimeWindowsBuilder()
Time windows during which the vehicle may arrive at its end location.TimeWindow.Builder
addEndTimeWindowsBuilder(int index)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Vehicle.Builder
addStartLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Vehicle.Builder
addStartLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Vehicle.Builder
addStartLoadIntervals(CapacityQuantityInterval value)
Deprecated.Vehicle.Builder
addStartLoadIntervals(CapacityQuantityInterval.Builder builderForValue)
Deprecated.CapacityQuantityInterval.Builder
addStartLoadIntervalsBuilder()
Deprecated.CapacityQuantityInterval.Builder
addStartLoadIntervalsBuilder(int index)
Deprecated.Vehicle.Builder
addStartTags(String value)
Specifies tags attached to the start of the vehicle's route.Vehicle.Builder
addStartTagsBytes(com.google.protobuf.ByteString value)
Specifies tags attached to the start of the vehicle's route.Vehicle.Builder
addStartTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
addStartTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
addStartTimeWindows(TimeWindow value)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
addStartTimeWindows(TimeWindow.Builder builderForValue)
Time windows during which the vehicle may depart its start location.TimeWindow.Builder
addStartTimeWindowsBuilder()
Time windows during which the vehicle may depart its start location.TimeWindow.Builder
addStartTimeWindowsBuilder(int index)
Time windows during which the vehicle may depart its start location.Vehicle
build()
Vehicle
buildPartial()
Vehicle.Builder
clear()
Vehicle.Builder
clearBreakRule()
Describes the break schedule to be enforced on this vehicle.Vehicle.Builder
clearBreakRuleIndices()
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.Vehicle.Builder
clearCapacities()
Deprecated.Vehicle.Builder
clearCostPerHour()
Vehicle costs: all costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].Vehicle.Builder
clearCostPerKilometer()
Cost per kilometer of the vehicle route.Vehicle.Builder
clearCostPerTraveledHour()
Cost per traveled hour of the vehicle route.Vehicle.Builder
clearEndLoadIntervals()
Deprecated.Vehicle.Builder
clearEndLocation()
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
clearEndTags()
Specifies tags attached to the end of the vehicle's route.Vehicle.Builder
clearEndTimeWindows()
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
clearEndWaypoint()
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
clearExtraVisitDurationForVisitType()
Vehicle.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Vehicle.Builder
clearFixedCost()
Fixed cost applied if this vehicle is used to handle a shipment.Vehicle.Builder
clearIgnore()
If true, `used_if_route_is_empty` must be false, and this vehicle will remain unused.Vehicle.Builder
clearLabel()
Specifies a label for this vehicle.Vehicle.Builder
clearLoadLimits()
Vehicle.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Vehicle.Builder
clearRouteDistanceLimit()
Limit applied to the total distance of the vehicle's route.Vehicle.Builder
clearRouteDurationLimit()
Limit applied to the total duration of the vehicle's route.Vehicle.Builder
clearStartLoadIntervals()
Deprecated.Vehicle.Builder
clearStartLocation()
Geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
clearStartTags()
Specifies tags attached to the start of the vehicle's route.Vehicle.Builder
clearStartTimeWindows()
Time windows during which the vehicle may depart its start location.Vehicle.Builder
clearStartWaypoint()
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
clearTravelDurationLimit()
Limit applied to the travel duration of the vehicle's route.Vehicle.Builder
clearTravelDurationMultiple()
Specifies a multiplicative factor that can be used to increase or decrease travel times of this vehicle.Vehicle.Builder
clearTravelMode()
The travel mode which affects the roads usable by the vehicle and its speed.Vehicle.Builder
clearUnloadingPolicy()
Unloading policy enforced on the vehicle.Vehicle.Builder
clearUsedIfRouteIsEmpty()
This field only applies to vehicles when their route does not serve any shipments.Vehicle.Builder
clone()
boolean
containsExtraVisitDurationForVisitType(String key)
Specifies a map from visit_types strings to durations.boolean
containsLoadLimits(String key)
Capacities of the vehicle (weight, volume, # of pallets for example).BreakRule
getBreakRule()
Describes the break schedule to be enforced on this vehicle.BreakRule.Builder
getBreakRuleBuilder()
Describes the break schedule to be enforced on this vehicle.int
getBreakRuleIndices(int index)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.int
getBreakRuleIndicesCount()
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.List<Integer>
getBreakRuleIndicesList()
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.BreakRuleOrBuilder
getBreakRuleOrBuilder()
Describes the break schedule to be enforced on this vehicle.CapacityQuantity
getCapacities(int index)
Deprecated.CapacityQuantity.Builder
getCapacitiesBuilder(int index)
Deprecated.List<CapacityQuantity.Builder>
getCapacitiesBuilderList()
Deprecated.int
getCapacitiesCount()
Deprecated.List<CapacityQuantity>
getCapacitiesList()
Deprecated.CapacityQuantityOrBuilder
getCapacitiesOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityOrBuilder>
getCapacitiesOrBuilderList()
Deprecated.double
getCostPerHour()
Vehicle costs: all costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].double
getCostPerKilometer()
Cost per kilometer of the vehicle route.double
getCostPerTraveledHour()
Cost per traveled hour of the vehicle route.Vehicle
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CapacityQuantityInterval
getEndLoadIntervals(int index)
Deprecated.CapacityQuantityInterval.Builder
getEndLoadIntervalsBuilder(int index)
Deprecated.List<CapacityQuantityInterval.Builder>
getEndLoadIntervalsBuilderList()
Deprecated.int
getEndLoadIntervalsCount()
Deprecated.List<CapacityQuantityInterval>
getEndLoadIntervalsList()
Deprecated.CapacityQuantityIntervalOrBuilder
getEndLoadIntervalsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityIntervalOrBuilder>
getEndLoadIntervalsOrBuilderList()
Deprecated.com.google.type.LatLng
getEndLocation()
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.com.google.type.LatLng.Builder
getEndLocationBuilder()
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.com.google.type.LatLngOrBuilder
getEndLocationOrBuilder()
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.String
getEndTags(int index)
Specifies tags attached to the end of the vehicle's route.com.google.protobuf.ByteString
getEndTagsBytes(int index)
Specifies tags attached to the end of the vehicle's route.int
getEndTagsCount()
Specifies tags attached to the end of the vehicle's route.com.google.protobuf.ProtocolStringList
getEndTagsList()
Specifies tags attached to the end of the vehicle's route.TimeWindow
getEndTimeWindows(int index)
Time windows during which the vehicle may arrive at its end location.TimeWindow.Builder
getEndTimeWindowsBuilder(int index)
Time windows during which the vehicle may arrive at its end location.List<TimeWindow.Builder>
getEndTimeWindowsBuilderList()
Time windows during which the vehicle may arrive at its end location.int
getEndTimeWindowsCount()
Time windows during which the vehicle may arrive at its end location.List<TimeWindow>
getEndTimeWindowsList()
Time windows during which the vehicle may arrive at its end location.TimeWindowOrBuilder
getEndTimeWindowsOrBuilder(int index)
Time windows during which the vehicle may arrive at its end location.List<? extends TimeWindowOrBuilder>
getEndTimeWindowsOrBuilderList()
Time windows during which the vehicle may arrive at its end location.Waypoint
getEndWaypoint()
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.Waypoint.Builder
getEndWaypointBuilder()
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.WaypointOrBuilder
getEndWaypointOrBuilder()
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.Map<String,com.google.protobuf.Duration>
getExtraVisitDurationForVisitType()
Deprecated.int
getExtraVisitDurationForVisitTypeCount()
Specifies a map from visit_types strings to durations.Map<String,com.google.protobuf.Duration>
getExtraVisitDurationForVisitTypeMap()
Specifies a map from visit_types strings to durations.com.google.protobuf.Duration
getExtraVisitDurationForVisitTypeOrDefault(String key, com.google.protobuf.Duration defaultValue)
Specifies a map from visit_types strings to durations.com.google.protobuf.Duration
getExtraVisitDurationForVisitTypeOrThrow(String key)
Specifies a map from visit_types strings to durations.double
getFixedCost()
Fixed cost applied if this vehicle is used to handle a shipment.boolean
getIgnore()
If true, `used_if_route_is_empty` must be false, and this vehicle will remain unused.String
getLabel()
Specifies a label for this vehicle.com.google.protobuf.ByteString
getLabelBytes()
Specifies a label for this vehicle.Map<String,Vehicle.LoadLimit>
getLoadLimits()
Deprecated.int
getLoadLimitsCount()
Capacities of the vehicle (weight, volume, # of pallets for example).Map<String,Vehicle.LoadLimit>
getLoadLimitsMap()
Capacities of the vehicle (weight, volume, # of pallets for example).Vehicle.LoadLimit
getLoadLimitsOrDefault(String key, Vehicle.LoadLimit defaultValue)
Capacities of the vehicle (weight, volume, # of pallets for example).Vehicle.LoadLimit
getLoadLimitsOrThrow(String key)
Capacities of the vehicle (weight, volume, # of pallets for example).Map<String,com.google.protobuf.Duration>
getMutableExtraVisitDurationForVisitType()
Deprecated.Map<String,Vehicle.LoadLimit>
getMutableLoadLimits()
Deprecated.DistanceLimit
getRouteDistanceLimit()
Limit applied to the total distance of the vehicle's route.DistanceLimit.Builder
getRouteDistanceLimitBuilder()
Limit applied to the total distance of the vehicle's route.DistanceLimitOrBuilder
getRouteDistanceLimitOrBuilder()
Limit applied to the total distance of the vehicle's route.Vehicle.DurationLimit
getRouteDurationLimit()
Limit applied to the total duration of the vehicle's route.Vehicle.DurationLimit.Builder
getRouteDurationLimitBuilder()
Limit applied to the total duration of the vehicle's route.Vehicle.DurationLimitOrBuilder
getRouteDurationLimitOrBuilder()
Limit applied to the total duration of the vehicle's route.CapacityQuantityInterval
getStartLoadIntervals(int index)
Deprecated.CapacityQuantityInterval.Builder
getStartLoadIntervalsBuilder(int index)
Deprecated.List<CapacityQuantityInterval.Builder>
getStartLoadIntervalsBuilderList()
Deprecated.int
getStartLoadIntervalsCount()
Deprecated.List<CapacityQuantityInterval>
getStartLoadIntervalsList()
Deprecated.CapacityQuantityIntervalOrBuilder
getStartLoadIntervalsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityIntervalOrBuilder>
getStartLoadIntervalsOrBuilderList()
Deprecated.com.google.type.LatLng
getStartLocation()
Geographic location where the vehicle starts before picking up any shipments.com.google.type.LatLng.Builder
getStartLocationBuilder()
Geographic location where the vehicle starts before picking up any shipments.com.google.type.LatLngOrBuilder
getStartLocationOrBuilder()
Geographic location where the vehicle starts before picking up any shipments.String
getStartTags(int index)
Specifies tags attached to the start of the vehicle's route.com.google.protobuf.ByteString
getStartTagsBytes(int index)
Specifies tags attached to the start of the vehicle's route.int
getStartTagsCount()
Specifies tags attached to the start of the vehicle's route.com.google.protobuf.ProtocolStringList
getStartTagsList()
Specifies tags attached to the start of the vehicle's route.TimeWindow
getStartTimeWindows(int index)
Time windows during which the vehicle may depart its start location.TimeWindow.Builder
getStartTimeWindowsBuilder(int index)
Time windows during which the vehicle may depart its start location.List<TimeWindow.Builder>
getStartTimeWindowsBuilderList()
Time windows during which the vehicle may depart its start location.int
getStartTimeWindowsCount()
Time windows during which the vehicle may depart its start location.List<TimeWindow>
getStartTimeWindowsList()
Time windows during which the vehicle may depart its start location.TimeWindowOrBuilder
getStartTimeWindowsOrBuilder(int index)
Time windows during which the vehicle may depart its start location.List<? extends TimeWindowOrBuilder>
getStartTimeWindowsOrBuilderList()
Time windows during which the vehicle may depart its start location.Waypoint
getStartWaypoint()
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.Waypoint.Builder
getStartWaypointBuilder()
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.WaypointOrBuilder
getStartWaypointOrBuilder()
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.Vehicle.DurationLimit
getTravelDurationLimit()
Limit applied to the travel duration of the vehicle's route.Vehicle.DurationLimit.Builder
getTravelDurationLimitBuilder()
Limit applied to the travel duration of the vehicle's route.Vehicle.DurationLimitOrBuilder
getTravelDurationLimitOrBuilder()
Limit applied to the travel duration of the vehicle's route.double
getTravelDurationMultiple()
Specifies a multiplicative factor that can be used to increase or decrease travel times of this vehicle.Vehicle.TravelMode
getTravelMode()
The travel mode which affects the roads usable by the vehicle and its speed.int
getTravelModeValue()
The travel mode which affects the roads usable by the vehicle and its speed.Vehicle.UnloadingPolicy
getUnloadingPolicy()
Unloading policy enforced on the vehicle.int
getUnloadingPolicyValue()
Unloading policy enforced on the vehicle.boolean
getUsedIfRouteIsEmpty()
This field only applies to vehicles when their route does not serve any shipments.boolean
hasBreakRule()
Describes the break schedule to be enforced on this vehicle.boolean
hasEndLocation()
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.boolean
hasEndWaypoint()
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.boolean
hasRouteDistanceLimit()
Limit applied to the total distance of the vehicle's route.boolean
hasRouteDurationLimit()
Limit applied to the total duration of the vehicle's route.boolean
hasStartLocation()
Geographic location where the vehicle starts before picking up any shipments.boolean
hasStartWaypoint()
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.boolean
hasTravelDurationLimit()
Limit applied to the travel duration of the vehicle's route.boolean
hasTravelDurationMultiple()
Specifies a multiplicative factor that can be used to increase or decrease travel times of this vehicle.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Vehicle.Builder
mergeBreakRule(BreakRule value)
Describes the break schedule to be enforced on this vehicle.Vehicle.Builder
mergeEndLocation(com.google.type.LatLng value)
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
mergeEndWaypoint(Waypoint value)
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
mergeFrom(Vehicle other)
Vehicle.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Vehicle.Builder
mergeFrom(com.google.protobuf.Message other)
Vehicle.Builder
mergeRouteDistanceLimit(DistanceLimit value)
Limit applied to the total distance of the vehicle's route.Vehicle.Builder
mergeRouteDurationLimit(Vehicle.DurationLimit value)
Limit applied to the total duration of the vehicle's route.Vehicle.Builder
mergeStartLocation(com.google.type.LatLng value)
Geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
mergeStartWaypoint(Waypoint value)
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
mergeTravelDurationLimit(Vehicle.DurationLimit value)
Limit applied to the travel duration of the vehicle's route.Vehicle.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Vehicle.Builder
putAllExtraVisitDurationForVisitType(Map<String,com.google.protobuf.Duration> values)
Specifies a map from visit_types strings to durations.Vehicle.Builder
putAllLoadLimits(Map<String,Vehicle.LoadLimit> values)
Capacities of the vehicle (weight, volume, # of pallets for example).Vehicle.Builder
putExtraVisitDurationForVisitType(String key, com.google.protobuf.Duration value)
Specifies a map from visit_types strings to durations.Vehicle.Builder
putLoadLimits(String key, Vehicle.LoadLimit value)
Capacities of the vehicle (weight, volume, # of pallets for example).Vehicle.Builder
removeCapacities(int index)
Deprecated.Vehicle.Builder
removeEndLoadIntervals(int index)
Deprecated.Vehicle.Builder
removeEndTimeWindows(int index)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
removeExtraVisitDurationForVisitType(String key)
Specifies a map from visit_types strings to durations.Vehicle.Builder
removeLoadLimits(String key)
Capacities of the vehicle (weight, volume, # of pallets for example).Vehicle.Builder
removeStartLoadIntervals(int index)
Deprecated.Vehicle.Builder
removeStartTimeWindows(int index)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
setBreakRule(BreakRule value)
Describes the break schedule to be enforced on this vehicle.Vehicle.Builder
setBreakRule(BreakRule.Builder builderForValue)
Describes the break schedule to be enforced on this vehicle.Vehicle.Builder
setBreakRuleIndices(int index, int value)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated.Vehicle.Builder
setCapacities(int index, CapacityQuantity value)
Deprecated.Vehicle.Builder
setCapacities(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Vehicle.Builder
setCostPerHour(double value)
Vehicle costs: all costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].Vehicle.Builder
setCostPerKilometer(double value)
Cost per kilometer of the vehicle route.Vehicle.Builder
setCostPerTraveledHour(double value)
Cost per traveled hour of the vehicle route.Vehicle.Builder
setEndLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Vehicle.Builder
setEndLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Vehicle.Builder
setEndLocation(com.google.type.LatLng value)
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
setEndLocation(com.google.type.LatLng.Builder builderForValue)
Geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
setEndTags(int index, String value)
Specifies tags attached to the end of the vehicle's route.Vehicle.Builder
setEndTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
setEndTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may arrive at its end location.Vehicle.Builder
setEndWaypoint(Waypoint value)
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
setEndWaypoint(Waypoint.Builder builderForValue)
Waypoint representing a geographic location where the vehicle ends after it has completed its last `VisitRequest`.Vehicle.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Vehicle.Builder
setFixedCost(double value)
Fixed cost applied if this vehicle is used to handle a shipment.Vehicle.Builder
setIgnore(boolean value)
If true, `used_if_route_is_empty` must be false, and this vehicle will remain unused.Vehicle.Builder
setLabel(String value)
Specifies a label for this vehicle.Vehicle.Builder
setLabelBytes(com.google.protobuf.ByteString value)
Specifies a label for this vehicle.Vehicle.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Vehicle.Builder
setRouteDistanceLimit(DistanceLimit value)
Limit applied to the total distance of the vehicle's route.Vehicle.Builder
setRouteDistanceLimit(DistanceLimit.Builder builderForValue)
Limit applied to the total distance of the vehicle's route.Vehicle.Builder
setRouteDurationLimit(Vehicle.DurationLimit value)
Limit applied to the total duration of the vehicle's route.Vehicle.Builder
setRouteDurationLimit(Vehicle.DurationLimit.Builder builderForValue)
Limit applied to the total duration of the vehicle's route.Vehicle.Builder
setStartLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Vehicle.Builder
setStartLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Vehicle.Builder
setStartLocation(com.google.type.LatLng value)
Geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
setStartLocation(com.google.type.LatLng.Builder builderForValue)
Geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
setStartTags(int index, String value)
Specifies tags attached to the start of the vehicle's route.Vehicle.Builder
setStartTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
setStartTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may depart its start location.Vehicle.Builder
setStartWaypoint(Waypoint value)
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
setStartWaypoint(Waypoint.Builder builderForValue)
Waypoint representing a geographic location where the vehicle starts before picking up any shipments.Vehicle.Builder
setTravelDurationLimit(Vehicle.DurationLimit value)
Limit applied to the travel duration of the vehicle's route.Vehicle.Builder
setTravelDurationLimit(Vehicle.DurationLimit.Builder builderForValue)
Limit applied to the travel duration of the vehicle's route.Vehicle.Builder
setTravelDurationMultiple(double value)
Specifies a multiplicative factor that can be used to increase or decrease travel times of this vehicle.Vehicle.Builder
setTravelMode(Vehicle.TravelMode value)
The travel mode which affects the roads usable by the vehicle and its speed.Vehicle.Builder
setTravelModeValue(int value)
The travel mode which affects the roads usable by the vehicle and its speed.Vehicle.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Vehicle.Builder
setUnloadingPolicy(Vehicle.UnloadingPolicy value)
Unloading policy enforced on the vehicle.Vehicle.Builder
setUnloadingPolicyValue(int value)
Unloading policy enforced on the vehicle.Vehicle.Builder
setUsedIfRouteIsEmpty(boolean value)
This field only applies to vehicles when their route does not serve any shipments.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
clear
public Vehicle.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
getDefaultInstanceForType
public Vehicle getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Vehicle build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Vehicle buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Vehicle.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
setField
public Vehicle.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
clearField
public Vehicle.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
clearOneof
public Vehicle.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
setRepeatedField
public Vehicle.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
addRepeatedField
public Vehicle.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
mergeFrom
public Vehicle.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Vehicle.Builder>
-
mergeFrom
public Vehicle.Builder mergeFrom(Vehicle other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
mergeFrom
public Vehicle.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Vehicle.Builder>
- Throws:
IOException
-
getTravelModeValue
public int getTravelModeValue()
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;
- Specified by:
getTravelModeValue
in interfaceVehicleOrBuilder
- Returns:
- The enum numeric value on the wire for travelMode.
-
setTravelModeValue
public Vehicle.Builder setTravelModeValue(int value)
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;
- Parameters:
value
- The enum numeric value on the wire for travelMode to set.- Returns:
- This builder for chaining.
-
getTravelMode
public Vehicle.TravelMode getTravelMode()
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;
- Specified by:
getTravelMode
in interfaceVehicleOrBuilder
- Returns:
- The travelMode.
-
setTravelMode
public Vehicle.Builder setTravelMode(Vehicle.TravelMode value)
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;
- Parameters:
value
- The travelMode to set.- Returns:
- This builder for chaining.
-
clearTravelMode
public Vehicle.Builder clearTravelMode()
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;
- Returns:
- This builder for chaining.
-
hasStartLocation
public boolean hasStartLocation()
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;
- Specified by:
hasStartLocation
in interfaceVehicleOrBuilder
- Returns:
- Whether the startLocation field is set.
-
getStartLocation
public com.google.type.LatLng getStartLocation()
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;
- Specified by:
getStartLocation
in interfaceVehicleOrBuilder
- Returns:
- The startLocation.
-
setStartLocation
public Vehicle.Builder setStartLocation(com.google.type.LatLng value)
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;
-
setStartLocation
public Vehicle.Builder setStartLocation(com.google.type.LatLng.Builder builderForValue)
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;
-
mergeStartLocation
public Vehicle.Builder mergeStartLocation(com.google.type.LatLng value)
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;
-
clearStartLocation
public Vehicle.Builder clearStartLocation()
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;
-
getStartLocationBuilder
public com.google.type.LatLng.Builder getStartLocationBuilder()
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;
-
getStartLocationOrBuilder
public com.google.type.LatLngOrBuilder getStartLocationOrBuilder()
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;
- Specified by:
getStartLocationOrBuilder
in interfaceVehicleOrBuilder
-
hasStartWaypoint
public boolean hasStartWaypoint()
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;
- Specified by:
hasStartWaypoint
in interfaceVehicleOrBuilder
- Returns:
- Whether the startWaypoint field is set.
-
getStartWaypoint
public Waypoint getStartWaypoint()
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;
- Specified by:
getStartWaypoint
in interfaceVehicleOrBuilder
- Returns:
- The startWaypoint.
-
setStartWaypoint
public Vehicle.Builder setStartWaypoint(Waypoint value)
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;
-
setStartWaypoint
public Vehicle.Builder setStartWaypoint(Waypoint.Builder builderForValue)
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;
-
mergeStartWaypoint
public Vehicle.Builder mergeStartWaypoint(Waypoint value)
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;
-
clearStartWaypoint
public Vehicle.Builder clearStartWaypoint()
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;
-
getStartWaypointBuilder
public Waypoint.Builder getStartWaypointBuilder()
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;
-
getStartWaypointOrBuilder
public WaypointOrBuilder getStartWaypointOrBuilder()
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;
- Specified by:
getStartWaypointOrBuilder
in interfaceVehicleOrBuilder
-
hasEndLocation
public boolean hasEndLocation()
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;
- Specified by:
hasEndLocation
in interfaceVehicleOrBuilder
- Returns:
- Whether the endLocation field is set.
-
getEndLocation
public com.google.type.LatLng getEndLocation()
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;
- Specified by:
getEndLocation
in interfaceVehicleOrBuilder
- Returns:
- The endLocation.
-
setEndLocation
public Vehicle.Builder setEndLocation(com.google.type.LatLng value)
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;
-
setEndLocation
public Vehicle.Builder setEndLocation(com.google.type.LatLng.Builder builderForValue)
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;
-
mergeEndLocation
public Vehicle.Builder mergeEndLocation(com.google.type.LatLng value)
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;
-
clearEndLocation
public Vehicle.Builder clearEndLocation()
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;
-
getEndLocationBuilder
public com.google.type.LatLng.Builder getEndLocationBuilder()
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;
-
getEndLocationOrBuilder
public com.google.type.LatLngOrBuilder getEndLocationOrBuilder()
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;
- Specified by:
getEndLocationOrBuilder
in interfaceVehicleOrBuilder
-
hasEndWaypoint
public boolean hasEndWaypoint()
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;
- Specified by:
hasEndWaypoint
in interfaceVehicleOrBuilder
- Returns:
- Whether the endWaypoint field is set.
-
getEndWaypoint
public Waypoint getEndWaypoint()
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;
- Specified by:
getEndWaypoint
in interfaceVehicleOrBuilder
- Returns:
- The endWaypoint.
-
setEndWaypoint
public Vehicle.Builder setEndWaypoint(Waypoint value)
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;
-
setEndWaypoint
public Vehicle.Builder setEndWaypoint(Waypoint.Builder builderForValue)
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;
-
mergeEndWaypoint
public Vehicle.Builder mergeEndWaypoint(Waypoint value)
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;
-
clearEndWaypoint
public Vehicle.Builder clearEndWaypoint()
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;
-
getEndWaypointBuilder
public Waypoint.Builder getEndWaypointBuilder()
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;
-
getEndWaypointOrBuilder
public WaypointOrBuilder getEndWaypointOrBuilder()
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;
- Specified by:
getEndWaypointOrBuilder
in interfaceVehicleOrBuilder
-
getStartTagsList
public com.google.protobuf.ProtocolStringList getStartTagsList()
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Specified by:
getStartTagsList
in interfaceVehicleOrBuilder
- Returns:
- A list containing the startTags.
-
getStartTagsCount
public int getStartTagsCount()
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Specified by:
getStartTagsCount
in interfaceVehicleOrBuilder
- Returns:
- The count of startTags.
-
getStartTags
public String getStartTags(int index)
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Specified by:
getStartTags
in interfaceVehicleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The startTags at the given index.
-
getStartTagsBytes
public com.google.protobuf.ByteString getStartTagsBytes(int index)
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Specified by:
getStartTagsBytes
in interfaceVehicleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the startTags at the given index.
-
setStartTags
public Vehicle.Builder setStartTags(int index, String value)
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Parameters:
index
- The index to set the value at.value
- The startTags to set.- Returns:
- This builder for chaining.
-
addStartTags
public Vehicle.Builder addStartTags(String value)
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Parameters:
value
- The startTags to add.- Returns:
- This builder for chaining.
-
addAllStartTags
public Vehicle.Builder addAllStartTags(Iterable<String> values)
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Parameters:
values
- The startTags to add.- Returns:
- This builder for chaining.
-
clearStartTags
public Vehicle.Builder clearStartTags()
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Returns:
- This builder for chaining.
-
addStartTagsBytes
public Vehicle.Builder addStartTagsBytes(com.google.protobuf.ByteString value)
Specifies tags attached to the start of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string start_tags = 7;
- Parameters:
value
- The bytes of the startTags to add.- Returns:
- This builder for chaining.
-
getEndTagsList
public com.google.protobuf.ProtocolStringList getEndTagsList()
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Specified by:
getEndTagsList
in interfaceVehicleOrBuilder
- Returns:
- A list containing the endTags.
-
getEndTagsCount
public int getEndTagsCount()
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Specified by:
getEndTagsCount
in interfaceVehicleOrBuilder
- Returns:
- The count of endTags.
-
getEndTags
public String getEndTags(int index)
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Specified by:
getEndTags
in interfaceVehicleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The endTags at the given index.
-
getEndTagsBytes
public com.google.protobuf.ByteString getEndTagsBytes(int index)
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Specified by:
getEndTagsBytes
in interfaceVehicleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the endTags at the given index.
-
setEndTags
public Vehicle.Builder setEndTags(int index, String value)
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Parameters:
index
- The index to set the value at.value
- The endTags to set.- Returns:
- This builder for chaining.
-
addEndTags
public Vehicle.Builder addEndTags(String value)
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Parameters:
value
- The endTags to add.- Returns:
- This builder for chaining.
-
addAllEndTags
public Vehicle.Builder addAllEndTags(Iterable<String> values)
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Parameters:
values
- The endTags to add.- Returns:
- This builder for chaining.
-
clearEndTags
public Vehicle.Builder clearEndTags()
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Returns:
- This builder for chaining.
-
addEndTagsBytes
public Vehicle.Builder addEndTagsBytes(com.google.protobuf.ByteString value)
Specifies tags attached to the end of the vehicle's route. Empty or duplicate strings are not allowed.
repeated string end_tags = 8;
- Parameters:
value
- The bytes of the endTags to add.- Returns:
- This builder for chaining.
-
getStartTimeWindowsList
public List<TimeWindow> getStartTimeWindowsList()
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getStartTimeWindowsList
in interfaceVehicleOrBuilder
-
getStartTimeWindowsCount
public int getStartTimeWindowsCount()
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getStartTimeWindowsCount
in interfaceVehicleOrBuilder
-
getStartTimeWindows
public TimeWindow getStartTimeWindows(int index)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getStartTimeWindows
in interfaceVehicleOrBuilder
-
setStartTimeWindows
public Vehicle.Builder setStartTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
setStartTimeWindows
public Vehicle.Builder setStartTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addStartTimeWindows
public Vehicle.Builder addStartTimeWindows(TimeWindow value)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addStartTimeWindows
public Vehicle.Builder addStartTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addStartTimeWindows
public Vehicle.Builder addStartTimeWindows(TimeWindow.Builder builderForValue)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addStartTimeWindows
public Vehicle.Builder addStartTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addAllStartTimeWindows
public Vehicle.Builder addAllStartTimeWindows(Iterable<? extends TimeWindow> values)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
clearStartTimeWindows
public Vehicle.Builder clearStartTimeWindows()
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
removeStartTimeWindows
public Vehicle.Builder removeStartTimeWindows(int index)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
getStartTimeWindowsBuilder
public TimeWindow.Builder getStartTimeWindowsBuilder(int index)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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
public TimeWindowOrBuilder getStartTimeWindowsOrBuilder(int index)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getStartTimeWindowsOrBuilder
in interfaceVehicleOrBuilder
-
getStartTimeWindowsOrBuilderList
public List<? extends TimeWindowOrBuilder> getStartTimeWindowsOrBuilderList()
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getStartTimeWindowsOrBuilderList
in interfaceVehicleOrBuilder
-
addStartTimeWindowsBuilder
public TimeWindow.Builder addStartTimeWindowsBuilder()
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addStartTimeWindowsBuilder
public TimeWindow.Builder addStartTimeWindowsBuilder(int index)
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
getStartTimeWindowsBuilderList
public List<TimeWindow.Builder> getStartTimeWindowsBuilderList()
Time windows during which the vehicle may depart its start location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
getEndTimeWindowsList
public List<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_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getEndTimeWindowsList
in interfaceVehicleOrBuilder
-
getEndTimeWindowsCount
public int getEndTimeWindowsCount()
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getEndTimeWindowsCount
in interfaceVehicleOrBuilder
-
getEndTimeWindows
public TimeWindow getEndTimeWindows(int index)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getEndTimeWindows
in interfaceVehicleOrBuilder
-
setEndTimeWindows
public Vehicle.Builder setEndTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
setEndTimeWindows
public Vehicle.Builder setEndTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addEndTimeWindows
public Vehicle.Builder addEndTimeWindows(TimeWindow value)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addEndTimeWindows
public Vehicle.Builder addEndTimeWindows(int index, TimeWindow value)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addEndTimeWindows
public Vehicle.Builder addEndTimeWindows(TimeWindow.Builder builderForValue)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addEndTimeWindows
public Vehicle.Builder addEndTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addAllEndTimeWindows
public Vehicle.Builder addAllEndTimeWindows(Iterable<? extends TimeWindow> values)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
clearEndTimeWindows
public Vehicle.Builder clearEndTimeWindows()
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
removeEndTimeWindows
public Vehicle.Builder removeEndTimeWindows(int index)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
getEndTimeWindowsBuilder
public TimeWindow.Builder getEndTimeWindowsBuilder(int index)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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
public TimeWindowOrBuilder getEndTimeWindowsOrBuilder(int index)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getEndTimeWindowsOrBuilder
in interfaceVehicleOrBuilder
-
getEndTimeWindowsOrBuilderList
public List<? extends TimeWindowOrBuilder> getEndTimeWindowsOrBuilderList()
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
- Specified by:
getEndTimeWindowsOrBuilderList
in interfaceVehicleOrBuilder
-
addEndTimeWindowsBuilder
public TimeWindow.Builder addEndTimeWindowsBuilder()
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
addEndTimeWindowsBuilder
public TimeWindow.Builder addEndTimeWindowsBuilder(int index)
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
getEndTimeWindowsBuilderList
public List<TimeWindow.Builder> getEndTimeWindowsBuilderList()
Time windows during which the vehicle may arrive at its end location. They must be within the global time limits (see [ShipmentModel.global_*][google.cloud.optimization.v1.ShipmentModel.global_start_time] 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;
-
hasTravelDurationMultiple
public boolean hasTravelDurationMultiple()
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;
- Specified by:
hasTravelDurationMultiple
in interfaceVehicleOrBuilder
- Returns:
- Whether the travelDurationMultiple field is set.
-
getTravelDurationMultiple
public double getTravelDurationMultiple()
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;
- Specified by:
getTravelDurationMultiple
in interfaceVehicleOrBuilder
- Returns:
- The travelDurationMultiple.
-
setTravelDurationMultiple
public Vehicle.Builder setTravelDurationMultiple(double value)
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;
- Parameters:
value
- The travelDurationMultiple to set.- Returns:
- This builder for chaining.
-
clearTravelDurationMultiple
public Vehicle.Builder clearTravelDurationMultiple()
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;
- Returns:
- This builder for chaining.
-
getUnloadingPolicyValue
public int getUnloadingPolicyValue()
Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
- Specified by:
getUnloadingPolicyValue
in interfaceVehicleOrBuilder
- Returns:
- The enum numeric value on the wire for unloadingPolicy.
-
setUnloadingPolicyValue
public Vehicle.Builder setUnloadingPolicyValue(int value)
Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
- Parameters:
value
- The enum numeric value on the wire for unloadingPolicy to set.- Returns:
- This builder for chaining.
-
getUnloadingPolicy
public Vehicle.UnloadingPolicy getUnloadingPolicy()
Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
- Specified by:
getUnloadingPolicy
in interfaceVehicleOrBuilder
- Returns:
- The unloadingPolicy.
-
setUnloadingPolicy
public Vehicle.Builder setUnloadingPolicy(Vehicle.UnloadingPolicy value)
Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
- Parameters:
value
- The unloadingPolicy to set.- Returns:
- This builder for chaining.
-
clearUnloadingPolicy
public Vehicle.Builder clearUnloadingPolicy()
Unloading policy enforced on the vehicle.
.google.cloud.optimization.v1.Vehicle.UnloadingPolicy unloading_policy = 12;
- Returns:
- This builder for chaining.
-
getLoadLimitsCount
public int getLoadLimitsCount()
Description copied from interface:VehicleOrBuilder
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][google.cloud.optimization.v1.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;
- Specified by:
getLoadLimitsCount
in interfaceVehicleOrBuilder
-
containsLoadLimits
public boolean containsLoadLimits(String key)
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][google.cloud.optimization.v1.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;
- Specified by:
containsLoadLimits
in interfaceVehicleOrBuilder
-
getLoadLimits
@Deprecated public Map<String,Vehicle.LoadLimit> getLoadLimits()
Deprecated.UsegetLoadLimitsMap()
instead.- Specified by:
getLoadLimits
in interfaceVehicleOrBuilder
-
getLoadLimitsMap
public Map<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][google.cloud.optimization.v1.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;
- Specified by:
getLoadLimitsMap
in interfaceVehicleOrBuilder
-
getLoadLimitsOrDefault
public Vehicle.LoadLimit getLoadLimitsOrDefault(String key, Vehicle.LoadLimit defaultValue)
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][google.cloud.optimization.v1.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;
- Specified by:
getLoadLimitsOrDefault
in interfaceVehicleOrBuilder
-
getLoadLimitsOrThrow
public Vehicle.LoadLimit getLoadLimitsOrThrow(String key)
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][google.cloud.optimization.v1.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;
- Specified by:
getLoadLimitsOrThrow
in interfaceVehicleOrBuilder
-
clearLoadLimits
public Vehicle.Builder clearLoadLimits()
-
removeLoadLimits
public Vehicle.Builder removeLoadLimits(String key)
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][google.cloud.optimization.v1.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;
-
getMutableLoadLimits
@Deprecated public Map<String,Vehicle.LoadLimit> getMutableLoadLimits()
Deprecated.Use alternate mutation accessors instead.
-
putLoadLimits
public Vehicle.Builder putLoadLimits(String key, Vehicle.LoadLimit value)
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][google.cloud.optimization.v1.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;
-
putAllLoadLimits
public Vehicle.Builder putAllLoadLimits(Map<String,Vehicle.LoadLimit> values)
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][google.cloud.optimization.v1.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;
-
getCostPerHour
public double getCostPerHour()
Vehicle costs: all costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.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;
- Specified by:
getCostPerHour
in interfaceVehicleOrBuilder
- Returns:
- The costPerHour.
-
setCostPerHour
public Vehicle.Builder setCostPerHour(double value)
Vehicle costs: all costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.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;
- Parameters:
value
- The costPerHour to set.- Returns:
- This builder for chaining.
-
clearCostPerHour
public Vehicle.Builder clearCostPerHour()
Vehicle costs: all costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.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;
- Returns:
- This builder for chaining.
-
getCostPerTraveledHour
public double getCostPerTraveledHour()
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][google.cloud.optimization.v1.ShipmentRoute.transitions]), and excludes waiting time and visit time.
double cost_per_traveled_hour = 17;
- Specified by:
getCostPerTraveledHour
in interfaceVehicleOrBuilder
- Returns:
- The costPerTraveledHour.
-
setCostPerTraveledHour
public Vehicle.Builder setCostPerTraveledHour(double value)
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][google.cloud.optimization.v1.ShipmentRoute.transitions]), and excludes waiting time and visit time.
double cost_per_traveled_hour = 17;
- Parameters:
value
- The costPerTraveledHour to set.- Returns:
- This builder for chaining.
-
clearCostPerTraveledHour
public Vehicle.Builder clearCostPerTraveledHour()
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][google.cloud.optimization.v1.ShipmentRoute.transitions]), and excludes waiting time and visit time.
double cost_per_traveled_hour = 17;
- Returns:
- This builder for chaining.
-
getCostPerKilometer
public double getCostPerKilometer()
Cost per kilometer of the vehicle route. This cost is applied to the distance reported in the [ShipmentRoute.transitions][google.cloud.optimization.v1.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;
- Specified by:
getCostPerKilometer
in interfaceVehicleOrBuilder
- Returns:
- The costPerKilometer.
-
setCostPerKilometer
public Vehicle.Builder setCostPerKilometer(double value)
Cost per kilometer of the vehicle route. This cost is applied to the distance reported in the [ShipmentRoute.transitions][google.cloud.optimization.v1.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;
- Parameters:
value
- The costPerKilometer to set.- Returns:
- This builder for chaining.
-
clearCostPerKilometer
public Vehicle.Builder clearCostPerKilometer()
Cost per kilometer of the vehicle route. This cost is applied to the distance reported in the [ShipmentRoute.transitions][google.cloud.optimization.v1.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;
- Returns:
- This builder for chaining.
-
getFixedCost
public double getFixedCost()
Fixed cost applied if this vehicle is used to handle a shipment.
double fixed_cost = 19;
- Specified by:
getFixedCost
in interfaceVehicleOrBuilder
- Returns:
- The fixedCost.
-
setFixedCost
public Vehicle.Builder setFixedCost(double value)
Fixed cost applied if this vehicle is used to handle a shipment.
double fixed_cost = 19;
- Parameters:
value
- The fixedCost to set.- Returns:
- This builder for chaining.
-
clearFixedCost
public Vehicle.Builder clearFixedCost()
Fixed cost applied if this vehicle is used to handle a shipment.
double fixed_cost = 19;
- Returns:
- This builder for chaining.
-
getUsedIfRouteIsEmpty
public boolean getUsedIfRouteIsEmpty()
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;
- Specified by:
getUsedIfRouteIsEmpty
in interfaceVehicleOrBuilder
- Returns:
- The usedIfRouteIsEmpty.
-
setUsedIfRouteIsEmpty
public Vehicle.Builder setUsedIfRouteIsEmpty(boolean value)
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;
- Parameters:
value
- The usedIfRouteIsEmpty to set.- Returns:
- This builder for chaining.
-
clearUsedIfRouteIsEmpty
public Vehicle.Builder clearUsedIfRouteIsEmpty()
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;
- Returns:
- This builder for chaining.
-
hasRouteDurationLimit
public boolean hasRouteDurationLimit()
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;
- Specified by:
hasRouteDurationLimit
in interfaceVehicleOrBuilder
- Returns:
- Whether the routeDurationLimit field is set.
-
getRouteDurationLimit
public Vehicle.DurationLimit getRouteDurationLimit()
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;
- Specified by:
getRouteDurationLimit
in interfaceVehicleOrBuilder
- Returns:
- The routeDurationLimit.
-
setRouteDurationLimit
public Vehicle.Builder setRouteDurationLimit(Vehicle.DurationLimit value)
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;
-
setRouteDurationLimit
public Vehicle.Builder setRouteDurationLimit(Vehicle.DurationLimit.Builder builderForValue)
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;
-
mergeRouteDurationLimit
public Vehicle.Builder mergeRouteDurationLimit(Vehicle.DurationLimit value)
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;
-
clearRouteDurationLimit
public Vehicle.Builder clearRouteDurationLimit()
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;
-
getRouteDurationLimitBuilder
public Vehicle.DurationLimit.Builder getRouteDurationLimitBuilder()
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;
-
getRouteDurationLimitOrBuilder
public Vehicle.DurationLimitOrBuilder getRouteDurationLimitOrBuilder()
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;
- Specified by:
getRouteDurationLimitOrBuilder
in interfaceVehicleOrBuilder
-
hasTravelDurationLimit
public boolean hasTravelDurationLimit()
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
- Specified by:
hasTravelDurationLimit
in interfaceVehicleOrBuilder
- Returns:
- Whether the travelDurationLimit field is set.
-
getTravelDurationLimit
public Vehicle.DurationLimit getTravelDurationLimit()
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
- Specified by:
getTravelDurationLimit
in interfaceVehicleOrBuilder
- Returns:
- The travelDurationLimit.
-
setTravelDurationLimit
public Vehicle.Builder setTravelDurationLimit(Vehicle.DurationLimit value)
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
-
setTravelDurationLimit
public Vehicle.Builder setTravelDurationLimit(Vehicle.DurationLimit.Builder builderForValue)
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
-
mergeTravelDurationLimit
public Vehicle.Builder mergeTravelDurationLimit(Vehicle.DurationLimit value)
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
-
clearTravelDurationLimit
public Vehicle.Builder clearTravelDurationLimit()
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
-
getTravelDurationLimitBuilder
public Vehicle.DurationLimit.Builder getTravelDurationLimitBuilder()
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
-
getTravelDurationLimitOrBuilder
public Vehicle.DurationLimitOrBuilder getTravelDurationLimitOrBuilder()
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.ShipmentRoute.Transition.travel_duration].
.google.cloud.optimization.v1.Vehicle.DurationLimit travel_duration_limit = 22;
- Specified by:
getTravelDurationLimitOrBuilder
in interfaceVehicleOrBuilder
-
hasRouteDistanceLimit
public boolean hasRouteDistanceLimit()
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
- Specified by:
hasRouteDistanceLimit
in interfaceVehicleOrBuilder
- Returns:
- Whether the routeDistanceLimit field is set.
-
getRouteDistanceLimit
public DistanceLimit getRouteDistanceLimit()
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
- Specified by:
getRouteDistanceLimit
in interfaceVehicleOrBuilder
- Returns:
- The routeDistanceLimit.
-
setRouteDistanceLimit
public Vehicle.Builder setRouteDistanceLimit(DistanceLimit value)
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
-
setRouteDistanceLimit
public Vehicle.Builder setRouteDistanceLimit(DistanceLimit.Builder builderForValue)
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
-
mergeRouteDistanceLimit
public Vehicle.Builder mergeRouteDistanceLimit(DistanceLimit value)
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
-
clearRouteDistanceLimit
public Vehicle.Builder clearRouteDistanceLimit()
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
-
getRouteDistanceLimitBuilder
public DistanceLimit.Builder getRouteDistanceLimitBuilder()
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
-
getRouteDistanceLimitOrBuilder
public DistanceLimitOrBuilder getRouteDistanceLimitOrBuilder()
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.ShipmentRoute.Transition.travel_distance_meters].
.google.cloud.optimization.v1.DistanceLimit route_distance_limit = 23;
- Specified by:
getRouteDistanceLimitOrBuilder
in interfaceVehicleOrBuilder
-
getExtraVisitDurationForVisitTypeCount
public int getExtraVisitDurationForVisitTypeCount()
Description copied from interface:VehicleOrBuilder
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
- Specified by:
getExtraVisitDurationForVisitTypeCount
in interfaceVehicleOrBuilder
-
containsExtraVisitDurationForVisitType
public boolean containsExtraVisitDurationForVisitType(String key)
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
- Specified by:
containsExtraVisitDurationForVisitType
in interfaceVehicleOrBuilder
-
getExtraVisitDurationForVisitType
@Deprecated public Map<String,com.google.protobuf.Duration> getExtraVisitDurationForVisitType()
Deprecated.UsegetExtraVisitDurationForVisitTypeMap()
instead.- Specified by:
getExtraVisitDurationForVisitType
in interfaceVehicleOrBuilder
-
getExtraVisitDurationForVisitTypeMap
public Map<String,com.google.protobuf.Duration> getExtraVisitDurationForVisitTypeMap()
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
- Specified by:
getExtraVisitDurationForVisitTypeMap
in interfaceVehicleOrBuilder
-
getExtraVisitDurationForVisitTypeOrDefault
public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrDefault(String key, com.google.protobuf.Duration defaultValue)
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
- Specified by:
getExtraVisitDurationForVisitTypeOrDefault
in interfaceVehicleOrBuilder
-
getExtraVisitDurationForVisitTypeOrThrow
public com.google.protobuf.Duration getExtraVisitDurationForVisitTypeOrThrow(String key)
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
- Specified by:
getExtraVisitDurationForVisitTypeOrThrow
in interfaceVehicleOrBuilder
-
clearExtraVisitDurationForVisitType
public Vehicle.Builder clearExtraVisitDurationForVisitType()
-
removeExtraVisitDurationForVisitType
public Vehicle.Builder removeExtraVisitDurationForVisitType(String key)
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
-
getMutableExtraVisitDurationForVisitType
@Deprecated public Map<String,com.google.protobuf.Duration> getMutableExtraVisitDurationForVisitType()
Deprecated.Use alternate mutation accessors instead.
-
putExtraVisitDurationForVisitType
public Vehicle.Builder putExtraVisitDurationForVisitType(String key, com.google.protobuf.Duration value)
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
-
putAllExtraVisitDurationForVisitType
public Vehicle.Builder putAllExtraVisitDurationForVisitType(Map<String,com.google.protobuf.Duration> values)
Specifies a map from visit_types strings to durations. The duration is time in addition to [VisitRequest.duration][google.cloud.optimization.v1.Shipment.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;
-
hasBreakRule
public boolean hasBreakRule()
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;
- Specified by:
hasBreakRule
in interfaceVehicleOrBuilder
- Returns:
- Whether the breakRule field is set.
-
getBreakRule
public BreakRule getBreakRule()
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;
- Specified by:
getBreakRule
in interfaceVehicleOrBuilder
- Returns:
- The breakRule.
-
setBreakRule
public Vehicle.Builder setBreakRule(BreakRule value)
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;
-
setBreakRule
public Vehicle.Builder setBreakRule(BreakRule.Builder builderForValue)
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;
-
mergeBreakRule
public Vehicle.Builder mergeBreakRule(BreakRule value)
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;
-
clearBreakRule
public Vehicle.Builder clearBreakRule()
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;
-
getBreakRuleBuilder
public BreakRule.Builder getBreakRuleBuilder()
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;
-
getBreakRuleOrBuilder
public BreakRuleOrBuilder getBreakRuleOrBuilder()
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;
- Specified by:
getBreakRuleOrBuilder
in interfaceVehicleOrBuilder
-
getLabel
public String getLabel()
Specifies a label for this vehicle. This label is reported in the response as the `vehicle_label` of the corresponding [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
string label = 27;
- Specified by:
getLabel
in interfaceVehicleOrBuilder
- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()
Specifies a label for this vehicle. This label is reported in the response as the `vehicle_label` of the corresponding [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
string label = 27;
- Specified by:
getLabelBytes
in interfaceVehicleOrBuilder
- Returns:
- The bytes for label.
-
setLabel
public Vehicle.Builder setLabel(String value)
Specifies a label for this vehicle. This label is reported in the response as the `vehicle_label` of the corresponding [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
string label = 27;
- Parameters:
value
- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
public Vehicle.Builder clearLabel()
Specifies a label for this vehicle. This label is reported in the response as the `vehicle_label` of the corresponding [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
string label = 27;
- Returns:
- This builder for chaining.
-
setLabelBytes
public Vehicle.Builder setLabelBytes(com.google.protobuf.ByteString value)
Specifies a label for this vehicle. This label is reported in the response as the `vehicle_label` of the corresponding [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
string label = 27;
- Parameters:
value
- The bytes for label to set.- Returns:
- This builder for chaining.
-
getIgnore
public boolean getIgnore()
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;
- Specified by:
getIgnore
in interfaceVehicleOrBuilder
- Returns:
- The ignore.
-
setIgnore
public Vehicle.Builder setIgnore(boolean value)
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;
- Parameters:
value
- The ignore to set.- Returns:
- This builder for chaining.
-
clearIgnore
public Vehicle.Builder clearIgnore()
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;
- Returns:
- This builder for chaining.
-
getBreakRuleIndicesList
@Deprecated public List<Integer> getBreakRuleIndicesList()
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Specified by:
getBreakRuleIndicesList
in interfaceVehicleOrBuilder
- Returns:
- A list containing the breakRuleIndices.
-
getBreakRuleIndicesCount
@Deprecated public int getBreakRuleIndicesCount()
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Specified by:
getBreakRuleIndicesCount
in interfaceVehicleOrBuilder
- Returns:
- The count of breakRuleIndices.
-
getBreakRuleIndices
@Deprecated public int getBreakRuleIndices(int index)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Specified by:
getBreakRuleIndices
in interfaceVehicleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The breakRuleIndices at the given index.
-
setBreakRuleIndices
@Deprecated public Vehicle.Builder setBreakRuleIndices(int index, int value)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Parameters:
index
- The index to set the value at.value
- The breakRuleIndices to set.- Returns:
- This builder for chaining.
-
addBreakRuleIndices
@Deprecated public Vehicle.Builder addBreakRuleIndices(int value)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Parameters:
value
- The breakRuleIndices to add.- Returns:
- This builder for chaining.
-
addAllBreakRuleIndices
@Deprecated public Vehicle.Builder addAllBreakRuleIndices(Iterable<? extends Integer> values)
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Parameters:
values
- The breakRuleIndices to add.- Returns:
- This builder for chaining.
-
clearBreakRuleIndices
@Deprecated public Vehicle.Builder clearBreakRuleIndices()
Deprecated.google.cloud.optimization.v1.Vehicle.break_rule_indices is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1454Deprecated: No longer used. Indices in the `break_rule` field in the source [ShipmentModel][google.cloud.optimization.v1.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];
- Returns:
- This builder for chaining.
-
getCapacitiesList
@Deprecated public List<CapacityQuantity> getCapacitiesList()
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
- Specified by:
getCapacitiesList
in interfaceVehicleOrBuilder
-
getCapacitiesCount
@Deprecated public int getCapacitiesCount()
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
- Specified by:
getCapacitiesCount
in interfaceVehicleOrBuilder
-
getCapacities
@Deprecated public CapacityQuantity getCapacities(int index)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
- Specified by:
getCapacities
in interfaceVehicleOrBuilder
-
setCapacities
@Deprecated public Vehicle.Builder setCapacities(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
setCapacities
@Deprecated public Vehicle.Builder setCapacities(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
addCapacities
@Deprecated public Vehicle.Builder addCapacities(CapacityQuantity value)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
addCapacities
@Deprecated public Vehicle.Builder addCapacities(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
addCapacities
@Deprecated public Vehicle.Builder addCapacities(CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
addCapacities
@Deprecated public Vehicle.Builder addCapacities(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
addAllCapacities
@Deprecated public Vehicle.Builder addAllCapacities(Iterable<? extends CapacityQuantity> values)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
clearCapacities
@Deprecated public Vehicle.Builder clearCapacities()
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
removeCapacities
@Deprecated public Vehicle.Builder removeCapacities(int index)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
getCapacitiesBuilder
@Deprecated public CapacityQuantity.Builder getCapacitiesBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
getCapacitiesOrBuilder
@Deprecated public CapacityQuantityOrBuilder getCapacitiesOrBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
- Specified by:
getCapacitiesOrBuilder
in interfaceVehicleOrBuilder
-
getCapacitiesOrBuilderList
@Deprecated public List<? extends CapacityQuantityOrBuilder> getCapacitiesOrBuilderList()
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
- Specified by:
getCapacitiesOrBuilderList
in interfaceVehicleOrBuilder
-
addCapacitiesBuilder
@Deprecated public CapacityQuantity.Builder addCapacitiesBuilder()
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
addCapacitiesBuilder
@Deprecated public CapacityQuantity.Builder addCapacitiesBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
getCapacitiesBuilderList
@Deprecated public List<CapacityQuantity.Builder> getCapacitiesBuilderList()
Deprecated.Deprecated: Use [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity capacities = 13 [deprecated = true];
-
getStartLoadIntervalsList
@Deprecated public List<CapacityQuantityInterval> getStartLoadIntervalsList()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
- Specified by:
getStartLoadIntervalsList
in interfaceVehicleOrBuilder
-
getStartLoadIntervalsCount
@Deprecated public int getStartLoadIntervalsCount()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
- Specified by:
getStartLoadIntervalsCount
in interfaceVehicleOrBuilder
-
getStartLoadIntervals
@Deprecated public CapacityQuantityInterval getStartLoadIntervals(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
- Specified by:
getStartLoadIntervals
in interfaceVehicleOrBuilder
-
setStartLoadIntervals
@Deprecated public Vehicle.Builder setStartLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
setStartLoadIntervals
@Deprecated public Vehicle.Builder setStartLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
addStartLoadIntervals
@Deprecated public Vehicle.Builder addStartLoadIntervals(CapacityQuantityInterval value)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
addStartLoadIntervals
@Deprecated public Vehicle.Builder addStartLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
addStartLoadIntervals
@Deprecated public Vehicle.Builder addStartLoadIntervals(CapacityQuantityInterval.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
addStartLoadIntervals
@Deprecated public Vehicle.Builder addStartLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
addAllStartLoadIntervals
@Deprecated public Vehicle.Builder addAllStartLoadIntervals(Iterable<? extends CapacityQuantityInterval> values)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
clearStartLoadIntervals
@Deprecated public Vehicle.Builder clearStartLoadIntervals()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
removeStartLoadIntervals
@Deprecated public Vehicle.Builder removeStartLoadIntervals(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
getStartLoadIntervalsBuilder
@Deprecated public CapacityQuantityInterval.Builder getStartLoadIntervalsBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
getStartLoadIntervalsOrBuilder
@Deprecated public CapacityQuantityIntervalOrBuilder getStartLoadIntervalsOrBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
- Specified by:
getStartLoadIntervalsOrBuilder
in interfaceVehicleOrBuilder
-
getStartLoadIntervalsOrBuilderList
@Deprecated public List<? extends CapacityQuantityIntervalOrBuilder> getStartLoadIntervalsOrBuilderList()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
- Specified by:
getStartLoadIntervalsOrBuilderList
in interfaceVehicleOrBuilder
-
addStartLoadIntervalsBuilder
@Deprecated public CapacityQuantityInterval.Builder addStartLoadIntervalsBuilder()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
addStartLoadIntervalsBuilder
@Deprecated public CapacityQuantityInterval.Builder addStartLoadIntervalsBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
getStartLoadIntervalsBuilderList
@Deprecated public List<CapacityQuantityInterval.Builder> getStartLoadIntervalsBuilderList()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.start_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.start_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval start_load_intervals = 14 [deprecated = true];
-
getEndLoadIntervalsList
@Deprecated public List<CapacityQuantityInterval> getEndLoadIntervalsList()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
- Specified by:
getEndLoadIntervalsList
in interfaceVehicleOrBuilder
-
getEndLoadIntervalsCount
@Deprecated public int getEndLoadIntervalsCount()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
- Specified by:
getEndLoadIntervalsCount
in interfaceVehicleOrBuilder
-
getEndLoadIntervals
@Deprecated public CapacityQuantityInterval getEndLoadIntervals(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
- Specified by:
getEndLoadIntervals
in interfaceVehicleOrBuilder
-
setEndLoadIntervals
@Deprecated public Vehicle.Builder setEndLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
setEndLoadIntervals
@Deprecated public Vehicle.Builder setEndLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
addEndLoadIntervals
@Deprecated public Vehicle.Builder addEndLoadIntervals(CapacityQuantityInterval value)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
addEndLoadIntervals
@Deprecated public Vehicle.Builder addEndLoadIntervals(int index, CapacityQuantityInterval value)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
addEndLoadIntervals
@Deprecated public Vehicle.Builder addEndLoadIntervals(CapacityQuantityInterval.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
addEndLoadIntervals
@Deprecated public Vehicle.Builder addEndLoadIntervals(int index, CapacityQuantityInterval.Builder builderForValue)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
addAllEndLoadIntervals
@Deprecated public Vehicle.Builder addAllEndLoadIntervals(Iterable<? extends CapacityQuantityInterval> values)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
clearEndLoadIntervals
@Deprecated public Vehicle.Builder clearEndLoadIntervals()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
removeEndLoadIntervals
@Deprecated public Vehicle.Builder removeEndLoadIntervals(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
getEndLoadIntervalsBuilder
@Deprecated public CapacityQuantityInterval.Builder getEndLoadIntervalsBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
getEndLoadIntervalsOrBuilder
@Deprecated public CapacityQuantityIntervalOrBuilder getEndLoadIntervalsOrBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
- Specified by:
getEndLoadIntervalsOrBuilder
in interfaceVehicleOrBuilder
-
getEndLoadIntervalsOrBuilderList
@Deprecated public List<? extends CapacityQuantityIntervalOrBuilder> getEndLoadIntervalsOrBuilderList()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
- Specified by:
getEndLoadIntervalsOrBuilderList
in interfaceVehicleOrBuilder
-
addEndLoadIntervalsBuilder
@Deprecated public CapacityQuantityInterval.Builder addEndLoadIntervalsBuilder()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
addEndLoadIntervalsBuilder
@Deprecated public CapacityQuantityInterval.Builder addEndLoadIntervalsBuilder(int index)
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
getEndLoadIntervalsBuilderList
@Deprecated public List<CapacityQuantityInterval.Builder> getEndLoadIntervalsBuilderList()
Deprecated.Deprecated: Use [Vehicle.LoadLimit.end_load_interval][google.cloud.optimization.v1.Vehicle.LoadLimit.end_load_interval] instead.
repeated .google.cloud.optimization.v1.CapacityQuantityInterval end_load_intervals = 15 [deprecated = true];
-
setUnknownFields
public final Vehicle.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
mergeUnknownFields
public final Vehicle.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Vehicle.Builder>
-
-