public static final class Eraftpb.ConfState.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder> implements Eraftpb.ConfStateOrBuilder
eraftpb.ConfState| 限定符和类型 | 方法和说明 |
|---|---|
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. remove the outgoing config) when this is safe.
|
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. remove the outgoing config) when this is safe.
|
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. remove the outgoing config) when this is safe.
|
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, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Eraftpb.ConfState build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Eraftpb.ConfState buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Eraftpb.ConfState.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Eraftpb.ConfState.Builder>public Eraftpb.ConfState.Builder mergeFrom(Eraftpb.ConfState other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 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 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Eraftpb.ConfState.Builder>IOExceptionpublic List<Long> getVotersList()
repeated uint64 voters = 1;getVotersList 在接口中 Eraftpb.ConfStateOrBuilderpublic int getVotersCount()
repeated uint64 voters = 1;getVotersCount 在接口中 Eraftpb.ConfStateOrBuilderpublic long getVoters(int index)
repeated uint64 voters = 1;getVoters 在接口中 Eraftpb.ConfStateOrBuilderpublic Eraftpb.ConfState.Builder setVoters(int index, long value)
repeated uint64 voters = 1;public Eraftpb.ConfState.Builder addVoters(long value)
repeated uint64 voters = 1;public Eraftpb.ConfState.Builder addAllVoters(Iterable<? extends Long> values)
repeated uint64 voters = 1;public Eraftpb.ConfState.Builder clearVoters()
repeated uint64 voters = 1;public List<Long> getLearnersList()
repeated uint64 learners = 2;getLearnersList 在接口中 Eraftpb.ConfStateOrBuilderpublic int getLearnersCount()
repeated uint64 learners = 2;getLearnersCount 在接口中 Eraftpb.ConfStateOrBuilderpublic long getLearners(int index)
repeated uint64 learners = 2;getLearners 在接口中 Eraftpb.ConfStateOrBuilderpublic Eraftpb.ConfState.Builder setLearners(int index, long value)
repeated uint64 learners = 2;public Eraftpb.ConfState.Builder addLearners(long value)
repeated uint64 learners = 2;public Eraftpb.ConfState.Builder addAllLearners(Iterable<? extends Long> values)
repeated uint64 learners = 2;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;public int getVotersOutgoingCount()
The voters in the outgoing config. If not empty the node is in joint consensus.
repeated uint64 voters_outgoing = 3;public 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 在接口中 Eraftpb.ConfStateOrBuilderpublic 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;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;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;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;public 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;public 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 在接口中 Eraftpb.ConfStateOrBuilderpublic 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;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;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;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 在接口中 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;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 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>public final Eraftpb.ConfState.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>Copyright © 2023 PingCAP. All rights reserved.