public static final class Eraftpb.Entry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Entry.Builder> implements Eraftpb.EntryOrBuilder
The entry is a type of change that needs to be applied. It contains two data fields. While the fields are built into the model; their usage is determined by the entry_type. For normal entries, the data field should contain the data change that should be applied. The context field can be used for any contextual data that might be relevant to the application of the data. For configuration changes, the data will contain the ConfChange message and the context will provide anything needed to assist the configuration change. The context if for the user to set and use in this case.Protobuf type
eraftpb.Entry
Modifier and Type | Method and Description |
---|---|
Eraftpb.Entry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Eraftpb.Entry |
build() |
Eraftpb.Entry |
buildPartial() |
Eraftpb.Entry.Builder |
clear() |
Eraftpb.Entry.Builder |
clearContext()
bytes context = 6; |
Eraftpb.Entry.Builder |
clearData()
bytes data = 4; |
Eraftpb.Entry.Builder |
clearEntryType()
.eraftpb.EntryType entry_type = 1; |
Eraftpb.Entry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Eraftpb.Entry.Builder |
clearIndex()
uint64 index = 3; |
Eraftpb.Entry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Eraftpb.Entry.Builder |
clearSyncLog()
Deprecated! It is kept for backward compatibility.
|
Eraftpb.Entry.Builder |
clearTerm()
uint64 term = 2; |
Eraftpb.Entry.Builder |
clone() |
com.google.protobuf.ByteString |
getContext()
bytes context = 6; |
com.google.protobuf.ByteString |
getData()
bytes data = 4; |
Eraftpb.Entry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Eraftpb.EntryType |
getEntryType()
.eraftpb.EntryType entry_type = 1; |
int |
getEntryTypeValue()
.eraftpb.EntryType entry_type = 1; |
long |
getIndex()
uint64 index = 3; |
boolean |
getSyncLog()
Deprecated! It is kept for backward compatibility.
|
long |
getTerm()
uint64 term = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Eraftpb.Entry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Eraftpb.Entry.Builder |
mergeFrom(Eraftpb.Entry other) |
Eraftpb.Entry.Builder |
mergeFrom(com.google.protobuf.Message other) |
Eraftpb.Entry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Eraftpb.Entry.Builder |
setContext(com.google.protobuf.ByteString value)
bytes context = 6; |
Eraftpb.Entry.Builder |
setData(com.google.protobuf.ByteString value)
bytes data = 4; |
Eraftpb.Entry.Builder |
setEntryType(Eraftpb.EntryType value)
.eraftpb.EntryType entry_type = 1; |
Eraftpb.Entry.Builder |
setEntryTypeValue(int value)
.eraftpb.EntryType entry_type = 1; |
Eraftpb.Entry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Eraftpb.Entry.Builder |
setIndex(long value)
uint64 index = 3; |
Eraftpb.Entry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Eraftpb.Entry.Builder |
setSyncLog(boolean value)
Deprecated! It is kept for backward compatibility.
|
Eraftpb.Entry.Builder |
setTerm(long value)
uint64 term = 2; |
Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.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.Entry.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.Entry.Builder>
public Eraftpb.Entry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Eraftpb.Entry build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Eraftpb.Entry buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.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.Entry.Builder>
public Eraftpb.Entry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Eraftpb.Entry.Builder>
public Eraftpb.Entry.Builder mergeFrom(Eraftpb.Entry other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Entry.Builder>
public Eraftpb.Entry.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.Entry.Builder>
IOException
public int getEntryTypeValue()
.eraftpb.EntryType entry_type = 1;
getEntryTypeValue
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setEntryTypeValue(int value)
.eraftpb.EntryType entry_type = 1;
value
- The enum numeric value on the wire for entryType to set.public Eraftpb.EntryType getEntryType()
.eraftpb.EntryType entry_type = 1;
getEntryType
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setEntryType(Eraftpb.EntryType value)
.eraftpb.EntryType entry_type = 1;
value
- The entryType to set.public Eraftpb.Entry.Builder clearEntryType()
.eraftpb.EntryType entry_type = 1;
public long getTerm()
uint64 term = 2;
getTerm
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setTerm(long value)
uint64 term = 2;
value
- The term to set.public Eraftpb.Entry.Builder clearTerm()
uint64 term = 2;
public long getIndex()
uint64 index = 3;
getIndex
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setIndex(long value)
uint64 index = 3;
value
- The index to set.public Eraftpb.Entry.Builder clearIndex()
uint64 index = 3;
public com.google.protobuf.ByteString getData()
bytes data = 4;
getData
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setData(com.google.protobuf.ByteString value)
bytes data = 4;
value
- The data to set.public Eraftpb.Entry.Builder clearData()
bytes data = 4;
public com.google.protobuf.ByteString getContext()
bytes context = 6;
getContext
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setContext(com.google.protobuf.ByteString value)
bytes context = 6;
value
- The context to set.public Eraftpb.Entry.Builder clearContext()
bytes context = 6;
public boolean getSyncLog()
Deprecated! It is kept for backward compatibility. TODO: remove it in the next major release.
bool sync_log = 5;
getSyncLog
in interface Eraftpb.EntryOrBuilder
public Eraftpb.Entry.Builder setSyncLog(boolean value)
Deprecated! It is kept for backward compatibility. TODO: remove it in the next major release.
bool sync_log = 5;
value
- The syncLog to set.public Eraftpb.Entry.Builder clearSyncLog()
Deprecated! It is kept for backward compatibility. TODO: remove it in the next major release.
bool sync_log = 5;
public final Eraftpb.Entry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Entry.Builder>
public final Eraftpb.Entry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Eraftpb.Entry.Builder>
Copyright © 2024 PingCAP. All rights reserved.