public static final class Eraftpb.Message.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Message.Builder> implements Eraftpb.MessageOrBuilder
eraftpb.Message
Modifier and Type | Method and Description |
---|---|
Eraftpb.Message.Builder |
addAllEntries(Iterable<? extends Eraftpb.Entry> values)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
addEntries(Eraftpb.Entry.Builder builderForValue)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
addEntries(Eraftpb.Entry value)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
addEntries(int index,
Eraftpb.Entry.Builder builderForValue)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
addEntries(int index,
Eraftpb.Entry value)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Entry.Builder |
addEntriesBuilder()
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Entry.Builder |
addEntriesBuilder(int index)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Eraftpb.Message |
build() |
Eraftpb.Message |
buildPartial() |
Eraftpb.Message.Builder |
clear() |
Eraftpb.Message.Builder |
clearCommit()
uint64 commit = 8; |
Eraftpb.Message.Builder |
clearContext()
bytes context = 12; |
Eraftpb.Message.Builder |
clearEntries()
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Eraftpb.Message.Builder |
clearFrom()
uint64 from = 3; |
Eraftpb.Message.Builder |
clearIndex()
uint64 index = 6; |
Eraftpb.Message.Builder |
clearLogTerm()
uint64 log_term = 5; |
Eraftpb.Message.Builder |
clearMsgType()
.eraftpb.MessageType msg_type = 1; |
Eraftpb.Message.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Eraftpb.Message.Builder |
clearReject()
bool reject = 10; |
Eraftpb.Message.Builder |
clearRejectHint()
uint64 reject_hint = 11; |
Eraftpb.Message.Builder |
clearRequestSnapshot()
uint64 request_snapshot = 13; |
Eraftpb.Message.Builder |
clearSnapshot()
.eraftpb.Snapshot snapshot = 9; |
Eraftpb.Message.Builder |
clearTerm()
uint64 term = 4; |
Eraftpb.Message.Builder |
clearTo()
uint64 to = 2; |
Eraftpb.Message.Builder |
clone() |
long |
getCommit()
uint64 commit = 8; |
com.google.protobuf.ByteString |
getContext()
bytes context = 12; |
Eraftpb.Message |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Eraftpb.Entry |
getEntries(int index)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Entry.Builder |
getEntriesBuilder(int index)
repeated .eraftpb.Entry entries = 7; |
List<Eraftpb.Entry.Builder> |
getEntriesBuilderList()
repeated .eraftpb.Entry entries = 7; |
int |
getEntriesCount()
repeated .eraftpb.Entry entries = 7; |
List<Eraftpb.Entry> |
getEntriesList()
repeated .eraftpb.Entry entries = 7; |
Eraftpb.EntryOrBuilder |
getEntriesOrBuilder(int index)
repeated .eraftpb.Entry entries = 7; |
List<? extends Eraftpb.EntryOrBuilder> |
getEntriesOrBuilderList()
repeated .eraftpb.Entry entries = 7; |
long |
getFrom()
uint64 from = 3; |
long |
getIndex()
uint64 index = 6; |
long |
getLogTerm()
uint64 log_term = 5; |
Eraftpb.MessageType |
getMsgType()
.eraftpb.MessageType msg_type = 1; |
int |
getMsgTypeValue()
.eraftpb.MessageType msg_type = 1; |
boolean |
getReject()
bool reject = 10; |
long |
getRejectHint()
uint64 reject_hint = 11; |
long |
getRequestSnapshot()
uint64 request_snapshot = 13; |
Eraftpb.Snapshot |
getSnapshot()
.eraftpb.Snapshot snapshot = 9; |
Eraftpb.Snapshot.Builder |
getSnapshotBuilder()
.eraftpb.Snapshot snapshot = 9; |
Eraftpb.SnapshotOrBuilder |
getSnapshotOrBuilder()
.eraftpb.Snapshot snapshot = 9; |
long |
getTerm()
uint64 term = 4; |
long |
getTo()
uint64 to = 2; |
boolean |
hasSnapshot()
.eraftpb.Snapshot snapshot = 9; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Eraftpb.Message.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Eraftpb.Message.Builder |
mergeFrom(Eraftpb.Message other) |
Eraftpb.Message.Builder |
mergeFrom(com.google.protobuf.Message other) |
Eraftpb.Message.Builder |
mergeSnapshot(Eraftpb.Snapshot value)
.eraftpb.Snapshot snapshot = 9; |
Eraftpb.Message.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Eraftpb.Message.Builder |
removeEntries(int index)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
setCommit(long value)
uint64 commit = 8; |
Eraftpb.Message.Builder |
setContext(com.google.protobuf.ByteString value)
bytes context = 12; |
Eraftpb.Message.Builder |
setEntries(int index,
Eraftpb.Entry.Builder builderForValue)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
setEntries(int index,
Eraftpb.Entry value)
repeated .eraftpb.Entry entries = 7; |
Eraftpb.Message.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Eraftpb.Message.Builder |
setFrom(long value)
uint64 from = 3; |
Eraftpb.Message.Builder |
setIndex(long value)
uint64 index = 6; |
Eraftpb.Message.Builder |
setLogTerm(long value)
uint64 log_term = 5; |
Eraftpb.Message.Builder |
setMsgType(Eraftpb.MessageType value)
.eraftpb.MessageType msg_type = 1; |
Eraftpb.Message.Builder |
setMsgTypeValue(int value)
.eraftpb.MessageType msg_type = 1; |
Eraftpb.Message.Builder |
setReject(boolean value)
bool reject = 10; |
Eraftpb.Message.Builder |
setRejectHint(long value)
uint64 reject_hint = 11; |
Eraftpb.Message.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Eraftpb.Message.Builder |
setRequestSnapshot(long value)
uint64 request_snapshot = 13; |
Eraftpb.Message.Builder |
setSnapshot(Eraftpb.Snapshot.Builder builderForValue)
.eraftpb.Snapshot snapshot = 9; |
Eraftpb.Message.Builder |
setSnapshot(Eraftpb.Snapshot value)
.eraftpb.Snapshot snapshot = 9; |
Eraftpb.Message.Builder |
setTerm(long value)
uint64 term = 4; |
Eraftpb.Message.Builder |
setTo(long value)
uint64 to = 2; |
Eraftpb.Message.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.Message.Builder>
public Eraftpb.Message.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.Message.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.Message.Builder>
public Eraftpb.Message getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Eraftpb.Message build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Eraftpb.Message buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Eraftpb.Message.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.Message.Builder>
public Eraftpb.Message.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.Message.Builder>
public Eraftpb.Message.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.Message.Builder>
public Eraftpb.Message.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.Message.Builder>
public Eraftpb.Message.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.Message.Builder>
public Eraftpb.Message.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.Message.Builder>
public Eraftpb.Message.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Eraftpb.Message.Builder>
public Eraftpb.Message.Builder mergeFrom(Eraftpb.Message other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Message.Builder>
public Eraftpb.Message.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.Message.Builder>
IOException
public int getMsgTypeValue()
.eraftpb.MessageType msg_type = 1;
getMsgTypeValue
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setMsgTypeValue(int value)
.eraftpb.MessageType msg_type = 1;
value
- The enum numeric value on the wire for msgType to set.public Eraftpb.MessageType getMsgType()
.eraftpb.MessageType msg_type = 1;
getMsgType
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setMsgType(Eraftpb.MessageType value)
.eraftpb.MessageType msg_type = 1;
value
- The msgType to set.public Eraftpb.Message.Builder clearMsgType()
.eraftpb.MessageType msg_type = 1;
public long getTo()
uint64 to = 2;
getTo
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setTo(long value)
uint64 to = 2;
value
- The to to set.public Eraftpb.Message.Builder clearTo()
uint64 to = 2;
public long getFrom()
uint64 from = 3;
getFrom
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setFrom(long value)
uint64 from = 3;
value
- The from to set.public Eraftpb.Message.Builder clearFrom()
uint64 from = 3;
public long getTerm()
uint64 term = 4;
getTerm
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setTerm(long value)
uint64 term = 4;
value
- The term to set.public Eraftpb.Message.Builder clearTerm()
uint64 term = 4;
public long getLogTerm()
uint64 log_term = 5;
getLogTerm
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setLogTerm(long value)
uint64 log_term = 5;
value
- The logTerm to set.public Eraftpb.Message.Builder clearLogTerm()
uint64 log_term = 5;
public long getIndex()
uint64 index = 6;
getIndex
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setIndex(long value)
uint64 index = 6;
value
- The index to set.public Eraftpb.Message.Builder clearIndex()
uint64 index = 6;
public List<Eraftpb.Entry> getEntriesList()
repeated .eraftpb.Entry entries = 7;
getEntriesList
in interface Eraftpb.MessageOrBuilder
public int getEntriesCount()
repeated .eraftpb.Entry entries = 7;
getEntriesCount
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Entry getEntries(int index)
repeated .eraftpb.Entry entries = 7;
getEntries
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setEntries(int index, Eraftpb.Entry value)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder setEntries(int index, Eraftpb.Entry.Builder builderForValue)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder addEntries(Eraftpb.Entry value)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder addEntries(int index, Eraftpb.Entry value)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder addEntries(Eraftpb.Entry.Builder builderForValue)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder addEntries(int index, Eraftpb.Entry.Builder builderForValue)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder addAllEntries(Iterable<? extends Eraftpb.Entry> values)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder clearEntries()
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Message.Builder removeEntries(int index)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Entry.Builder getEntriesBuilder(int index)
repeated .eraftpb.Entry entries = 7;
public Eraftpb.EntryOrBuilder getEntriesOrBuilder(int index)
repeated .eraftpb.Entry entries = 7;
getEntriesOrBuilder
in interface Eraftpb.MessageOrBuilder
public List<? extends Eraftpb.EntryOrBuilder> getEntriesOrBuilderList()
repeated .eraftpb.Entry entries = 7;
getEntriesOrBuilderList
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Entry.Builder addEntriesBuilder()
repeated .eraftpb.Entry entries = 7;
public Eraftpb.Entry.Builder addEntriesBuilder(int index)
repeated .eraftpb.Entry entries = 7;
public List<Eraftpb.Entry.Builder> getEntriesBuilderList()
repeated .eraftpb.Entry entries = 7;
public long getCommit()
uint64 commit = 8;
getCommit
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setCommit(long value)
uint64 commit = 8;
value
- The commit to set.public Eraftpb.Message.Builder clearCommit()
uint64 commit = 8;
public boolean hasSnapshot()
.eraftpb.Snapshot snapshot = 9;
hasSnapshot
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Snapshot getSnapshot()
.eraftpb.Snapshot snapshot = 9;
getSnapshot
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setSnapshot(Eraftpb.Snapshot value)
.eraftpb.Snapshot snapshot = 9;
public Eraftpb.Message.Builder setSnapshot(Eraftpb.Snapshot.Builder builderForValue)
.eraftpb.Snapshot snapshot = 9;
public Eraftpb.Message.Builder mergeSnapshot(Eraftpb.Snapshot value)
.eraftpb.Snapshot snapshot = 9;
public Eraftpb.Message.Builder clearSnapshot()
.eraftpb.Snapshot snapshot = 9;
public Eraftpb.Snapshot.Builder getSnapshotBuilder()
.eraftpb.Snapshot snapshot = 9;
public Eraftpb.SnapshotOrBuilder getSnapshotOrBuilder()
.eraftpb.Snapshot snapshot = 9;
getSnapshotOrBuilder
in interface Eraftpb.MessageOrBuilder
public long getRequestSnapshot()
uint64 request_snapshot = 13;
getRequestSnapshot
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setRequestSnapshot(long value)
uint64 request_snapshot = 13;
value
- The requestSnapshot to set.public Eraftpb.Message.Builder clearRequestSnapshot()
uint64 request_snapshot = 13;
public boolean getReject()
bool reject = 10;
getReject
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setReject(boolean value)
bool reject = 10;
value
- The reject to set.public Eraftpb.Message.Builder clearReject()
bool reject = 10;
public long getRejectHint()
uint64 reject_hint = 11;
getRejectHint
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setRejectHint(long value)
uint64 reject_hint = 11;
value
- The rejectHint to set.public Eraftpb.Message.Builder clearRejectHint()
uint64 reject_hint = 11;
public com.google.protobuf.ByteString getContext()
bytes context = 12;
getContext
in interface Eraftpb.MessageOrBuilder
public Eraftpb.Message.Builder setContext(com.google.protobuf.ByteString value)
bytes context = 12;
value
- The context to set.public Eraftpb.Message.Builder clearContext()
bytes context = 12;
public final Eraftpb.Message.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Message.Builder>
public final Eraftpb.Message.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Message.Builder>
Copyright © 2024 PingCAP. All rights reserved.