public static final class AutomatonConstraintProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder> implements AutomatonConstraintProtoOrBuilder
This constraint forces a sequence of expressions to be accepted by an automaton.Protobuf type
operations_research.sat.AutomatonConstraintProto
Modifier and Type | Method and Description |
---|---|
AutomatonConstraintProto.Builder |
addAllExprs(java.lang.Iterable<? extends LinearExpressionProto> values)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
addAllFinalStates(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 final_states = 3; |
AutomatonConstraintProto.Builder |
addAllTransitionHead(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 transition_head = 5; |
AutomatonConstraintProto.Builder |
addAllTransitionLabel(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 transition_label = 6; |
AutomatonConstraintProto.Builder |
addAllTransitionTail(java.lang.Iterable<? extends java.lang.Long> values)
List of transitions (all 3 vectors have the same size).
|
AutomatonConstraintProto.Builder |
addAllVars(java.lang.Iterable<? extends java.lang.Integer> values)
Legacy field.
|
AutomatonConstraintProto.Builder |
addExprs(int index,
LinearExpressionProto.Builder builderForValue)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
addExprs(int index,
LinearExpressionProto value)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
addExprs(LinearExpressionProto.Builder builderForValue)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
addExprs(LinearExpressionProto value)
The sequence of affine expressions (a * var + b).
|
LinearExpressionProto.Builder |
addExprsBuilder()
The sequence of affine expressions (a * var + b).
|
LinearExpressionProto.Builder |
addExprsBuilder(int index)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
addFinalStates(long value)
repeated int64 final_states = 3; |
AutomatonConstraintProto.Builder |
addTransitionHead(long value)
repeated int64 transition_head = 5; |
AutomatonConstraintProto.Builder |
addTransitionLabel(long value)
repeated int64 transition_label = 6; |
AutomatonConstraintProto.Builder |
addTransitionTail(long value)
List of transitions (all 3 vectors have the same size).
|
AutomatonConstraintProto.Builder |
addVars(int value)
Legacy field.
|
AutomatonConstraintProto |
build() |
AutomatonConstraintProto |
buildPartial() |
AutomatonConstraintProto.Builder |
clear() |
AutomatonConstraintProto.Builder |
clearExprs()
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
clearFinalStates()
repeated int64 final_states = 3; |
AutomatonConstraintProto.Builder |
clearStartingState()
A state is identified by a non-negative number.
|
AutomatonConstraintProto.Builder |
clearTransitionHead()
repeated int64 transition_head = 5; |
AutomatonConstraintProto.Builder |
clearTransitionLabel()
repeated int64 transition_label = 6; |
AutomatonConstraintProto.Builder |
clearTransitionTail()
List of transitions (all 3 vectors have the same size).
|
AutomatonConstraintProto.Builder |
clearVars()
Legacy field.
|
AutomatonConstraintProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LinearExpressionProto |
getExprs(int index)
The sequence of affine expressions (a * var + b).
|
LinearExpressionProto.Builder |
getExprsBuilder(int index)
The sequence of affine expressions (a * var + b).
|
java.util.List<LinearExpressionProto.Builder> |
getExprsBuilderList()
The sequence of affine expressions (a * var + b).
|
int |
getExprsCount()
The sequence of affine expressions (a * var + b).
|
java.util.List<LinearExpressionProto> |
getExprsList()
The sequence of affine expressions (a * var + b).
|
LinearExpressionProtoOrBuilder |
getExprsOrBuilder(int index)
The sequence of affine expressions (a * var + b).
|
java.util.List<? extends LinearExpressionProtoOrBuilder> |
getExprsOrBuilderList()
The sequence of affine expressions (a * var + b).
|
long |
getFinalStates(int index)
repeated int64 final_states = 3; |
int |
getFinalStatesCount()
repeated int64 final_states = 3; |
java.util.List<java.lang.Long> |
getFinalStatesList()
repeated int64 final_states = 3; |
long |
getStartingState()
A state is identified by a non-negative number.
|
long |
getTransitionHead(int index)
repeated int64 transition_head = 5; |
int |
getTransitionHeadCount()
repeated int64 transition_head = 5; |
java.util.List<java.lang.Long> |
getTransitionHeadList()
repeated int64 transition_head = 5; |
long |
getTransitionLabel(int index)
repeated int64 transition_label = 6; |
int |
getTransitionLabelCount()
repeated int64 transition_label = 6; |
java.util.List<java.lang.Long> |
getTransitionLabelList()
repeated int64 transition_label = 6; |
long |
getTransitionTail(int index)
List of transitions (all 3 vectors have the same size).
|
int |
getTransitionTailCount()
List of transitions (all 3 vectors have the same size).
|
java.util.List<java.lang.Long> |
getTransitionTailList()
List of transitions (all 3 vectors have the same size).
|
int |
getVars(int index)
Legacy field.
|
int |
getVarsCount()
Legacy field.
|
java.util.List<java.lang.Integer> |
getVarsList()
Legacy field.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AutomatonConstraintProto.Builder |
mergeFrom(AutomatonConstraintProto other) |
AutomatonConstraintProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AutomatonConstraintProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
AutomatonConstraintProto.Builder |
removeExprs(int index)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
setExprs(int index,
LinearExpressionProto.Builder builderForValue)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
setExprs(int index,
LinearExpressionProto value)
The sequence of affine expressions (a * var + b).
|
AutomatonConstraintProto.Builder |
setFinalStates(int index,
long value)
repeated int64 final_states = 3; |
AutomatonConstraintProto.Builder |
setStartingState(long value)
A state is identified by a non-negative number.
|
AutomatonConstraintProto.Builder |
setTransitionHead(int index,
long value)
repeated int64 transition_head = 5; |
AutomatonConstraintProto.Builder |
setTransitionLabel(int index,
long value)
repeated int64 transition_label = 6; |
AutomatonConstraintProto.Builder |
setTransitionTail(int index,
long value)
List of transitions (all 3 vectors have the same size).
|
AutomatonConstraintProto.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<AutomatonConstraintProto.Builder>
public AutomatonConstraintProto.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<AutomatonConstraintProto.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<AutomatonConstraintProto.Builder>
public AutomatonConstraintProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public AutomatonConstraintProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public AutomatonConstraintProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public AutomatonConstraintProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AutomatonConstraintProto.Builder>
public AutomatonConstraintProto.Builder mergeFrom(AutomatonConstraintProto other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder>
public AutomatonConstraintProto.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<AutomatonConstraintProto.Builder>
java.io.IOException
public long getStartingState()
A state is identified by a non-negative number. It is preferable to keep all the states dense in says [0, num_states). The automaton starts at starting_state and must finish in any of the final states.
int64 starting_state = 2;
getStartingState
in interface AutomatonConstraintProtoOrBuilder
public AutomatonConstraintProto.Builder setStartingState(long value)
A state is identified by a non-negative number. It is preferable to keep all the states dense in says [0, num_states). The automaton starts at starting_state and must finish in any of the final states.
int64 starting_state = 2;
value
- The startingState to set.public AutomatonConstraintProto.Builder clearStartingState()
A state is identified by a non-negative number. It is preferable to keep all the states dense in says [0, num_states). The automaton starts at starting_state and must finish in any of the final states.
int64 starting_state = 2;
public java.util.List<java.lang.Long> getFinalStatesList()
repeated int64 final_states = 3;
getFinalStatesList
in interface AutomatonConstraintProtoOrBuilder
public int getFinalStatesCount()
repeated int64 final_states = 3;
getFinalStatesCount
in interface AutomatonConstraintProtoOrBuilder
public long getFinalStates(int index)
repeated int64 final_states = 3;
getFinalStates
in interface AutomatonConstraintProtoOrBuilder
index
- The index of the element to return.public AutomatonConstraintProto.Builder setFinalStates(int index, long value)
repeated int64 final_states = 3;
index
- The index to set the value at.value
- The finalStates to set.public AutomatonConstraintProto.Builder addFinalStates(long value)
repeated int64 final_states = 3;
value
- The finalStates to add.public AutomatonConstraintProto.Builder addAllFinalStates(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 final_states = 3;
values
- The finalStates to add.public AutomatonConstraintProto.Builder clearFinalStates()
repeated int64 final_states = 3;
public java.util.List<java.lang.Long> getTransitionTailList()
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
getTransitionTailList
in interface AutomatonConstraintProtoOrBuilder
public int getTransitionTailCount()
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
getTransitionTailCount
in interface AutomatonConstraintProtoOrBuilder
public long getTransitionTail(int index)
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
getTransitionTail
in interface AutomatonConstraintProtoOrBuilder
index
- The index of the element to return.public AutomatonConstraintProto.Builder setTransitionTail(int index, long value)
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
index
- The index to set the value at.value
- The transitionTail to set.public AutomatonConstraintProto.Builder addTransitionTail(long value)
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
value
- The transitionTail to add.public AutomatonConstraintProto.Builder addAllTransitionTail(java.lang.Iterable<? extends java.lang.Long> values)
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
values
- The transitionTail to add.public AutomatonConstraintProto.Builder clearTransitionTail()
List of transitions (all 3 vectors have the same size). Both tail and head are states, label is any variable value. No two outgoing transitions from the same state can have the same label.
repeated int64 transition_tail = 4;
public java.util.List<java.lang.Long> getTransitionHeadList()
repeated int64 transition_head = 5;
getTransitionHeadList
in interface AutomatonConstraintProtoOrBuilder
public int getTransitionHeadCount()
repeated int64 transition_head = 5;
getTransitionHeadCount
in interface AutomatonConstraintProtoOrBuilder
public long getTransitionHead(int index)
repeated int64 transition_head = 5;
getTransitionHead
in interface AutomatonConstraintProtoOrBuilder
index
- The index of the element to return.public AutomatonConstraintProto.Builder setTransitionHead(int index, long value)
repeated int64 transition_head = 5;
index
- The index to set the value at.value
- The transitionHead to set.public AutomatonConstraintProto.Builder addTransitionHead(long value)
repeated int64 transition_head = 5;
value
- The transitionHead to add.public AutomatonConstraintProto.Builder addAllTransitionHead(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 transition_head = 5;
values
- The transitionHead to add.public AutomatonConstraintProto.Builder clearTransitionHead()
repeated int64 transition_head = 5;
public java.util.List<java.lang.Long> getTransitionLabelList()
repeated int64 transition_label = 6;
getTransitionLabelList
in interface AutomatonConstraintProtoOrBuilder
public int getTransitionLabelCount()
repeated int64 transition_label = 6;
getTransitionLabelCount
in interface AutomatonConstraintProtoOrBuilder
public long getTransitionLabel(int index)
repeated int64 transition_label = 6;
getTransitionLabel
in interface AutomatonConstraintProtoOrBuilder
index
- The index of the element to return.public AutomatonConstraintProto.Builder setTransitionLabel(int index, long value)
repeated int64 transition_label = 6;
index
- The index to set the value at.value
- The transitionLabel to set.public AutomatonConstraintProto.Builder addTransitionLabel(long value)
repeated int64 transition_label = 6;
value
- The transitionLabel to add.public AutomatonConstraintProto.Builder addAllTransitionLabel(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 transition_label = 6;
values
- The transitionLabel to add.public AutomatonConstraintProto.Builder clearTransitionLabel()
repeated int64 transition_label = 6;
public java.util.List<java.lang.Integer> getVarsList()
Legacy field.
repeated int32 vars = 7;
getVarsList
in interface AutomatonConstraintProtoOrBuilder
public int getVarsCount()
Legacy field.
repeated int32 vars = 7;
getVarsCount
in interface AutomatonConstraintProtoOrBuilder
public int getVars(int index)
Legacy field.
repeated int32 vars = 7;
getVars
in interface AutomatonConstraintProtoOrBuilder
index
- The index of the element to return.public AutomatonConstraintProto.Builder setVars(int index, int value)
Legacy field.
repeated int32 vars = 7;
index
- The index to set the value at.value
- The vars to set.public AutomatonConstraintProto.Builder addVars(int value)
Legacy field.
repeated int32 vars = 7;
value
- The vars to add.public AutomatonConstraintProto.Builder addAllVars(java.lang.Iterable<? extends java.lang.Integer> values)
Legacy field.
repeated int32 vars = 7;
values
- The vars to add.public AutomatonConstraintProto.Builder clearVars()
Legacy field.
repeated int32 vars = 7;
public java.util.List<LinearExpressionProto> getExprsList()
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
getExprsList
in interface AutomatonConstraintProtoOrBuilder
public int getExprsCount()
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
getExprsCount
in interface AutomatonConstraintProtoOrBuilder
public LinearExpressionProto getExprs(int index)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
getExprs
in interface AutomatonConstraintProtoOrBuilder
public AutomatonConstraintProto.Builder setExprs(int index, LinearExpressionProto value)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder setExprs(int index, LinearExpressionProto.Builder builderForValue)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder addExprs(LinearExpressionProto value)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder addExprs(int index, LinearExpressionProto value)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder addExprs(LinearExpressionProto.Builder builderForValue)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder addExprs(int index, LinearExpressionProto.Builder builderForValue)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder addAllExprs(java.lang.Iterable<? extends LinearExpressionProto> values)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder clearExprs()
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public AutomatonConstraintProto.Builder removeExprs(int index)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public LinearExpressionProto.Builder getExprsBuilder(int index)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public LinearExpressionProtoOrBuilder getExprsOrBuilder(int index)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
getExprsOrBuilder
in interface AutomatonConstraintProtoOrBuilder
public java.util.List<? extends LinearExpressionProtoOrBuilder> getExprsOrBuilderList()
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
getExprsOrBuilderList
in interface AutomatonConstraintProtoOrBuilder
public LinearExpressionProto.Builder addExprsBuilder()
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public LinearExpressionProto.Builder addExprsBuilder(int index)
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
public java.util.List<LinearExpressionProto.Builder> getExprsBuilderList()
The sequence of affine expressions (a * var + b). The automaton is ran for exprs_size() "steps" and the value of exprs[i] corresponds to the transition label at step i.
repeated .operations_research.sat.LinearExpressionProto exprs = 8;
Copyright © 2025. All rights reserved.