Package com.google.cloud.optimization.v1
Class Shipment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
com.google.cloud.optimization.v1.Shipment.Builder
- All Implemented Interfaces:
ShipmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Shipment
public static final class Shipment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
implements ShipmentOrBuilder
The shipment of a single item, from one of its pickups to one of its deliveries. For the shipment to be considered as performed, a unique vehicle must visit one of its pickup locations (and decrease its spare capacities accordingly), then visit one of its delivery locations later on (and therefore re-increase its spare capacities accordingly).Protobuf type
google.cloud.optimization.v1.Shipment-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedVehicleIndices(Iterable<? extends Integer> values) The set of vehicles that may perform this shipment.addAllCostsPerVehicle(Iterable<? extends Double> values) Specifies the cost that is incurred when this shipment is delivered by each vehicle.addAllCostsPerVehicleIndices(Iterable<? extends Integer> values) Indices of the vehicles to which `costs_per_vehicle` applies.addAllDeliveries(Iterable<? extends Shipment.VisitRequest> values) Set of delivery alternatives associated to the shipment.addAllDemands(Iterable<? extends CapacityQuantity> values) Deprecated.addAllowedVehicleIndices(int value) The set of vehicles that may perform this shipment.addAllPickups(Iterable<? extends Shipment.VisitRequest> values) Set of pickup alternatives associated to the shipment.addCostsPerVehicle(double value) Specifies the cost that is incurred when this shipment is delivered by each vehicle.addCostsPerVehicleIndices(int value) Indices of the vehicles to which `costs_per_vehicle` applies.addDeliveries(int index, Shipment.VisitRequest value) Set of delivery alternatives associated to the shipment.addDeliveries(int index, Shipment.VisitRequest.Builder builderForValue) Set of delivery alternatives associated to the shipment.Set of delivery alternatives associated to the shipment.addDeliveries(Shipment.VisitRequest.Builder builderForValue) Set of delivery alternatives associated to the shipment.Set of delivery alternatives associated to the shipment.addDeliveriesBuilder(int index) Set of delivery alternatives associated to the shipment.addDemands(int index, CapacityQuantity value) Deprecated.addDemands(int index, CapacityQuantity.Builder builderForValue) Deprecated.addDemands(CapacityQuantity value) Deprecated.addDemands(CapacityQuantity.Builder builderForValue) Deprecated.Deprecated.addDemandsBuilder(int index) Deprecated.addPickups(int index, Shipment.VisitRequest value) Set of pickup alternatives associated to the shipment.addPickups(int index, Shipment.VisitRequest.Builder builderForValue) Set of pickup alternatives associated to the shipment.addPickups(Shipment.VisitRequest value) Set of pickup alternatives associated to the shipment.addPickups(Shipment.VisitRequest.Builder builderForValue) Set of pickup alternatives associated to the shipment.Set of pickup alternatives associated to the shipment.addPickupsBuilder(int index) Set of pickup alternatives associated to the shipment.build()clear()The set of vehicles that may perform this shipment.Specifies the cost that is incurred when this shipment is delivered by each vehicle.Indices of the vehicles to which `costs_per_vehicle` applies.Set of delivery alternatives associated to the shipment.Deprecated.If true, skip this shipment, but don't apply a `penalty_cost`.Specifies a label for this shipment.If the shipment is not completed, this penalty is added to the overall cost of the routes.Set of pickup alternatives associated to the shipment.Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery.Specifies the maximum relative detour time compared to the shortest path from pickup to delivery.Specifies the maximum duration from start of pickup to start of delivery of a shipment.Non-empty string specifying a "type" for this shipment.booleanLoad demands of the shipment (for example weight, volume, number of pallets etc).intgetAllowedVehicleIndices(int index) The set of vehicles that may perform this shipment.intThe set of vehicles that may perform this shipment.The set of vehicles that may perform this shipment.doublegetCostsPerVehicle(int index) Specifies the cost that is incurred when this shipment is delivered by each vehicle.intSpecifies the cost that is incurred when this shipment is delivered by each vehicle.intgetCostsPerVehicleIndices(int index) Indices of the vehicles to which `costs_per_vehicle` applies.intIndices of the vehicles to which `costs_per_vehicle` applies.Indices of the vehicles to which `costs_per_vehicle` applies.Specifies the cost that is incurred when this shipment is delivered by each vehicle.getDeliveries(int index) Set of delivery alternatives associated to the shipment.getDeliveriesBuilder(int index) Set of delivery alternatives associated to the shipment.Set of delivery alternatives associated to the shipment.intSet of delivery alternatives associated to the shipment.Set of delivery alternatives associated to the shipment.getDeliveriesOrBuilder(int index) Set of delivery alternatives associated to the shipment.List<? extends Shipment.VisitRequestOrBuilder>Set of delivery alternatives associated to the shipment.getDemands(int index) Deprecated.getDemandsBuilder(int index) Deprecated.Deprecated.intDeprecated.Deprecated.getDemandsOrBuilder(int index) Deprecated.List<? extends CapacityQuantityOrBuilder>Deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, skip this shipment, but don't apply a `penalty_cost`.getLabel()Specifies a label for this shipment.com.google.protobuf.ByteStringSpecifies a label for this shipment.Deprecated.intLoad demands of the shipment (for example weight, volume, number of pallets etc).Load demands of the shipment (for example weight, volume, number of pallets etc).getLoadDemandsOrDefault(String key, Shipment.Load defaultValue) Load demands of the shipment (for example weight, volume, number of pallets etc).Load demands of the shipment (for example weight, volume, number of pallets etc).Deprecated.doubleIf the shipment is not completed, this penalty is added to the overall cost of the routes.getPickups(int index) Set of pickup alternatives associated to the shipment.getPickupsBuilder(int index) Set of pickup alternatives associated to the shipment.Set of pickup alternatives associated to the shipment.intSet of pickup alternatives associated to the shipment.Set of pickup alternatives associated to the shipment.getPickupsOrBuilder(int index) Set of pickup alternatives associated to the shipment.List<? extends Shipment.VisitRequestOrBuilder>Set of pickup alternatives associated to the shipment.com.google.protobuf.DurationSpecifies the maximum absolute detour time compared to the shortest path from pickup to delivery.com.google.protobuf.Duration.BuilderSpecifies the maximum absolute detour time compared to the shortest path from pickup to delivery.com.google.protobuf.DurationOrBuilderSpecifies the maximum absolute detour time compared to the shortest path from pickup to delivery.doubleSpecifies the maximum relative detour time compared to the shortest path from pickup to delivery.com.google.protobuf.DurationSpecifies the maximum duration from start of pickup to start of delivery of a shipment.com.google.protobuf.Duration.BuilderSpecifies the maximum duration from start of pickup to start of delivery of a shipment.com.google.protobuf.DurationOrBuilderSpecifies the maximum duration from start of pickup to start of delivery of a shipment.Non-empty string specifying a "type" for this shipment.com.google.protobuf.ByteStringNon-empty string specifying a "type" for this shipment.booleanIf the shipment is not completed, this penalty is added to the overall cost of the routes.booleanSpecifies the maximum absolute detour time compared to the shortest path from pickup to delivery.booleanSpecifies the maximum relative detour time compared to the shortest path from pickup to delivery.booleanSpecifies the maximum duration from start of pickup to start of delivery of a shipment.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration value) Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery.mergePickupToDeliveryTimeLimit(com.google.protobuf.Duration value) Specifies the maximum duration from start of pickup to start of delivery of a shipment.putAllLoadDemands(Map<String, Shipment.Load> values) Load demands of the shipment (for example weight, volume, number of pallets etc).putLoadDemands(String key, Shipment.Load value) Load demands of the shipment (for example weight, volume, number of pallets etc).Load demands of the shipment (for example weight, volume, number of pallets etc).removeDeliveries(int index) Set of delivery alternatives associated to the shipment.removeDemands(int index) Deprecated.removeLoadDemands(String key) Load demands of the shipment (for example weight, volume, number of pallets etc).removePickups(int index) Set of pickup alternatives associated to the shipment.setAllowedVehicleIndices(int index, int value) The set of vehicles that may perform this shipment.setCostsPerVehicle(int index, double value) Specifies the cost that is incurred when this shipment is delivered by each vehicle.setCostsPerVehicleIndices(int index, int value) Indices of the vehicles to which `costs_per_vehicle` applies.setDeliveries(int index, Shipment.VisitRequest value) Set of delivery alternatives associated to the shipment.setDeliveries(int index, Shipment.VisitRequest.Builder builderForValue) Set of delivery alternatives associated to the shipment.setDemands(int index, CapacityQuantity value) Deprecated.setDemands(int index, CapacityQuantity.Builder builderForValue) Deprecated.setIgnore(boolean value) If true, skip this shipment, but don't apply a `penalty_cost`.Specifies a label for this shipment.setLabelBytes(com.google.protobuf.ByteString value) Specifies a label for this shipment.setPenaltyCost(double value) If the shipment is not completed, this penalty is added to the overall cost of the routes.setPickups(int index, Shipment.VisitRequest value) Set of pickup alternatives associated to the shipment.setPickups(int index, Shipment.VisitRequest.Builder builderForValue) Set of pickup alternatives associated to the shipment.setPickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration value) Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery.setPickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery.setPickupToDeliveryRelativeDetourLimit(double value) Specifies the maximum relative detour time compared to the shortest path from pickup to delivery.setPickupToDeliveryTimeLimit(com.google.protobuf.Duration value) Specifies the maximum duration from start of pickup to start of delivery of a shipment.setPickupToDeliveryTimeLimit(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum duration from start of pickup to start of delivery of a shipment.setShipmentType(String value) Non-empty string specifying a "type" for this shipment.setShipmentTypeBytes(com.google.protobuf.ByteString value) Non-empty string specifying a "type" for this shipment.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Shipment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Shipment.Builder>
-
mergeFrom
public Shipment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Shipment.Builder>- Throws:
IOException
-
getPickupsList
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;- Specified by:
getPickupsListin interfaceShipmentOrBuilder
-
getPickupsCount
public int getPickupsCount()Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;- Specified by:
getPickupsCountin interfaceShipmentOrBuilder
-
getPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;- Specified by:
getPickupsin interfaceShipmentOrBuilder
-
setPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
setPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
addPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
addPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
addPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
addPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
addAllPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
clearPickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
removePickups
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
getPickupsBuilder
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
getPickupsOrBuilder
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;- Specified by:
getPickupsOrBuilderin interfaceShipmentOrBuilder
-
getPickupsOrBuilderList
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1;- Specified by:
getPickupsOrBuilderListin interfaceShipmentOrBuilder
-
addPickupsBuilder
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
addPickupsBuilder
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
getPickupsBuilderList
Set of pickup alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the deliveries.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest pickups = 1; -
getDeliveriesList
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;- Specified by:
getDeliveriesListin interfaceShipmentOrBuilder
-
getDeliveriesCount
public int getDeliveriesCount()Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;- Specified by:
getDeliveriesCountin interfaceShipmentOrBuilder
-
getDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;- Specified by:
getDeliveriesin interfaceShipmentOrBuilder
-
setDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
setDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
addDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
addDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
addDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
addDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
addAllDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
clearDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
removeDeliveries
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
getDeliveriesBuilder
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
getDeliveriesOrBuilder
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;- Specified by:
getDeliveriesOrBuilderin interfaceShipmentOrBuilder
-
getDeliveriesOrBuilderList
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2;- Specified by:
getDeliveriesOrBuilderListin interfaceShipmentOrBuilder
-
addDeliveriesBuilder
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
addDeliveriesBuilder
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
getDeliveriesBuilderList
Set of delivery alternatives associated to the shipment. If not specified, the vehicle only needs to visit a location corresponding to the pickups.
repeated .google.cloud.optimization.v1.Shipment.VisitRequest deliveries = 2; -
getLoadDemandsCount
public int getLoadDemandsCount()Description copied from interface:ShipmentOrBuilderLoad demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;- Specified by:
getLoadDemandsCountin interfaceShipmentOrBuilder
-
containsLoadDemands
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;- Specified by:
containsLoadDemandsin interfaceShipmentOrBuilder
-
getLoadDemands
Deprecated.UsegetLoadDemandsMap()instead.- Specified by:
getLoadDemandsin interfaceShipmentOrBuilder
-
getLoadDemandsMap
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;- Specified by:
getLoadDemandsMapin interfaceShipmentOrBuilder
-
getLoadDemandsOrDefault
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;- Specified by:
getLoadDemandsOrDefaultin interfaceShipmentOrBuilder
-
getLoadDemandsOrThrow
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14;- Specified by:
getLoadDemandsOrThrowin interfaceShipmentOrBuilder
-
clearLoadDemands
-
removeLoadDemands
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; -
getMutableLoadDemands
Deprecated.Use alternate mutation accessors instead. -
putLoadDemands
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; -
putAllLoadDemands
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; -
putLoadDemandsBuilderIfAbsent
Load demands of the shipment (for example weight, volume, number of pallets etc). The keys in the map should be identifiers describing the type of the corresponding load, ideally also including the units. For example: "weight_kg", "volume_gallons", "pallet_count", etc. If a given key does not appear in the map, the corresponding load is considered as null.
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 14; -
hasPenaltyCost
public boolean hasPenaltyCost()If the shipment is not completed, this penalty is added to the overall cost of the routes. A shipment is considered completed if one of its pickup and delivery alternatives is visited. The cost may be expressed in the same unit used for all other cost-related fields in the model and must be positive. *IMPORTANT*: If this penalty is not specified, it is considered infinite, i.e. the shipment must be completed.
optional double penalty_cost = 4;- Specified by:
hasPenaltyCostin interfaceShipmentOrBuilder- Returns:
- Whether the penaltyCost field is set.
-
getPenaltyCost
public double getPenaltyCost()If the shipment is not completed, this penalty is added to the overall cost of the routes. A shipment is considered completed if one of its pickup and delivery alternatives is visited. The cost may be expressed in the same unit used for all other cost-related fields in the model and must be positive. *IMPORTANT*: If this penalty is not specified, it is considered infinite, i.e. the shipment must be completed.
optional double penalty_cost = 4;- Specified by:
getPenaltyCostin interfaceShipmentOrBuilder- Returns:
- The penaltyCost.
-
setPenaltyCost
If the shipment is not completed, this penalty is added to the overall cost of the routes. A shipment is considered completed if one of its pickup and delivery alternatives is visited. The cost may be expressed in the same unit used for all other cost-related fields in the model and must be positive. *IMPORTANT*: If this penalty is not specified, it is considered infinite, i.e. the shipment must be completed.
optional double penalty_cost = 4;- Parameters:
value- The penaltyCost to set.- Returns:
- This builder for chaining.
-
clearPenaltyCost
If the shipment is not completed, this penalty is added to the overall cost of the routes. A shipment is considered completed if one of its pickup and delivery alternatives is visited. The cost may be expressed in the same unit used for all other cost-related fields in the model and must be positive. *IMPORTANT*: If this penalty is not specified, it is considered infinite, i.e. the shipment must be completed.
optional double penalty_cost = 4;- Returns:
- This builder for chaining.
-
getAllowedVehicleIndicesList
The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Specified by:
getAllowedVehicleIndicesListin interfaceShipmentOrBuilder- Returns:
- A list containing the allowedVehicleIndices.
-
getAllowedVehicleIndicesCount
public int getAllowedVehicleIndicesCount()The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Specified by:
getAllowedVehicleIndicesCountin interfaceShipmentOrBuilder- Returns:
- The count of allowedVehicleIndices.
-
getAllowedVehicleIndices
public int getAllowedVehicleIndices(int index) The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Specified by:
getAllowedVehicleIndicesin interfaceShipmentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedVehicleIndices at the given index.
-
setAllowedVehicleIndices
The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Parameters:
index- The index to set the value at.value- The allowedVehicleIndices to set.- Returns:
- This builder for chaining.
-
addAllowedVehicleIndices
The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Parameters:
value- The allowedVehicleIndices to add.- Returns:
- This builder for chaining.
-
addAllAllowedVehicleIndices
The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Parameters:
values- The allowedVehicleIndices to add.- Returns:
- This builder for chaining.
-
clearAllowedVehicleIndices
The set of vehicles that may perform this shipment. If empty, all vehicles may perform it. Vehicles are given by their index in the `ShipmentModel`'s `vehicles` list.
repeated int32 allowed_vehicle_indices = 5;- Returns:
- This builder for chaining.
-
getCostsPerVehicleList
Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Specified by:
getCostsPerVehicleListin interfaceShipmentOrBuilder- Returns:
- A list containing the costsPerVehicle.
-
getCostsPerVehicleCount
public int getCostsPerVehicleCount()Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Specified by:
getCostsPerVehicleCountin interfaceShipmentOrBuilder- Returns:
- The count of costsPerVehicle.
-
getCostsPerVehicle
public double getCostsPerVehicle(int index) Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Specified by:
getCostsPerVehiclein interfaceShipmentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The costsPerVehicle at the given index.
-
setCostsPerVehicle
Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Parameters:
index- The index to set the value at.value- The costsPerVehicle to set.- Returns:
- This builder for chaining.
-
addCostsPerVehicle
Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Parameters:
value- The costsPerVehicle to add.- Returns:
- This builder for chaining.
-
addAllCostsPerVehicle
Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Parameters:
values- The costsPerVehicle to add.- Returns:
- This builder for chaining.
-
clearCostsPerVehicle
Specifies the cost that is incurred when this shipment is delivered by each vehicle. If specified, it must have EITHER: * the same number of elements as `costs_per_vehicle_indices`. `costs_per_vehicle[i]` corresponds to vehicle `costs_per_vehicle_indices[i]` of the model. * the same number of elements as there are vehicles in the model. The i-th element corresponds to vehicle #i of the model. These costs must be in the same unit as `penalty_cost` and must not be negative. Leave this field empty, if there are no such costs.
repeated double costs_per_vehicle = 6;- Returns:
- This builder for chaining.
-
getCostsPerVehicleIndicesList
Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Specified by:
getCostsPerVehicleIndicesListin interfaceShipmentOrBuilder- Returns:
- A list containing the costsPerVehicleIndices.
-
getCostsPerVehicleIndicesCount
public int getCostsPerVehicleIndicesCount()Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Specified by:
getCostsPerVehicleIndicesCountin interfaceShipmentOrBuilder- Returns:
- The count of costsPerVehicleIndices.
-
getCostsPerVehicleIndices
public int getCostsPerVehicleIndices(int index) Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Specified by:
getCostsPerVehicleIndicesin interfaceShipmentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The costsPerVehicleIndices at the given index.
-
setCostsPerVehicleIndices
Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Parameters:
index- The index to set the value at.value- The costsPerVehicleIndices to set.- Returns:
- This builder for chaining.
-
addCostsPerVehicleIndices
Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Parameters:
value- The costsPerVehicleIndices to add.- Returns:
- This builder for chaining.
-
addAllCostsPerVehicleIndices
Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Parameters:
values- The costsPerVehicleIndices to add.- Returns:
- This builder for chaining.
-
clearCostsPerVehicleIndices
Indices of the vehicles to which `costs_per_vehicle` applies. If non-empty, it must have the same number of elements as `costs_per_vehicle`. A vehicle index may not be specified more than once. If a vehicle is excluded from `costs_per_vehicle_indices`, its cost is zero.
repeated int32 costs_per_vehicle_indices = 7;- Returns:
- This builder for chaining.
-
hasPickupToDeliveryRelativeDetourLimit
public boolean hasPickupToDeliveryRelativeDetourLimit()Specifies the maximum relative detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_relative_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= std::ceil(t * (1.0 + pickup_to_delivery_relative_detour_limit)) ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
optional double pickup_to_delivery_relative_detour_limit = 8;- Specified by:
hasPickupToDeliveryRelativeDetourLimitin interfaceShipmentOrBuilder- Returns:
- Whether the pickupToDeliveryRelativeDetourLimit field is set.
-
getPickupToDeliveryRelativeDetourLimit
public double getPickupToDeliveryRelativeDetourLimit()Specifies the maximum relative detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_relative_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= std::ceil(t * (1.0 + pickup_to_delivery_relative_detour_limit)) ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
optional double pickup_to_delivery_relative_detour_limit = 8;- Specified by:
getPickupToDeliveryRelativeDetourLimitin interfaceShipmentOrBuilder- Returns:
- The pickupToDeliveryRelativeDetourLimit.
-
setPickupToDeliveryRelativeDetourLimit
Specifies the maximum relative detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_relative_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= std::ceil(t * (1.0 + pickup_to_delivery_relative_detour_limit)) ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
optional double pickup_to_delivery_relative_detour_limit = 8;- Parameters:
value- The pickupToDeliveryRelativeDetourLimit to set.- Returns:
- This builder for chaining.
-
clearPickupToDeliveryRelativeDetourLimit
Specifies the maximum relative detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_relative_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= std::ceil(t * (1.0 + pickup_to_delivery_relative_detour_limit)) ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
optional double pickup_to_delivery_relative_detour_limit = 8;- Returns:
- This builder for chaining.
-
hasPickupToDeliveryAbsoluteDetourLimit
public boolean hasPickupToDeliveryAbsoluteDetourLimit()Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9;- Specified by:
hasPickupToDeliveryAbsoluteDetourLimitin interfaceShipmentOrBuilder- Returns:
- Whether the pickupToDeliveryAbsoluteDetourLimit field is set.
-
getPickupToDeliveryAbsoluteDetourLimit
public com.google.protobuf.Duration getPickupToDeliveryAbsoluteDetourLimit()Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9;- Specified by:
getPickupToDeliveryAbsoluteDetourLimitin interfaceShipmentOrBuilder- Returns:
- The pickupToDeliveryAbsoluteDetourLimit.
-
setPickupToDeliveryAbsoluteDetourLimit
Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; -
setPickupToDeliveryAbsoluteDetourLimit
public Shipment.Builder setPickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; -
mergePickupToDeliveryAbsoluteDetourLimit
public Shipment.Builder mergePickupToDeliveryAbsoluteDetourLimit(com.google.protobuf.Duration value) Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; -
clearPickupToDeliveryAbsoluteDetourLimit
Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; -
getPickupToDeliveryAbsoluteDetourLimitBuilder
public com.google.protobuf.Duration.Builder getPickupToDeliveryAbsoluteDetourLimitBuilder()Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9; -
getPickupToDeliveryAbsoluteDetourLimitOrBuilder
public com.google.protobuf.DurationOrBuilder getPickupToDeliveryAbsoluteDetourLimitOrBuilder()Specifies the maximum absolute detour time compared to the shortest path from pickup to delivery. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. For example, let t be the shortest time taken to go from the selected pickup alternative directly to the selected delivery alternative. Then setting `pickup_to_delivery_absolute_detour_limit` enforces: ``` start_time(delivery) - start_time(pickup) <= t + pickup_to_delivery_absolute_detour_limit ``` If both relative and absolute limits are specified on the same shipment, the more constraining limit is used for each possible pickup/delivery pair. As of 2017/10, detours are only supported when travel durations do not depend on vehicles.
.google.protobuf.Duration pickup_to_delivery_absolute_detour_limit = 9;- Specified by:
getPickupToDeliveryAbsoluteDetourLimitOrBuilderin interfaceShipmentOrBuilder
-
hasPickupToDeliveryTimeLimit
public boolean hasPickupToDeliveryTimeLimit()Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10;- Specified by:
hasPickupToDeliveryTimeLimitin interfaceShipmentOrBuilder- Returns:
- Whether the pickupToDeliveryTimeLimit field is set.
-
getPickupToDeliveryTimeLimit
public com.google.protobuf.Duration getPickupToDeliveryTimeLimit()Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10;- Specified by:
getPickupToDeliveryTimeLimitin interfaceShipmentOrBuilder- Returns:
- The pickupToDeliveryTimeLimit.
-
setPickupToDeliveryTimeLimit
Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10; -
setPickupToDeliveryTimeLimit
public Shipment.Builder setPickupToDeliveryTimeLimit(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10; -
mergePickupToDeliveryTimeLimit
Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10; -
clearPickupToDeliveryTimeLimit
Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10; -
getPickupToDeliveryTimeLimitBuilder
public com.google.protobuf.Duration.Builder getPickupToDeliveryTimeLimitBuilder()Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10; -
getPickupToDeliveryTimeLimitOrBuilder
public com.google.protobuf.DurationOrBuilder getPickupToDeliveryTimeLimitOrBuilder()Specifies the maximum duration from start of pickup to start of delivery of a shipment. If specified, it must be nonnegative, and the shipment must contain at least a pickup and a delivery. This does not depend on which alternatives are selected for pickup and delivery, nor on vehicle speed. This can be specified alongside maximum detour constraints: the solution will respect both specifications.
.google.protobuf.Duration pickup_to_delivery_time_limit = 10;- Specified by:
getPickupToDeliveryTimeLimitOrBuilderin interfaceShipmentOrBuilder
-
getShipmentType
Non-empty string specifying a "type" for this shipment. This feature can be used to define incompatibilities or requirements between `shipment_types` (see `shipment_type_incompatibilities` and `shipment_type_requirements` in `ShipmentModel`). Differs from `visit_types` which is specified for a single visit: All pickup/deliveries belonging to the same shipment share the same `shipment_type`.
string shipment_type = 11;- Specified by:
getShipmentTypein interfaceShipmentOrBuilder- Returns:
- The shipmentType.
-
getShipmentTypeBytes
public com.google.protobuf.ByteString getShipmentTypeBytes()Non-empty string specifying a "type" for this shipment. This feature can be used to define incompatibilities or requirements between `shipment_types` (see `shipment_type_incompatibilities` and `shipment_type_requirements` in `ShipmentModel`). Differs from `visit_types` which is specified for a single visit: All pickup/deliveries belonging to the same shipment share the same `shipment_type`.
string shipment_type = 11;- Specified by:
getShipmentTypeBytesin interfaceShipmentOrBuilder- Returns:
- The bytes for shipmentType.
-
setShipmentType
Non-empty string specifying a "type" for this shipment. This feature can be used to define incompatibilities or requirements between `shipment_types` (see `shipment_type_incompatibilities` and `shipment_type_requirements` in `ShipmentModel`). Differs from `visit_types` which is specified for a single visit: All pickup/deliveries belonging to the same shipment share the same `shipment_type`.
string shipment_type = 11;- Parameters:
value- The shipmentType to set.- Returns:
- This builder for chaining.
-
clearShipmentType
Non-empty string specifying a "type" for this shipment. This feature can be used to define incompatibilities or requirements between `shipment_types` (see `shipment_type_incompatibilities` and `shipment_type_requirements` in `ShipmentModel`). Differs from `visit_types` which is specified for a single visit: All pickup/deliveries belonging to the same shipment share the same `shipment_type`.
string shipment_type = 11;- Returns:
- This builder for chaining.
-
setShipmentTypeBytes
Non-empty string specifying a "type" for this shipment. This feature can be used to define incompatibilities or requirements between `shipment_types` (see `shipment_type_incompatibilities` and `shipment_type_requirements` in `ShipmentModel`). Differs from `visit_types` which is specified for a single visit: All pickup/deliveries belonging to the same shipment share the same `shipment_type`.
string shipment_type = 11;- Parameters:
value- The bytes for shipmentType to set.- Returns:
- This builder for chaining.
-
getLabel
Specifies a label for this shipment. This label is reported in the response in the `shipment_label` of the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 12;- Specified by:
getLabelin interfaceShipmentOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Specifies a label for this shipment. This label is reported in the response in the `shipment_label` of the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 12;- Specified by:
getLabelBytesin interfaceShipmentOrBuilder- Returns:
- The bytes for label.
-
setLabel
Specifies a label for this shipment. This label is reported in the response in the `shipment_label` of the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 12;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Specifies a label for this shipment. This label is reported in the response in the `shipment_label` of the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 12;- Returns:
- This builder for chaining.
-
setLabelBytes
Specifies a label for this shipment. This label is reported in the response in the `shipment_label` of the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 12;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getIgnore
public boolean getIgnore()If true, skip this shipment, but don't apply a `penalty_cost`. Ignoring a shipment results in a validation error when there are any `shipment_type_requirements` in the model. Ignoring a shipment that is performed in `injected_first_solution_routes` or `injected_solution_constraint` is permitted; the solver removes the related pickup/delivery visits from the performing route. `precedence_rules` that reference ignored shipments will also be ignored.
bool ignore = 13;- Specified by:
getIgnorein interfaceShipmentOrBuilder- Returns:
- The ignore.
-
setIgnore
If true, skip this shipment, but don't apply a `penalty_cost`. Ignoring a shipment results in a validation error when there are any `shipment_type_requirements` in the model. Ignoring a shipment that is performed in `injected_first_solution_routes` or `injected_solution_constraint` is permitted; the solver removes the related pickup/delivery visits from the performing route. `precedence_rules` that reference ignored shipments will also be ignored.
bool ignore = 13;- Parameters:
value- The ignore to set.- Returns:
- This builder for chaining.
-
clearIgnore
If true, skip this shipment, but don't apply a `penalty_cost`. Ignoring a shipment results in a validation error when there are any `shipment_type_requirements` in the model. Ignoring a shipment that is performed in `injected_first_solution_routes` or `injected_solution_constraint` is permitted; the solver removes the related pickup/delivery visits from the performing route. `precedence_rules` that reference ignored shipments will also be ignored.
bool ignore = 13;- Returns:
- This builder for chaining.
-
getDemandsList
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true];- Specified by:
getDemandsListin interfaceShipmentOrBuilder
-
getDemandsCount
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true];- Specified by:
getDemandsCountin interfaceShipmentOrBuilder
-
getDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true];- Specified by:
getDemandsin interfaceShipmentOrBuilder
-
setDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
setDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
addDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
addDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
addDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
addDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
addAllDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
clearDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
removeDemands
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
getDemandsBuilder
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
getDemandsOrBuilder
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true];- Specified by:
getDemandsOrBuilderin interfaceShipmentOrBuilder
-
getDemandsOrBuilderList
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true];- Specified by:
getDemandsOrBuilderListin interfaceShipmentOrBuilder
-
addDemandsBuilder
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
addDemandsBuilder
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true]; -
getDemandsBuilderList
Deprecated.Deprecated: Use [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 3 [deprecated = true];
-