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.Builder
addAllConstraintRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation> values)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
addAllRoutes(Iterable<? extends ShipmentRoute> values)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
addAllSkippedShipments(Iterable<? extends SkippedShipment> values)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
addConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation value)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
addConstraintRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxation.Builder
addConstraintRelaxationsBuilder()
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxation.Builder
addConstraintRelaxationsBuilder(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InjectedSolutionConstraint.Builder
addRoutes(int index, ShipmentRoute value)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
addRoutes(int index, ShipmentRoute.Builder builderForValue)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
addRoutes(ShipmentRoute value)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
addRoutes(ShipmentRoute.Builder builderForValue)
Routes of the solution to inject.ShipmentRoute.Builder
addRoutesBuilder()
Routes of the solution to inject.ShipmentRoute.Builder
addRoutesBuilder(int index)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
addSkippedShipments(int index, SkippedShipment value)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
addSkippedShipments(int index, SkippedShipment.Builder builderForValue)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
addSkippedShipments(SkippedShipment value)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
addSkippedShipments(SkippedShipment.Builder builderForValue)
Skipped shipments of the solution to inject.SkippedShipment.Builder
addSkippedShipmentsBuilder()
Skipped shipments of the solution to inject.SkippedShipment.Builder
addSkippedShipmentsBuilder(int index)
Skipped shipments of the solution to inject.InjectedSolutionConstraint
build()
InjectedSolutionConstraint
buildPartial()
InjectedSolutionConstraint.Builder
clear()
InjectedSolutionConstraint.Builder
clearConstraintRelaxations()
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InjectedSolutionConstraint.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InjectedSolutionConstraint.Builder
clearRoutes()
Routes of the solution to inject.InjectedSolutionConstraint.Builder
clearSkippedShipments()
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
clone()
InjectedSolutionConstraint.ConstraintRelaxation
getConstraintRelaxations(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.ConstraintRelaxation.Builder
getConstraintRelaxationsBuilder(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.int
getConstraintRelaxationsCount()
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.ConstraintRelaxationOrBuilder
getConstraintRelaxationsOrBuilder(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.InjectedSolutionConstraint
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ShipmentRoute
getRoutes(int index)
Routes of the solution to inject.ShipmentRoute.Builder
getRoutesBuilder(int index)
Routes of the solution to inject.List<ShipmentRoute.Builder>
getRoutesBuilderList()
Routes of the solution to inject.int
getRoutesCount()
Routes of the solution to inject.List<ShipmentRoute>
getRoutesList()
Routes of the solution to inject.ShipmentRouteOrBuilder
getRoutesOrBuilder(int index)
Routes of the solution to inject.List<? extends ShipmentRouteOrBuilder>
getRoutesOrBuilderList()
Routes of the solution to inject.SkippedShipment
getSkippedShipments(int index)
Skipped shipments of the solution to inject.SkippedShipment.Builder
getSkippedShipmentsBuilder(int index)
Skipped shipments of the solution to inject.List<SkippedShipment.Builder>
getSkippedShipmentsBuilderList()
Skipped shipments of the solution to inject.int
getSkippedShipmentsCount()
Skipped shipments of the solution to inject.List<SkippedShipment>
getSkippedShipmentsList()
Skipped shipments of the solution to inject.SkippedShipmentOrBuilder
getSkippedShipmentsOrBuilder(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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
InjectedSolutionConstraint.Builder
mergeFrom(InjectedSolutionConstraint other)
InjectedSolutionConstraint.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InjectedSolutionConstraint.Builder
mergeFrom(com.google.protobuf.Message other)
InjectedSolutionConstraint.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InjectedSolutionConstraint.Builder
removeConstraintRelaxations(int index)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
removeRoutes(int index)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
removeSkippedShipments(int index)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation value)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
setConstraintRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Builder builderForValue)
For zero or more groups of vehicles, specifies when and how much to relax constraints.InjectedSolutionConstraint.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InjectedSolutionConstraint.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InjectedSolutionConstraint.Builder
setRoutes(int index, ShipmentRoute value)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
setRoutes(int index, ShipmentRoute.Builder builderForValue)
Routes of the solution to inject.InjectedSolutionConstraint.Builder
setSkippedShipments(int index, SkippedShipment value)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
setSkippedShipments(int index, SkippedShipment.Builder builderForValue)
Skipped shipments of the solution to inject.InjectedSolutionConstraint.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
clear
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
getDefaultInstanceForType
public InjectedSolutionConstraint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InjectedSolutionConstraint build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InjectedSolutionConstraint buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
setField
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
clearField
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
clearOneof
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
setRepeatedField
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
addRepeatedField
public InjectedSolutionConstraint.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<InjectedSolutionConstraint.Builder>
-
mergeFrom
public InjectedSolutionConstraint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InjectedSolutionConstraint.Builder>
-
mergeFrom
public InjectedSolutionConstraint.Builder mergeFrom(InjectedSolutionConstraint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getRoutesList
in 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:
getRoutesCount
in 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:
getRoutes
in 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:
getRoutesOrBuilder
in 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:
getRoutesOrBuilderList
in 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:
getSkippedShipmentsList
in 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:
getSkippedShipmentsCount
in 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:
getSkippedShipments
in 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:
getSkippedShipmentsOrBuilder
in 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:
getSkippedShipmentsOrBuilderList
in 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:
getConstraintRelaxationsList
in 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:
getConstraintRelaxationsCount
in 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:
getConstraintRelaxations
in 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:
getConstraintRelaxationsOrBuilder
in 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:
getConstraintRelaxationsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
mergeUnknownFields
public final InjectedSolutionConstraint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.Builder>
-
-