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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.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.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>
public Eraftpb.ConfState getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Eraftpb.ConfState build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Eraftpb.ConfState buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Eraftpb.ConfState.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Eraftpb.ConfState.Builder>
IOException
public List<Long> getVotersList()
repeated uint64 voters = 1;
getVotersList
in interface Eraftpb.ConfStateOrBuilder
public int getVotersCount()
repeated uint64 voters = 1;
getVotersCount
in interface Eraftpb.ConfStateOrBuilder
public long getVoters(int index)
repeated uint64 voters = 1;
getVoters
in interface Eraftpb.ConfStateOrBuilder
index
- 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.ConfStateOrBuilder
public int getLearnersCount()
repeated uint64 learners = 2;
getLearnersCount
in interface Eraftpb.ConfStateOrBuilder
public long getLearners(int index)
repeated uint64 learners = 2;
getLearners
in interface Eraftpb.ConfStateOrBuilder
index
- 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.ConfStateOrBuilder
public 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.ConfStateOrBuilder
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
in interface Eraftpb.ConfStateOrBuilder
index
- 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.ConfStateOrBuilder
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;
getLearnersNextCount
in interface Eraftpb.ConfStateOrBuilder
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
in interface Eraftpb.ConfStateOrBuilder
index
- 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.ConfStateOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.ConfState.Builder>
Copyright © 2024 PingCAP. All rights reserved.