public static final class Eraftpb.ConfState.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder> implements Eraftpb.ConfStateOrBuilder
eraftpb.ConfState| Modifier and Type | Method and Description |
|---|---|
Eraftpb.ConfState.Builder |
addAllLearners(Iterable<? extends Long> values)
repeated uint64 learners = 2; |
Eraftpb.ConfState.Builder |
addAllLearnersNext(Iterable<? extends Long> values)
The nodes that will become learners when the outgoing config is removed.
|
Eraftpb.ConfState.Builder |
addAllVoters(Iterable<? extends Long> values)
repeated uint64 voters = 1; |
Eraftpb.ConfState.Builder |
addAllVotersOutgoing(Iterable<? extends Long> values)
The voters in the outgoing config.
|
Eraftpb.ConfState.Builder |
addLearners(long value)
repeated uint64 learners = 2; |
Eraftpb.ConfState.Builder |
addLearnersNext(long value)
The nodes that will become learners when the outgoing config is removed.
|
Eraftpb.ConfState.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Eraftpb.ConfState.Builder |
addVoters(long value)
repeated uint64 voters = 1; |
Eraftpb.ConfState.Builder |
addVotersOutgoing(long value)
The voters in the outgoing config.
|
Eraftpb.ConfState |
build() |
Eraftpb.ConfState |
buildPartial() |
Eraftpb.ConfState.Builder |
clear() |
Eraftpb.ConfState.Builder |
clearAutoLeave()
If set, the config is joint and Raft will automatically transition into
the final config (i.e.
|
Eraftpb.ConfState.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Eraftpb.ConfState.Builder |
clearLearners()
repeated uint64 learners = 2; |
Eraftpb.ConfState.Builder |
clearLearnersNext()
The nodes that will become learners when the outgoing config is removed.
|
Eraftpb.ConfState.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Eraftpb.ConfState.Builder |
clearVoters()
repeated uint64 voters = 1; |
Eraftpb.ConfState.Builder |
clearVotersOutgoing()
The voters in the outgoing config.
|
Eraftpb.ConfState.Builder |
clone() |
boolean |
getAutoLeave()
If set, the config is joint and Raft will automatically transition into
the final config (i.e.
|
Eraftpb.ConfState |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getLearners(int index)
repeated uint64 learners = 2; |
int |
getLearnersCount()
repeated uint64 learners = 2; |
List<Long> |
getLearnersList()
repeated uint64 learners = 2; |
long |
getLearnersNext(int index)
The nodes that will become learners when the outgoing config is removed.
|
int |
getLearnersNextCount()
The nodes that will become learners when the outgoing config is removed.
|
List<Long> |
getLearnersNextList()
The nodes that will become learners when the outgoing config is removed.
|
long |
getVoters(int index)
repeated uint64 voters = 1; |
int |
getVotersCount()
repeated uint64 voters = 1; |
List<Long> |
getVotersList()
repeated uint64 voters = 1; |
long |
getVotersOutgoing(int index)
The voters in the outgoing config.
|
int |
getVotersOutgoingCount()
The voters in the outgoing config.
|
List<Long> |
getVotersOutgoingList()
The voters in the outgoing config.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Eraftpb.ConfState.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Eraftpb.ConfState.Builder |
mergeFrom(Eraftpb.ConfState other) |
Eraftpb.ConfState.Builder |
mergeFrom(com.google.protobuf.Message other) |
Eraftpb.ConfState.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Eraftpb.ConfState.Builder |
setAutoLeave(boolean value)
If set, the config is joint and Raft will automatically transition into
the final config (i.e.
|
Eraftpb.ConfState.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Eraftpb.ConfState.Builder |
setLearners(int index,
long value)
repeated uint64 learners = 2; |
Eraftpb.ConfState.Builder |
setLearnersNext(int index,
long value)
The nodes that will become learners when the outgoing config is removed.
|
Eraftpb.ConfState.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Eraftpb.ConfState.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Eraftpb.ConfState.Builder |
setVoters(int index,
long value)
repeated uint64 voters = 1; |
Eraftpb.ConfState.Builder |
setVotersOutgoing(int index,
long value)
The voters in the outgoing config.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.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.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Eraftpb.ConfState build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Eraftpb.ConfState buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Eraftpb.ConfState.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder mergeFrom(Eraftpb.ConfState other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Eraftpb.ConfState.Builder>IOExceptionpublic List<Long> getVotersList()
repeated uint64 voters = 1;getVotersList in interface Eraftpb.ConfStateOrBuilderpublic int getVotersCount()
repeated uint64 voters = 1;getVotersCount in interface Eraftpb.ConfStateOrBuilderpublic long getVoters(int index)
repeated uint64 voters = 1;getVoters in interface Eraftpb.ConfStateOrBuilderindex - The index of the element to return.public Eraftpb.ConfState.Builder setVoters(int index, long value)
repeated uint64 voters = 1;index - The index to set the value at.value - The voters to set.public Eraftpb.ConfState.Builder addVoters(long value)
repeated uint64 voters = 1;value - The voters to add.public Eraftpb.ConfState.Builder addAllVoters(Iterable<? extends Long> values)
repeated uint64 voters = 1;values - The voters to add.public Eraftpb.ConfState.Builder clearVoters()
repeated uint64 voters = 1;public List<Long> getLearnersList()
repeated uint64 learners = 2;getLearnersList in interface Eraftpb.ConfStateOrBuilderpublic int getLearnersCount()
repeated uint64 learners = 2;getLearnersCount in interface Eraftpb.ConfStateOrBuilderpublic long getLearners(int index)
repeated uint64 learners = 2;getLearners in interface Eraftpb.ConfStateOrBuilderindex - The index of the element to return.public Eraftpb.ConfState.Builder setLearners(int index, long value)
repeated uint64 learners = 2;index - The index to set the value at.value - The learners to set.public Eraftpb.ConfState.Builder addLearners(long value)
repeated uint64 learners = 2;value - The learners to add.public Eraftpb.ConfState.Builder addAllLearners(Iterable<? extends Long> values)
repeated uint64 learners = 2;values - The learners to add.public Eraftpb.ConfState.Builder clearLearners()
repeated uint64 learners = 2;public List<Long> getVotersOutgoingList()
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;getVotersOutgoingList in interface Eraftpb.ConfStateOrBuilderpublic int getVotersOutgoingCount()
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;getVotersOutgoingCount in interface Eraftpb.ConfStateOrBuilderpublic long getVotersOutgoing(int index)
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;getVotersOutgoing in interface Eraftpb.ConfStateOrBuilderindex - The index of the element to return.public Eraftpb.ConfState.Builder setVotersOutgoing(int index, long value)
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;index - The index to set the value at.value - The votersOutgoing to set.public Eraftpb.ConfState.Builder addVotersOutgoing(long value)
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;value - The votersOutgoing to add.public Eraftpb.ConfState.Builder addAllVotersOutgoing(Iterable<? extends Long> values)
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;values - The votersOutgoing to add.public Eraftpb.ConfState.Builder clearVotersOutgoing()
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;public List<Long> getLearnersNextList()
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;getLearnersNextList in interface Eraftpb.ConfStateOrBuilderpublic int getLearnersNextCount()
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;getLearnersNextCount in interface Eraftpb.ConfStateOrBuilderpublic long getLearnersNext(int index)
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;getLearnersNext in interface Eraftpb.ConfStateOrBuilderindex - The index of the element to return.public Eraftpb.ConfState.Builder setLearnersNext(int index, long value)
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;index - The index to set the value at.value - The learnersNext to set.public Eraftpb.ConfState.Builder addLearnersNext(long value)
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;value - The learnersNext to add.public Eraftpb.ConfState.Builder addAllLearnersNext(Iterable<? extends Long> values)
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;values - The learnersNext to add.public Eraftpb.ConfState.Builder clearLearnersNext()
The nodes that will become learners when the outgoing config is removed. These nodes are necessarily currently in nodes_joint (or they would have been added to the incoming config right away).
repeated uint64 learners_next = 4;public boolean getAutoLeave()
If set, the config is joint and Raft will automatically transition into the final config (i.e. remove the outgoing config) when this is safe.
bool auto_leave = 5;getAutoLeave in interface Eraftpb.ConfStateOrBuilderpublic Eraftpb.ConfState.Builder setAutoLeave(boolean value)
If set, the config is joint and Raft will automatically transition into the final config (i.e. remove the outgoing config) when this is safe.
bool auto_leave = 5;value - The autoLeave to set.public Eraftpb.ConfState.Builder clearAutoLeave()
If set, the config is joint and Raft will automatically transition into the final config (i.e. remove the outgoing config) when this is safe.
bool auto_leave = 5;public final Eraftpb.ConfState.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public final Eraftpb.ConfState.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>Copyright © 2025 PingCAP. All rights reserved.