public static final class EloquentRaftProto.LogEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder> implements EloquentRaftProto.LogEntryOrBuilder
ai.eloquent.raft.LogEntry| Modifier and Type | Method and Description |
|---|---|
EloquentRaftProto.LogEntry.Builder |
addAllConfiguration(java.lang.Iterable<java.lang.String> values)
the new configuration for the cluster - only in CONFIGURATION
|
EloquentRaftProto.LogEntry.Builder |
addConfiguration(java.lang.String value)
the new configuration for the cluster - only in CONFIGURATION
|
EloquentRaftProto.LogEntry.Builder |
addConfigurationBytes(com.google.protobuf.ByteString value)
the new configuration for the cluster - only in CONFIGURATION
|
EloquentRaftProto.LogEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
EloquentRaftProto.LogEntry |
build() |
EloquentRaftProto.LogEntry |
buildPartial() |
EloquentRaftProto.LogEntry.Builder |
clear() |
EloquentRaftProto.LogEntry.Builder |
clearConfiguration()
the new configuration for the cluster - only in CONFIGURATION
|
EloquentRaftProto.LogEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EloquentRaftProto.LogEntry.Builder |
clearIndex()
the index of the log entry
|
EloquentRaftProto.LogEntry.Builder |
clearNewHospiceMember()
or, the addition of a hospice member - only in TRANSITION messages
|
EloquentRaftProto.LogEntry.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EloquentRaftProto.LogEntry.Builder |
clearPayload() |
EloquentRaftProto.LogEntry.Builder |
clearTerm()
term when the log entry was created
|
EloquentRaftProto.LogEntry.Builder |
clearTransition()
the raw bytes of the transition request - only in TRANSITION messages
|
EloquentRaftProto.LogEntry.Builder |
clearType()
the type of the log entry
|
EloquentRaftProto.LogEntry.Builder |
clone() |
java.lang.String |
getConfiguration(int index)
the new configuration for the cluster - only in CONFIGURATION
|
com.google.protobuf.ByteString |
getConfigurationBytes(int index)
the new configuration for the cluster - only in CONFIGURATION
|
int |
getConfigurationCount()
the new configuration for the cluster - only in CONFIGURATION
|
com.google.protobuf.ProtocolStringList |
getConfigurationList()
the new configuration for the cluster - only in CONFIGURATION
|
EloquentRaftProto.LogEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIndex()
the index of the log entry
|
java.lang.String |
getNewHospiceMember()
or, the addition of a hospice member - only in TRANSITION messages
|
com.google.protobuf.ByteString |
getNewHospiceMemberBytes()
or, the addition of a hospice member - only in TRANSITION messages
|
EloquentRaftProto.LogEntry.PayloadCase |
getPayloadCase() |
long |
getTerm()
term when the log entry was created
|
com.google.protobuf.ByteString |
getTransition()
the raw bytes of the transition request - only in TRANSITION messages
|
EloquentRaftProto.LogEntryType |
getType()
the type of the log entry
|
int |
getTypeValue()
the type of the log entry
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EloquentRaftProto.LogEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EloquentRaftProto.LogEntry.Builder |
mergeFrom(EloquentRaftProto.LogEntry other) |
EloquentRaftProto.LogEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
EloquentRaftProto.LogEntry.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EloquentRaftProto.LogEntry.Builder |
setConfiguration(int index,
java.lang.String value)
the new configuration for the cluster - only in CONFIGURATION
|
EloquentRaftProto.LogEntry.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
EloquentRaftProto.LogEntry.Builder |
setIndex(long value)
the index of the log entry
|
EloquentRaftProto.LogEntry.Builder |
setNewHospiceMember(java.lang.String value)
or, the addition of a hospice member - only in TRANSITION messages
|
EloquentRaftProto.LogEntry.Builder |
setNewHospiceMemberBytes(com.google.protobuf.ByteString value)
or, the addition of a hospice member - only in TRANSITION messages
|
EloquentRaftProto.LogEntry.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
EloquentRaftProto.LogEntry.Builder |
setTerm(long value)
term when the log entry was created
|
EloquentRaftProto.LogEntry.Builder |
setTransition(com.google.protobuf.ByteString value)
the raw bytes of the transition request - only in TRANSITION messages
|
EloquentRaftProto.LogEntry.Builder |
setType(EloquentRaftProto.LogEntryType value)
the type of the log entry
|
EloquentRaftProto.LogEntry.Builder |
setTypeValue(int value)
the type of the log entry
|
EloquentRaftProto.LogEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.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<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EloquentRaftProto.LogEntry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EloquentRaftProto.LogEntry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EloquentRaftProto.LogEntry.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder mergeFrom(EloquentRaftProto.LogEntry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public EloquentRaftProto.LogEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EloquentRaftProto.LogEntry.Builder>java.io.IOExceptionpublic EloquentRaftProto.LogEntry.PayloadCase getPayloadCase()
getPayloadCase in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder clearPayload()
public long getIndex()
the index of the log entry
uint64 index = 1;getIndex in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setIndex(long value)
the index of the log entry
uint64 index = 1;public EloquentRaftProto.LogEntry.Builder clearIndex()
the index of the log entry
uint64 index = 1;public long getTerm()
term when the log entry was created
uint64 term = 2;getTerm in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setTerm(long value)
term when the log entry was created
uint64 term = 2;public EloquentRaftProto.LogEntry.Builder clearTerm()
term when the log entry was created
uint64 term = 2;public int getTypeValue()
the type of the log entry
.ai.eloquent.raft.LogEntryType type = 3;getTypeValue in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setTypeValue(int value)
the type of the log entry
.ai.eloquent.raft.LogEntryType type = 3;public EloquentRaftProto.LogEntryType getType()
the type of the log entry
.ai.eloquent.raft.LogEntryType type = 3;getType in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setType(EloquentRaftProto.LogEntryType value)
the type of the log entry
.ai.eloquent.raft.LogEntryType type = 3;public EloquentRaftProto.LogEntry.Builder clearType()
the type of the log entry
.ai.eloquent.raft.LogEntryType type = 3;public com.google.protobuf.ByteString getTransition()
the raw bytes of the transition request - only in TRANSITION messages
bytes transition = 4;getTransition in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setTransition(com.google.protobuf.ByteString value)
the raw bytes of the transition request - only in TRANSITION messages
bytes transition = 4;public EloquentRaftProto.LogEntry.Builder clearTransition()
the raw bytes of the transition request - only in TRANSITION messages
bytes transition = 4;public java.lang.String getNewHospiceMember()
or, the addition of a hospice member - only in TRANSITION messages
string new_hospice_member = 6;getNewHospiceMember in interface EloquentRaftProto.LogEntryOrBuilderpublic com.google.protobuf.ByteString getNewHospiceMemberBytes()
or, the addition of a hospice member - only in TRANSITION messages
string new_hospice_member = 6;getNewHospiceMemberBytes in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setNewHospiceMember(java.lang.String value)
or, the addition of a hospice member - only in TRANSITION messages
string new_hospice_member = 6;public EloquentRaftProto.LogEntry.Builder clearNewHospiceMember()
or, the addition of a hospice member - only in TRANSITION messages
string new_hospice_member = 6;public EloquentRaftProto.LogEntry.Builder setNewHospiceMemberBytes(com.google.protobuf.ByteString value)
or, the addition of a hospice member - only in TRANSITION messages
string new_hospice_member = 6;public com.google.protobuf.ProtocolStringList getConfigurationList()
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;getConfigurationList in interface EloquentRaftProto.LogEntryOrBuilderpublic int getConfigurationCount()
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;getConfigurationCount in interface EloquentRaftProto.LogEntryOrBuilderpublic java.lang.String getConfiguration(int index)
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;getConfiguration in interface EloquentRaftProto.LogEntryOrBuilderpublic com.google.protobuf.ByteString getConfigurationBytes(int index)
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;getConfigurationBytes in interface EloquentRaftProto.LogEntryOrBuilderpublic EloquentRaftProto.LogEntry.Builder setConfiguration(int index, java.lang.String value)
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;public EloquentRaftProto.LogEntry.Builder addConfiguration(java.lang.String value)
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;public EloquentRaftProto.LogEntry.Builder addAllConfiguration(java.lang.Iterable<java.lang.String> values)
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;public EloquentRaftProto.LogEntry.Builder clearConfiguration()
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;public EloquentRaftProto.LogEntry.Builder addConfigurationBytes(com.google.protobuf.ByteString value)
the new configuration for the cluster - only in CONFIGURATION
repeated string configuration = 5;public final EloquentRaftProto.LogEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>public final EloquentRaftProto.LogEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.LogEntry.Builder>