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 class
ShipmentRoute.Transition.Builder
Transition 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 int
BREAK_DURATION_FIELD_NUMBER
static int
DELAY_DURATION_FIELD_NUMBER
static int
LOADS_FIELD_NUMBER
static int
ROUTE_POLYLINE_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
TOTAL_DURATION_FIELD_NUMBER
static int
TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
static int
TRAVEL_DISTANCE_METERS_FIELD_NUMBER
static int
TRAVEL_DURATION_FIELD_NUMBER
static int
VEHICLE_LOADS_FIELD_NUMBER
static int
WAIT_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.boolean
equals(Object obj)
com.google.protobuf.Duration
getBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any.com.google.protobuf.DurationOrBuilder
getBreakDurationOrBuilder()
Sum of the duration of the breaks occurring during this transition, if any.static ShipmentRoute.Transition
getDefaultInstance()
ShipmentRoute.Transition
getDefaultInstanceForType()
com.google.protobuf.Duration
getDelayDuration()
Sum of the delay durations applied to this transition.com.google.protobuf.DurationOrBuilder
getDelayDurationOrBuilder()
Sum of the delay durations applied to this transition.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
CapacityQuantity
getLoads(int index)
Deprecated.int
getLoadsCount()
Deprecated.List<CapacityQuantity>
getLoadsList()
Deprecated.CapacityQuantityOrBuilder
getLoadsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityOrBuilder>
getLoadsOrBuilderList()
Deprecated.com.google.protobuf.Parser<ShipmentRoute.Transition>
getParserForType()
ShipmentRoute.EncodedPolyline
getRoutePolyline()
The encoded polyline representation of the route followed during the transition.ShipmentRoute.EncodedPolylineOrBuilder
getRoutePolylineOrBuilder()
The encoded polyline representation of the route followed during the transition.int
getSerializedSize()
com.google.protobuf.Timestamp
getStartTime()
Start time of this transition.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
Start time of this transition.com.google.protobuf.Duration
getTotalDuration()
Total duration of the transition, provided for convenience.com.google.protobuf.DurationOrBuilder
getTotalDurationOrBuilder()
Total duration of the transition, provided for convenience.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.double
getTravelDistanceMeters()
Distance traveled during the transition.com.google.protobuf.Duration
getTravelDuration()
Travel duration during this transition.com.google.protobuf.DurationOrBuilder
getTravelDurationOrBuilder()
Travel duration during this transition.Map<String,ShipmentRoute.VehicleLoad>
getVehicleLoads()
Deprecated.int
getVehicleLoadsCount()
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.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.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.com.google.protobuf.Duration
getWaitDuration()
Time spent waiting during this transition.com.google.protobuf.DurationOrBuilder
getWaitDurationOrBuilder()
Time spent waiting during this transition.boolean
hasBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any.boolean
hasDelayDuration()
Sum of the delay durations applied to this transition.int
hashCode()
boolean
hasRoutePolyline()
The encoded polyline representation of the route followed during the transition.boolean
hasStartTime()
Start time of this transition.boolean
hasTotalDuration()
Total duration of the transition, provided for convenience.boolean
hasTravelDuration()
Travel duration during this transition.boolean
hasWaitDuration()
Time spent waiting during this transition.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static ShipmentRoute.Transition.Builder
newBuilder()
static ShipmentRoute.Transition.Builder
newBuilder(ShipmentRoute.Transition prototype)
ShipmentRoute.Transition.Builder
newBuilderForType()
protected ShipmentRoute.Transition.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ShipmentRoute.Transition
parseDelimitedFrom(InputStream input)
static ShipmentRoute.Transition
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Transition
parseFrom(byte[] data)
static ShipmentRoute.Transition
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Transition
parseFrom(com.google.protobuf.ByteString data)
static ShipmentRoute.Transition
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Transition
parseFrom(com.google.protobuf.CodedInputStream input)
static ShipmentRoute.Transition
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Transition
parseFrom(InputStream input)
static ShipmentRoute.Transition
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Transition
parseFrom(ByteBuffer data)
static ShipmentRoute.Transition
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ShipmentRoute.Transition>
parser()
ShipmentRoute.Transition.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasTravelDuration
public boolean hasTravelDuration()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
- Specified by:
hasTravelDuration
in 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:
getTravelDuration
in 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:
getTravelDurationOrBuilder
in interfaceShipmentRoute.TransitionOrBuilder
-
getTravelDistanceMeters
public double getTravelDistanceMeters()
Distance traveled during the transition.
double travel_distance_meters = 2;
- Specified by:
getTravelDistanceMeters
in 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:
getTrafficInfoUnavailable
in 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:
hasDelayDuration
in 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:
getDelayDuration
in 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:
getDelayDurationOrBuilder
in 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:
hasBreakDuration
in 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:
getBreakDuration
in 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:
getBreakDurationOrBuilder
in 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:
hasWaitDuration
in 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:
getWaitDuration
in 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:
getWaitDurationOrBuilder
in 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:
hasTotalDuration
in 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:
getTotalDuration
in 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:
getTotalDurationOrBuilder
in interfaceShipmentRoute.TransitionOrBuilder
-
hasStartTime
public boolean hasStartTime()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
- Specified by:
hasStartTime
in 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:
getStartTime
in 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:
getStartTimeOrBuilder
in 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:
hasRoutePolyline
in 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:
getRoutePolyline
in 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:
getRoutePolylineOrBuilder
in interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoadsCount
public int getVehicleLoadsCount()
Description copied from interface:ShipmentRoute.TransitionOrBuilder
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:
getVehicleLoadsCount
in 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:
containsVehicleLoads
in interfaceShipmentRoute.TransitionOrBuilder
-
getVehicleLoads
@Deprecated public Map<String,ShipmentRoute.VehicleLoad> getVehicleLoads()
Deprecated.UsegetVehicleLoadsMap()
instead.- Specified by:
getVehicleLoads
in 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:
getVehicleLoadsMap
in 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:
getVehicleLoadsOrDefault
in 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:
getVehicleLoadsOrThrow
in 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:
getLoadsList
in 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:
getLoadsOrBuilderList
in 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:
getLoadsCount
in 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:
getLoads
in 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:
getLoadsOrBuilder
in interfaceShipmentRoute.TransitionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentRoute.Transition.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentRoute.Transition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-