public static final class RaftCmdpb.RaftRequestHeader extends com.google.protobuf.GeneratedMessageV3 implements RaftCmdpb.RaftRequestHeaderOrBuilder
raft_cmdpb.RaftRequestHeader
Modifier and Type | Class and Description |
---|---|
static class |
RaftCmdpb.RaftRequestHeader.Builder
Protobuf type
raft_cmdpb.RaftRequestHeader |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
APPLIED_INDEX_FIELD_NUMBER |
static int |
FLAG_DATA_FIELD_NUMBER |
static int |
FLAGS_FIELD_NUMBER |
static int |
PEER_FIELD_NUMBER |
static int |
READ_QUORUM_FIELD_NUMBER |
static int |
REGION_EPOCH_FIELD_NUMBER |
static int |
REGION_ID_FIELD_NUMBER |
static int |
REPLICA_READ_FIELD_NUMBER |
static int |
SYNC_LOG_FIELD_NUMBER |
static int |
TERM_FIELD_NUMBER |
static int |
UUID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getAppliedIndex()
Read requests can be responsed directly after the Raft applys to `applied_index`.
|
static RaftCmdpb.RaftRequestHeader |
getDefaultInstance() |
RaftCmdpb.RaftRequestHeader |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getFlagData()
bytes flag_data = 11; |
long |
getFlags()
Custom flags for this raft request.
|
com.google.protobuf.Parser<RaftCmdpb.RaftRequestHeader> |
getParserForType() |
Metapb.Peer |
getPeer()
.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.RegionEpochOrBuilder |
getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5; |
long |
getRegionId()
uint64 region_id = 1; |
boolean |
getReplicaRead()
bool replica_read = 8; |
int |
getSerializedSize() |
boolean |
getSyncLog()
bool sync_log = 7; |
long |
getTerm()
uint64 term = 6; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.ByteString |
getUuid()
16 bytes, to distinguish request.
|
int |
hashCode() |
boolean |
hasPeer()
.metapb.Peer peer = 2; |
boolean |
hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RaftCmdpb.RaftRequestHeader.Builder |
newBuilder() |
static RaftCmdpb.RaftRequestHeader.Builder |
newBuilder(RaftCmdpb.RaftRequestHeader prototype) |
RaftCmdpb.RaftRequestHeader.Builder |
newBuilderForType() |
protected RaftCmdpb.RaftRequestHeader.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RaftCmdpb.RaftRequestHeader |
parseDelimitedFrom(InputStream input) |
static RaftCmdpb.RaftRequestHeader |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(byte[] data) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(ByteBuffer data) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(com.google.protobuf.ByteString data) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(InputStream input) |
static RaftCmdpb.RaftRequestHeader |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RaftCmdpb.RaftRequestHeader> |
parser() |
RaftCmdpb.RaftRequestHeader.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int REGION_ID_FIELD_NUMBER
public static final int PEER_FIELD_NUMBER
public static final int READ_QUORUM_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER
public static final int REGION_EPOCH_FIELD_NUMBER
public static final int TERM_FIELD_NUMBER
public static final int SYNC_LOG_FIELD_NUMBER
public static final int REPLICA_READ_FIELD_NUMBER
public static final int APPLIED_INDEX_FIELD_NUMBER
public static final int FLAGS_FIELD_NUMBER
public static final int FLAG_DATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public long getRegionId()
uint64 region_id = 1;
getRegionId
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
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 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 com.google.protobuf.ByteString getUuid()
16 bytes, to distinguish request.
bytes uuid = 4;
getUuid
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
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 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 boolean getSyncLog()
bool sync_log = 7;
getSyncLog
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public boolean getReplicaRead()
bool replica_read = 8;
getReplicaRead
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
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 long getFlags()
Custom flags for this raft request.
uint64 flags = 10;
getFlags
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public com.google.protobuf.ByteString getFlagData()
bytes flag_data = 11;
getFlagData
in interface RaftCmdpb.RaftRequestHeaderOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static RaftCmdpb.RaftRequestHeader parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RaftCmdpb.RaftRequestHeader parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RaftCmdpb.RaftRequestHeader parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RaftCmdpb.RaftRequestHeader parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RaftCmdpb.RaftRequestHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RaftCmdpb.RaftRequestHeader parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RaftCmdpb.RaftRequestHeader parseFrom(InputStream input) throws IOException
IOException
public static RaftCmdpb.RaftRequestHeader parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RaftCmdpb.RaftRequestHeader parseDelimitedFrom(InputStream input) throws IOException
IOException
public static RaftCmdpb.RaftRequestHeader parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RaftCmdpb.RaftRequestHeader parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static RaftCmdpb.RaftRequestHeader parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public RaftCmdpb.RaftRequestHeader.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static RaftCmdpb.RaftRequestHeader.Builder newBuilder()
public static RaftCmdpb.RaftRequestHeader.Builder newBuilder(RaftCmdpb.RaftRequestHeader prototype)
public RaftCmdpb.RaftRequestHeader.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected RaftCmdpb.RaftRequestHeader.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static RaftCmdpb.RaftRequestHeader getDefaultInstance()
public static com.google.protobuf.Parser<RaftCmdpb.RaftRequestHeader> parser()
public com.google.protobuf.Parser<RaftCmdpb.RaftRequestHeader> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public RaftCmdpb.RaftRequestHeader getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2024 PingCAP. All rights reserved.