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, 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<MPArrayWithConstantConstraint.Builder>
public MPArrayWithConstantConstraint.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<MPArrayWithConstantConstraint.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<MPArrayWithConstantConstraint.Builder>
public MPArrayWithConstantConstraint getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MPArrayWithConstantConstraint build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MPArrayWithConstantConstraint buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MPArrayWithConstantConstraint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MPArrayWithConstantConstraint.Builder>
java.io.IOException
public 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 MPArrayWithConstantConstraintOrBuilder
public 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 MPArrayWithConstantConstraintOrBuilder
public 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 MPArrayWithConstantConstraintOrBuilder
index
- 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 MPArrayWithConstantConstraintOrBuilder
public double getConstant()
optional double constant = 2;
getConstant
in interface MPArrayWithConstantConstraintOrBuilder
public 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 MPArrayWithConstantConstraintOrBuilder
public int getResultantVarIndex()
optional int32 resultant_var_index = 3;
getResultantVarIndex
in interface MPArrayWithConstantConstraintOrBuilder
public 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 © 2025. All rights reserved.