public static final class RaftCmdpb.RaftRequestHeader.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.RaftRequestHeader.Builder> implements RaftCmdpb.RaftRequestHeaderOrBuilder
raft_cmdpb.RaftRequestHeader
Modifier and Type | Method and Description |
---|---|
RaftCmdpb.RaftRequestHeader.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RaftCmdpb.RaftRequestHeader |
build() |
RaftCmdpb.RaftRequestHeader |
buildPartial() |
RaftCmdpb.RaftRequestHeader.Builder |
clear() |
RaftCmdpb.RaftRequestHeader.Builder |
clearAppliedIndex()
Read requests can be responsed directly after the Raft applys to `applied_index`.
|
RaftCmdpb.RaftRequestHeader.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RaftCmdpb.RaftRequestHeader.Builder |
clearFlagData()
bytes flag_data = 11; |
RaftCmdpb.RaftRequestHeader.Builder |
clearFlags()
Custom flags for this raft request.
|
RaftCmdpb.RaftRequestHeader.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RaftCmdpb.RaftRequestHeader.Builder |
clearPeer()
.metapb.Peer peer = 2; |
RaftCmdpb.RaftRequestHeader.Builder |
clearReadQuorum()
true for read linearization
|
RaftCmdpb.RaftRequestHeader.Builder |
clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
RaftCmdpb.RaftRequestHeader.Builder |
clearRegionId()
uint64 region_id = 1; |
RaftCmdpb.RaftRequestHeader.Builder |
clearReplicaRead()
bool replica_read = 8; |
RaftCmdpb.RaftRequestHeader.Builder |
clearSyncLog()
bool sync_log = 7; |
RaftCmdpb.RaftRequestHeader.Builder |
clearTerm()
uint64 term = 6; |
RaftCmdpb.RaftRequestHeader.Builder |
clearUuid()
16 bytes, to distinguish request.
|
RaftCmdpb.RaftRequestHeader.Builder |
clone() |
long |
getAppliedIndex()
Read requests can be responsed directly after the Raft applys to `applied_index`.
|
RaftCmdpb.RaftRequestHeader |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getFlagData()
bytes flag_data = 11; |
long |
getFlags()
Custom flags for this raft request.
|
Metapb.Peer |
getPeer()
.metapb.Peer peer = 2; |
Metapb.Peer.Builder |
getPeerBuilder()
.metapb.Peer peer = 2; |
Metapb.PeerOrBuilder |
getPeerOrBuilder()
.metapb.Peer peer = 2; |
boolean |
getReadQuorum()
true for read linearization
|
Metapb.RegionEpoch |
getRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
Metapb.RegionEpoch.Builder |
getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 5; |
Metapb.RegionEpochOrBuilder |
getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5; |
long |
getRegionId()
uint64 region_id = 1; |
boolean |
getReplicaRead()
bool replica_read = 8; |
boolean |
getSyncLog()
bool sync_log = 7; |
long |
getTerm()
uint64 term = 6; |
com.google.protobuf.ByteString |
getUuid()
16 bytes, to distinguish request.
|
boolean |
hasPeer()
.metapb.Peer peer = 2; |
boolean |
hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RaftCmdpb.RaftRequestHeader.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RaftCmdpb.RaftRequestHeader.Builder |
mergeFrom(com.google.protobuf.Message other) |
RaftCmdpb.RaftRequestHeader.Builder |
mergeFrom(RaftCmdpb.RaftRequestHeader other) |
RaftCmdpb.RaftRequestHeader.Builder |
mergePeer(Metapb.Peer value)
.metapb.Peer peer = 2; |
RaftCmdpb.RaftRequestHeader.Builder |
mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5; |
RaftCmdpb.RaftRequestHeader.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RaftCmdpb.RaftRequestHeader.Builder |
setAppliedIndex(long value)
Read requests can be responsed directly after the Raft applys to `applied_index`.
|
RaftCmdpb.RaftRequestHeader.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RaftCmdpb.RaftRequestHeader.Builder |
setFlagData(com.google.protobuf.ByteString value)
bytes flag_data = 11; |
RaftCmdpb.RaftRequestHeader.Builder |
setFlags(long value)
Custom flags for this raft request.
|
RaftCmdpb.RaftRequestHeader.Builder |
setPeer(Metapb.Peer.Builder builderForValue)
.metapb.Peer peer = 2; |
RaftCmdpb.RaftRequestHeader.Builder |
setPeer(Metapb.Peer value)
.metapb.Peer peer = 2; |
RaftCmdpb.RaftRequestHeader.Builder |
setReadQuorum(boolean value)
true for read linearization
|
RaftCmdpb.RaftRequestHeader.Builder |
setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 5; |
RaftCmdpb.RaftRequestHeader.Builder |
setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5; |
RaftCmdpb.RaftRequestHeader.Builder |
setRegionId(long value)
uint64 region_id = 1; |
RaftCmdpb.RaftRequestHeader.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RaftCmdpb.RaftRequestHeader.Builder |
setReplicaRead(boolean value)
bool replica_read = 8; |
RaftCmdpb.RaftRequestHeader.Builder |
setSyncLog(boolean value)
bool sync_log = 7; |
RaftCmdpb.RaftRequestHeader.Builder |
setTerm(long value)
uint64 term = 6; |
RaftCmdpb.RaftRequestHeader.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RaftCmdpb.RaftRequestHeader.Builder |
setUuid(com.google.protobuf.ByteString value)
16 bytes, to distinguish request.
|
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<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RaftCmdpb.RaftRequestHeader build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RaftCmdpb.RaftRequestHeader buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.Builder mergeFrom(RaftCmdpb.RaftRequestHeader other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.RaftRequestHeader.Builder>
public RaftCmdpb.RaftRequestHeader.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<RaftCmdpb.RaftRequestHeader.Builder>
IOException
public long getRegionId()
uint64 region_id = 1;
getRegionId
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setRegionId(long value)
uint64 region_id = 1;
value
- The regionId to set.public RaftCmdpb.RaftRequestHeader.Builder clearRegionId()
uint64 region_id = 1;
public boolean hasPeer()
.metapb.Peer peer = 2;
hasPeer
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public Metapb.Peer getPeer()
.metapb.Peer peer = 2;
getPeer
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setPeer(Metapb.Peer value)
.metapb.Peer peer = 2;
public RaftCmdpb.RaftRequestHeader.Builder setPeer(Metapb.Peer.Builder builderForValue)
.metapb.Peer peer = 2;
public RaftCmdpb.RaftRequestHeader.Builder mergePeer(Metapb.Peer value)
.metapb.Peer peer = 2;
public RaftCmdpb.RaftRequestHeader.Builder clearPeer()
.metapb.Peer peer = 2;
public Metapb.Peer.Builder getPeerBuilder()
.metapb.Peer peer = 2;
public Metapb.PeerOrBuilder getPeerOrBuilder()
.metapb.Peer peer = 2;
getPeerOrBuilder
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public boolean getReadQuorum()
true for read linearization
bool read_quorum = 3;
getReadQuorum
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setReadQuorum(boolean value)
true for read linearization
bool read_quorum = 3;
value
- The readQuorum to set.public RaftCmdpb.RaftRequestHeader.Builder clearReadQuorum()
true for read linearization
bool read_quorum = 3;
public com.google.protobuf.ByteString getUuid()
16 bytes, to distinguish request.
bytes uuid = 4;
getUuid
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setUuid(com.google.protobuf.ByteString value)
16 bytes, to distinguish request.
bytes uuid = 4;
value
- The uuid to set.public RaftCmdpb.RaftRequestHeader.Builder clearUuid()
16 bytes, to distinguish request.
bytes uuid = 4;
public boolean hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
hasRegionEpoch
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public Metapb.RegionEpoch getRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
getRegionEpoch
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5;
public RaftCmdpb.RaftRequestHeader.Builder setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 5;
public RaftCmdpb.RaftRequestHeader.Builder mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5;
public RaftCmdpb.RaftRequestHeader.Builder clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
public Metapb.RegionEpoch.Builder getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 5;
public Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5;
getRegionEpochOrBuilder
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public long getTerm()
uint64 term = 6;
getTerm
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setTerm(long value)
uint64 term = 6;
value
- The term to set.public RaftCmdpb.RaftRequestHeader.Builder clearTerm()
uint64 term = 6;
public boolean getSyncLog()
bool sync_log = 7;
getSyncLog
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setSyncLog(boolean value)
bool sync_log = 7;
value
- The syncLog to set.public RaftCmdpb.RaftRequestHeader.Builder clearSyncLog()
bool sync_log = 7;
public boolean getReplicaRead()
bool replica_read = 8;
getReplicaRead
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setReplicaRead(boolean value)
bool replica_read = 8;
value
- The replicaRead to set.public RaftCmdpb.RaftRequestHeader.Builder clearReplicaRead()
bool replica_read = 8;
public long getAppliedIndex()
Read requests can be responsed directly after the Raft applys to `applied_index`.
uint64 applied_index = 9;
getAppliedIndex
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setAppliedIndex(long value)
Read requests can be responsed directly after the Raft applys to `applied_index`.
uint64 applied_index = 9;
value
- The appliedIndex to set.public RaftCmdpb.RaftRequestHeader.Builder clearAppliedIndex()
Read requests can be responsed directly after the Raft applys to `applied_index`.
uint64 applied_index = 9;
public long getFlags()
Custom flags for this raft request.
uint64 flags = 10;
getFlags
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setFlags(long value)
Custom flags for this raft request.
uint64 flags = 10;
value
- The flags to set.public RaftCmdpb.RaftRequestHeader.Builder clearFlags()
Custom flags for this raft request.
uint64 flags = 10;
public com.google.protobuf.ByteString getFlagData()
bytes flag_data = 11;
getFlagData
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public RaftCmdpb.RaftRequestHeader.Builder setFlagData(com.google.protobuf.ByteString value)
bytes flag_data = 11;
value
- The flagData to set.public RaftCmdpb.RaftRequestHeader.Builder clearFlagData()
bytes flag_data = 11;
public final RaftCmdpb.RaftRequestHeader.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.RaftRequestHeader.Builder>
public final RaftCmdpb.RaftRequestHeader.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.RaftRequestHeader.Builder>
Copyright © 2024 PingCAP. All rights reserved.