Package com.google.cloud.optimization.v1
Class ShipmentModel
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.ShipmentModel
-
- All Implemented Interfaces:
ShipmentModelOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class ShipmentModel extends com.google.protobuf.GeneratedMessageV3 implements ShipmentModelOrBuilder
A shipment model contains a set of shipments which must be performed by a set of vehicles, while minimizing the overall cost, which is the sum of: * the cost of routing the vehicles (sum of cost per total time, cost per travel time, and fixed cost over all vehicles). * the unperformed shipment penalties. * the cost of the global duration of the shipments
Protobuf typegoogle.cloud.optimization.v1.ShipmentModel
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShipmentModel.BreakRule
Deprecated.static interface
ShipmentModel.BreakRuleOrBuilder
Deprecated.static class
ShipmentModel.Builder
A shipment model contains a set of shipments which must be performed by a set of vehicles, while minimizing the overall cost, which is the sum of: * the cost of routing the vehicles (sum of cost per total time, cost per travel time, and fixed cost over all vehicles).static class
ShipmentModel.DurationDistanceMatrix
Specifies a duration and distance matrix from visit and vehicle start locations to visit and vehicle end locations.static interface
ShipmentModel.DurationDistanceMatrixOrBuilder
static class
ShipmentModel.PrecedenceRule
A precedence rule between two events (each event is the pickup or the delivery of a shipment): the "second" event has to start at least `offset_duration` after "first" has started.static interface
ShipmentModel.PrecedenceRuleOrBuilder
-
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
BREAK_RULES_FIELD_NUMBER
static int
DURATION_DISTANCE_MATRICES_FIELD_NUMBER
static int
DURATION_DISTANCE_MATRIX_DST_TAGS_FIELD_NUMBER
static int
DURATION_DISTANCE_MATRIX_SRC_TAGS_FIELD_NUMBER
static int
GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER
static int
GLOBAL_END_TIME_FIELD_NUMBER
static int
GLOBAL_START_TIME_FIELD_NUMBER
static int
MAX_ACTIVE_VEHICLES_FIELD_NUMBER
static int
PRECEDENCE_RULES_FIELD_NUMBER
static int
SHIPMENT_TYPE_INCOMPATIBILITIES_FIELD_NUMBER
static int
SHIPMENT_TYPE_REQUIREMENTS_FIELD_NUMBER
static int
SHIPMENTS_FIELD_NUMBER
static int
TRANSITION_ATTRIBUTES_FIELD_NUMBER
static int
VEHICLES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
ShipmentModel.BreakRule
getBreakRules(int index)
Deprecated.int
getBreakRulesCount()
Deprecated.List<ShipmentModel.BreakRule>
getBreakRulesList()
Deprecated.ShipmentModel.BreakRuleOrBuilder
getBreakRulesOrBuilder(int index)
Deprecated.List<? extends ShipmentModel.BreakRuleOrBuilder>
getBreakRulesOrBuilderList()
Deprecated.static ShipmentModel
getDefaultInstance()
ShipmentModel
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
ShipmentModel.DurationDistanceMatrix
getDurationDistanceMatrices(int index)
Specifies duration and distance matrices used in the model.int
getDurationDistanceMatricesCount()
Specifies duration and distance matrices used in the model.List<ShipmentModel.DurationDistanceMatrix>
getDurationDistanceMatricesList()
Specifies duration and distance matrices used in the model.ShipmentModel.DurationDistanceMatrixOrBuilder
getDurationDistanceMatricesOrBuilder(int index)
Specifies duration and distance matrices used in the model.List<? extends ShipmentModel.DurationDistanceMatrixOrBuilder>
getDurationDistanceMatricesOrBuilderList()
Specifies duration and distance matrices used in the model.String
getDurationDistanceMatrixDstTags(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.com.google.protobuf.ByteString
getDurationDistanceMatrixDstTagsBytes(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.int
getDurationDistanceMatrixDstTagsCount()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.com.google.protobuf.ProtocolStringList
getDurationDistanceMatrixDstTagsList()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.String
getDurationDistanceMatrixSrcTags(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.com.google.protobuf.ByteString
getDurationDistanceMatrixSrcTagsBytes(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.int
getDurationDistanceMatrixSrcTagsCount()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.com.google.protobuf.ProtocolStringList
getDurationDistanceMatrixSrcTagsList()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.double
getGlobalDurationCostPerHour()
The "global duration" of the overall plan is the difference between the earliest effective start time and the latest effective end time of all vehicles.com.google.protobuf.Timestamp
getGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.com.google.protobuf.TimestampOrBuilder
getGlobalEndTimeOrBuilder()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.com.google.protobuf.Timestamp
getGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid.com.google.protobuf.TimestampOrBuilder
getGlobalStartTimeOrBuilder()
Global start and end time of the model: no times outside of this range can be considered valid.int
getMaxActiveVehicles()
Constrains the maximum number of active vehicles.com.google.protobuf.Parser<ShipmentModel>
getParserForType()
ShipmentModel.PrecedenceRule
getPrecedenceRules(int index)
Set of precedence rules which must be enforced in the model.int
getPrecedenceRulesCount()
Set of precedence rules which must be enforced in the model.List<ShipmentModel.PrecedenceRule>
getPrecedenceRulesList()
Set of precedence rules which must be enforced in the model.ShipmentModel.PrecedenceRuleOrBuilder
getPrecedenceRulesOrBuilder(int index)
Set of precedence rules which must be enforced in the model.List<? extends ShipmentModel.PrecedenceRuleOrBuilder>
getPrecedenceRulesOrBuilderList()
Set of precedence rules which must be enforced in the model.int
getSerializedSize()
Shipment
getShipments(int index)
Set of shipments which must be performed in the model.int
getShipmentsCount()
Set of shipments which must be performed in the model.List<Shipment>
getShipmentsList()
Set of shipments which must be performed in the model.ShipmentOrBuilder
getShipmentsOrBuilder(int index)
Set of shipments which must be performed in the model.List<? extends ShipmentOrBuilder>
getShipmentsOrBuilderList()
Set of shipments which must be performed in the model.ShipmentTypeIncompatibility
getShipmentTypeIncompatibilities(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).int
getShipmentTypeIncompatibilitiesCount()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).List<ShipmentTypeIncompatibility>
getShipmentTypeIncompatibilitiesList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeIncompatibilityOrBuilder
getShipmentTypeIncompatibilitiesOrBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).List<? extends ShipmentTypeIncompatibilityOrBuilder>
getShipmentTypeIncompatibilitiesOrBuilderList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeRequirement
getShipmentTypeRequirements(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).int
getShipmentTypeRequirementsCount()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).List<ShipmentTypeRequirement>
getShipmentTypeRequirementsList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentTypeRequirementOrBuilder
getShipmentTypeRequirementsOrBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).List<? extends ShipmentTypeRequirementOrBuilder>
getShipmentTypeRequirementsOrBuilderList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).TransitionAttributes
getTransitionAttributes(int index)
Transition attributes added to the model.int
getTransitionAttributesCount()
Transition attributes added to the model.List<TransitionAttributes>
getTransitionAttributesList()
Transition attributes added to the model.TransitionAttributesOrBuilder
getTransitionAttributesOrBuilder(int index)
Transition attributes added to the model.List<? extends TransitionAttributesOrBuilder>
getTransitionAttributesOrBuilderList()
Transition attributes added to the model.Vehicle
getVehicles(int index)
Set of vehicles which can be used to perform visits.int
getVehiclesCount()
Set of vehicles which can be used to perform visits.List<Vehicle>
getVehiclesList()
Set of vehicles which can be used to perform visits.VehicleOrBuilder
getVehiclesOrBuilder(int index)
Set of vehicles which can be used to perform visits.List<? extends VehicleOrBuilder>
getVehiclesOrBuilderList()
Set of vehicles which can be used to perform visits.boolean
hasGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.boolean
hasGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid.int
hashCode()
boolean
hasMaxActiveVehicles()
Constrains the maximum number of active vehicles.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ShipmentModel.Builder
newBuilder()
static ShipmentModel.Builder
newBuilder(ShipmentModel prototype)
ShipmentModel.Builder
newBuilderForType()
protected ShipmentModel.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ShipmentModel
parseDelimitedFrom(InputStream input)
static ShipmentModel
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel
parseFrom(byte[] data)
static ShipmentModel
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel
parseFrom(com.google.protobuf.ByteString data)
static ShipmentModel
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel
parseFrom(com.google.protobuf.CodedInputStream input)
static ShipmentModel
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel
parseFrom(InputStream input)
static ShipmentModel
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ShipmentModel
parseFrom(ByteBuffer data)
static ShipmentModel
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ShipmentModel>
parser()
ShipmentModel.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, internalGetMapField, 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
-
SHIPMENTS_FIELD_NUMBER
public static final int SHIPMENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VEHICLES_FIELD_NUMBER
public static final int VEHICLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_ACTIVE_VEHICLES_FIELD_NUMBER
public static final int MAX_ACTIVE_VEHICLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GLOBAL_START_TIME_FIELD_NUMBER
public static final int GLOBAL_START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GLOBAL_END_TIME_FIELD_NUMBER
public static final int GLOBAL_END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER
public static final int GLOBAL_DURATION_COST_PER_HOUR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_DISTANCE_MATRICES_FIELD_NUMBER
public static final int DURATION_DISTANCE_MATRICES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_DISTANCE_MATRIX_SRC_TAGS_FIELD_NUMBER
public static final int DURATION_DISTANCE_MATRIX_SRC_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_DISTANCE_MATRIX_DST_TAGS_FIELD_NUMBER
public static final int DURATION_DISTANCE_MATRIX_DST_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSITION_ATTRIBUTES_FIELD_NUMBER
public static final int TRANSITION_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIPMENT_TYPE_INCOMPATIBILITIES_FIELD_NUMBER
public static final int SHIPMENT_TYPE_INCOMPATIBILITIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIPMENT_TYPE_REQUIREMENTS_FIELD_NUMBER
public static final int SHIPMENT_TYPE_REQUIREMENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRECEDENCE_RULES_FIELD_NUMBER
public static final int PRECEDENCE_RULES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BREAK_RULES_FIELD_NUMBER
public static final int BREAK_RULES_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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getShipmentsList
public List<Shipment> getShipmentsList()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsList
in interfaceShipmentModelOrBuilder
-
getShipmentsOrBuilderList
public List<? extends ShipmentOrBuilder> getShipmentsOrBuilderList()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsOrBuilderList
in interfaceShipmentModelOrBuilder
-
getShipmentsCount
public int getShipmentsCount()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsCount
in interfaceShipmentModelOrBuilder
-
getShipments
public Shipment getShipments(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipments
in interfaceShipmentModelOrBuilder
-
getShipmentsOrBuilder
public ShipmentOrBuilder getShipmentsOrBuilder(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsOrBuilder
in interfaceShipmentModelOrBuilder
-
getVehiclesList
public List<Vehicle> getVehiclesList()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesList
in interfaceShipmentModelOrBuilder
-
getVehiclesOrBuilderList
public List<? extends VehicleOrBuilder> getVehiclesOrBuilderList()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesOrBuilderList
in interfaceShipmentModelOrBuilder
-
getVehiclesCount
public int getVehiclesCount()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesCount
in interfaceShipmentModelOrBuilder
-
getVehicles
public Vehicle getVehicles(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehicles
in interfaceShipmentModelOrBuilder
-
getVehiclesOrBuilder
public VehicleOrBuilder getVehiclesOrBuilder(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesOrBuilder
in interfaceShipmentModelOrBuilder
-
hasMaxActiveVehicles
public boolean hasMaxActiveVehicles()
Constrains the maximum number of active vehicles. A vehicle is active if its route performs at least one shipment. This can be used to limit the number of routes in the case where there are fewer drivers than vehicles and that the fleet of vehicles is heterogeneous. The optimization will then select the best subset of vehicles to use. Must be strictly positive.
optional int32 max_active_vehicles = 4;
- Specified by:
hasMaxActiveVehicles
in interfaceShipmentModelOrBuilder
- Returns:
- Whether the maxActiveVehicles field is set.
-
getMaxActiveVehicles
public int getMaxActiveVehicles()
Constrains the maximum number of active vehicles. A vehicle is active if its route performs at least one shipment. This can be used to limit the number of routes in the case where there are fewer drivers than vehicles and that the fleet of vehicles is heterogeneous. The optimization will then select the best subset of vehicles to use. Must be strictly positive.
optional int32 max_active_vehicles = 4;
- Specified by:
getMaxActiveVehicles
in interfaceShipmentModelOrBuilder
- Returns:
- The maxActiveVehicles.
-
hasGlobalStartTime
public boolean hasGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid. The model's time span must be less than a year, i.e. the `global_end_time` and the `global_start_time` must be within 31536000 seconds of each other. When using `cost_per_*hour` fields, you might want to set this window to a smaller interval to increase performance (eg. if you model a single day, you should set the global time limits to that day). If unset, 00:00:00 UTC, January 1, 1970 (i.e. seconds: 0, nanos: 0) is used as default.
.google.protobuf.Timestamp global_start_time = 5;
- Specified by:
hasGlobalStartTime
in interfaceShipmentModelOrBuilder
- Returns:
- Whether the globalStartTime field is set.
-
getGlobalStartTime
public com.google.protobuf.Timestamp getGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid. The model's time span must be less than a year, i.e. the `global_end_time` and the `global_start_time` must be within 31536000 seconds of each other. When using `cost_per_*hour` fields, you might want to set this window to a smaller interval to increase performance (eg. if you model a single day, you should set the global time limits to that day). If unset, 00:00:00 UTC, January 1, 1970 (i.e. seconds: 0, nanos: 0) is used as default.
.google.protobuf.Timestamp global_start_time = 5;
- Specified by:
getGlobalStartTime
in interfaceShipmentModelOrBuilder
- Returns:
- The globalStartTime.
-
getGlobalStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getGlobalStartTimeOrBuilder()
Global start and end time of the model: no times outside of this range can be considered valid. The model's time span must be less than a year, i.e. the `global_end_time` and the `global_start_time` must be within 31536000 seconds of each other. When using `cost_per_*hour` fields, you might want to set this window to a smaller interval to increase performance (eg. if you model a single day, you should set the global time limits to that day). If unset, 00:00:00 UTC, January 1, 1970 (i.e. seconds: 0, nanos: 0) is used as default.
.google.protobuf.Timestamp global_start_time = 5;
- Specified by:
getGlobalStartTimeOrBuilder
in interfaceShipmentModelOrBuilder
-
hasGlobalEndTime
public boolean hasGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.
.google.protobuf.Timestamp global_end_time = 6;
- Specified by:
hasGlobalEndTime
in interfaceShipmentModelOrBuilder
- Returns:
- Whether the globalEndTime field is set.
-
getGlobalEndTime
public com.google.protobuf.Timestamp getGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.
.google.protobuf.Timestamp global_end_time = 6;
- Specified by:
getGlobalEndTime
in interfaceShipmentModelOrBuilder
- Returns:
- The globalEndTime.
-
getGlobalEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getGlobalEndTimeOrBuilder()
If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.
.google.protobuf.Timestamp global_end_time = 6;
- Specified by:
getGlobalEndTimeOrBuilder
in interfaceShipmentModelOrBuilder
-
getGlobalDurationCostPerHour
public double getGlobalDurationCostPerHour()
The "global duration" of the overall plan is the difference between the earliest effective start time and the latest effective end time of all vehicles. Users can assign a cost per hour to that quantity to try and optimize for earliest job completion, for example. This cost must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
double global_duration_cost_per_hour = 7;
- Specified by:
getGlobalDurationCostPerHour
in interfaceShipmentModelOrBuilder
- Returns:
- The globalDurationCostPerHour.
-
getDurationDistanceMatricesList
public List<ShipmentModel.DurationDistanceMatrix> getDurationDistanceMatricesList()
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesList
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatricesOrBuilderList
public List<? extends ShipmentModel.DurationDistanceMatrixOrBuilder> getDurationDistanceMatricesOrBuilderList()
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesOrBuilderList
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatricesCount
public int getDurationDistanceMatricesCount()
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesCount
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatrices
public ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index)
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatrices
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatricesOrBuilder
public ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder(int index)
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesOrBuilder
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatrixSrcTagsList
public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixSrcTagsList()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTagsList
in interfaceShipmentModelOrBuilder
- Returns:
- A list containing the durationDistanceMatrixSrcTags.
-
getDurationDistanceMatrixSrcTagsCount
public int getDurationDistanceMatrixSrcTagsCount()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTagsCount
in interfaceShipmentModelOrBuilder
- Returns:
- The count of durationDistanceMatrixSrcTags.
-
getDurationDistanceMatrixSrcTags
public String getDurationDistanceMatrixSrcTags(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTags
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The durationDistanceMatrixSrcTags at the given index.
-
getDurationDistanceMatrixSrcTagsBytes
public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTagsBytes
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the durationDistanceMatrixSrcTags at the given index.
-
getDurationDistanceMatrixDstTagsList
public com.google.protobuf.ProtocolStringList getDurationDistanceMatrixDstTagsList()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTagsList
in interfaceShipmentModelOrBuilder
- Returns:
- A list containing the durationDistanceMatrixDstTags.
-
getDurationDistanceMatrixDstTagsCount
public int getDurationDistanceMatrixDstTagsCount()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTagsCount
in interfaceShipmentModelOrBuilder
- Returns:
- The count of durationDistanceMatrixDstTags.
-
getDurationDistanceMatrixDstTags
public String getDurationDistanceMatrixDstTags(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTags
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The durationDistanceMatrixDstTags at the given index.
-
getDurationDistanceMatrixDstTagsBytes
public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTagsBytes
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the durationDistanceMatrixDstTags at the given index.
-
getTransitionAttributesList
public List<TransitionAttributes> getTransitionAttributesList()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesList
in interfaceShipmentModelOrBuilder
-
getTransitionAttributesOrBuilderList
public List<? extends TransitionAttributesOrBuilder> getTransitionAttributesOrBuilderList()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesOrBuilderList
in interfaceShipmentModelOrBuilder
-
getTransitionAttributesCount
public int getTransitionAttributesCount()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesCount
in interfaceShipmentModelOrBuilder
-
getTransitionAttributes
public TransitionAttributes getTransitionAttributes(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributes
in interfaceShipmentModelOrBuilder
-
getTransitionAttributesOrBuilder
public TransitionAttributesOrBuilder getTransitionAttributesOrBuilder(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesOrBuilder
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesList
public List<ShipmentTypeIncompatibility> getShipmentTypeIncompatibilitiesList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesList
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesOrBuilderList
public List<? extends ShipmentTypeIncompatibilityOrBuilder> getShipmentTypeIncompatibilitiesOrBuilderList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesOrBuilderList
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesCount
public int getShipmentTypeIncompatibilitiesCount()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesCount
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilities
public ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilities
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesOrBuilder
public ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesOrBuilder
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsList
public List<ShipmentTypeRequirement> getShipmentTypeRequirementsList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsList
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsOrBuilderList
public List<? extends ShipmentTypeRequirementOrBuilder> getShipmentTypeRequirementsOrBuilderList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsOrBuilderList
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsCount
public int getShipmentTypeRequirementsCount()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsCount
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirements
public ShipmentTypeRequirement getShipmentTypeRequirements(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirements
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsOrBuilder
public ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsOrBuilder
in interfaceShipmentModelOrBuilder
-
getPrecedenceRulesList
public List<ShipmentModel.PrecedenceRule> getPrecedenceRulesList()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesList
in interfaceShipmentModelOrBuilder
-
getPrecedenceRulesOrBuilderList
public List<? extends ShipmentModel.PrecedenceRuleOrBuilder> getPrecedenceRulesOrBuilderList()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesOrBuilderList
in interfaceShipmentModelOrBuilder
-
getPrecedenceRulesCount
public int getPrecedenceRulesCount()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesCount
in interfaceShipmentModelOrBuilder
-
getPrecedenceRules
public ShipmentModel.PrecedenceRule getPrecedenceRules(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRules
in interfaceShipmentModelOrBuilder
-
getPrecedenceRulesOrBuilder
public ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesOrBuilder
in interfaceShipmentModelOrBuilder
-
getBreakRulesList
@Deprecated public List<ShipmentModel.BreakRule> getBreakRulesList()
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesList
in interfaceShipmentModelOrBuilder
-
getBreakRulesOrBuilderList
@Deprecated public List<? extends ShipmentModel.BreakRuleOrBuilder> getBreakRulesOrBuilderList()
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesOrBuilderList
in interfaceShipmentModelOrBuilder
-
getBreakRulesCount
@Deprecated public int getBreakRulesCount()
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesCount
in interfaceShipmentModelOrBuilder
-
getBreakRules
@Deprecated public ShipmentModel.BreakRule getBreakRules(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRules
in interfaceShipmentModelOrBuilder
-
getBreakRulesOrBuilder
@Deprecated public ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesOrBuilder
in interfaceShipmentModelOrBuilder
-
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 ShipmentModel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentModel parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentModel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentModel parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentModel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentModel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ShipmentModel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ShipmentModel.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ShipmentModel.Builder newBuilder()
-
newBuilder
public static ShipmentModel.Builder newBuilder(ShipmentModel prototype)
-
toBuilder
public ShipmentModel.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentModel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ShipmentModel getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ShipmentModel> parser()
-
getParserForType
public com.google.protobuf.Parser<ShipmentModel> 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 ShipmentModel getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-