Package com.google.cloud.optimization.v1
Class ShipmentRoute.Visit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder>
-
- com.google.cloud.optimization.v1.ShipmentRoute.Visit.Builder
-
- All Implemented Interfaces:
ShipmentRoute.VisitOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ShipmentRoute.Visit
public static final class ShipmentRoute.Visit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder> implements ShipmentRoute.VisitOrBuilder
A visit performed during a route. This visit corresponds to a pickup or a delivery of a `Shipment`.
Protobuf typegoogle.cloud.optimization.v1.ShipmentRoute.Visit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ShipmentRoute.Visit.Builder
addAllArrivalLoads(Iterable<? extends CapacityQuantity> values)
Deprecated.ShipmentRoute.Visit.Builder
addAllDemands(Iterable<? extends CapacityQuantity> values)
Deprecated.ShipmentRoute.Visit.Builder
addArrivalLoads(int index, CapacityQuantity value)
Deprecated.ShipmentRoute.Visit.Builder
addArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated.ShipmentRoute.Visit.Builder
addArrivalLoads(CapacityQuantity value)
Deprecated.ShipmentRoute.Visit.Builder
addArrivalLoads(CapacityQuantity.Builder builderForValue)
Deprecated.CapacityQuantity.Builder
addArrivalLoadsBuilder()
Deprecated.CapacityQuantity.Builder
addArrivalLoadsBuilder(int index)
Deprecated.ShipmentRoute.Visit.Builder
addDemands(int index, CapacityQuantity value)
Deprecated.ShipmentRoute.Visit.Builder
addDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated.ShipmentRoute.Visit.Builder
addDemands(CapacityQuantity value)
Deprecated.ShipmentRoute.Visit.Builder
addDemands(CapacityQuantity.Builder builderForValue)
Deprecated.CapacityQuantity.Builder
addDemandsBuilder()
Deprecated.CapacityQuantity.Builder
addDemandsBuilder(int index)
Deprecated.ShipmentRoute.Visit.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentRoute.Visit
build()
ShipmentRoute.Visit
buildPartial()
ShipmentRoute.Visit.Builder
clear()
ShipmentRoute.Visit.Builder
clearArrivalLoads()
Deprecated.ShipmentRoute.Visit.Builder
clearDelayBeforeStart()
Deprecated.ShipmentRoute.Visit.Builder
clearDemands()
Deprecated.ShipmentRoute.Visit.Builder
clearDetour()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.ShipmentRoute.Visit.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ShipmentRoute.Visit.Builder
clearIsPickup()
If true the visit corresponds to a pickup of a `Shipment`.ShipmentRoute.Visit.Builder
clearLoadDemands()
ShipmentRoute.Visit.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ShipmentRoute.Visit.Builder
clearShipmentIndex()
Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].ShipmentRoute.Visit.Builder
clearShipmentLabel()
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.ShipmentRoute.Visit.Builder
clearStartTime()
Time at which the visit starts.ShipmentRoute.Visit.Builder
clearVisitLabel()
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.ShipmentRoute.Visit.Builder
clearVisitRequestIndex()
Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).ShipmentRoute.Visit.Builder
clone()
boolean
containsLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.CapacityQuantity
getArrivalLoads(int index)
Deprecated.CapacityQuantity.Builder
getArrivalLoadsBuilder(int index)
Deprecated.List<CapacityQuantity.Builder>
getArrivalLoadsBuilderList()
Deprecated.int
getArrivalLoadsCount()
Deprecated.List<CapacityQuantity>
getArrivalLoadsList()
Deprecated.CapacityQuantityOrBuilder
getArrivalLoadsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityOrBuilder>
getArrivalLoadsOrBuilderList()
Deprecated.ShipmentRoute.Visit
getDefaultInstanceForType()
ShipmentRoute.Delay
getDelayBeforeStart()
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated.ShipmentRoute.Delay.Builder
getDelayBeforeStartBuilder()
Deprecated.ShipmentRoute.DelayOrBuilder
getDelayBeforeStartOrBuilder()
Deprecated.CapacityQuantity
getDemands(int index)
Deprecated.CapacityQuantity.Builder
getDemandsBuilder(int index)
Deprecated.List<CapacityQuantity.Builder>
getDemandsBuilderList()
Deprecated.int
getDemandsCount()
Deprecated.List<CapacityQuantity>
getDemandsList()
Deprecated.CapacityQuantityOrBuilder
getDemandsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityOrBuilder>
getDemandsOrBuilderList()
Deprecated.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getDetour()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.com.google.protobuf.Duration.Builder
getDetourBuilder()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.com.google.protobuf.DurationOrBuilder
getDetourOrBuilder()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.boolean
getIsPickup()
If true the visit corresponds to a pickup of a `Shipment`.Map<String,Shipment.Load>
getLoadDemands()
Deprecated.int
getLoadDemandsCount()
Total visit load demand as the sum of the shipment and the visit request `load_demands`.Map<String,Shipment.Load>
getLoadDemandsMap()
Total visit load demand as the sum of the shipment and the visit request `load_demands`.Shipment.Load
getLoadDemandsOrDefault(String key, Shipment.Load defaultValue)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.Shipment.Load
getLoadDemandsOrThrow(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.Map<String,Shipment.Load>
getMutableLoadDemands()
Deprecated.int
getShipmentIndex()
Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].String
getShipmentLabel()
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.com.google.protobuf.ByteString
getShipmentLabelBytes()
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.com.google.protobuf.Timestamp
getStartTime()
Time at which the visit starts.com.google.protobuf.Timestamp.Builder
getStartTimeBuilder()
Time at which the visit starts.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
Time at which the visit starts.String
getVisitLabel()
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.com.google.protobuf.ByteString
getVisitLabelBytes()
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.int
getVisitRequestIndex()
Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).boolean
hasDelayBeforeStart()
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated.boolean
hasDetour()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.boolean
hasStartTime()
Time at which the visit starts.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.Visit.Builder
mergeDelayBeforeStart(ShipmentRoute.Delay value)
Deprecated.ShipmentRoute.Visit.Builder
mergeDetour(com.google.protobuf.Duration value)
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.ShipmentRoute.Visit.Builder
mergeFrom(ShipmentRoute.Visit other)
ShipmentRoute.Visit.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ShipmentRoute.Visit.Builder
mergeFrom(com.google.protobuf.Message other)
ShipmentRoute.Visit.Builder
mergeStartTime(com.google.protobuf.Timestamp value)
Time at which the visit starts.ShipmentRoute.Visit.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentRoute.Visit.Builder
putAllLoadDemands(Map<String,Shipment.Load> values)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.ShipmentRoute.Visit.Builder
putLoadDemands(String key, Shipment.Load value)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.ShipmentRoute.Visit.Builder
removeArrivalLoads(int index)
Deprecated.ShipmentRoute.Visit.Builder
removeDemands(int index)
Deprecated.ShipmentRoute.Visit.Builder
removeLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.ShipmentRoute.Visit.Builder
setArrivalLoads(int index, CapacityQuantity value)
Deprecated.ShipmentRoute.Visit.Builder
setArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated.ShipmentRoute.Visit.Builder
setDelayBeforeStart(ShipmentRoute.Delay value)
Deprecated.ShipmentRoute.Visit.Builder
setDelayBeforeStart(ShipmentRoute.Delay.Builder builderForValue)
Deprecated.ShipmentRoute.Visit.Builder
setDemands(int index, CapacityQuantity value)
Deprecated.ShipmentRoute.Visit.Builder
setDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated.ShipmentRoute.Visit.Builder
setDetour(com.google.protobuf.Duration value)
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.ShipmentRoute.Visit.Builder
setDetour(com.google.protobuf.Duration.Builder builderForValue)
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows.ShipmentRoute.Visit.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentRoute.Visit.Builder
setIsPickup(boolean value)
If true the visit corresponds to a pickup of a `Shipment`.ShipmentRoute.Visit.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ShipmentRoute.Visit.Builder
setShipmentIndex(int value)
Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].ShipmentRoute.Visit.Builder
setShipmentLabel(String value)
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.ShipmentRoute.Visit.Builder
setShipmentLabelBytes(com.google.protobuf.ByteString value)
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.ShipmentRoute.Visit.Builder
setStartTime(com.google.protobuf.Timestamp value)
Time at which the visit starts.ShipmentRoute.Visit.Builder
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time at which the visit starts.ShipmentRoute.Visit.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentRoute.Visit.Builder
setVisitLabel(String value)
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.ShipmentRoute.Visit.Builder
setVisitLabelBytes(com.google.protobuf.ByteString value)
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.ShipmentRoute.Visit.Builder
setVisitRequestIndex(int value)
Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).-
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.Visit.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder>
-
clear
public ShipmentRoute.Visit.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.Visit.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.Visit.Builder>
-
getDefaultInstanceForType
public ShipmentRoute.Visit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ShipmentRoute.Visit build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ShipmentRoute.Visit buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ShipmentRoute.Visit.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.Visit.Builder>
-
setField
public ShipmentRoute.Visit.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.Visit.Builder>
-
clearField
public ShipmentRoute.Visit.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.Visit.Builder>
-
clearOneof
public ShipmentRoute.Visit.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.Visit.Builder>
-
setRepeatedField
public ShipmentRoute.Visit.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.Visit.Builder>
-
addRepeatedField
public ShipmentRoute.Visit.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.Visit.Builder>
-
mergeFrom
public ShipmentRoute.Visit.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.Visit.Builder>
-
mergeFrom
public ShipmentRoute.Visit.Builder mergeFrom(ShipmentRoute.Visit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder>
-
mergeFrom
public ShipmentRoute.Visit.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.Visit.Builder>
- Throws:
IOException
-
getShipmentIndex
public int getShipmentIndex()
Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
int32 shipment_index = 1;
- Specified by:
getShipmentIndex
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The shipmentIndex.
-
setShipmentIndex
public ShipmentRoute.Visit.Builder setShipmentIndex(int value)
Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
int32 shipment_index = 1;
- Parameters:
value
- The shipmentIndex to set.- Returns:
- This builder for chaining.
-
clearShipmentIndex
public ShipmentRoute.Visit.Builder clearShipmentIndex()
Index of the `shipments` field in the source [ShipmentModel][google.cloud.optimization.v1.ShipmentModel].
int32 shipment_index = 1;
- Returns:
- This builder for chaining.
-
getIsPickup
public boolean getIsPickup()
If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it corresponds to a delivery.
bool is_pickup = 2;
- Specified by:
getIsPickup
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The isPickup.
-
setIsPickup
public ShipmentRoute.Visit.Builder setIsPickup(boolean value)
If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it corresponds to a delivery.
bool is_pickup = 2;
- Parameters:
value
- The isPickup to set.- Returns:
- This builder for chaining.
-
clearIsPickup
public ShipmentRoute.Visit.Builder clearIsPickup()
If true the visit corresponds to a pickup of a `Shipment`. Otherwise, it corresponds to a delivery.
bool is_pickup = 2;
- Returns:
- This builder for chaining.
-
getVisitRequestIndex
public int getVisitRequestIndex()
Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).
int32 visit_request_index = 3;
- Specified by:
getVisitRequestIndex
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The visitRequestIndex.
-
setVisitRequestIndex
public ShipmentRoute.Visit.Builder setVisitRequestIndex(int value)
Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).
int32 visit_request_index = 3;
- Parameters:
value
- The visitRequestIndex to set.- Returns:
- This builder for chaining.
-
clearVisitRequestIndex
public ShipmentRoute.Visit.Builder clearVisitRequestIndex()
Index of `VisitRequest` in either the pickup or delivery field of the `Shipment` (see `is_pickup`).
int32 visit_request_index = 3;
- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
- Specified by:
hasStartTime
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
- Specified by:
getStartTime
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The startTime.
-
setStartTime
public ShipmentRoute.Visit.Builder setStartTime(com.google.protobuf.Timestamp value)
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
-
setStartTime
public ShipmentRoute.Visit.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
-
mergeStartTime
public ShipmentRoute.Visit.Builder mergeStartTime(com.google.protobuf.Timestamp value)
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
-
clearStartTime
public ShipmentRoute.Visit.Builder clearStartTime()
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
-
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Time at which the visit starts. Note that the vehicle may arrive earlier than this at the visit location. Times are consistent with the `ShipmentModel`.
.google.protobuf.Timestamp start_time = 4;
- Specified by:
getStartTimeOrBuilder
in interfaceShipmentRoute.VisitOrBuilder
-
getLoadDemandsCount
public int getLoadDemandsCount()
Description copied from interface:ShipmentRoute.VisitOrBuilder
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
- Specified by:
getLoadDemandsCount
in interfaceShipmentRoute.VisitOrBuilder
-
containsLoadDemands
public boolean containsLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
- Specified by:
containsLoadDemands
in interfaceShipmentRoute.VisitOrBuilder
-
getLoadDemands
@Deprecated public Map<String,Shipment.Load> getLoadDemands()
Deprecated.UsegetLoadDemandsMap()
instead.- Specified by:
getLoadDemands
in interfaceShipmentRoute.VisitOrBuilder
-
getLoadDemandsMap
public Map<String,Shipment.Load> getLoadDemandsMap()
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
- Specified by:
getLoadDemandsMap
in interfaceShipmentRoute.VisitOrBuilder
-
getLoadDemandsOrDefault
public Shipment.Load getLoadDemandsOrDefault(String key, Shipment.Load defaultValue)
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
- Specified by:
getLoadDemandsOrDefault
in interfaceShipmentRoute.VisitOrBuilder
-
getLoadDemandsOrThrow
public Shipment.Load getLoadDemandsOrThrow(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
- Specified by:
getLoadDemandsOrThrow
in interfaceShipmentRoute.VisitOrBuilder
-
clearLoadDemands
public ShipmentRoute.Visit.Builder clearLoadDemands()
-
removeLoadDemands
public ShipmentRoute.Visit.Builder removeLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
-
getMutableLoadDemands
@Deprecated public Map<String,Shipment.Load> getMutableLoadDemands()
Deprecated.Use alternate mutation accessors instead.
-
putLoadDemands
public ShipmentRoute.Visit.Builder putLoadDemands(String key, Shipment.Load value)
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
-
putAllLoadDemands
public ShipmentRoute.Visit.Builder putAllLoadDemands(Map<String,Shipment.Load> values)
Total visit load demand as the sum of the shipment and the visit request `load_demands`. The values are negative if the visit is a delivery. Demands are reported for the same types as the [Transition.loads][google.cloud.optimization.v1.ShipmentRoute.Transition] (see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
-
hasDetour
public boolean hasDetour()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
- Specified by:
hasDetour
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- Whether the detour field is set.
-
getDetour
public com.google.protobuf.Duration getDetour()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
- Specified by:
getDetour
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The detour.
-
setDetour
public ShipmentRoute.Visit.Builder setDetour(com.google.protobuf.Duration value)
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
-
setDetour
public ShipmentRoute.Visit.Builder setDetour(com.google.protobuf.Duration.Builder builderForValue)
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
-
mergeDetour
public ShipmentRoute.Visit.Builder mergeDetour(com.google.protobuf.Duration value)
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
-
clearDetour
public ShipmentRoute.Visit.Builder clearDetour()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
-
getDetourBuilder
public com.google.protobuf.Duration.Builder getDetourBuilder()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
-
getDetourOrBuilder
public com.google.protobuf.DurationOrBuilder getDetourOrBuilder()
Extra detour time due to the shipments visited on the route before the visit and to the potential waiting time induced by time windows. If the visit is a delivery, the detour is computed from the corresponding pickup visit and is equal to: ``` start_time(delivery) - start_time(pickup) - (duration(pickup) + travel duration from the pickup location to the delivery location). ``` Otherwise, it is computed from the vehicle `start_location` and is equal to: ``` start_time - vehicle_start_time - travel duration from the vehicle's `start_location` to the visit. ```
.google.protobuf.Duration detour = 6;
- Specified by:
getDetourOrBuilder
in interfaceShipmentRoute.VisitOrBuilder
-
getShipmentLabel
public String getShipmentLabel()
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;
- Specified by:
getShipmentLabel
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The shipmentLabel.
-
getShipmentLabelBytes
public com.google.protobuf.ByteString getShipmentLabelBytes()
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;
- Specified by:
getShipmentLabelBytes
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The bytes for shipmentLabel.
-
setShipmentLabel
public ShipmentRoute.Visit.Builder setShipmentLabel(String value)
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;
- Parameters:
value
- The shipmentLabel to set.- Returns:
- This builder for chaining.
-
clearShipmentLabel
public ShipmentRoute.Visit.Builder clearShipmentLabel()
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;
- Returns:
- This builder for chaining.
-
setShipmentLabelBytes
public ShipmentRoute.Visit.Builder setShipmentLabelBytes(com.google.protobuf.ByteString value)
Copy of the corresponding `Shipment.label`, if specified in the `Shipment`.
string shipment_label = 7;
- Parameters:
value
- The bytes for shipmentLabel to set.- Returns:
- This builder for chaining.
-
getVisitLabel
public String getVisitLabel()
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;
- Specified by:
getVisitLabel
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The visitLabel.
-
getVisitLabelBytes
public com.google.protobuf.ByteString getVisitLabelBytes()
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;
- Specified by:
getVisitLabelBytes
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The bytes for visitLabel.
-
setVisitLabel
public ShipmentRoute.Visit.Builder setVisitLabel(String value)
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;
- Parameters:
value
- The visitLabel to set.- Returns:
- This builder for chaining.
-
clearVisitLabel
public ShipmentRoute.Visit.Builder clearVisitLabel()
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;
- Returns:
- This builder for chaining.
-
setVisitLabelBytes
public ShipmentRoute.Visit.Builder setVisitLabelBytes(com.google.protobuf.ByteString value)
Copy of the corresponding [VisitRequest.label][google.cloud.optimization.v1.Shipment.VisitRequest.label], if specified in the `VisitRequest`.
string visit_label = 8;
- Parameters:
value
- The bytes for visitLabel to set.- Returns:
- This builder for chaining.
-
getArrivalLoadsList
@Deprecated public List<CapacityQuantity> getArrivalLoadsList()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
- Specified by:
getArrivalLoadsList
in interfaceShipmentRoute.VisitOrBuilder
-
getArrivalLoadsCount
@Deprecated public int getArrivalLoadsCount()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
- Specified by:
getArrivalLoadsCount
in interfaceShipmentRoute.VisitOrBuilder
-
getArrivalLoads
@Deprecated public CapacityQuantity getArrivalLoads(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
- Specified by:
getArrivalLoads
in interfaceShipmentRoute.VisitOrBuilder
-
setArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder setArrivalLoads(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
setArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder setArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
addArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder addArrivalLoads(CapacityQuantity value)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
addArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder addArrivalLoads(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
addArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder addArrivalLoads(CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
addArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder addArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
addAllArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder addAllArrivalLoads(Iterable<? extends CapacityQuantity> values)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
clearArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder clearArrivalLoads()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
removeArrivalLoads
@Deprecated public ShipmentRoute.Visit.Builder removeArrivalLoads(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
getArrivalLoadsBuilder
@Deprecated public CapacityQuantity.Builder getArrivalLoadsBuilder(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
getArrivalLoadsOrBuilder
@Deprecated public CapacityQuantityOrBuilder getArrivalLoadsOrBuilder(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
- Specified by:
getArrivalLoadsOrBuilder
in interfaceShipmentRoute.VisitOrBuilder
-
getArrivalLoadsOrBuilderList
@Deprecated public List<? extends CapacityQuantityOrBuilder> getArrivalLoadsOrBuilderList()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
- Specified by:
getArrivalLoadsOrBuilderList
in interfaceShipmentRoute.VisitOrBuilder
-
addArrivalLoadsBuilder
@Deprecated public CapacityQuantity.Builder addArrivalLoadsBuilder()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
addArrivalLoadsBuilder
@Deprecated public CapacityQuantity.Builder addArrivalLoadsBuilder(int index)
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
getArrivalLoadsBuilderList
@Deprecated public List<CapacityQuantity.Builder> getArrivalLoadsBuilderList()
Deprecated.Deprecated: Use [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads] instead. Vehicle loads upon arrival at the visit location, for each type specified in [Vehicle.capacities][google.cloud.optimization.v1.Vehicle.capacities], `start_load_intervals`, `end_load_intervals` or `demands`. Exception: we omit loads for quantity types unconstrained by intervals and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
-
hasDelayBeforeStart
@Deprecated public boolean hasDelayBeforeStart()
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
- Specified by:
hasDelayBeforeStart
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- Whether the delayBeforeStart field is set.
-
getDelayBeforeStart
@Deprecated public ShipmentRoute.Delay getDelayBeforeStart()
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1935Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
- Specified by:
getDelayBeforeStart
in interfaceShipmentRoute.VisitOrBuilder
- Returns:
- The delayBeforeStart.
-
setDelayBeforeStart
@Deprecated public ShipmentRoute.Visit.Builder setDelayBeforeStart(ShipmentRoute.Delay value)
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
-
setDelayBeforeStart
@Deprecated public ShipmentRoute.Visit.Builder setDelayBeforeStart(ShipmentRoute.Delay.Builder builderForValue)
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
-
mergeDelayBeforeStart
@Deprecated public ShipmentRoute.Visit.Builder mergeDelayBeforeStart(ShipmentRoute.Delay value)
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
-
clearDelayBeforeStart
@Deprecated public ShipmentRoute.Visit.Builder clearDelayBeforeStart()
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
-
getDelayBeforeStartBuilder
@Deprecated public ShipmentRoute.Delay.Builder getDelayBeforeStartBuilder()
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
-
getDelayBeforeStartOrBuilder
@Deprecated public ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder()
Deprecated.Deprecated: Use [ShipmentRoute.Transition.delay_duration][google.cloud.optimization.v1.ShipmentRoute.Transition.delay_duration] instead. Delay occurring before the visit starts.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
- Specified by:
getDelayBeforeStartOrBuilder
in interfaceShipmentRoute.VisitOrBuilder
-
getDemandsList
@Deprecated public List<CapacityQuantity> getDemandsList()
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
- Specified by:
getDemandsList
in interfaceShipmentRoute.VisitOrBuilder
-
getDemandsCount
@Deprecated public int getDemandsCount()
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
- Specified by:
getDemandsCount
in interfaceShipmentRoute.VisitOrBuilder
-
getDemands
@Deprecated public CapacityQuantity getDemands(int index)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
- Specified by:
getDemands
in interfaceShipmentRoute.VisitOrBuilder
-
setDemands
@Deprecated public ShipmentRoute.Visit.Builder setDemands(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
setDemands
@Deprecated public ShipmentRoute.Visit.Builder setDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
addDemands
@Deprecated public ShipmentRoute.Visit.Builder addDemands(CapacityQuantity value)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
addDemands
@Deprecated public ShipmentRoute.Visit.Builder addDemands(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
addDemands
@Deprecated public ShipmentRoute.Visit.Builder addDemands(CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
addDemands
@Deprecated public ShipmentRoute.Visit.Builder addDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
addAllDemands
@Deprecated public ShipmentRoute.Visit.Builder addAllDemands(Iterable<? extends CapacityQuantity> values)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
clearDemands
@Deprecated public ShipmentRoute.Visit.Builder clearDemands()
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
removeDemands
@Deprecated public ShipmentRoute.Visit.Builder removeDemands(int index)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
getDemandsBuilder
@Deprecated public CapacityQuantity.Builder getDemandsBuilder(int index)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
getDemandsOrBuilder
@Deprecated public CapacityQuantityOrBuilder getDemandsOrBuilder(int index)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
- Specified by:
getDemandsOrBuilder
in interfaceShipmentRoute.VisitOrBuilder
-
getDemandsOrBuilderList
@Deprecated public List<? extends CapacityQuantityOrBuilder> getDemandsOrBuilderList()
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
- Specified by:
getDemandsOrBuilderList
in interfaceShipmentRoute.VisitOrBuilder
-
addDemandsBuilder
@Deprecated public CapacityQuantity.Builder addDemandsBuilder()
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
addDemandsBuilder
@Deprecated public CapacityQuantity.Builder addDemandsBuilder(int index)
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
getDemandsBuilderList
@Deprecated public List<CapacityQuantity.Builder> getDemandsBuilderList()
Deprecated.Deprecated: Use [Visit.load_demands][google.cloud.optimization.v1.ShipmentRoute.Visit.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
-
setUnknownFields
public final ShipmentRoute.Visit.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.Visit.Builder>
-
mergeUnknownFields
public final ShipmentRoute.Visit.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.Visit.Builder>
-
-