public static final class ElementConstraintProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<ElementConstraintProto.Builder> implements ElementConstraintProtoOrBuilder
The constraint target = vars[index]. This enforces that index takes one of the value in [0, vars_size()).Protobuf type
operations_research.sat.ElementConstraintProto
Modifier and Type | Method and Description |
---|---|
ElementConstraintProto.Builder |
addAllExprs(java.lang.Iterable<? extends LinearExpressionProto> values)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
addAllVars(java.lang.Iterable<? extends java.lang.Integer> values)
Legacy field.
|
ElementConstraintProto.Builder |
addExprs(int index,
LinearExpressionProto.Builder builderForValue)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
addExprs(int index,
LinearExpressionProto value)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
addExprs(LinearExpressionProto.Builder builderForValue)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
addExprs(LinearExpressionProto value)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
LinearExpressionProto.Builder |
addExprsBuilder()
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
LinearExpressionProto.Builder |
addExprsBuilder(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
addVars(int value)
Legacy field.
|
ElementConstraintProto |
build() |
ElementConstraintProto |
buildPartial() |
ElementConstraintProto.Builder |
clear() |
ElementConstraintProto.Builder |
clearExprs()
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
clearIndex()
Legacy field.
|
ElementConstraintProto.Builder |
clearLinearIndex()
All expressions below must be affine function with at most one variable.
|
ElementConstraintProto.Builder |
clearLinearTarget()
.operations_research.sat.LinearExpressionProto linear_target = 5; |
ElementConstraintProto.Builder |
clearTarget()
Legacy field.
|
ElementConstraintProto.Builder |
clearVars()
Legacy field.
|
ElementConstraintProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LinearExpressionProto |
getExprs(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
LinearExpressionProto.Builder |
getExprsBuilder(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
java.util.List<LinearExpressionProto.Builder> |
getExprsBuilderList()
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
int |
getExprsCount()
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
java.util.List<LinearExpressionProto> |
getExprsList()
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
LinearExpressionProtoOrBuilder |
getExprsOrBuilder(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
java.util.List<? extends LinearExpressionProtoOrBuilder> |
getExprsOrBuilderList()
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
int |
getIndex()
Legacy field.
|
LinearExpressionProto |
getLinearIndex()
All expressions below must be affine function with at most one variable.
|
LinearExpressionProto.Builder |
getLinearIndexBuilder()
All expressions below must be affine function with at most one variable.
|
LinearExpressionProtoOrBuilder |
getLinearIndexOrBuilder()
All expressions below must be affine function with at most one variable.
|
LinearExpressionProto |
getLinearTarget()
.operations_research.sat.LinearExpressionProto linear_target = 5; |
LinearExpressionProto.Builder |
getLinearTargetBuilder()
.operations_research.sat.LinearExpressionProto linear_target = 5; |
LinearExpressionProtoOrBuilder |
getLinearTargetOrBuilder()
.operations_research.sat.LinearExpressionProto linear_target = 5; |
int |
getTarget()
Legacy field.
|
int |
getVars(int index)
Legacy field.
|
int |
getVarsCount()
Legacy field.
|
java.util.List<java.lang.Integer> |
getVarsList()
Legacy field.
|
boolean |
hasLinearIndex()
All expressions below must be affine function with at most one variable.
|
boolean |
hasLinearTarget()
.operations_research.sat.LinearExpressionProto linear_target = 5; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ElementConstraintProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ElementConstraintProto.Builder |
mergeFrom(ElementConstraintProto other) |
ElementConstraintProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
ElementConstraintProto.Builder |
mergeLinearIndex(LinearExpressionProto value)
All expressions below must be affine function with at most one variable.
|
ElementConstraintProto.Builder |
mergeLinearTarget(LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto linear_target = 5; |
ElementConstraintProto.Builder |
removeExprs(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
setExprs(int index,
LinearExpressionProto.Builder builderForValue)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
setExprs(int index,
LinearExpressionProto value)
repeated .operations_research.sat.LinearExpressionProto exprs = 6; |
ElementConstraintProto.Builder |
setIndex(int value)
Legacy field.
|
ElementConstraintProto.Builder |
setLinearIndex(LinearExpressionProto.Builder builderForValue)
All expressions below must be affine function with at most one variable.
|
ElementConstraintProto.Builder |
setLinearIndex(LinearExpressionProto value)
All expressions below must be affine function with at most one variable.
|
ElementConstraintProto.Builder |
setLinearTarget(LinearExpressionProto.Builder builderForValue)
.operations_research.sat.LinearExpressionProto linear_target = 5; |
ElementConstraintProto.Builder |
setLinearTarget(LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto linear_target = 5; |
ElementConstraintProto.Builder |
setTarget(int value)
Legacy field.
|
ElementConstraintProto.Builder |
setVars(int index,
int value)
Legacy field.
|
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<ElementConstraintProto.Builder>
public ElementConstraintProto.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<ElementConstraintProto.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<ElementConstraintProto.Builder>
public ElementConstraintProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ElementConstraintProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ElementConstraintProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ElementConstraintProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ElementConstraintProto.Builder>
public ElementConstraintProto.Builder mergeFrom(ElementConstraintProto other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<ElementConstraintProto.Builder>
public ElementConstraintProto.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<ElementConstraintProto.Builder>
java.io.IOException
public int getIndex()
Legacy field.
int32 index = 1;
getIndex
in interface ElementConstraintProtoOrBuilder
public ElementConstraintProto.Builder setIndex(int value)
Legacy field.
int32 index = 1;
value
- The index to set.public ElementConstraintProto.Builder clearIndex()
Legacy field.
int32 index = 1;
public int getTarget()
Legacy field.
int32 target = 2;
getTarget
in interface ElementConstraintProtoOrBuilder
public ElementConstraintProto.Builder setTarget(int value)
Legacy field.
int32 target = 2;
value
- The target to set.public ElementConstraintProto.Builder clearTarget()
Legacy field.
int32 target = 2;
public java.util.List<java.lang.Integer> getVarsList()
Legacy field.
repeated int32 vars = 3;
getVarsList
in interface ElementConstraintProtoOrBuilder
public int getVarsCount()
Legacy field.
repeated int32 vars = 3;
getVarsCount
in interface ElementConstraintProtoOrBuilder
public int getVars(int index)
Legacy field.
repeated int32 vars = 3;
getVars
in interface ElementConstraintProtoOrBuilder
index
- The index of the element to return.public ElementConstraintProto.Builder setVars(int index, int value)
Legacy field.
repeated int32 vars = 3;
index
- The index to set the value at.value
- The vars to set.public ElementConstraintProto.Builder addVars(int value)
Legacy field.
repeated int32 vars = 3;
value
- The vars to add.public ElementConstraintProto.Builder addAllVars(java.lang.Iterable<? extends java.lang.Integer> values)
Legacy field.
repeated int32 vars = 3;
values
- The vars to add.public ElementConstraintProto.Builder clearVars()
Legacy field.
repeated int32 vars = 3;
public boolean hasLinearIndex()
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
hasLinearIndex
in interface ElementConstraintProtoOrBuilder
public LinearExpressionProto getLinearIndex()
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
getLinearIndex
in interface ElementConstraintProtoOrBuilder
public ElementConstraintProto.Builder setLinearIndex(LinearExpressionProto value)
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
public ElementConstraintProto.Builder setLinearIndex(LinearExpressionProto.Builder builderForValue)
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
public ElementConstraintProto.Builder mergeLinearIndex(LinearExpressionProto value)
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
public ElementConstraintProto.Builder clearLinearIndex()
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
public LinearExpressionProto.Builder getLinearIndexBuilder()
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
public LinearExpressionProtoOrBuilder getLinearIndexOrBuilder()
All expressions below must be affine function with at most one variable.
.operations_research.sat.LinearExpressionProto linear_index = 4;
getLinearIndexOrBuilder
in interface ElementConstraintProtoOrBuilder
public boolean hasLinearTarget()
.operations_research.sat.LinearExpressionProto linear_target = 5;
hasLinearTarget
in interface ElementConstraintProtoOrBuilder
public LinearExpressionProto getLinearTarget()
.operations_research.sat.LinearExpressionProto linear_target = 5;
getLinearTarget
in interface ElementConstraintProtoOrBuilder
public ElementConstraintProto.Builder setLinearTarget(LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto linear_target = 5;
public ElementConstraintProto.Builder setLinearTarget(LinearExpressionProto.Builder builderForValue)
.operations_research.sat.LinearExpressionProto linear_target = 5;
public ElementConstraintProto.Builder mergeLinearTarget(LinearExpressionProto value)
.operations_research.sat.LinearExpressionProto linear_target = 5;
public ElementConstraintProto.Builder clearLinearTarget()
.operations_research.sat.LinearExpressionProto linear_target = 5;
public LinearExpressionProto.Builder getLinearTargetBuilder()
.operations_research.sat.LinearExpressionProto linear_target = 5;
public LinearExpressionProtoOrBuilder getLinearTargetOrBuilder()
.operations_research.sat.LinearExpressionProto linear_target = 5;
getLinearTargetOrBuilder
in interface ElementConstraintProtoOrBuilder
public java.util.List<LinearExpressionProto> getExprsList()
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
getExprsList
in interface ElementConstraintProtoOrBuilder
public int getExprsCount()
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
getExprsCount
in interface ElementConstraintProtoOrBuilder
public LinearExpressionProto getExprs(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
getExprs
in interface ElementConstraintProtoOrBuilder
public ElementConstraintProto.Builder setExprs(int index, LinearExpressionProto value)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder setExprs(int index, LinearExpressionProto.Builder builderForValue)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder addExprs(LinearExpressionProto value)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder addExprs(int index, LinearExpressionProto value)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder addExprs(LinearExpressionProto.Builder builderForValue)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder addExprs(int index, LinearExpressionProto.Builder builderForValue)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder addAllExprs(java.lang.Iterable<? extends LinearExpressionProto> values)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder clearExprs()
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public ElementConstraintProto.Builder removeExprs(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public LinearExpressionProto.Builder getExprsBuilder(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public LinearExpressionProtoOrBuilder getExprsOrBuilder(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
getExprsOrBuilder
in interface ElementConstraintProtoOrBuilder
public java.util.List<? extends LinearExpressionProtoOrBuilder> getExprsOrBuilderList()
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
getExprsOrBuilderList
in interface ElementConstraintProtoOrBuilder
public LinearExpressionProto.Builder addExprsBuilder()
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public LinearExpressionProto.Builder addExprsBuilder(int index)
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
public java.util.List<LinearExpressionProto.Builder> getExprsBuilderList()
repeated .operations_research.sat.LinearExpressionProto exprs = 6;
Copyright © 2025. All rights reserved.