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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.optimization.v1.ShipmentRoute.Transition
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ShipmentRoute.Transition.Builder
addAllLoads(Iterable<? extends CapacityQuantity> values)
Deprecated.ShipmentRoute.Transition.Builder
addLoads(int index, CapacityQuantity value)
Deprecated.ShipmentRoute.Transition.Builder
addLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated.ShipmentRoute.Transition.Builder
addLoads(CapacityQuantity value)
Deprecated.ShipmentRoute.Transition.Builder
addLoads(CapacityQuantity.Builder builderForValue)
Deprecated.CapacityQuantity.Builder
addLoadsBuilder()
Deprecated.CapacityQuantity.Builder
addLoadsBuilder(int index)
Deprecated.ShipmentRoute.Transition.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentRoute.Transition
build()
ShipmentRoute.Transition
buildPartial()
ShipmentRoute.Transition.Builder
clear()
ShipmentRoute.Transition.Builder
clearBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any.ShipmentRoute.Transition.Builder
clearDelayDuration()
Sum of the delay durations applied to this transition.ShipmentRoute.Transition.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ShipmentRoute.Transition.Builder
clearLoads()
Deprecated.ShipmentRoute.Transition.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ShipmentRoute.Transition.Builder
clearRoutePolyline()
The encoded polyline representation of the route followed during the transition.ShipmentRoute.Transition.Builder
clearStartTime()
Start time of this transition.ShipmentRoute.Transition.Builder
clearTotalDuration()
Total duration of the transition, provided for convenience.ShipmentRoute.Transition.Builder
clearTrafficInfoUnavailable()
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.ShipmentRoute.Transition.Builder
clearTravelDistanceMeters()
Distance traveled during the transition.ShipmentRoute.Transition.Builder
clearTravelDuration()
Travel duration during this transition.ShipmentRoute.Transition.Builder
clearVehicleLoads()
ShipmentRoute.Transition.Builder
clearWaitDuration()
Time spent waiting during this transition.ShipmentRoute.Transition.Builder
clone()
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.com.google.protobuf.Duration
getBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any.com.google.protobuf.Duration.Builder
getBreakDurationBuilder()
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.ShipmentRoute.Transition
getDefaultInstanceForType()
com.google.protobuf.Duration
getDelayDuration()
Sum of the delay durations applied to this transition.com.google.protobuf.Duration.Builder
getDelayDurationBuilder()
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()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CapacityQuantity
getLoads(int index)
Deprecated.CapacityQuantity.Builder
getLoadsBuilder(int index)
Deprecated.List<CapacityQuantity.Builder>
getLoadsBuilderList()
Deprecated.int
getLoadsCount()
Deprecated.List<CapacityQuantity>
getLoadsList()
Deprecated.CapacityQuantityOrBuilder
getLoadsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityOrBuilder>
getLoadsOrBuilderList()
Deprecated.Map<String,ShipmentRoute.VehicleLoad>
getMutableVehicleLoads()
Deprecated.ShipmentRoute.EncodedPolyline
getRoutePolyline()
The encoded polyline representation of the route followed during the transition.ShipmentRoute.EncodedPolyline.Builder
getRoutePolylineBuilder()
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.com.google.protobuf.Timestamp
getStartTime()
Start time of this transition.com.google.protobuf.Timestamp.Builder
getStartTimeBuilder()
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.Duration.Builder
getTotalDurationBuilder()
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.Duration.Builder
getTravelDurationBuilder()
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.Duration.Builder
getWaitDurationBuilder()
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.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)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ShipmentRoute.Transition.Builder
mergeBreakDuration(com.google.protobuf.Duration value)
Sum of the duration of the breaks occurring during this transition, if any.ShipmentRoute.Transition.Builder
mergeDelayDuration(com.google.protobuf.Duration value)
Sum of the delay durations applied to this transition.ShipmentRoute.Transition.Builder
mergeFrom(ShipmentRoute.Transition other)
ShipmentRoute.Transition.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ShipmentRoute.Transition.Builder
mergeFrom(com.google.protobuf.Message other)
ShipmentRoute.Transition.Builder
mergeRoutePolyline(ShipmentRoute.EncodedPolyline value)
The encoded polyline representation of the route followed during the transition.ShipmentRoute.Transition.Builder
mergeStartTime(com.google.protobuf.Timestamp value)
Start time of this transition.ShipmentRoute.Transition.Builder
mergeTotalDuration(com.google.protobuf.Duration value)
Total duration of the transition, provided for convenience.ShipmentRoute.Transition.Builder
mergeTravelDuration(com.google.protobuf.Duration value)
Travel duration during this transition.ShipmentRoute.Transition.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentRoute.Transition.Builder
mergeWaitDuration(com.google.protobuf.Duration value)
Time spent waiting during this transition.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.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.ShipmentRoute.Transition.Builder
removeLoads(int index)
Deprecated.ShipmentRoute.Transition.Builder
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.ShipmentRoute.Transition.Builder
setBreakDuration(com.google.protobuf.Duration value)
Sum of the duration of the breaks occurring during this transition, if any.ShipmentRoute.Transition.Builder
setBreakDuration(com.google.protobuf.Duration.Builder builderForValue)
Sum of the duration of the breaks occurring during this transition, if any.ShipmentRoute.Transition.Builder
setDelayDuration(com.google.protobuf.Duration value)
Sum of the delay durations applied to this transition.ShipmentRoute.Transition.Builder
setDelayDuration(com.google.protobuf.Duration.Builder builderForValue)
Sum of the delay durations applied to this transition.ShipmentRoute.Transition.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentRoute.Transition.Builder
setLoads(int index, CapacityQuantity value)
Deprecated.ShipmentRoute.Transition.Builder
setLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated.ShipmentRoute.Transition.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ShipmentRoute.Transition.Builder
setRoutePolyline(ShipmentRoute.EncodedPolyline value)
The encoded polyline representation of the route followed during the transition.ShipmentRoute.Transition.Builder
setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue)
The encoded polyline representation of the route followed during the transition.ShipmentRoute.Transition.Builder
setStartTime(com.google.protobuf.Timestamp value)
Start time of this transition.ShipmentRoute.Transition.Builder
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Start time of this transition.ShipmentRoute.Transition.Builder
setTotalDuration(com.google.protobuf.Duration value)
Total duration of the transition, provided for convenience.ShipmentRoute.Transition.Builder
setTotalDuration(com.google.protobuf.Duration.Builder builderForValue)
Total duration of the transition, provided for convenience.ShipmentRoute.Transition.Builder
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.ShipmentRoute.Transition.Builder
setTravelDistanceMeters(double value)
Distance traveled during the transition.ShipmentRoute.Transition.Builder
setTravelDuration(com.google.protobuf.Duration value)
Travel duration during this transition.ShipmentRoute.Transition.Builder
setTravelDuration(com.google.protobuf.Duration.Builder builderForValue)
Travel duration during this transition.ShipmentRoute.Transition.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentRoute.Transition.Builder
setWaitDuration(com.google.protobuf.Duration value)
Time spent waiting during this transition.ShipmentRoute.Transition.Builder
setWaitDuration(com.google.protobuf.Duration.Builder builderForValue)
Time spent waiting during this transition.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
clear
public ShipmentRoute.Transition.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
getDefaultInstanceForType
public ShipmentRoute.Transition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ShipmentRoute.Transition build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ShipmentRoute.Transition buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ShipmentRoute.Transition.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
setField
public ShipmentRoute.Transition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
clearField
public ShipmentRoute.Transition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
clearOneof
public ShipmentRoute.Transition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
setRepeatedField
public ShipmentRoute.Transition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
addRepeatedField
public ShipmentRoute.Transition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
mergeFrom
public ShipmentRoute.Transition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Transition.Builder>
-
mergeFrom
public ShipmentRoute.Transition.Builder mergeFrom(ShipmentRoute.Transition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
mergeFrom
public ShipmentRoute.Transition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Transition.Builder>
- Throws:
IOException
-
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.
-
setTravelDuration
public ShipmentRoute.Transition.Builder setTravelDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder mergeTravelDuration(com.google.protobuf.Duration value)
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
-
clearTravelDuration
public ShipmentRoute.Transition.Builder 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:
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.
-
setTravelDistanceMeters
public ShipmentRoute.Transition.Builder setTravelDistanceMeters(double value)
Distance traveled during the transition.
double travel_distance_meters = 2;
- Parameters:
value
- The travelDistanceMeters to set.- Returns:
- This builder for chaining.
-
clearTravelDistanceMeters
public ShipmentRoute.Transition.Builder clearTravelDistanceMeters()
Distance traveled during the transition.
double travel_distance_meters = 2;
- Returns:
- This builder for chaining.
-
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.
-
setTrafficInfoUnavailable
public ShipmentRoute.Transition.Builder 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. This may be temporary (rare hiccup in the realtime traffic servers) or permanent (no data for this location).
bool traffic_info_unavailable = 3;
- Parameters:
value
- The trafficInfoUnavailable to set.- Returns:
- This builder for chaining.
-
clearTrafficInfoUnavailable
public ShipmentRoute.Transition.Builder clearTrafficInfoUnavailable()
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;
- 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:
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.
-
setDelayDuration
public ShipmentRoute.Transition.Builder setDelayDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder mergeDelayDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder 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:
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.
-
setBreakDuration
public ShipmentRoute.Transition.Builder setBreakDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder mergeBreakDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder 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:
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.
-
setWaitDuration
public ShipmentRoute.Transition.Builder setWaitDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder mergeWaitDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder 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:
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.
-
setTotalDuration
public ShipmentRoute.Transition.Builder setTotalDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder mergeTotalDuration(com.google.protobuf.Duration value)
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
public ShipmentRoute.Transition.Builder 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:
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.
-
setStartTime
public ShipmentRoute.Transition.Builder setStartTime(com.google.protobuf.Timestamp value)
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
public ShipmentRoute.Transition.Builder mergeStartTime(com.google.protobuf.Timestamp value)
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
-
clearStartTime
public ShipmentRoute.Transition.Builder 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:
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.
-
setRoutePolyline
public ShipmentRoute.Transition.Builder setRoutePolyline(ShipmentRoute.EncodedPolyline value)
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
public ShipmentRoute.Transition.Builder mergeRoutePolyline(ShipmentRoute.EncodedPolyline value)
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
public ShipmentRoute.Transition.Builder 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
public ShipmentRoute.EncodedPolyline.Builder 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
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
-
clearVehicleLoads
public ShipmentRoute.Transition.Builder clearVehicleLoads()
-
removeVehicleLoads
public ShipmentRoute.Transition.Builder 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. 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 public Map<String,ShipmentRoute.VehicleLoad> 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;
-
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
-
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
-
setLoads
@Deprecated public ShipmentRoute.Transition.Builder setLoads(int index, CapacityQuantity value)
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 public ShipmentRoute.Transition.Builder addLoads(CapacityQuantity value)
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 value)
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 public ShipmentRoute.Transition.Builder 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 public ShipmentRoute.Transition.Builder removeLoads(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];
-
getLoadsBuilder
@Deprecated public CapacityQuantity.Builder getLoadsBuilder(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];
-
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
-
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
-
addLoadsBuilder
@Deprecated public CapacityQuantity.Builder 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 public CapacityQuantity.Builder addLoadsBuilder(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];
-
getLoadsBuilderList
@Deprecated public List<CapacityQuantity.Builder> 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];
-
setUnknownFields
public final ShipmentRoute.Transition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
mergeUnknownFields
public final ShipmentRoute.Transition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
-
-