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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MPArrayConstraint.Builder>public MPArrayConstraint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MPArrayConstraint build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MPArrayConstraint buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MPArrayConstraint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPArrayConstraint.Builder>java.io.IOExceptionpublic 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 MPArrayConstraintOrBuilderpublic int getVarIndexCount()
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;getVarIndexCount in interface MPArrayConstraintOrBuilderpublic int getVarIndex(int index)
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;getVarIndex in interface MPArrayConstraintOrBuilderindex - 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 MPArrayConstraintOrBuilderpublic int getResultantVarIndex()
optional int32 resultant_var_index = 2;getResultantVarIndex in interface MPArrayConstraintOrBuilderpublic 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 © 2024. All rights reserved.