public static final class MPArrayWithConstantConstraint.Builder extends com.google.protobuf.GeneratedMessage.Builder<MPArrayWithConstantConstraint.Builder> implements MPArrayWithConstantConstraintOrBuilder
Sets a variable's value equal to a function on a set of variables and, optionally, a constant.Protobuf type
operations_research.MPArrayWithConstantConstraint| Modifier and Type | Method and Description |
|---|---|
MPArrayWithConstantConstraint.Builder |
addAllVarIndex(java.lang.Iterable<? extends java.lang.Integer> values)
Variable indices are relative to the "variable" field in MPModelProto.
|
MPArrayWithConstantConstraint.Builder |
addVarIndex(int value)
Variable indices are relative to the "variable" field in MPModelProto.
|
MPArrayWithConstantConstraint |
build() |
MPArrayWithConstantConstraint |
buildPartial() |
MPArrayWithConstantConstraint.Builder |
clear() |
MPArrayWithConstantConstraint.Builder |
clearConstant()
optional double constant = 2; |
MPArrayWithConstantConstraint.Builder |
clearResultantVarIndex()
optional int32 resultant_var_index = 3; |
MPArrayWithConstantConstraint.Builder |
clearVarIndex()
Variable indices are relative to the "variable" field in MPModelProto.
|
double |
getConstant()
optional double constant = 2; |
MPArrayWithConstantConstraint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getResultantVarIndex()
optional int32 resultant_var_index = 3; |
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 |
hasConstant()
optional double constant = 2; |
boolean |
hasResultantVarIndex()
optional int32 resultant_var_index = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MPArrayWithConstantConstraint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPArrayWithConstantConstraint.Builder |
mergeFrom(com.google.protobuf.Message other) |
MPArrayWithConstantConstraint.Builder |
mergeFrom(MPArrayWithConstantConstraint other) |
MPArrayWithConstantConstraint.Builder |
setConstant(double value)
optional double constant = 2; |
MPArrayWithConstantConstraint.Builder |
setResultantVarIndex(int value)
optional int32 resultant_var_index = 3; |
MPArrayWithConstantConstraint.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<MPArrayWithConstantConstraint.Builder>public MPArrayWithConstantConstraint.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<MPArrayWithConstantConstraint.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<MPArrayWithConstantConstraint.Builder>public MPArrayWithConstantConstraint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MPArrayWithConstantConstraint build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MPArrayWithConstantConstraint buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MPArrayWithConstantConstraint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MPArrayWithConstantConstraint.Builder>public MPArrayWithConstantConstraint.Builder mergeFrom(MPArrayWithConstantConstraint other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<MPArrayWithConstantConstraint.Builder>public MPArrayWithConstantConstraint.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<MPArrayWithConstantConstraint.Builder>java.io.IOExceptionpublic java.util.List<java.lang.Integer> getVarIndexList()
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;getVarIndexList in interface MPArrayWithConstantConstraintOrBuilderpublic int getVarIndexCount()
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;getVarIndexCount in interface MPArrayWithConstantConstraintOrBuilderpublic int getVarIndex(int index)
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;getVarIndex in interface MPArrayWithConstantConstraintOrBuilderindex - The index of the element to return.public MPArrayWithConstantConstraint.Builder setVarIndex(int index, int value)
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;index - The index to set the value at.value - The varIndex to set.public MPArrayWithConstantConstraint.Builder addVarIndex(int value)
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;value - The varIndex to add.public MPArrayWithConstantConstraint.Builder addAllVarIndex(java.lang.Iterable<? extends java.lang.Integer> values)
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;values - The varIndex to add.public MPArrayWithConstantConstraint.Builder clearVarIndex()
Variable indices are relative to the "variable" field in MPModelProto. resultant_var = f(var_1, var_2, ..., constant)
repeated int32 var_index = 1;public boolean hasConstant()
optional double constant = 2;hasConstant in interface MPArrayWithConstantConstraintOrBuilderpublic double getConstant()
optional double constant = 2;getConstant in interface MPArrayWithConstantConstraintOrBuilderpublic MPArrayWithConstantConstraint.Builder setConstant(double value)
optional double constant = 2;value - The constant to set.public MPArrayWithConstantConstraint.Builder clearConstant()
optional double constant = 2;public boolean hasResultantVarIndex()
optional int32 resultant_var_index = 3;hasResultantVarIndex in interface MPArrayWithConstantConstraintOrBuilderpublic int getResultantVarIndex()
optional int32 resultant_var_index = 3;getResultantVarIndex in interface MPArrayWithConstantConstraintOrBuilderpublic MPArrayWithConstantConstraint.Builder setResultantVarIndex(int value)
optional int32 resultant_var_index = 3;value - The resultantVarIndex to set.public MPArrayWithConstantConstraint.Builder clearResultantVarIndex()
optional int32 resultant_var_index = 3;Copyright © 2024. All rights reserved.