Package com.google.cloud.optimization.v1
Class ShipmentModel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ShipmentModel.Builder>
com.google.cloud.optimization.v1.ShipmentModel.Builder
- All Implemented Interfaces:
ShipmentModelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ShipmentModel
public static final class ShipmentModel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ShipmentModel.Builder>
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 shipmentsProtobuf type
google.cloud.optimization.v1.ShipmentModel-
Method Summary
Modifier and TypeMethodDescriptionaddAllBreakRules(Iterable<? extends ShipmentModel.BreakRule> values) Deprecated.addAllDurationDistanceMatrices(Iterable<? extends ShipmentModel.DurationDistanceMatrix> values) Specifies duration and distance matrices used in the model.Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.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.addAllPrecedenceRules(Iterable<? extends ShipmentModel.PrecedenceRule> values) Set of precedence rules which must be enforced in the model.addAllShipments(Iterable<? extends Shipment> values) Set of shipments which must be performed in the model.addAllShipmentTypeIncompatibilities(Iterable<? extends ShipmentTypeIncompatibility> values) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).addAllShipmentTypeRequirements(Iterable<? extends ShipmentTypeRequirement> values) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).addAllTransitionAttributes(Iterable<? extends TransitionAttributes> values) Transition attributes added to the model.addAllVehicles(Iterable<? extends Vehicle> values) Set of vehicles which can be used to perform visits.addBreakRules(int index, ShipmentModel.BreakRule value) Deprecated.addBreakRules(int index, ShipmentModel.BreakRule.Builder builderForValue) Deprecated.Deprecated.addBreakRules(ShipmentModel.BreakRule.Builder builderForValue) Deprecated.Deprecated.addBreakRulesBuilder(int index) Deprecated.addDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix value) Specifies duration and distance matrices used in the model.addDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix.Builder builderForValue) Specifies duration and distance matrices used in the model.Specifies duration and distance matrices used in the model.addDurationDistanceMatrices(ShipmentModel.DurationDistanceMatrix.Builder builderForValue) Specifies duration and distance matrices used in the model.Specifies duration and distance matrices used in the model.addDurationDistanceMatricesBuilder(int index) Specifies duration and distance matrices used in the model.Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.addDurationDistanceMatrixDstTagsBytes(com.google.protobuf.ByteString value) Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.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.addDurationDistanceMatrixSrcTagsBytes(com.google.protobuf.ByteString value) 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.addPrecedenceRules(int index, ShipmentModel.PrecedenceRule value) Set of precedence rules which must be enforced in the model.addPrecedenceRules(int index, ShipmentModel.PrecedenceRule.Builder builderForValue) Set of precedence rules which must be enforced in the model.Set of precedence rules which must be enforced in the model.addPrecedenceRules(ShipmentModel.PrecedenceRule.Builder builderForValue) Set of precedence rules which must be enforced in the model.Set of precedence rules which must be enforced in the model.addPrecedenceRulesBuilder(int index) Set of precedence rules which must be enforced in the model.addShipments(int index, Shipment value) Set of shipments which must be performed in the model.addShipments(int index, Shipment.Builder builderForValue) Set of shipments which must be performed in the model.addShipments(Shipment value) Set of shipments which must be performed in the model.addShipments(Shipment.Builder builderForValue) Set of shipments which must be performed in the model.Set of shipments which must be performed in the model.addShipmentsBuilder(int index) Set of shipments which must be performed in the model.addShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility value) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).addShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility.Builder builderForValue) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).addShipmentTypeIncompatibilities(ShipmentTypeIncompatibility.Builder builderForValue) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).addShipmentTypeIncompatibilitiesBuilder(int index) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).addShipmentTypeRequirements(int index, ShipmentTypeRequirement value) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).addShipmentTypeRequirements(int index, ShipmentTypeRequirement.Builder builderForValue) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).addShipmentTypeRequirements(ShipmentTypeRequirement.Builder builderForValue) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).addShipmentTypeRequirementsBuilder(int index) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).addTransitionAttributes(int index, TransitionAttributes value) Transition attributes added to the model.addTransitionAttributes(int index, TransitionAttributes.Builder builderForValue) Transition attributes added to the model.Transition attributes added to the model.addTransitionAttributes(TransitionAttributes.Builder builderForValue) Transition attributes added to the model.Transition attributes added to the model.addTransitionAttributesBuilder(int index) Transition attributes added to the model.addVehicles(int index, Vehicle value) Set of vehicles which can be used to perform visits.addVehicles(int index, Vehicle.Builder builderForValue) Set of vehicles which can be used to perform visits.addVehicles(Vehicle value) Set of vehicles which can be used to perform visits.addVehicles(Vehicle.Builder builderForValue) Set of vehicles which can be used to perform visits.Set of vehicles which can be used to perform visits.addVehiclesBuilder(int index) Set of vehicles which can be used to perform visits.build()clear()Deprecated.Specifies duration and distance matrices used in the model.Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.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.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.If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.Global start and end time of the model: no times outside of this range can be considered valid.Constrains the maximum number of active vehicles.Set of precedence rules which must be enforced in the model.Set of shipments which must be performed in the model.Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).Transition attributes added to the model.Set of vehicles which can be used to perform visits.getBreakRules(int index) Deprecated.getBreakRulesBuilder(int index) Deprecated.Deprecated.intDeprecated.Deprecated.getBreakRulesOrBuilder(int index) Deprecated.List<? extends ShipmentModel.BreakRuleOrBuilder>Deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDurationDistanceMatrices(int index) Specifies duration and distance matrices used in the model.getDurationDistanceMatricesBuilder(int index) Specifies duration and distance matrices used in the model.Specifies duration and distance matrices used in the model.intSpecifies duration and distance matrices used in the model.Specifies duration and distance matrices used in the model.getDurationDistanceMatricesOrBuilder(int index) Specifies duration and distance matrices used in the model.Specifies duration and distance matrices used in the model.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.ByteStringgetDurationDistanceMatrixDstTagsBytes(int index) Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.intTags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.com.google.protobuf.ProtocolStringListTags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.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.ByteStringgetDurationDistanceMatrixSrcTagsBytes(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.intTags 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.ProtocolStringListTags 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.doubleThe "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.TimestampIf unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.com.google.protobuf.Timestamp.BuilderIf unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.com.google.protobuf.TimestampOrBuilderIf unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.com.google.protobuf.TimestampGlobal start and end time of the model: no times outside of this range can be considered valid.com.google.protobuf.Timestamp.BuilderGlobal start and end time of the model: no times outside of this range can be considered valid.com.google.protobuf.TimestampOrBuilderGlobal start and end time of the model: no times outside of this range can be considered valid.intConstrains the maximum number of active vehicles.getPrecedenceRules(int index) Set of precedence rules which must be enforced in the model.getPrecedenceRulesBuilder(int index) Set of precedence rules which must be enforced in the model.Set of precedence rules which must be enforced in the model.intSet of precedence rules which must be enforced in the model.Set of precedence rules which must be enforced in the model.getPrecedenceRulesOrBuilder(int index) Set of precedence rules which must be enforced in the model.List<? extends ShipmentModel.PrecedenceRuleOrBuilder>Set of precedence rules which must be enforced in the model.getShipments(int index) Set of shipments which must be performed in the model.getShipmentsBuilder(int index) Set of shipments which must be performed in the model.Set of shipments which must be performed in the model.intSet of shipments which must be performed in the model.Set of shipments which must be performed in the model.getShipmentsOrBuilder(int index) Set of shipments which must be performed in the model.List<? extends ShipmentOrBuilder>Set of shipments which must be performed in the model.getShipmentTypeIncompatibilities(int index) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).getShipmentTypeIncompatibilitiesBuilder(int index) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).intSets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).getShipmentTypeIncompatibilitiesOrBuilder(int index) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).List<? extends ShipmentTypeIncompatibilityOrBuilder>Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).getShipmentTypeRequirements(int index) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).getShipmentTypeRequirementsBuilder(int index) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).intSets of `shipment_type` requirements (see `ShipmentTypeRequirement`).Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).getShipmentTypeRequirementsOrBuilder(int index) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).List<? extends ShipmentTypeRequirementOrBuilder>Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).getTransitionAttributes(int index) Transition attributes added to the model.getTransitionAttributesBuilder(int index) Transition attributes added to the model.Transition attributes added to the model.intTransition attributes added to the model.Transition attributes added to the model.getTransitionAttributesOrBuilder(int index) Transition attributes added to the model.List<? extends TransitionAttributesOrBuilder>Transition attributes added to the model.getVehicles(int index) Set of vehicles which can be used to perform visits.getVehiclesBuilder(int index) Set of vehicles which can be used to perform visits.Set of vehicles which can be used to perform visits.intSet of vehicles which can be used to perform visits.Set of vehicles which can be used to perform visits.getVehiclesOrBuilder(int index) Set of vehicles which can be used to perform visits.List<? extends VehicleOrBuilder>Set of vehicles which can be used to perform visits.booleanIf unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.booleanGlobal start and end time of the model: no times outside of this range can be considered valid.booleanConstrains the maximum number of active vehicles.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ShipmentModel other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGlobalEndTime(com.google.protobuf.Timestamp value) If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.mergeGlobalStartTime(com.google.protobuf.Timestamp value) Global start and end time of the model: no times outside of this range can be considered valid.removeBreakRules(int index) Deprecated.removeDurationDistanceMatrices(int index) Specifies duration and distance matrices used in the model.removePrecedenceRules(int index) Set of precedence rules which must be enforced in the model.removeShipments(int index) Set of shipments which must be performed in the model.removeShipmentTypeIncompatibilities(int index) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).removeShipmentTypeRequirements(int index) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).removeTransitionAttributes(int index) Transition attributes added to the model.removeVehicles(int index) Set of vehicles which can be used to perform visits.setBreakRules(int index, ShipmentModel.BreakRule value) Deprecated.setBreakRules(int index, ShipmentModel.BreakRule.Builder builderForValue) Deprecated.setDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix value) Specifies duration and distance matrices used in the model.setDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix.Builder builderForValue) Specifies duration and distance matrices used in the model.setDurationDistanceMatrixDstTags(int index, String value) Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.setDurationDistanceMatrixSrcTags(int index, String value) 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.setGlobalDurationCostPerHour(double value) 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.setGlobalEndTime(com.google.protobuf.Timestamp value) If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderForValue) If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.setGlobalStartTime(com.google.protobuf.Timestamp value) Global start and end time of the model: no times outside of this range can be considered valid.setGlobalStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Global start and end time of the model: no times outside of this range can be considered valid.setMaxActiveVehicles(int value) Constrains the maximum number of active vehicles.setPrecedenceRules(int index, ShipmentModel.PrecedenceRule value) Set of precedence rules which must be enforced in the model.setPrecedenceRules(int index, ShipmentModel.PrecedenceRule.Builder builderForValue) Set of precedence rules which must be enforced in the model.setShipments(int index, Shipment value) Set of shipments which must be performed in the model.setShipments(int index, Shipment.Builder builderForValue) Set of shipments which must be performed in the model.setShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility value) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).setShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility.Builder builderForValue) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).setShipmentTypeRequirements(int index, ShipmentTypeRequirement value) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).setShipmentTypeRequirements(int index, ShipmentTypeRequirement.Builder builderForValue) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).setTransitionAttributes(int index, TransitionAttributes value) Transition attributes added to the model.setTransitionAttributes(int index, TransitionAttributes.Builder builderForValue) Transition attributes added to the model.setVehicles(int index, Vehicle value) Set of vehicles which can be used to perform visits.setVehicles(int index, Vehicle.Builder builderForValue) Set of vehicles which can be used to perform visits.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ShipmentModel.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<ShipmentModel.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<ShipmentModel.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<ShipmentModel.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ShipmentModel.Builder>
-
mergeFrom
public ShipmentModel.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<ShipmentModel.Builder>- Throws:
IOException
-
getShipmentsList
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;- Specified by:
getShipmentsListin 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:
getShipmentsCountin interfaceShipmentModelOrBuilder
-
getShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;- Specified by:
getShipmentsin interfaceShipmentModelOrBuilder
-
setShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
setShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
addShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
addShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
addShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
addShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
addAllShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
clearShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
removeShipments
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
getShipmentsBuilder
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
getShipmentsOrBuilder
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;- Specified by:
getShipmentsOrBuilderin interfaceShipmentModelOrBuilder
-
getShipmentsOrBuilderList
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;- Specified by:
getShipmentsOrBuilderListin interfaceShipmentModelOrBuilder
-
addShipmentsBuilder
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
addShipmentsBuilder
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
getShipmentsBuilderList
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1; -
getVehiclesList
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;- Specified by:
getVehiclesListin 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:
getVehiclesCountin interfaceShipmentModelOrBuilder
-
getVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;- Specified by:
getVehiclesin interfaceShipmentModelOrBuilder
-
setVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
setVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
addVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
addVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
addVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
addVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
addAllVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
clearVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
removeVehicles
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
getVehiclesBuilder
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
getVehiclesOrBuilder
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;- Specified by:
getVehiclesOrBuilderin interfaceShipmentModelOrBuilder
-
getVehiclesOrBuilderList
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;- Specified by:
getVehiclesOrBuilderListin interfaceShipmentModelOrBuilder
-
addVehiclesBuilder
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
addVehiclesBuilder
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
getVehiclesBuilderList
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2; -
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:
hasMaxActiveVehiclesin 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:
getMaxActiveVehiclesin interfaceShipmentModelOrBuilder- Returns:
- The maxActiveVehicles.
-
setMaxActiveVehicles
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;- Parameters:
value- The maxActiveVehicles to set.- Returns:
- This builder for chaining.
-
clearMaxActiveVehicles
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;- Returns:
- This builder for chaining.
-
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:
hasGlobalStartTimein 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:
getGlobalStartTimein interfaceShipmentModelOrBuilder- Returns:
- The globalStartTime.
-
setGlobalStartTime
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; -
setGlobalStartTime
public ShipmentModel.Builder setGlobalStartTime(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeGlobalStartTime
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; -
clearGlobalStartTime
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; -
getGlobalStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getGlobalStartTimeBuilder()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; -
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:
getGlobalStartTimeOrBuilderin 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:
hasGlobalEndTimein 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:
getGlobalEndTimein interfaceShipmentModelOrBuilder- Returns:
- The globalEndTime.
-
setGlobalEndTime
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; -
setGlobalEndTime
public ShipmentModel.Builder setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeGlobalEndTime
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; -
clearGlobalEndTime
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; -
getGlobalEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getGlobalEndTimeBuilder()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; -
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:
getGlobalEndTimeOrBuilderin 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:
getGlobalDurationCostPerHourin interfaceShipmentModelOrBuilder- Returns:
- The globalDurationCostPerHour.
-
setGlobalDurationCostPerHour
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;- Parameters:
value- The globalDurationCostPerHour to set.- Returns:
- This builder for chaining.
-
clearGlobalDurationCostPerHour
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;- Returns:
- This builder for chaining.
-
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:
getDurationDistanceMatricesListin 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:
getDurationDistanceMatricesCountin interfaceShipmentModelOrBuilder
-
getDurationDistanceMatrices
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:
getDurationDistanceMatricesin interfaceShipmentModelOrBuilder
-
setDurationDistanceMatrices
public ShipmentModel.Builder setDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix value) 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; -
setDurationDistanceMatrices
public ShipmentModel.Builder setDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix.Builder builderForValue) 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; -
addDurationDistanceMatrices
public ShipmentModel.Builder addDurationDistanceMatrices(ShipmentModel.DurationDistanceMatrix value) 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; -
addDurationDistanceMatrices
public ShipmentModel.Builder addDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix value) 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; -
addDurationDistanceMatrices
public ShipmentModel.Builder addDurationDistanceMatrices(ShipmentModel.DurationDistanceMatrix.Builder builderForValue) 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; -
addDurationDistanceMatrices
public ShipmentModel.Builder addDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix.Builder builderForValue) 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; -
addAllDurationDistanceMatrices
public ShipmentModel.Builder addAllDurationDistanceMatrices(Iterable<? extends ShipmentModel.DurationDistanceMatrix> values) 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; -
clearDurationDistanceMatrices
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; -
removeDurationDistanceMatrices
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; -
getDurationDistanceMatricesBuilder
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; -
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:
getDurationDistanceMatricesOrBuilderin 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:
getDurationDistanceMatricesOrBuilderListin interfaceShipmentModelOrBuilder
-
addDurationDistanceMatricesBuilder
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; -
addDurationDistanceMatricesBuilder
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; -
getDurationDistanceMatricesBuilderList
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; -
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:
getDurationDistanceMatrixSrcTagsListin 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:
getDurationDistanceMatrixSrcTagsCountin interfaceShipmentModelOrBuilder- Returns:
- The count of durationDistanceMatrixSrcTags.
-
getDurationDistanceMatrixSrcTags
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:
getDurationDistanceMatrixSrcTagsin 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:
getDurationDistanceMatrixSrcTagsBytesin interfaceShipmentModelOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the durationDistanceMatrixSrcTags at the given index.
-
setDurationDistanceMatrixSrcTags
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;- Parameters:
index- The index to set the value at.value- The durationDistanceMatrixSrcTags to set.- Returns:
- This builder for chaining.
-
addDurationDistanceMatrixSrcTags
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;- Parameters:
value- The durationDistanceMatrixSrcTags to add.- Returns:
- This builder for chaining.
-
addAllDurationDistanceMatrixSrcTags
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;- Parameters:
values- The durationDistanceMatrixSrcTags to add.- Returns:
- This builder for chaining.
-
clearDurationDistanceMatrixSrcTags
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;- Returns:
- This builder for chaining.
-
addDurationDistanceMatrixSrcTagsBytes
public ShipmentModel.Builder addDurationDistanceMatrixSrcTagsBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes of the durationDistanceMatrixSrcTags to add.- Returns:
- This builder for chaining.
-
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:
getDurationDistanceMatrixDstTagsListin 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:
getDurationDistanceMatrixDstTagsCountin interfaceShipmentModelOrBuilder- Returns:
- The count of durationDistanceMatrixDstTags.
-
getDurationDistanceMatrixDstTags
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:
getDurationDistanceMatrixDstTagsin 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:
getDurationDistanceMatrixDstTagsBytesin interfaceShipmentModelOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the durationDistanceMatrixDstTags at the given index.
-
setDurationDistanceMatrixDstTags
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;- Parameters:
index- The index to set the value at.value- The durationDistanceMatrixDstTags to set.- Returns:
- This builder for chaining.
-
addDurationDistanceMatrixDstTags
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;- Parameters:
value- The durationDistanceMatrixDstTags to add.- Returns:
- This builder for chaining.
-
addAllDurationDistanceMatrixDstTags
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;- Parameters:
values- The durationDistanceMatrixDstTags to add.- Returns:
- This builder for chaining.
-
clearDurationDistanceMatrixDstTags
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;- Returns:
- This builder for chaining.
-
addDurationDistanceMatrixDstTagsBytes
public ShipmentModel.Builder addDurationDistanceMatrixDstTagsBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes of the durationDistanceMatrixDstTags to add.- Returns:
- This builder for chaining.
-
getTransitionAttributesList
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;- Specified by:
getTransitionAttributesListin interfaceShipmentModelOrBuilder
-
getTransitionAttributesCount
public int getTransitionAttributesCount()Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;- Specified by:
getTransitionAttributesCountin interfaceShipmentModelOrBuilder
-
getTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;- Specified by:
getTransitionAttributesin interfaceShipmentModelOrBuilder
-
setTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
setTransitionAttributes
public ShipmentModel.Builder setTransitionAttributes(int index, TransitionAttributes.Builder builderForValue) Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
addTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
addTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
addTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
addTransitionAttributes
public ShipmentModel.Builder addTransitionAttributes(int index, TransitionAttributes.Builder builderForValue) Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
addAllTransitionAttributes
public ShipmentModel.Builder addAllTransitionAttributes(Iterable<? extends TransitionAttributes> values) Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
clearTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
removeTransitionAttributes
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
getTransitionAttributesBuilder
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
getTransitionAttributesOrBuilder
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;- Specified by:
getTransitionAttributesOrBuilderin interfaceShipmentModelOrBuilder
-
getTransitionAttributesOrBuilderList
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;- Specified by:
getTransitionAttributesOrBuilderListin interfaceShipmentModelOrBuilder
-
addTransitionAttributesBuilder
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
addTransitionAttributesBuilder
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
getTransitionAttributesBuilderList
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11; -
getShipmentTypeIncompatibilitiesList
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;- Specified by:
getShipmentTypeIncompatibilitiesListin interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesCount
public int getShipmentTypeIncompatibilitiesCount()Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;- Specified by:
getShipmentTypeIncompatibilitiesCountin interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilities
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;- Specified by:
getShipmentTypeIncompatibilitiesin interfaceShipmentModelOrBuilder
-
setShipmentTypeIncompatibilities
public ShipmentModel.Builder setShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility value) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
setShipmentTypeIncompatibilities
public ShipmentModel.Builder setShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility.Builder builderForValue) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
addShipmentTypeIncompatibilities
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
addShipmentTypeIncompatibilities
public ShipmentModel.Builder addShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility value) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
addShipmentTypeIncompatibilities
public ShipmentModel.Builder addShipmentTypeIncompatibilities(ShipmentTypeIncompatibility.Builder builderForValue) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
addShipmentTypeIncompatibilities
public ShipmentModel.Builder addShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility.Builder builderForValue) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
addAllShipmentTypeIncompatibilities
public ShipmentModel.Builder addAllShipmentTypeIncompatibilities(Iterable<? extends ShipmentTypeIncompatibility> values) Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
clearShipmentTypeIncompatibilities
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
removeShipmentTypeIncompatibilities
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
getShipmentTypeIncompatibilitiesBuilder
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
getShipmentTypeIncompatibilitiesOrBuilder
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;- Specified by:
getShipmentTypeIncompatibilitiesOrBuilderin 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:
getShipmentTypeIncompatibilitiesOrBuilderListin interfaceShipmentModelOrBuilder
-
addShipmentTypeIncompatibilitiesBuilder
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
addShipmentTypeIncompatibilitiesBuilder
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
getShipmentTypeIncompatibilitiesBuilderList
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12; -
getShipmentTypeRequirementsList
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;- Specified by:
getShipmentTypeRequirementsListin interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsCount
public int getShipmentTypeRequirementsCount()Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;- Specified by:
getShipmentTypeRequirementsCountin interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirements
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;- Specified by:
getShipmentTypeRequirementsin interfaceShipmentModelOrBuilder
-
setShipmentTypeRequirements
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
setShipmentTypeRequirements
public ShipmentModel.Builder setShipmentTypeRequirements(int index, ShipmentTypeRequirement.Builder builderForValue) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
addShipmentTypeRequirements
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
addShipmentTypeRequirements
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
addShipmentTypeRequirements
public ShipmentModel.Builder addShipmentTypeRequirements(ShipmentTypeRequirement.Builder builderForValue) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
addShipmentTypeRequirements
public ShipmentModel.Builder addShipmentTypeRequirements(int index, ShipmentTypeRequirement.Builder builderForValue) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
addAllShipmentTypeRequirements
public ShipmentModel.Builder addAllShipmentTypeRequirements(Iterable<? extends ShipmentTypeRequirement> values) Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
clearShipmentTypeRequirements
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
removeShipmentTypeRequirements
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
getShipmentTypeRequirementsBuilder
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
getShipmentTypeRequirementsOrBuilder
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;- Specified by:
getShipmentTypeRequirementsOrBuilderin interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsOrBuilderList
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;- Specified by:
getShipmentTypeRequirementsOrBuilderListin interfaceShipmentModelOrBuilder
-
addShipmentTypeRequirementsBuilder
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
addShipmentTypeRequirementsBuilder
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
getShipmentTypeRequirementsBuilderList
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13; -
getPrecedenceRulesList
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;- Specified by:
getPrecedenceRulesListin 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:
getPrecedenceRulesCountin interfaceShipmentModelOrBuilder
-
getPrecedenceRules
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;- Specified by:
getPrecedenceRulesin interfaceShipmentModelOrBuilder
-
setPrecedenceRules
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
setPrecedenceRules
public ShipmentModel.Builder setPrecedenceRules(int index, ShipmentModel.PrecedenceRule.Builder builderForValue) Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
addPrecedenceRules
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
addPrecedenceRules
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
addPrecedenceRules
public ShipmentModel.Builder addPrecedenceRules(ShipmentModel.PrecedenceRule.Builder builderForValue) Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
addPrecedenceRules
public ShipmentModel.Builder addPrecedenceRules(int index, ShipmentModel.PrecedenceRule.Builder builderForValue) Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
addAllPrecedenceRules
public ShipmentModel.Builder addAllPrecedenceRules(Iterable<? extends ShipmentModel.PrecedenceRule> values) Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
clearPrecedenceRules
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
removePrecedenceRules
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
getPrecedenceRulesBuilder
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
getPrecedenceRulesOrBuilder
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;- Specified by:
getPrecedenceRulesOrBuilderin interfaceShipmentModelOrBuilder
-
getPrecedenceRulesOrBuilderList
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;- Specified by:
getPrecedenceRulesOrBuilderListin interfaceShipmentModelOrBuilder
-
addPrecedenceRulesBuilder
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
addPrecedenceRulesBuilder
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
getPrecedenceRulesBuilderList
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14; -
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:
getBreakRulesListin interfaceShipmentModelOrBuilder
-
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:
getBreakRulesCountin interfaceShipmentModelOrBuilder
-
getBreakRules
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:
getBreakRulesin interfaceShipmentModelOrBuilder
-
setBreakRules
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]; -
setBreakRules
@Deprecated public ShipmentModel.Builder setBreakRules(int index, ShipmentModel.BreakRule.Builder builderForValue) 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]; -
addBreakRules
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]; -
addBreakRules
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]; -
addBreakRules
@Deprecated public ShipmentModel.Builder addBreakRules(ShipmentModel.BreakRule.Builder builderForValue) 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]; -
addBreakRules
@Deprecated public ShipmentModel.Builder addBreakRules(int index, ShipmentModel.BreakRule.Builder builderForValue) 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]; -
addAllBreakRules
@Deprecated public ShipmentModel.Builder addAllBreakRules(Iterable<? extends ShipmentModel.BreakRule> values) 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]; -
clearBreakRules
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]; -
removeBreakRules
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]; -
getBreakRulesBuilder
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]; -
getBreakRulesOrBuilder
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:
getBreakRulesOrBuilderin interfaceShipmentModelOrBuilder
-
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:
getBreakRulesOrBuilderListin interfaceShipmentModelOrBuilder
-
addBreakRulesBuilder
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]; -
addBreakRulesBuilder
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]; -
getBreakRulesBuilderList
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];
-