Package com.google.cloud.optimization.v1
Class ShipmentRoute.Transition
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.ShipmentRoute.Transition
-
- All Implemented Interfaces:
ShipmentRoute.TransitionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ShipmentRoute
public static final class ShipmentRoute.Transition extends com.google.protobuf.GeneratedMessageV3 implements ShipmentRoute.TransitionOrBuilder
Transition between two events on the route. See the description of [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute]. If the vehicle does not have a `start_location` and/or `end_location`, the corresponding travel metrics are 0.
Protobuf typegoogle.cloud.optimization.v1.ShipmentRoute.Transition- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShipmentRoute.Transition.BuilderTransition between two events on the route.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBREAK_DURATION_FIELD_NUMBERstatic intDELAY_DURATION_FIELD_NUMBERstatic intLOADS_FIELD_NUMBERstatic intROUTE_POLYLINE_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBERstatic intTOTAL_DURATION_FIELD_NUMBERstatic intTRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBERstatic intTRAVEL_DISTANCE_METERS_FIELD_NUMBERstatic intTRAVEL_DURATION_FIELD_NUMBERstatic intVEHICLE_LOADS_FIELD_NUMBERstatic intWAIT_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsVehicleLoads(String key)Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route.booleanequals(Object obj)com.google.protobuf.DurationgetBreakDuration()Sum of the duration of the breaks occurring during this transition, if any.com.google.protobuf.DurationOrBuildergetBreakDurationOrBuilder()Sum of the duration of the breaks occurring during this transition, if any.static ShipmentRoute.TransitiongetDefaultInstance()ShipmentRoute.TransitiongetDefaultInstanceForType()com.google.protobuf.DurationgetDelayDuration()Sum of the delay durations applied to this transition.com.google.protobuf.DurationOrBuildergetDelayDurationOrBuilder()Sum of the delay durations applied to this transition.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()CapacityQuantitygetLoads(int index)Deprecated.intgetLoadsCount()Deprecated.List<CapacityQuantity>getLoadsList()Deprecated.CapacityQuantityOrBuildergetLoadsOrBuilder(int index)Deprecated.List<? extends CapacityQuantityOrBuilder>getLoadsOrBuilderList()Deprecated.com.google.protobuf.Parser<ShipmentRoute.Transition>getParserForType()ShipmentRoute.EncodedPolylinegetRoutePolyline()The encoded polyline representation of the route followed during the transition.ShipmentRoute.EncodedPolylineOrBuildergetRoutePolylineOrBuilder()The encoded polyline representation of the route followed during the transition.intgetSerializedSize()com.google.protobuf.TimestampgetStartTime()Start time of this transition.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()Start time of this transition.com.google.protobuf.DurationgetTotalDuration()Total duration of the transition, provided for convenience.com.google.protobuf.DurationOrBuildergetTotalDurationOrBuilder()Total duration of the transition, provided for convenience.booleangetTrafficInfoUnavailable()When traffic is requested via [OptimizeToursRequest.consider_road_traffic] [google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a `Transition`, this boolean is set to true.doublegetTravelDistanceMeters()Distance traveled during the transition.com.google.protobuf.DurationgetTravelDuration()Travel duration during this transition.com.google.protobuf.DurationOrBuildergetTravelDurationOrBuilder()Travel duration during this transition.Map<String,ShipmentRoute.VehicleLoad>getVehicleLoads()Deprecated.intgetVehicleLoadsCount()Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route.Map<String,ShipmentRoute.VehicleLoad>getVehicleLoadsMap()Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route.ShipmentRoute.VehicleLoadgetVehicleLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route.ShipmentRoute.VehicleLoadgetVehicleLoadsOrThrow(String key)Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route.com.google.protobuf.DurationgetWaitDuration()Time spent waiting during this transition.com.google.protobuf.DurationOrBuildergetWaitDurationOrBuilder()Time spent waiting during this transition.booleanhasBreakDuration()Sum of the duration of the breaks occurring during this transition, if any.booleanhasDelayDuration()Sum of the delay durations applied to this transition.inthashCode()booleanhasRoutePolyline()The encoded polyline representation of the route followed during the transition.booleanhasStartTime()Start time of this transition.booleanhasTotalDuration()Total duration of the transition, provided for convenience.booleanhasTravelDuration()Travel duration during this transition.booleanhasWaitDuration()Time spent waiting during this transition.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static ShipmentRoute.Transition.BuildernewBuilder()static ShipmentRoute.Transition.BuildernewBuilder(ShipmentRoute.Transition prototype)ShipmentRoute.Transition.BuildernewBuilderForType()protected ShipmentRoute.Transition.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ShipmentRoute.TransitionparseDelimitedFrom(InputStream input)static ShipmentRoute.TransitionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentRoute.TransitionparseFrom(byte[] data)static ShipmentRoute.TransitionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentRoute.TransitionparseFrom(com.google.protobuf.ByteString data)static ShipmentRoute.TransitionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentRoute.TransitionparseFrom(com.google.protobuf.CodedInputStream input)static ShipmentRoute.TransitionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentRoute.TransitionparseFrom(InputStream input)static ShipmentRoute.TransitionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShipmentRoute.TransitionparseFrom(ByteBuffer data)static ShipmentRoute.TransitionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ShipmentRoute.Transition>parser()ShipmentRoute.Transition.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TRAVEL_DURATION_FIELD_NUMBER
public static final int TRAVEL_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_DISTANCE_METERS_FIELD_NUMBER
public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELAY_DURATION_FIELD_NUMBER
public static final int DELAY_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BREAK_DURATION_FIELD_NUMBER
public static final int BREAK_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WAIT_DURATION_FIELD_NUMBER
public static final int WAIT_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_DURATION_FIELD_NUMBER
public static final int TOTAL_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROUTE_POLYLINE_FIELD_NUMBER
public static final int ROUTE_POLYLINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VEHICLE_LOADS_FIELD_NUMBER
public static final int VEHICLE_LOADS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOADS_FIELD_NUMBER
public static final int LOADS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasTravelDuration
public boolean hasTravelDuration()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;- Specified by:
hasTravelDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the travelDuration field is set.
-
getTravelDuration
public com.google.protobuf.Duration getTravelDuration()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;- Specified by:
getTravelDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The travelDuration.
-
getTravelDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;- Specified by:
getTravelDurationOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
getTravelDistanceMeters
public double getTravelDistanceMeters()
Distance traveled during the transition.
double travel_distance_meters = 2;- Specified by:
getTravelDistanceMetersin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The travelDistanceMeters.
-
getTrafficInfoUnavailable
public boolean getTrafficInfoUnavailable()
When traffic is requested via [OptimizeToursRequest.consider_road_traffic] [google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a `Transition`, this boolean is set to true. This may be temporary (rare hiccup in the realtime traffic servers) or permanent (no data for this location).
bool traffic_info_unavailable = 3;- Specified by:
getTrafficInfoUnavailablein interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The trafficInfoUnavailable.
-
hasDelayDuration
public boolean hasDelayDuration()
Sum of the delay durations applied to this transition. If any, the delay starts exactly `delay_duration` seconds before the next event (visit or vehicle end). See [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
.google.protobuf.Duration delay_duration = 4;- Specified by:
hasDelayDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the delayDuration field is set.
-
getDelayDuration
public com.google.protobuf.Duration getDelayDuration()
Sum of the delay durations applied to this transition. If any, the delay starts exactly `delay_duration` seconds before the next event (visit or vehicle end). See [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
.google.protobuf.Duration delay_duration = 4;- Specified by:
getDelayDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The delayDuration.
-
getDelayDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder()
Sum of the delay durations applied to this transition. If any, the delay starts exactly `delay_duration` seconds before the next event (visit or vehicle end). See [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
.google.protobuf.Duration delay_duration = 4;- Specified by:
getDelayDurationOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
hasBreakDuration
public boolean hasBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
.google.protobuf.Duration break_duration = 5;- Specified by:
hasBreakDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the breakDuration field is set.
-
getBreakDuration
public com.google.protobuf.Duration getBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
.google.protobuf.Duration break_duration = 5;- Specified by:
getBreakDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The breakDuration.
-
getBreakDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
.google.protobuf.Duration break_duration = 5;- Specified by:
getBreakDurationOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
hasWaitDuration
public boolean hasWaitDuration()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;- Specified by:
hasWaitDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the waitDuration field is set.
-
getWaitDuration
public com.google.protobuf.Duration getWaitDuration()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;- Specified by:
getWaitDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The waitDuration.
-
getWaitDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;- Specified by:
getWaitDurationOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
hasTotalDuration
public boolean hasTotalDuration()
Total duration of the transition, provided for convenience. It is equal to: * next visit `start_time` (or `vehicle_end_time` if this is the last transition) - this transition's `start_time`; * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following additionally holds: `total_duration = travel_duration + delay_duration + break_duration + wait_duration`.
.google.protobuf.Duration total_duration = 7;- Specified by:
hasTotalDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the totalDuration field is set.
-
getTotalDuration
public com.google.protobuf.Duration getTotalDuration()
Total duration of the transition, provided for convenience. It is equal to: * next visit `start_time` (or `vehicle_end_time` if this is the last transition) - this transition's `start_time`; * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following additionally holds: `total_duration = travel_duration + delay_duration + break_duration + wait_duration`.
.google.protobuf.Duration total_duration = 7;- Specified by:
getTotalDurationin interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The totalDuration.
-
getTotalDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder()
Total duration of the transition, provided for convenience. It is equal to: * next visit `start_time` (or `vehicle_end_time` if this is the last transition) - this transition's `start_time`; * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following additionally holds: `total_duration = travel_duration + delay_duration + break_duration + wait_duration`.
.google.protobuf.Duration total_duration = 7;- Specified by:
getTotalDurationOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
hasStartTime
public boolean hasStartTime()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;- Specified by:
hasStartTimein interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;- Specified by:
getStartTimein interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;- Specified by:
getStartTimeOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
hasRoutePolyline
public boolean hasRoutePolyline()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;- Specified by:
hasRoutePolylinein interfaceShipmentRoute.TransitionOrBuilder- Returns:
- Whether the routePolyline field is set.
-
getRoutePolyline
public ShipmentRoute.EncodedPolyline getRoutePolyline()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;- Specified by:
getRoutePolylinein interfaceShipmentRoute.TransitionOrBuilder- Returns:
- The routePolyline.
-
getRoutePolylineOrBuilder
public ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;- Specified by:
getRoutePolylineOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoadsCount
public int getVehicleLoadsCount()
Description copied from interface:ShipmentRoute.TransitionOrBuilderVehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route. The loads during the first transition are the starting loads of the vehicle route. Then, after each visit, the visit's `load_demands` are either added or subtracted to get the next transition's loads, depending on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;- Specified by:
getVehicleLoadsCountin interfaceShipmentRoute.TransitionOrBuilder
-
containsVehicleLoads
public boolean containsVehicleLoads(String key)
Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route. The loads during the first transition are the starting loads of the vehicle route. Then, after each visit, the visit's `load_demands` are either added or subtracted to get the next transition's loads, depending on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;- Specified by:
containsVehicleLoadsin interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoads
@Deprecated public Map<String,ShipmentRoute.VehicleLoad> getVehicleLoads()
Deprecated.UsegetVehicleLoadsMap()instead.- Specified by:
getVehicleLoadsin interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoadsMap
public Map<String,ShipmentRoute.VehicleLoad> getVehicleLoadsMap()
Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route. The loads during the first transition are the starting loads of the vehicle route. Then, after each visit, the visit's `load_demands` are either added or subtracted to get the next transition's loads, depending on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;- Specified by:
getVehicleLoadsMapin interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoadsOrDefault
public ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route. The loads during the first transition are the starting loads of the vehicle route. Then, after each visit, the visit's `load_demands` are either added or subtracted to get the next transition's loads, depending on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;- Specified by:
getVehicleLoadsOrDefaultin interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoadsOrThrow
public ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow(String key)
Vehicle loads during this transition, for each type that either appears in this vehicle's [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits], or that have non-zero [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] on some shipment performed on this route. The loads during the first transition are the starting loads of the vehicle route. Then, after each visit, the visit's `load_demands` are either added or subtracted to get the next transition's loads, depending on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;- Specified by:
getVehicleLoadsOrThrowin interfaceShipmentRoute.TransitionOrBuilder
-
getLoadsList
@Deprecated public List<CapacityQuantity> getLoadsList()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];- Specified by:
getLoadsListin interfaceShipmentRoute.TransitionOrBuilder
-
getLoadsOrBuilderList
@Deprecated public List<? extends CapacityQuantityOrBuilder> getLoadsOrBuilderList()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];- Specified by:
getLoadsOrBuilderListin interfaceShipmentRoute.TransitionOrBuilder
-
getLoadsCount
@Deprecated public int getLoadsCount()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];- Specified by:
getLoadsCountin interfaceShipmentRoute.TransitionOrBuilder
-
getLoads
@Deprecated public CapacityQuantity getLoads(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];- Specified by:
getLoadsin interfaceShipmentRoute.TransitionOrBuilder
-
getLoadsOrBuilder
@Deprecated public CapacityQuantityOrBuilder getLoadsOrBuilder(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];- Specified by:
getLoadsOrBuilderin interfaceShipmentRoute.TransitionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ShipmentRoute.Transition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute.Transition parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute.Transition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentRoute.Transition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ShipmentRoute.Transition.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ShipmentRoute.Transition.Builder newBuilder()
-
newBuilder
public static ShipmentRoute.Transition.Builder newBuilder(ShipmentRoute.Transition prototype)
-
toBuilder
public ShipmentRoute.Transition.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentRoute.Transition.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ShipmentRoute.Transition getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ShipmentRoute.Transition> parser()
-
getParserForType
public com.google.protobuf.Parser<ShipmentRoute.Transition> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentRoute.Transition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-