Class Lrat.LratInferredClause.RatInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
operations_research.sat.Lrat.LratInferredClause.RatInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Lrat.LratInferredClause.RatInfoOrBuilder
- Enclosing class:
Lrat.LratInferredClause.RatInfo
public static final class Lrat.LratInferredClause.RatInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
implements Lrat.LratInferredClause.RatInfoOrBuilder
If `rat_infos` is empty, the last `unit_ids` clause must become empty after unit propagation. If the last `unit_ids` clause does not become empty by unit propagation, then `rat_infos` must contain all the clauses which contain the negation of the first `literals` (called the pivot 'p') -- and no other clauses. Moreover, for each r in `rat_infos`, all the `r.unit_ids` clauses must become unit and eventually empty if all the literals of the `r.resolvant_id` clause (minus ~p), plus those in `literals`, are assumed to be false (this list must be in unit propagation order; verification stops at the first empty clause). See LratChecker for more details.Protobuf type
operations_research.sat.LratInferredClause.RatInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllUnitIds(Iterable<? extends Long> values) repeated int64 unit_ids = 2 [packed = true];addUnitIds(long value) repeated int64 unit_ids = 2 [packed = true];build()clear()optional int64 resolvant_id = 1;repeated int64 unit_ids = 2 [packed = true];static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlongoptional int64 resolvant_id = 1;longgetUnitIds(int index) repeated int64 unit_ids = 2 [packed = true];intrepeated int64 unit_ids = 2 [packed = true];repeated int64 unit_ids = 2 [packed = true];booleanoptional int64 resolvant_id = 1;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setResolvantId(long value) optional int64 resolvant_id = 1;setUnitIds(int index, long value) repeated int64 unit_ids = 2 [packed = true];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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Lrat.LratInferredClause.RatInfo.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.GeneratedMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>
-
mergeFrom
public Lrat.LratInferredClause.RatInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lrat.LratInferredClause.RatInfo.Builder>- Throws:
IOException
-
hasResolvantId
public boolean hasResolvantId()optional int64 resolvant_id = 1;- Specified by:
hasResolvantIdin interfaceLrat.LratInferredClause.RatInfoOrBuilder- Returns:
- Whether the resolvantId field is set.
-
getResolvantId
public long getResolvantId()optional int64 resolvant_id = 1;- Specified by:
getResolvantIdin interfaceLrat.LratInferredClause.RatInfoOrBuilder- Returns:
- The resolvantId.
-
setResolvantId
optional int64 resolvant_id = 1;- Parameters:
value- The resolvantId to set.- Returns:
- This builder for chaining.
-
clearResolvantId
optional int64 resolvant_id = 1;- Returns:
- This builder for chaining.
-
getUnitIdsList
repeated int64 unit_ids = 2 [packed = true];- Specified by:
getUnitIdsListin interfaceLrat.LratInferredClause.RatInfoOrBuilder- Returns:
- A list containing the unitIds.
-
getUnitIdsCount
public int getUnitIdsCount()repeated int64 unit_ids = 2 [packed = true];- Specified by:
getUnitIdsCountin interfaceLrat.LratInferredClause.RatInfoOrBuilder- Returns:
- The count of unitIds.
-
getUnitIds
public long getUnitIds(int index) repeated int64 unit_ids = 2 [packed = true];- Specified by:
getUnitIdsin interfaceLrat.LratInferredClause.RatInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The unitIds at the given index.
-
setUnitIds
repeated int64 unit_ids = 2 [packed = true];- Parameters:
index- The index to set the value at.value- The unitIds to set.- Returns:
- This builder for chaining.
-
addUnitIds
repeated int64 unit_ids = 2 [packed = true];- Parameters:
value- The unitIds to add.- Returns:
- This builder for chaining.
-
addAllUnitIds
repeated int64 unit_ids = 2 [packed = true];- Parameters:
values- The unitIds to add.- Returns:
- This builder for chaining.
-
clearUnitIds
repeated int64 unit_ids = 2 [packed = true];- Returns:
- This builder for chaining.
-