public static final class MPArrayConstraint.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder> implements MPArrayConstraintOrBuilder
Sets a variable's value equal to a function on a set of variables.Protobuf type
operations_research.MPArrayConstraint
Modifier and Type | Method and Description |
---|---|
MPArrayConstraint.Builder |
addAllVarIndex(java.lang.Iterable<? extends java.lang.Integer> values)
Variable indices are relative to the "variable" field in MPModelProto.
|
MPArrayConstraint.Builder |
addVarIndex(int value)
Variable indices are relative to the "variable" field in MPModelProto.
|
MPArrayConstraint |
build() |
MPArrayConstraint |
buildPartial() |
MPArrayConstraint.Builder |
clear() |
MPArrayConstraint.Builder |
clearResultantVarIndex()
optional int32 resultant_var_index = 2; |
MPArrayConstraint.Builder |
clearVarIndex()
Variable indices are relative to the "variable" field in MPModelProto.
|
MPArrayConstraint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getResultantVarIndex()
optional int32 resultant_var_index = 2; |
int |
getVarIndex(int index)
Variable indices are relative to the "variable" field in MPModelProto.
|
int |
getVarIndexCount()
Variable indices are relative to the "variable" field in MPModelProto.
|
java.util.List<java.lang.Integer> |
getVarIndexList()
Variable indices are relative to the "variable" field in MPModelProto.
|
boolean |
hasResultantVarIndex()
optional int32 resultant_var_index = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MPArrayConstraint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPArrayConstraint.Builder |
mergeFrom(com.google.protobuf.Message other) |
MPArrayConstraint.Builder |
mergeFrom(MPArrayConstraint other) |
MPArrayConstraint.Builder |
setResultantVarIndex(int value)
optional int32 resultant_var_index = 2; |
MPArrayConstraint.Builder |
setVarIndex(int index,
int value)
Variable indices are relative to the "variable" field in MPModelProto.
|
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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder>
public MPArrayConstraint.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder>
public MPArrayConstraint getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MPArrayConstraint build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MPArrayConstraint buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MPArrayConstraint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MPArrayConstraint.Builder>
public MPArrayConstraint.Builder mergeFrom(MPArrayConstraint other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder>
public MPArrayConstraint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MPArrayConstraint.Builder>
java.io.IOException
public java.util.List<java.lang.Integer> getVarIndexList()
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
getVarIndexList
in interface MPArrayConstraintOrBuilder
public int getVarIndexCount()
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
getVarIndexCount
in interface MPArrayConstraintOrBuilder
public int getVarIndex(int index)
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
getVarIndex
in interface MPArrayConstraintOrBuilder
index
- The index of the element to return.public MPArrayConstraint.Builder setVarIndex(int index, int value)
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
index
- The index to set the value at.value
- The varIndex to set.public MPArrayConstraint.Builder addVarIndex(int value)
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
value
- The varIndex to add.public MPArrayConstraint.Builder addAllVarIndex(java.lang.Iterable<? extends java.lang.Integer> values)
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
values
- The varIndex to add.public MPArrayConstraint.Builder clearVarIndex()
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
public boolean hasResultantVarIndex()
optional int32 resultant_var_index = 2;
hasResultantVarIndex
in interface MPArrayConstraintOrBuilder
public int getResultantVarIndex()
optional int32 resultant_var_index = 2;
getResultantVarIndex
in interface MPArrayConstraintOrBuilder
public MPArrayConstraint.Builder setResultantVarIndex(int value)
optional int32 resultant_var_index = 2;
value
- The resultantVarIndex to set.public MPArrayConstraint.Builder clearResultantVarIndex()
optional int32 resultant_var_index = 2;
Copyright © 2025. All rights reserved.