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, 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<SparsePermutationProto.Builder>
public SparsePermutationProto.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<SparsePermutationProto.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<SparsePermutationProto.Builder>
public SparsePermutationProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SparsePermutationProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SparsePermutationProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SparsePermutationProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SparsePermutationProto.Builder>
java.io.IOException
public 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 SparsePermutationProtoOrBuilder
public 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 SparsePermutationProtoOrBuilder
public 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 SparsePermutationProtoOrBuilder
index
- 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 SparsePermutationProtoOrBuilder
public int getCycleSizesCount()
repeated int32 cycle_sizes = 2;
getCycleSizesCount
in interface SparsePermutationProtoOrBuilder
public int getCycleSizes(int index)
repeated int32 cycle_sizes = 2;
getCycleSizes
in interface SparsePermutationProtoOrBuilder
index
- 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 © 2025. All rights reserved.