public static final class EloquentRaftProto.InstallSnapshotRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder> implements EloquentRaftProto.InstallSnapshotRequestOrBuilder
ai.eloquent.raft.InstallSnapshotRequest| Modifier and Type | Method and Description |
|---|---|
EloquentRaftProto.InstallSnapshotRequest.Builder |
addAllLastConfig(java.lang.Iterable<java.lang.String> values)
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
addLastConfig(java.lang.String value)
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
addLastConfigBytes(com.google.protobuf.ByteString value)
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
EloquentRaftProto.InstallSnapshotRequest |
build() |
EloquentRaftProto.InstallSnapshotRequest |
buildPartial() |
EloquentRaftProto.InstallSnapshotRequest.Builder |
clear() |
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearData()
raw bytes of the snapshot
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearLastConfig()
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearLastIndex()
The snapshot replaces all entries up through and including this index
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearLastTerm()
The term of lastIndex
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearLeaderName()
So the follower can redirect clients
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
clearTerm()
Leader's term
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
clone() |
com.google.protobuf.ByteString |
getData()
raw bytes of the snapshot
|
EloquentRaftProto.InstallSnapshotRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getLastConfig(int index)
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
com.google.protobuf.ByteString |
getLastConfigBytes(int index)
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
int |
getLastConfigCount()
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
com.google.protobuf.ProtocolStringList |
getLastConfigList()
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
long |
getLastIndex()
The snapshot replaces all entries up through and including this index
|
long |
getLastTerm()
The term of lastIndex
|
java.lang.String |
getLeaderName()
So the follower can redirect clients
|
com.google.protobuf.ByteString |
getLeaderNameBytes()
So the follower can redirect clients
|
long |
getTerm()
Leader's term
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EloquentRaftProto.InstallSnapshotRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
mergeFrom(EloquentRaftProto.InstallSnapshotRequest other) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
setData(com.google.protobuf.ByteString value)
raw bytes of the snapshot
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
setLastConfig(int index,
java.lang.String value)
The latest cluster configuration as of lastIndex (included only with the first chunk)
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
setLastIndex(long value)
The snapshot replaces all entries up through and including this index
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
setLastTerm(long value)
The term of lastIndex
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
setLeaderName(java.lang.String value)
So the follower can redirect clients
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
setLeaderNameBytes(com.google.protobuf.ByteString value)
So the follower can redirect clients
|
EloquentRaftProto.InstallSnapshotRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
EloquentRaftProto.InstallSnapshotRequest.Builder |
setTerm(long value)
Leader's term
|
EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EloquentRaftProto.InstallSnapshotRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.Builder mergeFrom(EloquentRaftProto.InstallSnapshotRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder>public EloquentRaftProto.InstallSnapshotRequest.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.InstallSnapshotRequest.Builder>java.io.IOExceptionpublic long getTerm()
Leader's term
uint64 term = 1;getTerm in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest.Builder setTerm(long value)
Leader's term
uint64 term = 1;public EloquentRaftProto.InstallSnapshotRequest.Builder clearTerm()
Leader's term
uint64 term = 1;public java.lang.String getLeaderName()
So the follower can redirect clients
string leaderName = 2;getLeaderName in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic com.google.protobuf.ByteString getLeaderNameBytes()
So the follower can redirect clients
string leaderName = 2;getLeaderNameBytes in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest.Builder setLeaderName(java.lang.String value)
So the follower can redirect clients
string leaderName = 2;public EloquentRaftProto.InstallSnapshotRequest.Builder clearLeaderName()
So the follower can redirect clients
string leaderName = 2;public EloquentRaftProto.InstallSnapshotRequest.Builder setLeaderNameBytes(com.google.protobuf.ByteString value)
So the follower can redirect clients
string leaderName = 2;public long getLastIndex()
The snapshot replaces all entries up through and including this index
uint64 lastIndex = 3;getLastIndex in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest.Builder setLastIndex(long value)
The snapshot replaces all entries up through and including this index
uint64 lastIndex = 3;public EloquentRaftProto.InstallSnapshotRequest.Builder clearLastIndex()
The snapshot replaces all entries up through and including this index
uint64 lastIndex = 3;public long getLastTerm()
The term of lastIndex
uint64 lastTerm = 4;getLastTerm in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest.Builder setLastTerm(long value)
The term of lastIndex
uint64 lastTerm = 4;public EloquentRaftProto.InstallSnapshotRequest.Builder clearLastTerm()
The term of lastIndex
uint64 lastTerm = 4;public com.google.protobuf.ProtocolStringList getLastConfigList()
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;getLastConfigList in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic int getLastConfigCount()
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;getLastConfigCount in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic java.lang.String getLastConfig(int index)
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;getLastConfig in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic com.google.protobuf.ByteString getLastConfigBytes(int index)
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;getLastConfigBytes in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest.Builder setLastConfig(int index, java.lang.String value)
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;public EloquentRaftProto.InstallSnapshotRequest.Builder addLastConfig(java.lang.String value)
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;public EloquentRaftProto.InstallSnapshotRequest.Builder addAllLastConfig(java.lang.Iterable<java.lang.String> values)
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;public EloquentRaftProto.InstallSnapshotRequest.Builder clearLastConfig()
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;public EloquentRaftProto.InstallSnapshotRequest.Builder addLastConfigBytes(com.google.protobuf.ByteString value)
The latest cluster configuration as of lastIndex (included only with the first chunk)
repeated string lastConfig = 5;public com.google.protobuf.ByteString getData()
raw bytes of the snapshot
bytes data = 6;getData in interface EloquentRaftProto.InstallSnapshotRequestOrBuilderpublic EloquentRaftProto.InstallSnapshotRequest.Builder setData(com.google.protobuf.ByteString value)
raw bytes of the snapshot
bytes data = 6;public EloquentRaftProto.InstallSnapshotRequest.Builder clearData()
raw bytes of the snapshot
bytes data = 6;public final EloquentRaftProto.InstallSnapshotRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder>public final EloquentRaftProto.InstallSnapshotRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EloquentRaftProto.InstallSnapshotRequest.Builder>