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.GeneratedMessage.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.GeneratedMessage.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 type
google.cloud.optimization.v1.InjectedSolutionConstraint-
Method Summary
Modifier and TypeMethodDescriptionaddAllConstraintRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation> values) For zero or more groups of vehicles, specifies when and how much to relax constraints.addAllRoutes(Iterable<? extends ShipmentRoute> values) Routes of the solution to inject.addAllSkippedShipments(Iterable<? extends SkippedShipment> values) Skipped shipments of the solution to inject.addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value) For zero or more groups of vehicles, specifies when and how much to relax constraints.addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) For zero or more groups of vehicles, specifies when and how much to relax constraints.For zero or more groups of vehicles, specifies when and how much to relax constraints.For zero or more groups of vehicles, specifies when and how much to relax constraints.For zero or more groups of vehicles, specifies when and how much to relax constraints.addConstraintRelaxationsBuilder(int index) For zero or more groups of vehicles, specifies when and how much to relax constraints.addRoutes(int index, ShipmentRoute value) Routes of the solution to inject.addRoutes(int index, ShipmentRoute.Builder builderForValue) Routes of the solution to inject.addRoutes(ShipmentRoute value) Routes of the solution to inject.addRoutes(ShipmentRoute.Builder builderForValue) Routes of the solution to inject.Routes of the solution to inject.addRoutesBuilder(int index) Routes of the solution to inject.addSkippedShipments(int index, SkippedShipment value) Skipped shipments of the solution to inject.addSkippedShipments(int index, SkippedShipment.Builder builderForValue) Skipped shipments of the solution to inject.Skipped shipments of the solution to inject.addSkippedShipments(SkippedShipment.Builder builderForValue) Skipped shipments of the solution to inject.Skipped shipments of the solution to inject.addSkippedShipmentsBuilder(int index) Skipped shipments of the solution to inject.build()clear()For zero or more groups of vehicles, specifies when and how much to relax constraints.Routes of the solution to inject.Skipped shipments of the solution to inject.getConstraintRelaxations(int index) For zero or more groups of vehicles, specifies when and how much to relax constraints.getConstraintRelaxationsBuilder(int index) For zero or more groups of vehicles, specifies when and how much to relax constraints.For zero or more groups of vehicles, specifies when and how much to relax constraints.intFor zero or more groups of vehicles, specifies when and how much to relax constraints.For zero or more groups of vehicles, specifies when and how much to relax constraints.getConstraintRelaxationsOrBuilder(int index) For zero or more groups of vehicles, specifies when and how much to relax constraints.For zero or more groups of vehicles, specifies when and how much to relax constraints.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRoutes(int index) Routes of the solution to inject.getRoutesBuilder(int index) Routes of the solution to inject.Routes of the solution to inject.intRoutes of the solution to inject.Routes of the solution to inject.getRoutesOrBuilder(int index) Routes of the solution to inject.List<? extends ShipmentRouteOrBuilder>Routes of the solution to inject.getSkippedShipments(int index) Skipped shipments of the solution to inject.getSkippedShipmentsBuilder(int index) Skipped shipments of the solution to inject.Skipped shipments of the solution to inject.intSkipped shipments of the solution to inject.Skipped shipments of the solution to inject.getSkippedShipmentsOrBuilder(int index) Skipped shipments of the solution to inject.List<? extends SkippedShipmentOrBuilder>Skipped shipments of the solution to inject.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeConstraintRelaxations(int index) For zero or more groups of vehicles, specifies when and how much to relax constraints.removeRoutes(int index) Routes of the solution to inject.removeSkippedShipments(int index) Skipped shipments of the solution to inject.setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value) For zero or more groups of vehicles, specifies when and how much to relax constraints.setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue) For zero or more groups of vehicles, specifies when and how much to relax constraints.setRoutes(int index, ShipmentRoute value) Routes of the solution to inject.setRoutes(int index, ShipmentRoute.Builder builderForValue) Routes of the solution to inject.setSkippedShipments(int index, SkippedShipment value) Skipped shipments of the solution to inject.setSkippedShipments(int index, SkippedShipment.Builder builderForValue) Skipped shipments of the solution to inject.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InjectedSolutionConstraint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.Builder<InjectedSolutionConstraint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InjectedSolutionConstraint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
-