public static final class Kvrpcpb.LeaderInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LeaderInfo.Builder> implements Kvrpcpb.LeaderInfoOrBuilder
kvrpcpb.LeaderInfo
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.LeaderInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.LeaderInfo |
build() |
Kvrpcpb.LeaderInfo |
buildPartial() |
Kvrpcpb.LeaderInfo.Builder |
clear() |
Kvrpcpb.LeaderInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.LeaderInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.LeaderInfo.Builder |
clearPeerId()
uint64 peer_id = 2; |
Kvrpcpb.LeaderInfo.Builder |
clearReadState()
.kvrpcpb.ReadState read_state = 5; |
Kvrpcpb.LeaderInfo.Builder |
clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 4; |
Kvrpcpb.LeaderInfo.Builder |
clearRegionId()
uint64 region_id = 1; |
Kvrpcpb.LeaderInfo.Builder |
clearTerm()
uint64 term = 3; |
Kvrpcpb.LeaderInfo.Builder |
clone() |
Kvrpcpb.LeaderInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getPeerId()
uint64 peer_id = 2; |
Kvrpcpb.ReadState |
getReadState()
.kvrpcpb.ReadState read_state = 5; |
Kvrpcpb.ReadState.Builder |
getReadStateBuilder()
.kvrpcpb.ReadState read_state = 5; |
Kvrpcpb.ReadStateOrBuilder |
getReadStateOrBuilder()
.kvrpcpb.ReadState read_state = 5; |
Metapb.RegionEpoch |
getRegionEpoch()
.metapb.RegionEpoch region_epoch = 4; |
Metapb.RegionEpoch.Builder |
getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 4; |
Metapb.RegionEpochOrBuilder |
getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 4; |
long |
getRegionId()
uint64 region_id = 1; |
long |
getTerm()
uint64 term = 3; |
boolean |
hasReadState()
.kvrpcpb.ReadState read_state = 5; |
boolean |
hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 4; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.LeaderInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.LeaderInfo.Builder |
mergeFrom(Kvrpcpb.LeaderInfo other) |
Kvrpcpb.LeaderInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.LeaderInfo.Builder |
mergeReadState(Kvrpcpb.ReadState value)
.kvrpcpb.ReadState read_state = 5; |
Kvrpcpb.LeaderInfo.Builder |
mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 4; |
Kvrpcpb.LeaderInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.LeaderInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.LeaderInfo.Builder |
setPeerId(long value)
uint64 peer_id = 2; |
Kvrpcpb.LeaderInfo.Builder |
setReadState(Kvrpcpb.ReadState.Builder builderForValue)
.kvrpcpb.ReadState read_state = 5; |
Kvrpcpb.LeaderInfo.Builder |
setReadState(Kvrpcpb.ReadState value)
.kvrpcpb.ReadState read_state = 5; |
Kvrpcpb.LeaderInfo.Builder |
setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 4; |
Kvrpcpb.LeaderInfo.Builder |
setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 4; |
Kvrpcpb.LeaderInfo.Builder |
setRegionId(long value)
uint64 region_id = 1; |
Kvrpcpb.LeaderInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.LeaderInfo.Builder |
setTerm(long value)
uint64 term = 3; |
Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.LeaderInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.LeaderInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.Builder mergeFrom(Kvrpcpb.LeaderInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LeaderInfo.Builder>
public Kvrpcpb.LeaderInfo.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<Kvrpcpb.LeaderInfo.Builder>
IOException
public long getRegionId()
uint64 region_id = 1;
getRegionId
in interface Kvrpcpb.LeaderInfoOrBuilder
public Kvrpcpb.LeaderInfo.Builder setRegionId(long value)
uint64 region_id = 1;
value
- The regionId to set.public Kvrpcpb.LeaderInfo.Builder clearRegionId()
uint64 region_id = 1;
public long getPeerId()
uint64 peer_id = 2;
getPeerId
in interface Kvrpcpb.LeaderInfoOrBuilder
public Kvrpcpb.LeaderInfo.Builder setPeerId(long value)
uint64 peer_id = 2;
value
- The peerId to set.public Kvrpcpb.LeaderInfo.Builder clearPeerId()
uint64 peer_id = 2;
public long getTerm()
uint64 term = 3;
getTerm
in interface Kvrpcpb.LeaderInfoOrBuilder
public Kvrpcpb.LeaderInfo.Builder setTerm(long value)
uint64 term = 3;
value
- The term to set.public Kvrpcpb.LeaderInfo.Builder clearTerm()
uint64 term = 3;
public boolean hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 4;
hasRegionEpoch
in interface Kvrpcpb.LeaderInfoOrBuilder
public Metapb.RegionEpoch getRegionEpoch()
.metapb.RegionEpoch region_epoch = 4;
getRegionEpoch
in interface Kvrpcpb.LeaderInfoOrBuilder
public Kvrpcpb.LeaderInfo.Builder setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 4;
public Kvrpcpb.LeaderInfo.Builder setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 4;
public Kvrpcpb.LeaderInfo.Builder mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 4;
public Kvrpcpb.LeaderInfo.Builder clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 4;
public Metapb.RegionEpoch.Builder getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 4;
public Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 4;
getRegionEpochOrBuilder
in interface Kvrpcpb.LeaderInfoOrBuilder
public boolean hasReadState()
.kvrpcpb.ReadState read_state = 5;
hasReadState
in interface Kvrpcpb.LeaderInfoOrBuilder
public Kvrpcpb.ReadState getReadState()
.kvrpcpb.ReadState read_state = 5;
getReadState
in interface Kvrpcpb.LeaderInfoOrBuilder
public Kvrpcpb.LeaderInfo.Builder setReadState(Kvrpcpb.ReadState value)
.kvrpcpb.ReadState read_state = 5;
public Kvrpcpb.LeaderInfo.Builder setReadState(Kvrpcpb.ReadState.Builder builderForValue)
.kvrpcpb.ReadState read_state = 5;
public Kvrpcpb.LeaderInfo.Builder mergeReadState(Kvrpcpb.ReadState value)
.kvrpcpb.ReadState read_state = 5;
public Kvrpcpb.LeaderInfo.Builder clearReadState()
.kvrpcpb.ReadState read_state = 5;
public Kvrpcpb.ReadState.Builder getReadStateBuilder()
.kvrpcpb.ReadState read_state = 5;
public Kvrpcpb.ReadStateOrBuilder getReadStateOrBuilder()
.kvrpcpb.ReadState read_state = 5;
getReadStateOrBuilder
in interface Kvrpcpb.LeaderInfoOrBuilder
public final Kvrpcpb.LeaderInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LeaderInfo.Builder>
public final Kvrpcpb.LeaderInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.LeaderInfo.Builder>
Copyright © 2024 PingCAP. All rights reserved.