Package com.google.cloud.optimization.v1
Class InjectedSolutionConstraint.ConstraintRelaxation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
- com.google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Builder
-
- All Implemented Interfaces:
InjectedSolutionConstraint.ConstraintRelaxationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InjectedSolutionConstraint.ConstraintRelaxation
public static final class InjectedSolutionConstraint.ConstraintRelaxation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder> implements InjectedSolutionConstraint.ConstraintRelaxationOrBuilder
For a group of vehicles, specifies at what threshold(s) constraints on visits will be relaxed and to which level. Shipments listed in the `skipped_shipment` field are constrained to be skipped; i.e., they cannot be performed.
Protobuf typegoogle.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddAllRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation.Relaxation> values)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddAllVehicleIndices(Iterable<? extends Integer> values)Specifies the vehicle indices to which the visit constraint `relaxations` apply.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.BuilderaddRelaxationsBuilder()All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.BuilderaddRelaxationsBuilder(int index)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InjectedSolutionConstraint.ConstraintRelaxation.BuilderaddVehicleIndices(int value)Specifies the vehicle indices to which the visit constraint `relaxations` apply.InjectedSolutionConstraint.ConstraintRelaxationbuild()InjectedSolutionConstraint.ConstraintRelaxationbuildPartial()InjectedSolutionConstraint.ConstraintRelaxation.Builderclear()InjectedSolutionConstraint.ConstraintRelaxation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InjectedSolutionConstraint.ConstraintRelaxation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InjectedSolutionConstraint.ConstraintRelaxation.BuilderclearRelaxations()All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuilderclearVehicleIndices()Specifies the vehicle indices to which the visit constraint `relaxations` apply.InjectedSolutionConstraint.ConstraintRelaxation.Builderclone()InjectedSolutionConstraint.ConstraintRelaxationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InjectedSolutionConstraint.ConstraintRelaxation.RelaxationgetRelaxations(int index)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.BuildergetRelaxationsBuilder(int index)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.List<InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder>getRelaxationsBuilderList()All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.intgetRelaxationsCount()All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.List<InjectedSolutionConstraint.ConstraintRelaxation.Relaxation>getRelaxationsList()All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuildergetRelaxationsOrBuilder(int index)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.List<? extends InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder>getRelaxationsOrBuilderList()All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.intgetVehicleIndices(int index)Specifies the vehicle indices to which the visit constraint `relaxations` apply.intgetVehicleIndicesCount()Specifies the vehicle indices to which the visit constraint `relaxations` apply.List<Integer>getVehicleIndicesList()Specifies the vehicle indices to which the visit constraint `relaxations` apply.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InjectedSolutionConstraint.ConstraintRelaxation.BuildermergeFrom(InjectedSolutionConstraint.ConstraintRelaxation other)InjectedSolutionConstraint.ConstraintRelaxation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InjectedSolutionConstraint.ConstraintRelaxation.BuildermergeFrom(com.google.protobuf.Message other)InjectedSolutionConstraint.ConstraintRelaxation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InjectedSolutionConstraint.ConstraintRelaxation.BuilderremoveRelaxations(int index)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InjectedSolutionConstraint.ConstraintRelaxation.BuildersetRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuildersetRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue)All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.InjectedSolutionConstraint.ConstraintRelaxation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InjectedSolutionConstraint.ConstraintRelaxation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InjectedSolutionConstraint.ConstraintRelaxation.BuildersetVehicleIndices(int index, int value)Specifies the vehicle indices to which the visit constraint `relaxations` apply.-
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.ConstraintRelaxation.Builder>
-
clear
public InjectedSolutionConstraint.ConstraintRelaxation.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.ConstraintRelaxation.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.ConstraintRelaxation.Builder>
-
getDefaultInstanceForType
public InjectedSolutionConstraint.ConstraintRelaxation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InjectedSolutionConstraint.ConstraintRelaxation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InjectedSolutionConstraint.ConstraintRelaxation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InjectedSolutionConstraint.ConstraintRelaxation.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.ConstraintRelaxation.Builder>
-
setField
public InjectedSolutionConstraint.ConstraintRelaxation.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.ConstraintRelaxation.Builder>
-
clearField
public InjectedSolutionConstraint.ConstraintRelaxation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
clearOneof
public InjectedSolutionConstraint.ConstraintRelaxation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
setRepeatedField
public InjectedSolutionConstraint.ConstraintRelaxation.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.ConstraintRelaxation.Builder>
-
addRepeatedField
public InjectedSolutionConstraint.ConstraintRelaxation.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.ConstraintRelaxation.Builder>
-
mergeFrom
public InjectedSolutionConstraint.ConstraintRelaxation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
mergeFrom
public InjectedSolutionConstraint.ConstraintRelaxation.Builder mergeFrom(InjectedSolutionConstraint.ConstraintRelaxation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
mergeFrom
public InjectedSolutionConstraint.ConstraintRelaxation.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.ConstraintRelaxation.Builder>- Throws:
IOException
-
getRelaxationsList
public List<InjectedSolutionConstraint.ConstraintRelaxation.Relaxation> getRelaxationsList()
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;- Specified by:
getRelaxationsListin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder
-
getRelaxationsCount
public int getRelaxationsCount()
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;- Specified by:
getRelaxationsCountin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder
-
getRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Relaxation getRelaxations(int index)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;- Specified by:
getRelaxationsin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder
-
setRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder setRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
setRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder setRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
addRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
addRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation value)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
addRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addRelaxations(InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
addRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addRelaxations(int index, InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder builderForValue)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
addAllRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addAllRelaxations(Iterable<? extends InjectedSolutionConstraint.ConstraintRelaxation.Relaxation> values)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
clearRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder clearRelaxations()
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
removeRelaxations
public InjectedSolutionConstraint.ConstraintRelaxation.Builder removeRelaxations(int index)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
getRelaxationsBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder getRelaxationsBuilder(int index)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
getRelaxationsOrBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder getRelaxationsOrBuilder(int index)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;- Specified by:
getRelaxationsOrBuilderin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder
-
getRelaxationsOrBuilderList
public List<? extends InjectedSolutionConstraint.ConstraintRelaxation.RelaxationOrBuilder> getRelaxationsOrBuilderList()
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;- Specified by:
getRelaxationsOrBuilderListin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder
-
addRelaxationsBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder addRelaxationsBuilder()
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
addRelaxationsBuilder
public InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder addRelaxationsBuilder(int index)
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
getRelaxationsBuilderList
public List<InjectedSolutionConstraint.ConstraintRelaxation.Relaxation.Builder> getRelaxationsBuilderList()
All the visit constraint relaxations that will apply to visits on routes with vehicles in `vehicle_indices`.
repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation.Relaxation relaxations = 1;
-
getVehicleIndicesList
public List<Integer> getVehicleIndicesList()
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Specified by:
getVehicleIndicesListin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder- Returns:
- A list containing the vehicleIndices.
-
getVehicleIndicesCount
public int getVehicleIndicesCount()
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Specified by:
getVehicleIndicesCountin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder- Returns:
- The count of vehicleIndices.
-
getVehicleIndices
public int getVehicleIndices(int index)
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Specified by:
getVehicleIndicesin interfaceInjectedSolutionConstraint.ConstraintRelaxationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The vehicleIndices at the given index.
-
setVehicleIndices
public InjectedSolutionConstraint.ConstraintRelaxation.Builder setVehicleIndices(int index, int value)
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Parameters:
index- The index to set the value at.value- The vehicleIndices to set.- Returns:
- This builder for chaining.
-
addVehicleIndices
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addVehicleIndices(int value)
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Parameters:
value- The vehicleIndices to add.- Returns:
- This builder for chaining.
-
addAllVehicleIndices
public InjectedSolutionConstraint.ConstraintRelaxation.Builder addAllVehicleIndices(Iterable<? extends Integer> values)
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Parameters:
values- The vehicleIndices to add.- Returns:
- This builder for chaining.
-
clearVehicleIndices
public InjectedSolutionConstraint.ConstraintRelaxation.Builder clearVehicleIndices()
Specifies the vehicle indices to which the visit constraint `relaxations` apply. If empty, this is considered the default and the `relaxations` apply to all vehicles that are not specified in other `constraint_relaxations`. There can be at most one default, i.e., at most one constraint relaxation field is allowed empty `vehicle_indices`. A vehicle index can only be listed once, even within several `constraint_relaxations`. A vehicle index is mapped the same as [ShipmentRoute.vehicle_index][google.cloud.optimization.v1.ShipmentRoute.vehicle_index], if `interpret_injected_solutions_using_labels` is true (see `fields` comment).
repeated int32 vehicle_indices = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final InjectedSolutionConstraint.ConstraintRelaxation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
mergeUnknownFields
public final InjectedSolutionConstraint.ConstraintRelaxation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InjectedSolutionConstraint.ConstraintRelaxation.Builder>
-
-