Package com.google.cloud.optimization.v1
Class ShipmentRoute.Transition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
com.google.cloud.optimization.v1.ShipmentRoute.Transition.Builder
- All Implemented Interfaces:
ShipmentRoute.TransitionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ShipmentRoute.Transition
public static final class ShipmentRoute.Transition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
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 type
google.cloud.optimization.v1.ShipmentRoute.Transition-
Method Summary
Modifier and TypeMethodDescriptionaddAllLoads(Iterable<? extends CapacityQuantity> values) Deprecated.addLoads(int index, CapacityQuantity value) Deprecated.addLoads(int index, CapacityQuantity.Builder builderForValue) Deprecated.addLoads(CapacityQuantity value) Deprecated.addLoads(CapacityQuantity.Builder builderForValue) Deprecated.Deprecated.addLoadsBuilder(int index) Deprecated.build()clear()Sum of the duration of the breaks occurring during this transition, if any.Sum of the delay durations applied to this transition.Deprecated.The encoded polyline representation of the route followed during the transition.Start time of this transition.Total duration of the transition, provided for convenience.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.Distance traveled during the transition.Travel duration during this transition.Time spent waiting during this transition.booleanVehicle 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.DurationSum of the duration of the breaks occurring during this transition, if any.com.google.protobuf.Duration.BuilderSum of the duration of the breaks occurring during this transition, if any.com.google.protobuf.DurationOrBuilderSum of the duration of the breaks occurring during this transition, if any.com.google.protobuf.DurationSum of the delay durations applied to this transition.com.google.protobuf.Duration.BuilderSum of the delay durations applied to this transition.com.google.protobuf.DurationOrBuilderSum of the delay durations applied to this transition.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLoads(int index) Deprecated.getLoadsBuilder(int index) Deprecated.Deprecated.intDeprecated.Deprecated.getLoadsOrBuilder(int index) Deprecated.List<? extends CapacityQuantityOrBuilder>Deprecated.Deprecated.The encoded polyline representation of the route followed during the transition.The encoded polyline representation of the route followed during the transition.The encoded polyline representation of the route followed during the transition.com.google.protobuf.TimestampStart time of this transition.com.google.protobuf.Timestamp.BuilderStart time of this transition.com.google.protobuf.TimestampOrBuilderStart time of this transition.com.google.protobuf.DurationTotal duration of the transition, provided for convenience.com.google.protobuf.Duration.BuilderTotal duration of the transition, provided for convenience.com.google.protobuf.DurationOrBuilderTotal duration of the transition, provided for convenience.booleanWhen 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.doubleDistance traveled during the transition.com.google.protobuf.DurationTravel duration during this transition.com.google.protobuf.Duration.BuilderTravel duration during this transition.com.google.protobuf.DurationOrBuilderTravel duration during this transition.Deprecated.intVehicle 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.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.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.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.DurationTime spent waiting during this transition.com.google.protobuf.Duration.BuilderTime spent waiting during this transition.com.google.protobuf.DurationOrBuilderTime spent waiting during this transition.booleanSum of the duration of the breaks occurring during this transition, if any.booleanSum of the delay durations applied to this transition.booleanThe encoded polyline representation of the route followed during the transition.booleanStart time of this transition.booleanTotal duration of the transition, provided for convenience.booleanTravel duration during this transition.booleanTime spent waiting during this transition.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeBreakDuration(com.google.protobuf.Duration value) Sum of the duration of the breaks occurring during this transition, if any.mergeDelayDuration(com.google.protobuf.Duration value) Sum of the delay durations applied to this transition.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The encoded polyline representation of the route followed during the transition.mergeStartTime(com.google.protobuf.Timestamp value) Start time of this transition.mergeTotalDuration(com.google.protobuf.Duration value) Total duration of the transition, provided for convenience.mergeTravelDuration(com.google.protobuf.Duration value) Travel duration during this transition.mergeWaitDuration(com.google.protobuf.Duration value) Time spent waiting during this transition.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.putVehicleLoads(String key, ShipmentRoute.VehicleLoad value) 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.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.removeLoads(int index) Deprecated.removeVehicleLoads(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.setBreakDuration(com.google.protobuf.Duration value) Sum of the duration of the breaks occurring during this transition, if any.setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) Sum of the duration of the breaks occurring during this transition, if any.setDelayDuration(com.google.protobuf.Duration value) Sum of the delay durations applied to this transition.setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) Sum of the delay durations applied to this transition.setLoads(int index, CapacityQuantity value) Deprecated.setLoads(int index, CapacityQuantity.Builder builderForValue) Deprecated.The encoded polyline representation of the route followed during the transition.setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue) The encoded polyline representation of the route followed during the transition.setStartTime(com.google.protobuf.Timestamp value) Start time of this transition.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Start time of this transition.setTotalDuration(com.google.protobuf.Duration value) Total duration of the transition, provided for convenience.setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) Total duration of the transition, provided for convenience.setTrafficInfoUnavailable(boolean value) 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.setTravelDistanceMeters(double value) Distance traveled during the transition.setTravelDuration(com.google.protobuf.Duration value) Travel duration during this transition.setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) Travel duration during this transition.setWaitDuration(com.google.protobuf.Duration value) Time spent waiting during this transition.setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) Time spent waiting during this transition.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Transition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
-
mergeFrom
public ShipmentRoute.Transition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Transition.Builder>- Throws:
IOException
-
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.
-
setTravelDuration
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1; -
setTravelDuration
public ShipmentRoute.Transition.Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1; -
mergeTravelDuration
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1; -
clearTravelDuration
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1; -
getTravelDurationBuilder
public com.google.protobuf.Duration.Builder getTravelDurationBuilder()Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1; -
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.
-
setTravelDistanceMeters
Distance traveled during the transition.
double travel_distance_meters = 2;- Parameters:
value- The travelDistanceMeters to set.- Returns:
- This builder for chaining.
-
clearTravelDistanceMeters
Distance traveled during the transition.
double travel_distance_meters = 2;- Returns:
- This builder for chaining.
-
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.
-
setDelayDuration
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; -
setDelayDuration
public ShipmentRoute.Transition.Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue) 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; -
mergeDelayDuration
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; -
clearDelayDuration
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; -
getDelayDurationBuilder
public com.google.protobuf.Duration.Builder getDelayDurationBuilder()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; -
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.
-
setBreakDuration
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; -
setBreakDuration
public ShipmentRoute.Transition.Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue) 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; -
mergeBreakDuration
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; -
clearBreakDuration
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; -
getBreakDurationBuilder
public com.google.protobuf.Duration.Builder getBreakDurationBuilder()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; -
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.
-
setWaitDuration
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; -
setWaitDuration
public ShipmentRoute.Transition.Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue) 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; -
mergeWaitDuration
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; -
clearWaitDuration
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; -
getWaitDurationBuilder
public com.google.protobuf.Duration.Builder getWaitDurationBuilder()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; -
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.
-
setTotalDuration
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; -
setTotalDuration
public ShipmentRoute.Transition.Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue) 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; -
mergeTotalDuration
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; -
clearTotalDuration
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; -
getTotalDurationBuilder
public com.google.protobuf.Duration.Builder getTotalDurationBuilder()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; -
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.
-
setStartTime
Start time of this transition.
.google.protobuf.Timestamp start_time = 8; -
setStartTime
public ShipmentRoute.Transition.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Start time of this transition.
.google.protobuf.Timestamp start_time = 8; -
mergeStartTime
Start time of this transition.
.google.protobuf.Timestamp start_time = 8; -
clearStartTime
Start time of this transition.
.google.protobuf.Timestamp start_time = 8; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()Start time of this transition.
.google.protobuf.Timestamp start_time = 8; -
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
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.
-
setRoutePolyline
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; -
setRoutePolyline
public ShipmentRoute.Transition.Builder setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue) 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; -
mergeRoutePolyline
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; -
clearRoutePolyline
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; -
getRoutePolylineBuilder
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; -
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
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.UsegetVehicleLoadsMap()instead.- Specified by:
getVehicleLoadsin interfaceShipmentRoute.TransitionOrBuilder
-
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
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
-
clearVehicleLoads
-
removeVehicleLoads
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; -
getMutableVehicleLoads
Deprecated.Use alternate mutation accessors instead. -
putVehicleLoads
public ShipmentRoute.Transition.Builder putVehicleLoads(String key, ShipmentRoute.VehicleLoad value) 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; -
putAllVehicleLoads
public ShipmentRoute.Transition.Builder putAllVehicleLoads(Map<String, ShipmentRoute.VehicleLoad> values) 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; -
putVehicleLoadsBuilderIfAbsent
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; -
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
-
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.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
-
setLoads
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]; -
setLoads
@Deprecated public ShipmentRoute.Transition.Builder setLoads(int index, CapacityQuantity.Builder builderForValue) 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]; -
addLoads
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]; -
addLoads
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]; -
addLoads
@Deprecated public ShipmentRoute.Transition.Builder addLoads(CapacityQuantity.Builder builderForValue) 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]; -
addLoads
@Deprecated public ShipmentRoute.Transition.Builder addLoads(int index, CapacityQuantity.Builder builderForValue) 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]; -
addAllLoads
@Deprecated public ShipmentRoute.Transition.Builder addAllLoads(Iterable<? extends CapacityQuantity> values) 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]; -
clearLoads
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]; -
removeLoads
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]; -
getLoadsBuilder
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]; -
getLoadsOrBuilder
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
-
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
-
addLoadsBuilder
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]; -
addLoadsBuilder
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]; -
getLoadsBuilderList
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];
-