Package com.google.cloud.optimization.v1
Class InjectedSolutionConstraint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
- com.google.cloud.optimization.v1.InjectedSolutionConstraint.Builder
-
- All Implemented Interfaces:
InjectedSolutionConstraintOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InjectedSolutionConstraint
public static final class InjectedSolutionConstraint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder> implements InjectedSolutionConstraintOrBuilder
Solution injected in the request including information about which visits must be constrained and how they must be constrained.
Protobuf typegoogle.cloud.optimization.v1.InjectedSolutionConstraint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectedSolutionConstraint.BuilderaddAllConstraintRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation> values)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderaddAllRoutes(Iterable<? extends ShipmentRoute> values)Routes of the solution to inject.InjectedSolutionConstraint.BuilderaddAllSkippedShipments(Iterable<? extends SkippedShipment> values)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuilderaddConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderaddConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderaddConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation value)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderaddConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddConstraintRelaxationsBuilder()For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddConstraintRelaxationsBuilder(int index)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InjectedSolutionConstraint.BuilderaddRoutes(int index, ShipmentRoute value)Routes of the solution to inject.InjectedSolutionConstraint.BuilderaddRoutes(int index, ShipmentRoute.Builder builderForValue)Routes of the solution to inject.InjectedSolutionConstraint.BuilderaddRoutes(ShipmentRoute value)Routes of the solution to inject.InjectedSolutionConstraint.BuilderaddRoutes(ShipmentRoute.Builder builderForValue)Routes of the solution to inject.ShipmentRoute.BuilderaddRoutesBuilder()Routes of the solution to inject.ShipmentRoute.BuilderaddRoutesBuilder(int index)Routes of the solution to inject.InjectedSolutionConstraint.BuilderaddSkippedShipments(int index, SkippedShipment value)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuilderaddSkippedShipments(int index, SkippedShipment.Builder builderForValue)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuilderaddSkippedShipments(SkippedShipment value)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuilderaddSkippedShipments(SkippedShipment.Builder builderForValue)Skipped shipments of the solution to inject.SkippedShipment.BuilderaddSkippedShipmentsBuilder()Skipped shipments of the solution to inject.SkippedShipment.BuilderaddSkippedShipmentsBuilder(int index)Skipped shipments of the solution to inject.InjectedSolutionConstraintbuild()InjectedSolutionConstraintbuildPartial()InjectedSolutionConstraint.Builderclear()InjectedSolutionConstraint.BuilderclearConstraintRelaxations()For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InjectedSolutionConstraint.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InjectedSolutionConstraint.BuilderclearRoutes()Routes of the solution to inject.InjectedSolutionConstraint.BuilderclearSkippedShipments()Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builderclone()InjectedSolutionConstraint.ConstraintRelaxationgetConstraintRelaxations(int index)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxation.BuildergetConstraintRelaxationsBuilder(int index)For zero or more groups of vehicles, specifies when and how much to relax constraints.List<InjectedSolutionConstraint.ConstraintRelaxation.Builder>getConstraintRelaxationsBuilderList()For zero or more groups of vehicles, specifies when and how much to relax constraints.intgetConstraintRelaxationsCount()For zero or more groups of vehicles, specifies when and how much to relax constraints.List<InjectedSolutionConstraint.ConstraintRelaxation>getConstraintRelaxationsList()For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxationOrBuildergetConstraintRelaxationsOrBuilder(int index)For zero or more groups of vehicles, specifies when and how much to relax constraints.List<? extends InjectedSolutionConstraint.ConstraintRelaxationOrBuilder>getConstraintRelaxationsOrBuilderList()For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraintgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ShipmentRoutegetRoutes(int index)Routes of the solution to inject.ShipmentRoute.BuildergetRoutesBuilder(int index)Routes of the solution to inject.List<ShipmentRoute.Builder>getRoutesBuilderList()Routes of the solution to inject.intgetRoutesCount()Routes of the solution to inject.List<ShipmentRoute>getRoutesList()Routes of the solution to inject.ShipmentRouteOrBuildergetRoutesOrBuilder(int index)Routes of the solution to inject.List<? extends ShipmentRouteOrBuilder>getRoutesOrBuilderList()Routes of the solution to inject.SkippedShipmentgetSkippedShipments(int index)Skipped shipments of the solution to inject.SkippedShipment.BuildergetSkippedShipmentsBuilder(int index)Skipped shipments of the solution to inject.List<SkippedShipment.Builder>getSkippedShipmentsBuilderList()Skipped shipments of the solution to inject.intgetSkippedShipmentsCount()Skipped shipments of the solution to inject.List<SkippedShipment>getSkippedShipmentsList()Skipped shipments of the solution to inject.SkippedShipmentOrBuildergetSkippedShipmentsOrBuilder(int index)Skipped shipments of the solution to inject.List<? extends SkippedShipmentOrBuilder>getSkippedShipmentsOrBuilderList()Skipped shipments of the solution to inject.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InjectedSolutionConstraint.BuildermergeFrom(InjectedSolutionConstraint other)InjectedSolutionConstraint.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InjectedSolutionConstraint.BuildermergeFrom(com.google.protobuf.Message other)InjectedSolutionConstraint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InjectedSolutionConstraint.BuilderremoveConstraintRelaxations(int index)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuilderremoveRoutes(int index)Routes of the solution to inject.InjectedSolutionConstraint.BuilderremoveSkippedShipments(int index)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuildersetConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuildersetConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InjectedSolutionConstraint.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InjectedSolutionConstraint.BuildersetRoutes(int index, ShipmentRoute value)Routes of the solution to inject.InjectedSolutionConstraint.BuildersetRoutes(int index, ShipmentRoute.Builder builderForValue)Routes of the solution to inject.InjectedSolutionConstraint.BuildersetSkippedShipments(int index, SkippedShipment value)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuildersetSkippedShipments(int index, SkippedShipment.Builder builderForValue)Skipped shipments of the solution to inject.InjectedSolutionConstraint.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
clear
public InjectedSolutionConstraint.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
getDefaultInstanceForType
public InjectedSolutionConstraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InjectedSolutionConstraint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InjectedSolutionConstraint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InjectedSolutionConstraint.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
setField
public InjectedSolutionConstraint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
clearField
public InjectedSolutionConstraint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
clearOneof
public InjectedSolutionConstraint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
setRepeatedField
public InjectedSolutionConstraint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
addRepeatedField
public InjectedSolutionConstraint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
mergeFrom
public InjectedSolutionConstraint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InjectedSolutionConstraint.Builder>
-
mergeFrom
public InjectedSolutionConstraint.Builder mergeFrom(InjectedSolutionConstraint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
mergeFrom
public InjectedSolutionConstraint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InjectedSolutionConstraint.Builder>- Throws:
IOException
-
getRoutesList
public List<ShipmentRoute> getRoutesList()
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;- Specified by:
getRoutesListin interfaceInjectedSolutionConstraintOrBuilder
-
getRoutesCount
public int getRoutesCount()
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;- Specified by:
getRoutesCountin interfaceInjectedSolutionConstraintOrBuilder
-
getRoutes
public ShipmentRoute getRoutes(int index)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;- Specified by:
getRoutesin interfaceInjectedSolutionConstraintOrBuilder
-
setRoutes
public InjectedSolutionConstraint.Builder setRoutes(int index, ShipmentRoute value)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
setRoutes
public InjectedSolutionConstraint.Builder setRoutes(int index, ShipmentRoute.Builder builderForValue)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
addRoutes
public InjectedSolutionConstraint.Builder addRoutes(ShipmentRoute value)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
addRoutes
public InjectedSolutionConstraint.Builder addRoutes(int index, ShipmentRoute value)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
addRoutes
public InjectedSolutionConstraint.Builder addRoutes(ShipmentRoute.Builder builderForValue)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
addRoutes
public InjectedSolutionConstraint.Builder addRoutes(int index, ShipmentRoute.Builder builderForValue)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
addAllRoutes
public InjectedSolutionConstraint.Builder addAllRoutes(Iterable<? extends ShipmentRoute> values)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
clearRoutes
public InjectedSolutionConstraint.Builder clearRoutes()
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
removeRoutes
public InjectedSolutionConstraint.Builder removeRoutes(int index)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
getRoutesBuilder
public ShipmentRoute.Builder getRoutesBuilder(int index)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
getRoutesOrBuilder
public ShipmentRouteOrBuilder getRoutesOrBuilder(int index)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;- Specified by:
getRoutesOrBuilderin interfaceInjectedSolutionConstraintOrBuilder
-
getRoutesOrBuilderList
public List<? extends ShipmentRouteOrBuilder> getRoutesOrBuilderList()
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;- Specified by:
getRoutesOrBuilderListin interfaceInjectedSolutionConstraintOrBuilder
-
addRoutesBuilder
public ShipmentRoute.Builder addRoutesBuilder()
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
addRoutesBuilder
public ShipmentRoute.Builder addRoutesBuilder(int index)
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
getRoutesBuilderList
public List<ShipmentRoute.Builder> getRoutesBuilderList()
Routes of the solution to inject. Some routes may be omitted from the original solution. The routes and skipped shipments must satisfy the basic validity assumptions listed for `injected_first_solution_routes`.
repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
-
getSkippedShipmentsList
public List<SkippedShipment> getSkippedShipmentsList()
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;- Specified by:
getSkippedShipmentsListin interfaceInjectedSolutionConstraintOrBuilder
-
getSkippedShipmentsCount
public int getSkippedShipmentsCount()
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;- Specified by:
getSkippedShipmentsCountin interfaceInjectedSolutionConstraintOrBuilder
-
getSkippedShipments
public SkippedShipment getSkippedShipments(int index)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;- Specified by:
getSkippedShipmentsin interfaceInjectedSolutionConstraintOrBuilder
-
setSkippedShipments
public InjectedSolutionConstraint.Builder setSkippedShipments(int index, SkippedShipment value)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
setSkippedShipments
public InjectedSolutionConstraint.Builder setSkippedShipments(int index, SkippedShipment.Builder builderForValue)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
addSkippedShipments
public InjectedSolutionConstraint.Builder addSkippedShipments(SkippedShipment value)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
addSkippedShipments
public InjectedSolutionConstraint.Builder addSkippedShipments(int index, SkippedShipment value)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
addSkippedShipments
public InjectedSolutionConstraint.Builder addSkippedShipments(SkippedShipment.Builder builderForValue)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
addSkippedShipments
public InjectedSolutionConstraint.Builder addSkippedShipments(int index, SkippedShipment.Builder builderForValue)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
addAllSkippedShipments
public InjectedSolutionConstraint.Builder addAllSkippedShipments(Iterable<? extends SkippedShipment> values)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
clearSkippedShipments
public InjectedSolutionConstraint.Builder clearSkippedShipments()
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
removeSkippedShipments
public InjectedSolutionConstraint.Builder removeSkippedShipments(int index)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
getSkippedShipmentsBuilder
public SkippedShipment.Builder getSkippedShipmentsBuilder(int index)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
getSkippedShipmentsOrBuilder
public SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;- Specified by:
getSkippedShipmentsOrBuilderin interfaceInjectedSolutionConstraintOrBuilder
-
getSkippedShipmentsOrBuilderList
public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;- Specified by:
getSkippedShipmentsOrBuilderListin interfaceInjectedSolutionConstraintOrBuilder
-
addSkippedShipmentsBuilder
public SkippedShipment.Builder addSkippedShipmentsBuilder()
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
addSkippedShipmentsBuilder
public SkippedShipment.Builder addSkippedShipmentsBuilder(int index)
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
getSkippedShipmentsBuilderList
public List<SkippedShipment.Builder> getSkippedShipmentsBuilderList()
Skipped shipments of the solution to inject. Some may be omitted from the original solution. See the `routes` field.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
-
getConstraintRelaxationsList
public List<InjectedSolutionConstraint.ConstraintRelaxation> getConstraintRelaxationsList()
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;- Specified by:
getConstraintRelaxationsListin interfaceInjectedSolutionConstraintOrBuilder
-
getConstraintRelaxationsCount
public int getConstraintRelaxationsCount()
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;- Specified by:
getConstraintRelaxationsCountin interfaceInjectedSolutionConstraintOrBuilder
-
getConstraintRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;- Specified by:
getConstraintRelaxationsin interfaceInjectedSolutionConstraintOrBuilder
-
setConstraintRelaxations
public InjectedSolutionConstraint.Builder setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
setConstraintRelaxations
public InjectedSolutionConstraint.Builder setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
addConstraintRelaxations
public InjectedSolutionConstraint.Builder addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation value)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
addConstraintRelaxations
public InjectedSolutionConstraint.Builder addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
addConstraintRelaxations
public InjectedSolutionConstraint.Builder addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
addConstraintRelaxations
public InjectedSolutionConstraint.Builder addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
addAllConstraintRelaxations
public InjectedSolutionConstraint.Builder addAllConstraintRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation> values)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
clearConstraintRelaxations
public InjectedSolutionConstraint.Builder clearConstraintRelaxations()
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
removeConstraintRelaxations
public InjectedSolutionConstraint.Builder removeConstraintRelaxations(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
getConstraintRelaxationsBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.Builder getConstraintRelaxationsBuilder(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
getConstraintRelaxationsOrBuilder
public InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;- Specified by:
getConstraintRelaxationsOrBuilderin interfaceInjectedSolutionConstraintOrBuilder
-
getConstraintRelaxationsOrBuilderList
public List<? extends InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> getConstraintRelaxationsOrBuilderList()
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;- Specified by:
getConstraintRelaxationsOrBuilderListin interfaceInjectedSolutionConstraintOrBuilder
-
addConstraintRelaxationsBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder()
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
addConstraintRelaxationsBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addConstraintRelaxationsBuilder(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
getConstraintRelaxationsBuilderList
public List<InjectedSolutionConstraint.ConstraintRelaxation.Builder> getConstraintRelaxationsBuilderList()
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
-
setUnknownFields
public final InjectedSolutionConstraint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
mergeUnknownFields
public final InjectedSolutionConstraint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
-