public static final class SparsePermutationProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<SparsePermutationProto.Builder> implements SparsePermutationProtoOrBuilder
A permutation of integers encoded as a list of cycles, hence the "sparse" format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length].Protobuf type
operations_research.sat.SparsePermutationProto| Modifier and Type | Method and Description |
|---|---|
SparsePermutationProto.Builder |
addAllCycleSizes(java.lang.Iterable<? extends java.lang.Integer> values)
repeated int32 cycle_sizes = 2; |
SparsePermutationProto.Builder |
addAllSupport(java.lang.Iterable<? extends java.lang.Integer> values)
Each cycle is listed one after the other in the support field.
|
SparsePermutationProto.Builder |
addCycleSizes(int value)
repeated int32 cycle_sizes = 2; |
SparsePermutationProto.Builder |
addSupport(int value)
Each cycle is listed one after the other in the support field.
|
SparsePermutationProto |
build() |
SparsePermutationProto |
buildPartial() |
SparsePermutationProto.Builder |
clear() |
SparsePermutationProto.Builder |
clearCycleSizes()
repeated int32 cycle_sizes = 2; |
SparsePermutationProto.Builder |
clearSupport()
Each cycle is listed one after the other in the support field.
|
int |
getCycleSizes(int index)
repeated int32 cycle_sizes = 2; |
int |
getCycleSizesCount()
repeated int32 cycle_sizes = 2; |
java.util.List<java.lang.Integer> |
getCycleSizesList()
repeated int32 cycle_sizes = 2; |
SparsePermutationProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getSupport(int index)
Each cycle is listed one after the other in the support field.
|
int |
getSupportCount()
Each cycle is listed one after the other in the support field.
|
java.util.List<java.lang.Integer> |
getSupportList()
Each cycle is listed one after the other in the support field.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SparsePermutationProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SparsePermutationProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
SparsePermutationProto.Builder |
mergeFrom(SparsePermutationProto other) |
SparsePermutationProto.Builder |
setCycleSizes(int index,
int value)
repeated int32 cycle_sizes = 2; |
SparsePermutationProto.Builder |
setSupport(int index,
int value)
Each cycle is listed one after the other in the support 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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SparsePermutationProto.Builder>public SparsePermutationProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SparsePermutationProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SparsePermutationProto.Builder>public SparsePermutationProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SparsePermutationProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SparsePermutationProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SparsePermutationProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparsePermutationProto.Builder>public SparsePermutationProto.Builder mergeFrom(SparsePermutationProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SparsePermutationProto.Builder>public SparsePermutationProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparsePermutationProto.Builder>java.io.IOExceptionpublic java.util.List<java.lang.Integer> getSupportList()
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;getSupportList in interface SparsePermutationProtoOrBuilderpublic int getSupportCount()
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;getSupportCount in interface SparsePermutationProtoOrBuilderpublic int getSupport(int index)
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;getSupport in interface SparsePermutationProtoOrBuilderindex - The index of the element to return.public SparsePermutationProto.Builder setSupport(int index, int value)
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;index - The index to set the value at.value - The support to set.public SparsePermutationProto.Builder addSupport(int value)
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;value - The support to add.public SparsePermutationProto.Builder addAllSupport(java.lang.Iterable<? extends java.lang.Integer> values)
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;values - The support to add.public SparsePermutationProto.Builder clearSupport()
Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
repeated int32 support = 1;public java.util.List<java.lang.Integer> getCycleSizesList()
repeated int32 cycle_sizes = 2;getCycleSizesList in interface SparsePermutationProtoOrBuilderpublic int getCycleSizesCount()
repeated int32 cycle_sizes = 2;getCycleSizesCount in interface SparsePermutationProtoOrBuilderpublic int getCycleSizes(int index)
repeated int32 cycle_sizes = 2;getCycleSizes in interface SparsePermutationProtoOrBuilderindex - The index of the element to return.public SparsePermutationProto.Builder setCycleSizes(int index, int value)
repeated int32 cycle_sizes = 2;index - The index to set the value at.value - The cycleSizes to set.public SparsePermutationProto.Builder addCycleSizes(int value)
repeated int32 cycle_sizes = 2;value - The cycleSizes to add.public SparsePermutationProto.Builder addAllCycleSizes(java.lang.Iterable<? extends java.lang.Integer> values)
repeated int32 cycle_sizes = 2;values - The cycleSizes to add.public SparsePermutationProto.Builder clearCycleSizes()
repeated int32 cycle_sizes = 2;Copyright © 2024. All rights reserved.