Package com.google.ortools.sat
Class AutomatonConstraintProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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,java.lang.Cloneable
- Enclosing class:
- AutomatonConstraintProto
public static final class AutomatonConstraintProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder> implements AutomatonConstraintProtoOrBuilder
This constraint forces a sequence of variables to be accepted by an automaton.
Protobuf typeoperations_research.sat.AutomatonConstraintProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutomatonConstraintProto.BuilderaddAllFinalStates(java.lang.Iterable<? extends java.lang.Long> values)repeated int64 final_states = 3;AutomatonConstraintProto.BuilderaddAllTransitionHead(java.lang.Iterable<? extends java.lang.Long> values)repeated int64 transition_head = 5;AutomatonConstraintProto.BuilderaddAllTransitionLabel(java.lang.Iterable<? extends java.lang.Long> values)repeated int64 transition_label = 6;AutomatonConstraintProto.BuilderaddAllTransitionTail(java.lang.Iterable<? extends java.lang.Long> values)List of transitions (all 3 vectors have the same size).AutomatonConstraintProto.BuilderaddAllVars(java.lang.Iterable<? extends java.lang.Integer> values)The sequence of variables.AutomatonConstraintProto.BuilderaddFinalStates(long value)repeated int64 final_states = 3;AutomatonConstraintProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AutomatonConstraintProto.BuilderaddTransitionHead(long value)repeated int64 transition_head = 5;AutomatonConstraintProto.BuilderaddTransitionLabel(long value)repeated int64 transition_label = 6;AutomatonConstraintProto.BuilderaddTransitionTail(long value)List of transitions (all 3 vectors have the same size).AutomatonConstraintProto.BuilderaddVars(int value)The sequence of variables.AutomatonConstraintProtobuild()AutomatonConstraintProtobuildPartial()AutomatonConstraintProto.Builderclear()AutomatonConstraintProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AutomatonConstraintProto.BuilderclearFinalStates()repeated int64 final_states = 3;AutomatonConstraintProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AutomatonConstraintProto.BuilderclearStartingState()A state is identified by a non-negative number.AutomatonConstraintProto.BuilderclearTransitionHead()repeated int64 transition_head = 5;AutomatonConstraintProto.BuilderclearTransitionLabel()repeated int64 transition_label = 6;AutomatonConstraintProto.BuilderclearTransitionTail()List of transitions (all 3 vectors have the same size).AutomatonConstraintProto.BuilderclearVars()The sequence of variables.AutomatonConstraintProto.Builderclone()AutomatonConstraintProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetFinalStates(int index)repeated int64 final_states = 3;intgetFinalStatesCount()repeated int64 final_states = 3;java.util.List<java.lang.Long>getFinalStatesList()repeated int64 final_states = 3;longgetStartingState()A state is identified by a non-negative number.longgetTransitionHead(int index)repeated int64 transition_head = 5;intgetTransitionHeadCount()repeated int64 transition_head = 5;java.util.List<java.lang.Long>getTransitionHeadList()repeated int64 transition_head = 5;longgetTransitionLabel(int index)repeated int64 transition_label = 6;intgetTransitionLabelCount()repeated int64 transition_label = 6;java.util.List<java.lang.Long>getTransitionLabelList()repeated int64 transition_label = 6;longgetTransitionTail(int index)List of transitions (all 3 vectors have the same size).intgetTransitionTailCount()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).intgetVars(int index)The sequence of variables.intgetVarsCount()The sequence of variables.java.util.List<java.lang.Integer>getVarsList()The sequence of variables.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AutomatonConstraintProto.BuildermergeFrom(AutomatonConstraintProto other)AutomatonConstraintProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AutomatonConstraintProto.BuildermergeFrom(com.google.protobuf.Message other)AutomatonConstraintProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutomatonConstraintProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AutomatonConstraintProto.BuildersetFinalStates(int index, long value)repeated int64 final_states = 3;AutomatonConstraintProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)AutomatonConstraintProto.BuildersetStartingState(long value)A state is identified by a non-negative number.AutomatonConstraintProto.BuildersetTransitionHead(int index, long value)repeated int64 transition_head = 5;AutomatonConstraintProto.BuildersetTransitionLabel(int index, long value)repeated int64 transition_label = 6;AutomatonConstraintProto.BuildersetTransitionTail(int index, long value)List of transitions (all 3 vectors have the same size).AutomatonConstraintProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutomatonConstraintProto.BuildersetVars(int index, int value)The sequence of variables.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
clear
public AutomatonConstraintProto.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
getDefaultInstanceForType
public AutomatonConstraintProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutomatonConstraintProto build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutomatonConstraintProto buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutomatonConstraintProto.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
setField
public AutomatonConstraintProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
clearField
public AutomatonConstraintProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
clearOneof
public AutomatonConstraintProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
setRepeatedField
public AutomatonConstraintProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
addRepeatedField
public AutomatonConstraintProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
mergeFrom
public AutomatonConstraintProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatonConstraintProto.Builder>
-
mergeFrom
public AutomatonConstraintProto.Builder mergeFrom(AutomatonConstraintProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
mergeFrom
public AutomatonConstraintProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatonConstraintProto.Builder>- Throws:
java.io.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:
getStartingStatein interfaceAutomatonConstraintProtoOrBuilder- Returns:
- The startingState.
-
setStartingState
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;- Parameters:
value- The startingState to set.- Returns:
- This builder for chaining.
-
clearStartingState
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;- Returns:
- This builder for chaining.
-
getFinalStatesList
public java.util.List<java.lang.Long> getFinalStatesList()
repeated int64 final_states = 3;- Specified by:
getFinalStatesListin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- A list containing the finalStates.
-
getFinalStatesCount
public int getFinalStatesCount()
repeated int64 final_states = 3;- Specified by:
getFinalStatesCountin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- The count of finalStates.
-
getFinalStates
public long getFinalStates(int index)
repeated int64 final_states = 3;- Specified by:
getFinalStatesin interfaceAutomatonConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalStates at the given index.
-
setFinalStates
public AutomatonConstraintProto.Builder setFinalStates(int index, long value)
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
public AutomatonConstraintProto.Builder addFinalStates(long value)
repeated int64 final_states = 3;- Parameters:
value- The finalStates to add.- Returns:
- This builder for chaining.
-
addAllFinalStates
public AutomatonConstraintProto.Builder addAllFinalStates(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 final_states = 3;- Parameters:
values- The finalStates to add.- Returns:
- This builder for chaining.
-
clearFinalStates
public AutomatonConstraintProto.Builder clearFinalStates()
repeated int64 final_states = 3;- Returns:
- This builder for chaining.
-
getTransitionTailList
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;- Specified by:
getTransitionTailListin 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:
getTransitionTailCountin 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:
getTransitionTailin interfaceAutomatonConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The transitionTail at the given index.
-
setTransitionTail
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;- Parameters:
index- The index to set the value at.value- The transitionTail to set.- Returns:
- This builder for chaining.
-
addTransitionTail
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;- Parameters:
value- The transitionTail to add.- Returns:
- This builder for chaining.
-
addAllTransitionTail
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;- Parameters:
values- The transitionTail to add.- Returns:
- This builder for chaining.
-
clearTransitionTail
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;- Returns:
- This builder for chaining.
-
getTransitionHeadList
public java.util.List<java.lang.Long> getTransitionHeadList()
repeated int64 transition_head = 5;- Specified by:
getTransitionHeadListin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- A list containing the transitionHead.
-
getTransitionHeadCount
public int getTransitionHeadCount()
repeated int64 transition_head = 5;- Specified by:
getTransitionHeadCountin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- The count of transitionHead.
-
getTransitionHead
public long getTransitionHead(int index)
repeated int64 transition_head = 5;- Specified by:
getTransitionHeadin interfaceAutomatonConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The transitionHead at the given index.
-
setTransitionHead
public AutomatonConstraintProto.Builder setTransitionHead(int index, long value)
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
public AutomatonConstraintProto.Builder addTransitionHead(long value)
repeated int64 transition_head = 5;- Parameters:
value- The transitionHead to add.- Returns:
- This builder for chaining.
-
addAllTransitionHead
public AutomatonConstraintProto.Builder addAllTransitionHead(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 transition_head = 5;- Parameters:
values- The transitionHead to add.- Returns:
- This builder for chaining.
-
clearTransitionHead
public AutomatonConstraintProto.Builder clearTransitionHead()
repeated int64 transition_head = 5;- Returns:
- This builder for chaining.
-
getTransitionLabelList
public java.util.List<java.lang.Long> getTransitionLabelList()
repeated int64 transition_label = 6;- Specified by:
getTransitionLabelListin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- A list containing the transitionLabel.
-
getTransitionLabelCount
public int getTransitionLabelCount()
repeated int64 transition_label = 6;- Specified by:
getTransitionLabelCountin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- The count of transitionLabel.
-
getTransitionLabel
public long getTransitionLabel(int index)
repeated int64 transition_label = 6;- Specified by:
getTransitionLabelin interfaceAutomatonConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The transitionLabel at the given index.
-
setTransitionLabel
public AutomatonConstraintProto.Builder setTransitionLabel(int index, long value)
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
public AutomatonConstraintProto.Builder addTransitionLabel(long value)
repeated int64 transition_label = 6;- Parameters:
value- The transitionLabel to add.- Returns:
- This builder for chaining.
-
addAllTransitionLabel
public AutomatonConstraintProto.Builder addAllTransitionLabel(java.lang.Iterable<? extends java.lang.Long> values)
repeated int64 transition_label = 6;- Parameters:
values- The transitionLabel to add.- Returns:
- This builder for chaining.
-
clearTransitionLabel
public AutomatonConstraintProto.Builder clearTransitionLabel()
repeated int64 transition_label = 6;- Returns:
- This builder for chaining.
-
getVarsList
public java.util.List<java.lang.Integer> getVarsList()
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Specified by:
getVarsListin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- A list containing the vars.
-
getVarsCount
public int getVarsCount()
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Specified by:
getVarsCountin interfaceAutomatonConstraintProtoOrBuilder- Returns:
- The count of vars.
-
getVars
public int getVars(int index)
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Specified by:
getVarsin interfaceAutomatonConstraintProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The vars at the given index.
-
setVars
public AutomatonConstraintProto.Builder setVars(int index, int value)
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Parameters:
index- The index to set the value at.value- The vars to set.- Returns:
- This builder for chaining.
-
addVars
public AutomatonConstraintProto.Builder addVars(int value)
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Parameters:
value- The vars to add.- Returns:
- This builder for chaining.
-
addAllVars
public AutomatonConstraintProto.Builder addAllVars(java.lang.Iterable<? extends java.lang.Integer> values)
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Parameters:
values- The vars to add.- Returns:
- This builder for chaining.
-
clearVars
public AutomatonConstraintProto.Builder clearVars()
The sequence of variables. The automaton is ran for vars_size() "steps" and the value of vars[i] corresponds to the transition label at step i.
repeated int32 vars = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AutomatonConstraintProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
mergeUnknownFields
public final AutomatonConstraintProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatonConstraintProto.Builder>
-
-