Class AutomatonConstraintProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AutomatonConstraintProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder>
com.google.ortools.sat.AutomatonConstraintProto.Builder
- All Implemented Interfaces:
AutomatonConstraintProtoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
AutomatonConstraintProto
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExprs
(Iterable<? extends LinearExpressionProto> values) The sequence of affine expressions (a * var + b).addAllFinalStates
(Iterable<? extends Long> values) repeated int64 final_states = 3;
addAllTransitionHead
(Iterable<? extends Long> values) repeated int64 transition_head = 5;
addAllTransitionLabel
(Iterable<? extends Long> values) repeated int64 transition_label = 6;
addAllTransitionTail
(Iterable<? extends Long> values) List of transitions (all 3 vectors have the same size).addAllVars
(Iterable<? extends Integer> values) Legacy field.addExprs
(int index, LinearExpressionProto value) The sequence of affine expressions (a * var + b).addExprs
(int index, LinearExpressionProto.Builder builderForValue) The sequence of affine expressions (a * var + b).addExprs
(LinearExpressionProto value) The sequence of affine expressions (a * var + b).addExprs
(LinearExpressionProto.Builder builderForValue) The sequence of affine expressions (a * var + b).The sequence of affine expressions (a * var + b).addExprsBuilder
(int index) The sequence of affine expressions (a * var + b).addFinalStates
(long value) repeated int64 final_states = 3;
addTransitionHead
(long value) repeated int64 transition_head = 5;
addTransitionLabel
(long value) repeated int64 transition_label = 6;
addTransitionTail
(long value) List of transitions (all 3 vectors have the same size).addVars
(int value) Legacy field.build()
clear()
The sequence of affine expressions (a * var + b).repeated int64 final_states = 3;
A state is identified by a non-negative number.repeated int64 transition_head = 5;
repeated int64 transition_label = 6;
List of transitions (all 3 vectors have the same size).Legacy field.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getExprs
(int index) The sequence of affine expressions (a * var + b).getExprsBuilder
(int index) The sequence of affine expressions (a * var + b).The sequence of affine expressions (a * var + b).int
The sequence of affine expressions (a * var + b).The sequence of affine expressions (a * var + b).getExprsOrBuilder
(int index) The sequence of affine expressions (a * var + b).List
<? extends LinearExpressionProtoOrBuilder> The sequence of affine expressions (a * var + b).long
getFinalStates
(int index) repeated int64 final_states = 3;
int
repeated int64 final_states = 3;
repeated int64 final_states = 3;
long
A state is identified by a non-negative number.long
getTransitionHead
(int index) repeated int64 transition_head = 5;
int
repeated int64 transition_head = 5;
repeated int64 transition_head = 5;
long
getTransitionLabel
(int index) repeated int64 transition_label = 6;
int
repeated int64 transition_label = 6;
repeated int64 transition_label = 6;
long
getTransitionTail
(int index) List of transitions (all 3 vectors have the same size).int
List of transitions (all 3 vectors have the same size).List of transitions (all 3 vectors have the same size).int
getVars
(int index) Legacy field.int
Legacy field.Legacy field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) removeExprs
(int index) The sequence of affine expressions (a * var + b).setExprs
(int index, LinearExpressionProto value) The sequence of affine expressions (a * var + b).setExprs
(int index, LinearExpressionProto.Builder builderForValue) The sequence of affine expressions (a * var + b).setFinalStates
(int index, long value) repeated int64 final_states = 3;
setStartingState
(long value) A state is identified by a non-negative number.setTransitionHead
(int index, long value) repeated int64 transition_head = 5;
setTransitionLabel
(int index, long value) repeated int64 transition_label = 6;
setTransitionTail
(int index, long value) List of transitions (all 3 vectors have the same size).setVars
(int index, int value) Legacy field.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutomatonConstraintProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<AutomatonConstraintProto.Builder>
-
mergeFrom
public AutomatonConstraintProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutomatonConstraintProto.Builder>
- Throws:
IOException
-
getStartingState
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;
- Specified by:
getStartingState
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- The startingState.
-
setStartingState
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;
- Parameters:
value
- The startingState to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getFinalStatesList
repeated int64 final_states = 3;
- Specified by:
getFinalStatesList
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- A list containing the finalStates.
-
getFinalStatesCount
public int getFinalStatesCount()repeated int64 final_states = 3;
- Specified by:
getFinalStatesCount
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- The count of finalStates.
-
getFinalStates
public long getFinalStates(int index) repeated int64 final_states = 3;
- Specified by:
getFinalStates
in interfaceAutomatonConstraintProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The finalStates at the given index.
-
setFinalStates
repeated int64 final_states = 3;
- Parameters:
index
- The index to set the value at.value
- The finalStates to set.- Returns:
- This builder for chaining.
-
addFinalStates
repeated int64 final_states = 3;
- Parameters:
value
- The finalStates to add.- Returns:
- This builder for chaining.
-
addAllFinalStates
repeated int64 final_states = 3;
- Parameters:
values
- The finalStates to add.- Returns:
- This builder for chaining.
-
clearFinalStates
repeated int64 final_states = 3;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getTransitionTailList
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- A list containing the transitionTail.
-
getTransitionTailCount
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;
- Specified by:
getTransitionTailCount
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- The count of transitionTail.
-
getTransitionTail
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;
- Specified by:
getTransitionTail
in interfaceAutomatonConstraintProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The transitionTail at the given index.
-
setTransitionTail
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;
- Parameters:
index
- The index to set the value at.value
- The transitionTail to set.- Returns:
- This builder for chaining.
-
addTransitionTail
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;
- Parameters:
value
- The transitionTail to add.- Returns:
- This builder for chaining.
-
addAllTransitionTail
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;
- Parameters:
values
- The transitionTail to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getTransitionHeadList
repeated int64 transition_head = 5;
- Specified by:
getTransitionHeadList
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- A list containing the transitionHead.
-
getTransitionHeadCount
public int getTransitionHeadCount()repeated int64 transition_head = 5;
- Specified by:
getTransitionHeadCount
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- The count of transitionHead.
-
getTransitionHead
public long getTransitionHead(int index) repeated int64 transition_head = 5;
- Specified by:
getTransitionHead
in interfaceAutomatonConstraintProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The transitionHead at the given index.
-
setTransitionHead
repeated int64 transition_head = 5;
- Parameters:
index
- The index to set the value at.value
- The transitionHead to set.- Returns:
- This builder for chaining.
-
addTransitionHead
repeated int64 transition_head = 5;
- Parameters:
value
- The transitionHead to add.- Returns:
- This builder for chaining.
-
addAllTransitionHead
repeated int64 transition_head = 5;
- Parameters:
values
- The transitionHead to add.- Returns:
- This builder for chaining.
-
clearTransitionHead
repeated int64 transition_head = 5;
- Returns:
- This builder for chaining.
-
getTransitionLabelList
repeated int64 transition_label = 6;
- Specified by:
getTransitionLabelList
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- A list containing the transitionLabel.
-
getTransitionLabelCount
public int getTransitionLabelCount()repeated int64 transition_label = 6;
- Specified by:
getTransitionLabelCount
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- The count of transitionLabel.
-
getTransitionLabel
public long getTransitionLabel(int index) repeated int64 transition_label = 6;
- Specified by:
getTransitionLabel
in interfaceAutomatonConstraintProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The transitionLabel at the given index.
-
setTransitionLabel
repeated int64 transition_label = 6;
- Parameters:
index
- The index to set the value at.value
- The transitionLabel to set.- Returns:
- This builder for chaining.
-
addTransitionLabel
repeated int64 transition_label = 6;
- Parameters:
value
- The transitionLabel to add.- Returns:
- This builder for chaining.
-
addAllTransitionLabel
repeated int64 transition_label = 6;
- Parameters:
values
- The transitionLabel to add.- Returns:
- This builder for chaining.
-
clearTransitionLabel
repeated int64 transition_label = 6;
- Returns:
- This builder for chaining.
-
getVarsList
Legacy field.
repeated int32 vars = 7;
- Specified by:
getVarsList
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- A list containing the vars.
-
getVarsCount
public int getVarsCount()Legacy field.
repeated int32 vars = 7;
- Specified by:
getVarsCount
in interfaceAutomatonConstraintProtoOrBuilder
- Returns:
- The count of vars.
-
getVars
public int getVars(int index) Legacy field.
repeated int32 vars = 7;
- Specified by:
getVars
in interfaceAutomatonConstraintProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The vars at the given index.
-
setVars
Legacy field.
repeated int32 vars = 7;
- Parameters:
index
- The index to set the value at.value
- The vars to set.- Returns:
- This builder for chaining.
-
addVars
Legacy field.
repeated int32 vars = 7;
- Parameters:
value
- The vars to add.- Returns:
- This builder for chaining.
-
addAllVars
Legacy field.
repeated int32 vars = 7;
- Parameters:
values
- The vars to add.- Returns:
- This builder for chaining.
-
clearVars
Legacy field.
repeated int32 vars = 7;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getExprsList
in interfaceAutomatonConstraintProtoOrBuilder
-
getExprsCount
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;
- Specified by:
getExprsCount
in interfaceAutomatonConstraintProtoOrBuilder
-
getExprs
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;
- Specified by:
getExprs
in interfaceAutomatonConstraintProtoOrBuilder
-
setExprs
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;
-
setExprs
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;
-
addExprs
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;
-
addExprs
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;
-
addExprs
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;
-
addExprs
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;
-
addAllExprs
public AutomatonConstraintProto.Builder addAllExprs(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;
-
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;
-
removeExprs
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;
-
getExprsBuilder
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
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;
- Specified by:
getExprsOrBuilder
in interfaceAutomatonConstraintProtoOrBuilder
-
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;
- Specified by:
getExprsOrBuilderList
in interfaceAutomatonConstraintProtoOrBuilder
-
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;
-
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;
-
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;
-