Package com.google.cloud.optimization.v1
Class ShipmentRoute.Visit
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.ShipmentRoute.Visit
-
- All Implemented Interfaces:
ShipmentRoute.VisitOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- ShipmentRoute
public static final class ShipmentRoute.Visit extends com.google.protobuf.GeneratedMessageV3 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShipmentRoute.Visit.Builder
A visit performed during a route.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARRIVAL_LOADS_FIELD_NUMBER
static int
DELAY_BEFORE_START_FIELD_NUMBER
static int
DEMANDS_FIELD_NUMBER
static int
DETOUR_FIELD_NUMBER
static int
IS_PICKUP_FIELD_NUMBER
static int
LOAD_DEMANDS_FIELD_NUMBER
static int
SHIPMENT_INDEX_FIELD_NUMBER
static int
SHIPMENT_LABEL_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
VISIT_LABEL_FIELD_NUMBER
static int
VISIT_REQUEST_INDEX_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request `load_demands`.boolean
equals(Object obj)
CapacityQuantity
getArrivalLoads(int index)
Deprecated.int
getArrivalLoadsCount()
Deprecated.List<CapacityQuantity>
getArrivalLoadsList()
Deprecated.CapacityQuantityOrBuilder
getArrivalLoadsOrBuilder(int index)
Deprecated.List<? extends CapacityQuantityOrBuilder>
getArrivalLoadsOrBuilderList()
Deprecated.static ShipmentRoute.Visit
getDefaultInstance()
ShipmentRoute.Visit
getDefaultInstanceForType()
ShipmentRoute.Delay
getDelayBeforeStart()
Deprecated.google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated.ShipmentRoute.DelayOrBuilder
getDelayBeforeStartOrBuilder()
Deprecated.CapacityQuantity
getDemands(int index)
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.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.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`.com.google.protobuf.Parser<ShipmentRoute.Visit>
getParserForType()
int
getSerializedSize()
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.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.int
hashCode()
boolean
hasStartTime()
Time at which the visit starts.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static ShipmentRoute.Visit.Builder
newBuilder()
static ShipmentRoute.Visit.Builder
newBuilder(ShipmentRoute.Visit prototype)
ShipmentRoute.Visit.Builder
newBuilderForType()
protected ShipmentRoute.Visit.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ShipmentRoute.Visit
parseDelimitedFrom(InputStream input)
static ShipmentRoute.Visit
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Visit
parseFrom(byte[] data)
static ShipmentRoute.Visit
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Visit
parseFrom(com.google.protobuf.ByteString data)
static ShipmentRoute.Visit
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Visit
parseFrom(com.google.protobuf.CodedInputStream input)
static ShipmentRoute.Visit
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Visit
parseFrom(InputStream input)
static ShipmentRoute.Visit
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentRoute.Visit
parseFrom(ByteBuffer data)
static ShipmentRoute.Visit
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ShipmentRoute.Visit>
parser()
ShipmentRoute.Visit.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SHIPMENT_INDEX_FIELD_NUMBER
public static final int SHIPMENT_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_PICKUP_FIELD_NUMBER
public static final int IS_PICKUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VISIT_REQUEST_INDEX_FIELD_NUMBER
public static final int VISIT_REQUEST_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOAD_DEMANDS_FIELD_NUMBER
public static final int LOAD_DEMANDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DETOUR_FIELD_NUMBER
public static final int DETOUR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIPMENT_LABEL_FIELD_NUMBER
public static final int SHIPMENT_LABEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VISIT_LABEL_FIELD_NUMBER
public static final int VISIT_LABEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARRIVAL_LOADS_FIELD_NUMBER
public static final int ARRIVAL_LOADS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELAY_BEFORE_START_FIELD_NUMBER
public static final int DELAY_BEFORE_START_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEMANDS_FIELD_NUMBER
public static final int DEMANDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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
-
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
-
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
-
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
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ShipmentRoute.Visit parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute.Visit parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute.Visit parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentRoute.Visit parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ShipmentRoute.Visit.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ShipmentRoute.Visit.Builder newBuilder()
-
newBuilder
public static ShipmentRoute.Visit.Builder newBuilder(ShipmentRoute.Visit prototype)
-
toBuilder
public ShipmentRoute.Visit.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentRoute.Visit.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ShipmentRoute.Visit getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ShipmentRoute.Visit> parser()
-
getParserForType
public com.google.protobuf.Parser<ShipmentRoute.Visit> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentRoute.Visit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-