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.GeneratedMessageV3.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.GeneratedMessageV3.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 shipments
Protobuf typegoogle.cloud.optimization.v1.ShipmentModel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ShipmentModel.Builder
addAllBreakRules(Iterable<? extends ShipmentModel.BreakRule> values)
Deprecated.ShipmentModel.Builder
addAllDurationDistanceMatrices(Iterable<? extends ShipmentModel.DurationDistanceMatrix> values)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
addAllDurationDistanceMatrixDstTags(Iterable<String> values)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.ShipmentModel.Builder
addAllDurationDistanceMatrixSrcTags(Iterable<String> values)
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.ShipmentModel.Builder
addAllPrecedenceRules(Iterable<? extends ShipmentModel.PrecedenceRule> values)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
addAllShipments(Iterable<? extends Shipment> values)
Set of shipments which must be performed in the model.ShipmentModel.Builder
addAllShipmentTypeIncompatibilities(Iterable<? extends ShipmentTypeIncompatibility> values)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
addAllShipmentTypeRequirements(Iterable<? extends ShipmentTypeRequirement> values)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
addAllTransitionAttributes(Iterable<? extends TransitionAttributes> values)
Transition attributes added to the model.ShipmentModel.Builder
addAllVehicles(Iterable<? extends Vehicle> values)
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
addBreakRules(int index, ShipmentModel.BreakRule value)
Deprecated.ShipmentModel.Builder
addBreakRules(int index, ShipmentModel.BreakRule.Builder builderForValue)
Deprecated.ShipmentModel.Builder
addBreakRules(ShipmentModel.BreakRule value)
Deprecated.ShipmentModel.Builder
addBreakRules(ShipmentModel.BreakRule.Builder builderForValue)
Deprecated.ShipmentModel.BreakRule.Builder
addBreakRulesBuilder()
Deprecated.ShipmentModel.BreakRule.Builder
addBreakRulesBuilder(int index)
Deprecated.ShipmentModel.Builder
addDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix value)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
addDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix.Builder builderForValue)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
addDurationDistanceMatrices(ShipmentModel.DurationDistanceMatrix value)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
addDurationDistanceMatrices(ShipmentModel.DurationDistanceMatrix.Builder builderForValue)
Specifies duration and distance matrices used in the model.ShipmentModel.DurationDistanceMatrix.Builder
addDurationDistanceMatricesBuilder()
Specifies duration and distance matrices used in the model.ShipmentModel.DurationDistanceMatrix.Builder
addDurationDistanceMatricesBuilder(int index)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
addDurationDistanceMatrixDstTags(String value)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.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.ShipmentModel.Builder
addDurationDistanceMatrixSrcTags(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.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.ShipmentModel.Builder
addPrecedenceRules(int index, ShipmentModel.PrecedenceRule value)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
addPrecedenceRules(int index, ShipmentModel.PrecedenceRule.Builder builderForValue)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
addPrecedenceRules(ShipmentModel.PrecedenceRule value)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
addPrecedenceRules(ShipmentModel.PrecedenceRule.Builder builderForValue)
Set of precedence rules which must be enforced in the model.ShipmentModel.PrecedenceRule.Builder
addPrecedenceRulesBuilder()
Set of precedence rules which must be enforced in the model.ShipmentModel.PrecedenceRule.Builder
addPrecedenceRulesBuilder(int index)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentModel.Builder
addShipments(int index, Shipment value)
Set of shipments which must be performed in the model.ShipmentModel.Builder
addShipments(int index, Shipment.Builder builderForValue)
Set of shipments which must be performed in the model.ShipmentModel.Builder
addShipments(Shipment value)
Set of shipments which must be performed in the model.ShipmentModel.Builder
addShipments(Shipment.Builder builderForValue)
Set of shipments which must be performed in the model.Shipment.Builder
addShipmentsBuilder()
Set of shipments which must be performed in the model.Shipment.Builder
addShipmentsBuilder(int index)
Set of shipments which must be performed in the model.ShipmentModel.Builder
addShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility value)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
addShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility.Builder builderForValue)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
addShipmentTypeIncompatibilities(ShipmentTypeIncompatibility value)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
addShipmentTypeIncompatibilities(ShipmentTypeIncompatibility.Builder builderForValue)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeIncompatibility.Builder
addShipmentTypeIncompatibilitiesBuilder()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeIncompatibility.Builder
addShipmentTypeIncompatibilitiesBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
addShipmentTypeRequirements(int index, ShipmentTypeRequirement value)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
addShipmentTypeRequirements(int index, ShipmentTypeRequirement.Builder builderForValue)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
addShipmentTypeRequirements(ShipmentTypeRequirement value)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
addShipmentTypeRequirements(ShipmentTypeRequirement.Builder builderForValue)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentTypeRequirement.Builder
addShipmentTypeRequirementsBuilder()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentTypeRequirement.Builder
addShipmentTypeRequirementsBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
addTransitionAttributes(int index, TransitionAttributes value)
Transition attributes added to the model.ShipmentModel.Builder
addTransitionAttributes(int index, TransitionAttributes.Builder builderForValue)
Transition attributes added to the model.ShipmentModel.Builder
addTransitionAttributes(TransitionAttributes value)
Transition attributes added to the model.ShipmentModel.Builder
addTransitionAttributes(TransitionAttributes.Builder builderForValue)
Transition attributes added to the model.TransitionAttributes.Builder
addTransitionAttributesBuilder()
Transition attributes added to the model.TransitionAttributes.Builder
addTransitionAttributesBuilder(int index)
Transition attributes added to the model.ShipmentModel.Builder
addVehicles(int index, Vehicle value)
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
addVehicles(int index, Vehicle.Builder builderForValue)
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
addVehicles(Vehicle value)
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
addVehicles(Vehicle.Builder builderForValue)
Set of vehicles which can be used to perform visits.Vehicle.Builder
addVehiclesBuilder()
Set of vehicles which can be used to perform visits.Vehicle.Builder
addVehiclesBuilder(int index)
Set of vehicles which can be used to perform visits.ShipmentModel
build()
ShipmentModel
buildPartial()
ShipmentModel.Builder
clear()
ShipmentModel.Builder
clearBreakRules()
Deprecated.ShipmentModel.Builder
clearDurationDistanceMatrices()
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
clearDurationDistanceMatrixDstTags()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.ShipmentModel.Builder
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.ShipmentModel.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ShipmentModel.Builder
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.ShipmentModel.Builder
clearGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.ShipmentModel.Builder
clearGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid.ShipmentModel.Builder
clearMaxActiveVehicles()
Constrains the maximum number of active vehicles.ShipmentModel.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ShipmentModel.Builder
clearPrecedenceRules()
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
clearShipments()
Set of shipments which must be performed in the model.ShipmentModel.Builder
clearShipmentTypeIncompatibilities()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
clearShipmentTypeRequirements()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
clearTransitionAttributes()
Transition attributes added to the model.ShipmentModel.Builder
clearVehicles()
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
clone()
ShipmentModel.BreakRule
getBreakRules(int index)
Deprecated.ShipmentModel.BreakRule.Builder
getBreakRulesBuilder(int index)
Deprecated.List<ShipmentModel.BreakRule.Builder>
getBreakRulesBuilderList()
Deprecated.int
getBreakRulesCount()
Deprecated.List<ShipmentModel.BreakRule>
getBreakRulesList()
Deprecated.ShipmentModel.BreakRuleOrBuilder
getBreakRulesOrBuilder(int index)
Deprecated.List<? extends ShipmentModel.BreakRuleOrBuilder>
getBreakRulesOrBuilderList()
Deprecated.ShipmentModel
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ShipmentModel.DurationDistanceMatrix
getDurationDistanceMatrices(int index)
Specifies duration and distance matrices used in the model.ShipmentModel.DurationDistanceMatrix.Builder
getDurationDistanceMatricesBuilder(int index)
Specifies duration and distance matrices used in the model.List<ShipmentModel.DurationDistanceMatrix.Builder>
getDurationDistanceMatricesBuilderList()
Specifies duration and distance matrices used in the model.int
getDurationDistanceMatricesCount()
Specifies duration and distance matrices used in the model.List<ShipmentModel.DurationDistanceMatrix>
getDurationDistanceMatricesList()
Specifies duration and distance matrices used in the model.ShipmentModel.DurationDistanceMatrixOrBuilder
getDurationDistanceMatricesOrBuilder(int index)
Specifies duration and distance matrices used in the model.List<? extends ShipmentModel.DurationDistanceMatrixOrBuilder>
getDurationDistanceMatricesOrBuilderList()
Specifies duration and distance matrices used in the model.String
getDurationDistanceMatrixDstTags(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.com.google.protobuf.ByteString
getDurationDistanceMatrixDstTagsBytes(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.int
getDurationDistanceMatrixDstTagsCount()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.com.google.protobuf.ProtocolStringList
getDurationDistanceMatrixDstTagsList()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.String
getDurationDistanceMatrixSrcTags(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.com.google.protobuf.ByteString
getDurationDistanceMatrixSrcTagsBytes(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.int
getDurationDistanceMatrixSrcTagsCount()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.com.google.protobuf.ProtocolStringList
getDurationDistanceMatrixSrcTagsList()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i.double
getGlobalDurationCostPerHour()
The "global duration" of the overall plan is the difference between the earliest effective start time and the latest effective end time of all vehicles.com.google.protobuf.Timestamp
getGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.com.google.protobuf.Timestamp.Builder
getGlobalEndTimeBuilder()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.com.google.protobuf.TimestampOrBuilder
getGlobalEndTimeOrBuilder()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.com.google.protobuf.Timestamp
getGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid.com.google.protobuf.Timestamp.Builder
getGlobalStartTimeBuilder()
Global start and end time of the model: no times outside of this range can be considered valid.com.google.protobuf.TimestampOrBuilder
getGlobalStartTimeOrBuilder()
Global start and end time of the model: no times outside of this range can be considered valid.int
getMaxActiveVehicles()
Constrains the maximum number of active vehicles.ShipmentModel.PrecedenceRule
getPrecedenceRules(int index)
Set of precedence rules which must be enforced in the model.ShipmentModel.PrecedenceRule.Builder
getPrecedenceRulesBuilder(int index)
Set of precedence rules which must be enforced in the model.List<ShipmentModel.PrecedenceRule.Builder>
getPrecedenceRulesBuilderList()
Set of precedence rules which must be enforced in the model.int
getPrecedenceRulesCount()
Set of precedence rules which must be enforced in the model.List<ShipmentModel.PrecedenceRule>
getPrecedenceRulesList()
Set of precedence rules which must be enforced in the model.ShipmentModel.PrecedenceRuleOrBuilder
getPrecedenceRulesOrBuilder(int index)
Set of precedence rules which must be enforced in the model.List<? extends ShipmentModel.PrecedenceRuleOrBuilder>
getPrecedenceRulesOrBuilderList()
Set of precedence rules which must be enforced in the model.Shipment
getShipments(int index)
Set of shipments which must be performed in the model.Shipment.Builder
getShipmentsBuilder(int index)
Set of shipments which must be performed in the model.List<Shipment.Builder>
getShipmentsBuilderList()
Set of shipments which must be performed in the model.int
getShipmentsCount()
Set of shipments which must be performed in the model.List<Shipment>
getShipmentsList()
Set of shipments which must be performed in the model.ShipmentOrBuilder
getShipmentsOrBuilder(int index)
Set of shipments which must be performed in the model.List<? extends ShipmentOrBuilder>
getShipmentsOrBuilderList()
Set of shipments which must be performed in the model.ShipmentTypeIncompatibility
getShipmentTypeIncompatibilities(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeIncompatibility.Builder
getShipmentTypeIncompatibilitiesBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).List<ShipmentTypeIncompatibility.Builder>
getShipmentTypeIncompatibilitiesBuilderList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).int
getShipmentTypeIncompatibilitiesCount()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).List<ShipmentTypeIncompatibility>
getShipmentTypeIncompatibilitiesList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeIncompatibilityOrBuilder
getShipmentTypeIncompatibilitiesOrBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).List<? extends ShipmentTypeIncompatibilityOrBuilder>
getShipmentTypeIncompatibilitiesOrBuilderList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentTypeRequirement
getShipmentTypeRequirements(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentTypeRequirement.Builder
getShipmentTypeRequirementsBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).List<ShipmentTypeRequirement.Builder>
getShipmentTypeRequirementsBuilderList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).int
getShipmentTypeRequirementsCount()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).List<ShipmentTypeRequirement>
getShipmentTypeRequirementsList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentTypeRequirementOrBuilder
getShipmentTypeRequirementsOrBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).List<? extends ShipmentTypeRequirementOrBuilder>
getShipmentTypeRequirementsOrBuilderList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).TransitionAttributes
getTransitionAttributes(int index)
Transition attributes added to the model.TransitionAttributes.Builder
getTransitionAttributesBuilder(int index)
Transition attributes added to the model.List<TransitionAttributes.Builder>
getTransitionAttributesBuilderList()
Transition attributes added to the model.int
getTransitionAttributesCount()
Transition attributes added to the model.List<TransitionAttributes>
getTransitionAttributesList()
Transition attributes added to the model.TransitionAttributesOrBuilder
getTransitionAttributesOrBuilder(int index)
Transition attributes added to the model.List<? extends TransitionAttributesOrBuilder>
getTransitionAttributesOrBuilderList()
Transition attributes added to the model.Vehicle
getVehicles(int index)
Set of vehicles which can be used to perform visits.Vehicle.Builder
getVehiclesBuilder(int index)
Set of vehicles which can be used to perform visits.List<Vehicle.Builder>
getVehiclesBuilderList()
Set of vehicles which can be used to perform visits.int
getVehiclesCount()
Set of vehicles which can be used to perform visits.List<Vehicle>
getVehiclesList()
Set of vehicles which can be used to perform visits.VehicleOrBuilder
getVehiclesOrBuilder(int index)
Set of vehicles which can be used to perform visits.List<? extends VehicleOrBuilder>
getVehiclesOrBuilderList()
Set of vehicles which can be used to perform visits.boolean
hasGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e.boolean
hasGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid.boolean
hasMaxActiveVehicles()
Constrains the maximum number of active vehicles.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ShipmentModel.Builder
mergeFrom(ShipmentModel other)
ShipmentModel.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ShipmentModel.Builder
mergeFrom(com.google.protobuf.Message other)
ShipmentModel.Builder
mergeGlobalEndTime(com.google.protobuf.Timestamp value)
If unset, 00:00:00 UTC, January 1, 1971 (i.e.ShipmentModel.Builder
mergeGlobalStartTime(com.google.protobuf.Timestamp value)
Global start and end time of the model: no times outside of this range can be considered valid.ShipmentModel.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentModel.Builder
removeBreakRules(int index)
Deprecated.ShipmentModel.Builder
removeDurationDistanceMatrices(int index)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
removePrecedenceRules(int index)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
removeShipments(int index)
Set of shipments which must be performed in the model.ShipmentModel.Builder
removeShipmentTypeIncompatibilities(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
removeShipmentTypeRequirements(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
removeTransitionAttributes(int index)
Transition attributes added to the model.ShipmentModel.Builder
removeVehicles(int index)
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
setBreakRules(int index, ShipmentModel.BreakRule value)
Deprecated.ShipmentModel.Builder
setBreakRules(int index, ShipmentModel.BreakRule.Builder builderForValue)
Deprecated.ShipmentModel.Builder
setDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix value)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
setDurationDistanceMatrices(int index, ShipmentModel.DurationDistanceMatrix.Builder builderForValue)
Specifies duration and distance matrices used in the model.ShipmentModel.Builder
setDurationDistanceMatrixDstTags(int index, String value)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp.ShipmentModel.Builder
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.ShipmentModel.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ShipmentModel.Builder
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.ShipmentModel.Builder
setGlobalEndTime(com.google.protobuf.Timestamp value)
If unset, 00:00:00 UTC, January 1, 1971 (i.e.ShipmentModel.Builder
setGlobalEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
If unset, 00:00:00 UTC, January 1, 1971 (i.e.ShipmentModel.Builder
setGlobalStartTime(com.google.protobuf.Timestamp value)
Global start and end time of the model: no times outside of this range can be considered valid.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.ShipmentModel.Builder
setMaxActiveVehicles(int value)
Constrains the maximum number of active vehicles.ShipmentModel.Builder
setPrecedenceRules(int index, ShipmentModel.PrecedenceRule value)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
setPrecedenceRules(int index, ShipmentModel.PrecedenceRule.Builder builderForValue)
Set of precedence rules which must be enforced in the model.ShipmentModel.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ShipmentModel.Builder
setShipments(int index, Shipment value)
Set of shipments which must be performed in the model.ShipmentModel.Builder
setShipments(int index, Shipment.Builder builderForValue)
Set of shipments which must be performed in the model.ShipmentModel.Builder
setShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility value)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
setShipmentTypeIncompatibilities(int index, ShipmentTypeIncompatibility.Builder builderForValue)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).ShipmentModel.Builder
setShipmentTypeRequirements(int index, ShipmentTypeRequirement value)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
setShipmentTypeRequirements(int index, ShipmentTypeRequirement.Builder builderForValue)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).ShipmentModel.Builder
setTransitionAttributes(int index, TransitionAttributes value)
Transition attributes added to the model.ShipmentModel.Builder
setTransitionAttributes(int index, TransitionAttributes.Builder builderForValue)
Transition attributes added to the model.ShipmentModel.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ShipmentModel.Builder
setVehicles(int index, Vehicle value)
Set of vehicles which can be used to perform visits.ShipmentModel.Builder
setVehicles(int index, Vehicle.Builder builderForValue)
Set of vehicles which can be used to perform visits.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
clear
public ShipmentModel.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
getDefaultInstanceForType
public ShipmentModel getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ShipmentModel build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ShipmentModel buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ShipmentModel.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
setField
public ShipmentModel.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
clearField
public ShipmentModel.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
clearOneof
public ShipmentModel.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
setRepeatedField
public ShipmentModel.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
addRepeatedField
public ShipmentModel.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
mergeFrom
public ShipmentModel.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ShipmentModel.Builder>
-
mergeFrom
public ShipmentModel.Builder mergeFrom(ShipmentModel other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
mergeFrom
public ShipmentModel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ShipmentModel.Builder>
- Throws:
IOException
-
getShipmentsList
public List<Shipment> getShipmentsList()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsList
in interfaceShipmentModelOrBuilder
-
getShipmentsCount
public int getShipmentsCount()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsCount
in interfaceShipmentModelOrBuilder
-
getShipments
public Shipment getShipments(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipments
in interfaceShipmentModelOrBuilder
-
setShipments
public ShipmentModel.Builder setShipments(int index, Shipment value)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
setShipments
public ShipmentModel.Builder setShipments(int index, Shipment.Builder builderForValue)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
addShipments
public ShipmentModel.Builder addShipments(Shipment value)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
addShipments
public ShipmentModel.Builder addShipments(int index, Shipment value)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
addShipments
public ShipmentModel.Builder addShipments(Shipment.Builder builderForValue)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
addShipments
public ShipmentModel.Builder addShipments(int index, Shipment.Builder builderForValue)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
addAllShipments
public ShipmentModel.Builder addAllShipments(Iterable<? extends Shipment> values)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
clearShipments
public ShipmentModel.Builder clearShipments()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
removeShipments
public ShipmentModel.Builder removeShipments(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
getShipmentsBuilder
public Shipment.Builder getShipmentsBuilder(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
getShipmentsOrBuilder
public ShipmentOrBuilder getShipmentsOrBuilder(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsOrBuilder
in interfaceShipmentModelOrBuilder
-
getShipmentsOrBuilderList
public List<? extends ShipmentOrBuilder> getShipmentsOrBuilderList()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
- Specified by:
getShipmentsOrBuilderList
in interfaceShipmentModelOrBuilder
-
addShipmentsBuilder
public Shipment.Builder addShipmentsBuilder()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
addShipmentsBuilder
public Shipment.Builder addShipmentsBuilder(int index)
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
getShipmentsBuilderList
public List<Shipment.Builder> getShipmentsBuilderList()
Set of shipments which must be performed in the model.
repeated .google.cloud.optimization.v1.Shipment shipments = 1;
-
getVehiclesList
public List<Vehicle> getVehiclesList()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesList
in interfaceShipmentModelOrBuilder
-
getVehiclesCount
public int getVehiclesCount()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesCount
in interfaceShipmentModelOrBuilder
-
getVehicles
public Vehicle getVehicles(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehicles
in interfaceShipmentModelOrBuilder
-
setVehicles
public ShipmentModel.Builder setVehicles(int index, Vehicle value)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
setVehicles
public ShipmentModel.Builder setVehicles(int index, Vehicle.Builder builderForValue)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
addVehicles
public ShipmentModel.Builder addVehicles(Vehicle value)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
addVehicles
public ShipmentModel.Builder addVehicles(int index, Vehicle value)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
addVehicles
public ShipmentModel.Builder addVehicles(Vehicle.Builder builderForValue)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
addVehicles
public ShipmentModel.Builder addVehicles(int index, Vehicle.Builder builderForValue)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
addAllVehicles
public ShipmentModel.Builder addAllVehicles(Iterable<? extends Vehicle> values)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
clearVehicles
public ShipmentModel.Builder clearVehicles()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
removeVehicles
public ShipmentModel.Builder removeVehicles(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
getVehiclesBuilder
public Vehicle.Builder getVehiclesBuilder(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
getVehiclesOrBuilder
public VehicleOrBuilder getVehiclesOrBuilder(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesOrBuilder
in interfaceShipmentModelOrBuilder
-
getVehiclesOrBuilderList
public List<? extends VehicleOrBuilder> getVehiclesOrBuilderList()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
- Specified by:
getVehiclesOrBuilderList
in interfaceShipmentModelOrBuilder
-
addVehiclesBuilder
public Vehicle.Builder addVehiclesBuilder()
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
addVehiclesBuilder
public Vehicle.Builder addVehiclesBuilder(int index)
Set of vehicles which can be used to perform visits.
repeated .google.cloud.optimization.v1.Vehicle vehicles = 2;
-
getVehiclesBuilderList
public List<Vehicle.Builder> 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:
hasMaxActiveVehicles
in interfaceShipmentModelOrBuilder
- Returns:
- Whether the maxActiveVehicles field is set.
-
getMaxActiveVehicles
public int getMaxActiveVehicles()
Constrains the maximum number of active vehicles. A vehicle is active if its route performs at least one shipment. This can be used to limit the number of routes in the case where there are fewer drivers than vehicles and that the fleet of vehicles is heterogeneous. The optimization will then select the best subset of vehicles to use. Must be strictly positive.
optional int32 max_active_vehicles = 4;
- Specified by:
getMaxActiveVehicles
in interfaceShipmentModelOrBuilder
- Returns:
- The maxActiveVehicles.
-
setMaxActiveVehicles
public ShipmentModel.Builder setMaxActiveVehicles(int value)
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
public ShipmentModel.Builder 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:
hasGlobalStartTime
in interfaceShipmentModelOrBuilder
- Returns:
- Whether the globalStartTime field is set.
-
getGlobalStartTime
public com.google.protobuf.Timestamp getGlobalStartTime()
Global start and end time of the model: no times outside of this range can be considered valid. The model's time span must be less than a year, i.e. the `global_end_time` and the `global_start_time` must be within 31536000 seconds of each other. When using `cost_per_*hour` fields, you might want to set this window to a smaller interval to increase performance (eg. if you model a single day, you should set the global time limits to that day). If unset, 00:00:00 UTC, January 1, 1970 (i.e. seconds: 0, nanos: 0) is used as default.
.google.protobuf.Timestamp global_start_time = 5;
- Specified by:
getGlobalStartTime
in interfaceShipmentModelOrBuilder
- Returns:
- The globalStartTime.
-
setGlobalStartTime
public ShipmentModel.Builder setGlobalStartTime(com.google.protobuf.Timestamp value)
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
public ShipmentModel.Builder mergeGlobalStartTime(com.google.protobuf.Timestamp value)
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
public ShipmentModel.Builder 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:
getGlobalStartTimeOrBuilder
in interfaceShipmentModelOrBuilder
-
hasGlobalEndTime
public boolean hasGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.
.google.protobuf.Timestamp global_end_time = 6;
- Specified by:
hasGlobalEndTime
in interfaceShipmentModelOrBuilder
- Returns:
- Whether the globalEndTime field is set.
-
getGlobalEndTime
public com.google.protobuf.Timestamp getGlobalEndTime()
If unset, 00:00:00 UTC, January 1, 1971 (i.e. seconds: 31536000, nanos: 0) is used as default.
.google.protobuf.Timestamp global_end_time = 6;
- Specified by:
getGlobalEndTime
in interfaceShipmentModelOrBuilder
- Returns:
- The globalEndTime.
-
setGlobalEndTime
public ShipmentModel.Builder 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.
.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
public ShipmentModel.Builder 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.
.google.protobuf.Timestamp global_end_time = 6;
-
clearGlobalEndTime
public ShipmentModel.Builder 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:
getGlobalEndTimeOrBuilder
in interfaceShipmentModelOrBuilder
-
getGlobalDurationCostPerHour
public double getGlobalDurationCostPerHour()
The "global duration" of the overall plan is the difference between the earliest effective start time and the latest effective end time of all vehicles. Users can assign a cost per hour to that quantity to try and optimize for earliest job completion, for example. This cost must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
double global_duration_cost_per_hour = 7;
- Specified by:
getGlobalDurationCostPerHour
in interfaceShipmentModelOrBuilder
- Returns:
- The globalDurationCostPerHour.
-
setGlobalDurationCostPerHour
public ShipmentModel.Builder 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. 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
public ShipmentModel.Builder 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
public List<ShipmentModel.DurationDistanceMatrix> getDurationDistanceMatricesList()
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesList
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatricesCount
public int getDurationDistanceMatricesCount()
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesCount
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatrices
public ShipmentModel.DurationDistanceMatrix getDurationDistanceMatrices(int index)
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatrices
in interfaceShipmentModelOrBuilder
-
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
public ShipmentModel.Builder 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
public ShipmentModel.Builder removeDurationDistanceMatrices(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;
-
getDurationDistanceMatricesBuilder
public ShipmentModel.DurationDistanceMatrix.Builder getDurationDistanceMatricesBuilder(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;
-
getDurationDistanceMatricesOrBuilder
public ShipmentModel.DurationDistanceMatrixOrBuilder getDurationDistanceMatricesOrBuilder(int index)
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesOrBuilder
in interfaceShipmentModelOrBuilder
-
getDurationDistanceMatricesOrBuilderList
public List<? extends ShipmentModel.DurationDistanceMatrixOrBuilder> getDurationDistanceMatricesOrBuilderList()
Specifies duration and distance matrices used in the model. If this field is empty, Google Maps or geodesic distances will be used instead, depending on the value of the `use_geodesic_distances` field. If it is not empty, `use_geodesic_distances` cannot be true and neither `duration_distance_matrix_src_tags` nor `duration_distance_matrix_dst_tags` can be empty. Usage examples: * There are two locations: locA and locB. * 1 vehicle starting its route at locA and ending it at locA. * 1 pickup visit request at locB. ``` model { vehicles { start_tags: "locA" end_tags: "locA" } shipments { pickups { tags: "locB" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_dst_tags: "locA" duration_distance_matrix_dst_tags: "locB" duration_distance_matrices { rows { # from: locA durations { seconds: 0 } meters: 0 # to: locA durations { seconds: 100 } meters: 1000 # to: locB } rows { # from: locB durations { seconds: 102 } meters: 990 # to: locA durations { seconds: 0 } meters: 0 # to: locB } } } ``` * There are three locations: locA, locB and locC. * 1 vehicle starting its route at locA and ending it at locB, using matrix "fast". * 1 vehicle starting its route at locB and ending it at locB, using matrix "slow". * 1 vehicle starting its route at locB and ending it at locB, using matrix "fast". * 1 pickup visit request at locC. ``` model { vehicles { start_tags: "locA" end_tags: "locB" start_tags: "fast" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "slow" } vehicles { start_tags: "locB" end_tags: "locB" start_tags: "fast" } shipments { pickups { tags: "locC" } } duration_distance_matrix_src_tags: "locA" duration_distance_matrix_src_tags: "locB" duration_distance_matrix_src_tags: "locC" duration_distance_matrix_dst_tags: "locB" duration_distance_matrix_dst_tags: "locC" duration_distance_matrices { vehicle_start_tag: "fast" rows { # from: locA durations { seconds: 1000 } meters: 2000 # to: locB durations { seconds: 600 } meters: 1000 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 700 } meters: 1200 # to: locC } rows { # from: locC durations { seconds: 702 } meters: 1190 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } duration_distance_matrices { vehicle_start_tag: "slow" rows { # from: locA durations { seconds: 1800 } meters: 2001 # to: locB durations { seconds: 900 } meters: 1002 # to: locC } rows { # from: locB durations { seconds: 0 } meters: 0 # to: locB durations { seconds: 1000 } meters: 1202 # to: locC } rows { # from: locC durations { seconds: 1001 } meters: 1195 # to: locB durations { seconds: 0 } meters: 0 # to: locC } } } ```
repeated .google.cloud.optimization.v1.ShipmentModel.DurationDistanceMatrix duration_distance_matrices = 8;
- Specified by:
getDurationDistanceMatricesOrBuilderList
in interfaceShipmentModelOrBuilder
-
addDurationDistanceMatricesBuilder
public ShipmentModel.DurationDistanceMatrix.Builder 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
public ShipmentModel.DurationDistanceMatrix.Builder addDurationDistanceMatricesBuilder(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;
-
getDurationDistanceMatricesBuilderList
public List<ShipmentModel.DurationDistanceMatrix.Builder> 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:
getDurationDistanceMatrixSrcTagsList
in interfaceShipmentModelOrBuilder
- Returns:
- A list containing the durationDistanceMatrixSrcTags.
-
getDurationDistanceMatrixSrcTagsCount
public int getDurationDistanceMatrixSrcTagsCount()
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTagsCount
in interfaceShipmentModelOrBuilder
- Returns:
- The count of durationDistanceMatrixSrcTags.
-
getDurationDistanceMatrixSrcTags
public String getDurationDistanceMatrixSrcTags(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTags
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The durationDistanceMatrixSrcTags at the given index.
-
getDurationDistanceMatrixSrcTagsBytes
public com.google.protobuf.ByteString getDurationDistanceMatrixSrcTagsBytes(int index)
Tags defining the sources of the duration and distance matrices; `duration_distance_matrices(i).rows(j)` defines durations and distances from visits with tag `duration_distance_matrix_src_tags(j)` to other visits in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_src_tags = 9;
- Specified by:
getDurationDistanceMatrixSrcTagsBytes
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the durationDistanceMatrixSrcTags at the given index.
-
setDurationDistanceMatrixSrcTags
public ShipmentModel.Builder 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. 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
public ShipmentModel.Builder addDurationDistanceMatrixSrcTags(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. 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
public ShipmentModel.Builder addAllDurationDistanceMatrixSrcTags(Iterable<String> values)
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
public ShipmentModel.Builder 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:
getDurationDistanceMatrixDstTagsList
in interfaceShipmentModelOrBuilder
- Returns:
- A list containing the durationDistanceMatrixDstTags.
-
getDurationDistanceMatrixDstTagsCount
public int getDurationDistanceMatrixDstTagsCount()
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTagsCount
in interfaceShipmentModelOrBuilder
- Returns:
- The count of durationDistanceMatrixDstTags.
-
getDurationDistanceMatrixDstTags
public String getDurationDistanceMatrixDstTags(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTags
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The durationDistanceMatrixDstTags at the given index.
-
getDurationDistanceMatrixDstTagsBytes
public com.google.protobuf.ByteString getDurationDistanceMatrixDstTagsBytes(int index)
Tags defining the destinations of the duration and distance matrices; `duration_distance_matrices(i).rows(j).durations(k)` (resp. `duration_distance_matrices(i).rows(j).meters(k))` defines the duration (resp. the distance) of the travel from visits with tag `duration_distance_matrix_src_tags(j)` to visits with tag `duration_distance_matrix_dst_tags(k)` in matrix i. Tags correspond to [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.Vehicle.start_tags]. A given `VisitRequest` or `Vehicle` must match exactly one tag in this field. Note that a `Vehicle`'s source, destination and matrix tags may be the same; similarly a `VisitRequest`'s source and destination tags may be the same. All tags must be different and cannot be empty strings. If this field is not empty, then `duration_distance_matrices` must not be empty.
repeated string duration_distance_matrix_dst_tags = 10;
- Specified by:
getDurationDistanceMatrixDstTagsBytes
in interfaceShipmentModelOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the durationDistanceMatrixDstTags at the given index.
-
setDurationDistanceMatrixDstTags
public ShipmentModel.Builder setDurationDistanceMatrixDstTags(int index, String 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:
index
- The index to set the value at.value
- The durationDistanceMatrixDstTags to set.- Returns:
- This builder for chaining.
-
addDurationDistanceMatrixDstTags
public ShipmentModel.Builder addDurationDistanceMatrixDstTags(String 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 durationDistanceMatrixDstTags to add.- Returns:
- This builder for chaining.
-
addAllDurationDistanceMatrixDstTags
public ShipmentModel.Builder addAllDurationDistanceMatrixDstTags(Iterable<String> values)
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
public ShipmentModel.Builder 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
public List<TransitionAttributes> getTransitionAttributesList()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesList
in interfaceShipmentModelOrBuilder
-
getTransitionAttributesCount
public int getTransitionAttributesCount()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesCount
in interfaceShipmentModelOrBuilder
-
getTransitionAttributes
public TransitionAttributes getTransitionAttributes(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributes
in interfaceShipmentModelOrBuilder
-
setTransitionAttributes
public ShipmentModel.Builder setTransitionAttributes(int index, TransitionAttributes value)
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
public ShipmentModel.Builder addTransitionAttributes(TransitionAttributes value)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
addTransitionAttributes
public ShipmentModel.Builder addTransitionAttributes(int index, TransitionAttributes value)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
addTransitionAttributes
public ShipmentModel.Builder addTransitionAttributes(TransitionAttributes.Builder builderForValue)
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
public ShipmentModel.Builder clearTransitionAttributes()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
removeTransitionAttributes
public ShipmentModel.Builder removeTransitionAttributes(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
getTransitionAttributesBuilder
public TransitionAttributes.Builder getTransitionAttributesBuilder(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
getTransitionAttributesOrBuilder
public TransitionAttributesOrBuilder getTransitionAttributesOrBuilder(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesOrBuilder
in interfaceShipmentModelOrBuilder
-
getTransitionAttributesOrBuilderList
public List<? extends TransitionAttributesOrBuilder> getTransitionAttributesOrBuilderList()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
- Specified by:
getTransitionAttributesOrBuilderList
in interfaceShipmentModelOrBuilder
-
addTransitionAttributesBuilder
public TransitionAttributes.Builder addTransitionAttributesBuilder()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
addTransitionAttributesBuilder
public TransitionAttributes.Builder addTransitionAttributesBuilder(int index)
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
getTransitionAttributesBuilderList
public List<TransitionAttributes.Builder> getTransitionAttributesBuilderList()
Transition attributes added to the model.
repeated .google.cloud.optimization.v1.TransitionAttributes transition_attributes = 11;
-
getShipmentTypeIncompatibilitiesList
public List<ShipmentTypeIncompatibility> getShipmentTypeIncompatibilitiesList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesList
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesCount
public int getShipmentTypeIncompatibilitiesCount()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesCount
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilities
public ShipmentTypeIncompatibility getShipmentTypeIncompatibilities(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilities
in interfaceShipmentModelOrBuilder
-
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
public ShipmentModel.Builder addShipmentTypeIncompatibilities(ShipmentTypeIncompatibility value)
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
public ShipmentModel.Builder clearShipmentTypeIncompatibilities()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
-
removeShipmentTypeIncompatibilities
public ShipmentModel.Builder removeShipmentTypeIncompatibilities(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
-
getShipmentTypeIncompatibilitiesBuilder
public ShipmentTypeIncompatibility.Builder getShipmentTypeIncompatibilitiesBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
-
getShipmentTypeIncompatibilitiesOrBuilder
public ShipmentTypeIncompatibilityOrBuilder getShipmentTypeIncompatibilitiesOrBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesOrBuilder
in interfaceShipmentModelOrBuilder
-
getShipmentTypeIncompatibilitiesOrBuilderList
public List<? extends ShipmentTypeIncompatibilityOrBuilder> getShipmentTypeIncompatibilitiesOrBuilderList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
- Specified by:
getShipmentTypeIncompatibilitiesOrBuilderList
in interfaceShipmentModelOrBuilder
-
addShipmentTypeIncompatibilitiesBuilder
public ShipmentTypeIncompatibility.Builder addShipmentTypeIncompatibilitiesBuilder()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
-
addShipmentTypeIncompatibilitiesBuilder
public ShipmentTypeIncompatibility.Builder addShipmentTypeIncompatibilitiesBuilder(int index)
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
-
getShipmentTypeIncompatibilitiesBuilderList
public List<ShipmentTypeIncompatibility.Builder> getShipmentTypeIncompatibilitiesBuilderList()
Sets of incompatible shipment_types (see `ShipmentTypeIncompatibility`).
repeated .google.cloud.optimization.v1.ShipmentTypeIncompatibility shipment_type_incompatibilities = 12;
-
getShipmentTypeRequirementsList
public List<ShipmentTypeRequirement> getShipmentTypeRequirementsList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsList
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsCount
public int getShipmentTypeRequirementsCount()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsCount
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirements
public ShipmentTypeRequirement getShipmentTypeRequirements(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirements
in interfaceShipmentModelOrBuilder
-
setShipmentTypeRequirements
public ShipmentModel.Builder setShipmentTypeRequirements(int index, ShipmentTypeRequirement value)
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
public ShipmentModel.Builder addShipmentTypeRequirements(ShipmentTypeRequirement value)
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 value)
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
public ShipmentModel.Builder clearShipmentTypeRequirements()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
-
removeShipmentTypeRequirements
public ShipmentModel.Builder removeShipmentTypeRequirements(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
-
getShipmentTypeRequirementsBuilder
public ShipmentTypeRequirement.Builder getShipmentTypeRequirementsBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
-
getShipmentTypeRequirementsOrBuilder
public ShipmentTypeRequirementOrBuilder getShipmentTypeRequirementsOrBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsOrBuilder
in interfaceShipmentModelOrBuilder
-
getShipmentTypeRequirementsOrBuilderList
public List<? extends ShipmentTypeRequirementOrBuilder> getShipmentTypeRequirementsOrBuilderList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
- Specified by:
getShipmentTypeRequirementsOrBuilderList
in interfaceShipmentModelOrBuilder
-
addShipmentTypeRequirementsBuilder
public ShipmentTypeRequirement.Builder addShipmentTypeRequirementsBuilder()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
-
addShipmentTypeRequirementsBuilder
public ShipmentTypeRequirement.Builder addShipmentTypeRequirementsBuilder(int index)
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
-
getShipmentTypeRequirementsBuilderList
public List<ShipmentTypeRequirement.Builder> getShipmentTypeRequirementsBuilderList()
Sets of `shipment_type` requirements (see `ShipmentTypeRequirement`).
repeated .google.cloud.optimization.v1.ShipmentTypeRequirement shipment_type_requirements = 13;
-
getPrecedenceRulesList
public List<ShipmentModel.PrecedenceRule> getPrecedenceRulesList()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesList
in interfaceShipmentModelOrBuilder
-
getPrecedenceRulesCount
public int getPrecedenceRulesCount()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesCount
in interfaceShipmentModelOrBuilder
-
getPrecedenceRules
public ShipmentModel.PrecedenceRule getPrecedenceRules(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRules
in interfaceShipmentModelOrBuilder
-
setPrecedenceRules
public ShipmentModel.Builder setPrecedenceRules(int index, ShipmentModel.PrecedenceRule value)
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
public ShipmentModel.Builder addPrecedenceRules(ShipmentModel.PrecedenceRule value)
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 value)
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
public ShipmentModel.Builder clearPrecedenceRules()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
-
removePrecedenceRules
public ShipmentModel.Builder removePrecedenceRules(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
-
getPrecedenceRulesBuilder
public ShipmentModel.PrecedenceRule.Builder getPrecedenceRulesBuilder(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
-
getPrecedenceRulesOrBuilder
public ShipmentModel.PrecedenceRuleOrBuilder getPrecedenceRulesOrBuilder(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesOrBuilder
in interfaceShipmentModelOrBuilder
-
getPrecedenceRulesOrBuilderList
public List<? extends ShipmentModel.PrecedenceRuleOrBuilder> getPrecedenceRulesOrBuilderList()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
- Specified by:
getPrecedenceRulesOrBuilderList
in interfaceShipmentModelOrBuilder
-
addPrecedenceRulesBuilder
public ShipmentModel.PrecedenceRule.Builder addPrecedenceRulesBuilder()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
-
addPrecedenceRulesBuilder
public ShipmentModel.PrecedenceRule.Builder addPrecedenceRulesBuilder(int index)
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
-
getPrecedenceRulesBuilderList
public List<ShipmentModel.PrecedenceRule.Builder> getPrecedenceRulesBuilderList()
Set of precedence rules which must be enforced in the model.
repeated .google.cloud.optimization.v1.ShipmentModel.PrecedenceRule precedence_rules = 14;
-
getBreakRulesList
@Deprecated public List<ShipmentModel.BreakRule> getBreakRulesList()
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesList
in interfaceShipmentModelOrBuilder
-
getBreakRulesCount
@Deprecated public int getBreakRulesCount()
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesCount
in interfaceShipmentModelOrBuilder
-
getBreakRules
@Deprecated public ShipmentModel.BreakRule getBreakRules(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRules
in interfaceShipmentModelOrBuilder
-
setBreakRules
@Deprecated public ShipmentModel.Builder setBreakRules(int index, ShipmentModel.BreakRule value)
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 public ShipmentModel.Builder addBreakRules(ShipmentModel.BreakRule value)
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 value)
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 public ShipmentModel.Builder 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 public ShipmentModel.Builder removeBreakRules(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
-
getBreakRulesBuilder
@Deprecated public ShipmentModel.BreakRule.Builder getBreakRulesBuilder(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
-
getBreakRulesOrBuilder
@Deprecated public ShipmentModel.BreakRuleOrBuilder getBreakRulesOrBuilder(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesOrBuilder
in interfaceShipmentModelOrBuilder
-
getBreakRulesOrBuilderList
@Deprecated public List<? extends ShipmentModel.BreakRuleOrBuilder> getBreakRulesOrBuilderList()
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
- Specified by:
getBreakRulesOrBuilderList
in interfaceShipmentModelOrBuilder
-
addBreakRulesBuilder
@Deprecated public ShipmentModel.BreakRule.Builder 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 public ShipmentModel.BreakRule.Builder addBreakRulesBuilder(int index)
Deprecated.Deprecated: No longer used. Set of break rules used in the model. Each vehicle specifies the `BreakRule` that applies to it via the [Vehicle.break_rule_indices][google.cloud.optimization.v1.Vehicle.break_rule_indices] field (which must be a singleton).
repeated .google.cloud.optimization.v1.ShipmentModel.BreakRule break_rules = 15 [deprecated = true];
-
getBreakRulesBuilderList
@Deprecated public List<ShipmentModel.BreakRule.Builder> 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];
-
setUnknownFields
public final ShipmentModel.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
mergeUnknownFields
public final ShipmentModel.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ShipmentModel.Builder>
-
-