Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.tikv.kvproto.RaftCmdpb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: raft_cmdpb.proto
package org.tikv.kvproto;
public final class RaftCmdpb {
private RaftCmdpb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code raft_cmdpb.CmdType}
*/
public enum CmdType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Invalid = 0;
*/
Invalid(0),
/**
* Get = 1;
*/
Get(1),
/**
* Put = 3;
*/
Put(3),
/**
* Delete = 4;
*/
Delete(4),
/**
* Snap = 5;
*/
Snap(5),
/**
* Prewrite = 6;
*/
Prewrite(6),
/**
* DeleteRange = 7;
*/
DeleteRange(7),
/**
* IngestSST = 8;
*/
IngestSST(8),
/**
* ReadIndex = 9;
*/
ReadIndex(9),
UNRECOGNIZED(-1),
;
/**
* Invalid = 0;
*/
public static final int Invalid_VALUE = 0;
/**
* Get = 1;
*/
public static final int Get_VALUE = 1;
/**
* Put = 3;
*/
public static final int Put_VALUE = 3;
/**
* Delete = 4;
*/
public static final int Delete_VALUE = 4;
/**
* Snap = 5;
*/
public static final int Snap_VALUE = 5;
/**
* Prewrite = 6;
*/
public static final int Prewrite_VALUE = 6;
/**
* DeleteRange = 7;
*/
public static final int DeleteRange_VALUE = 7;
/**
* IngestSST = 8;
*/
public static final int IngestSST_VALUE = 8;
/**
* ReadIndex = 9;
*/
public static final int ReadIndex_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CmdType valueOf(int value) {
return forNumber(value);
}
public static CmdType forNumber(int value) {
switch (value) {
case 0: return Invalid;
case 1: return Get;
case 3: return Put;
case 4: return Delete;
case 5: return Snap;
case 6: return Prewrite;
case 7: return DeleteRange;
case 8: return IngestSST;
case 9: return ReadIndex;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CmdType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CmdType findValueByNumber(int number) {
return CmdType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.getDescriptor().getEnumTypes().get(0);
}
private static final CmdType[] VALUES = values();
public static CmdType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CmdType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:raft_cmdpb.CmdType)
}
/**
* Protobuf enum {@code raft_cmdpb.AdminCmdType}
*/
public enum AdminCmdType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* InvalidAdmin = 0;
*/
InvalidAdmin(0),
/**
* ChangePeer = 1;
*/
ChangePeer(1),
/**
*
* Use `BatchSplit` instead.
*
*
* Split = 2 [deprecated = true];
*/
@java.lang.Deprecated
Split(2),
/**
* CompactLog = 3;
*/
CompactLog(3),
/**
* TransferLeader = 4;
*/
TransferLeader(4),
/**
* ComputeHash = 5;
*/
ComputeHash(5),
/**
* VerifyHash = 6;
*/
VerifyHash(6),
/**
* PrepareMerge = 7;
*/
PrepareMerge(7),
/**
* CommitMerge = 8;
*/
CommitMerge(8),
/**
* RollbackMerge = 9;
*/
RollbackMerge(9),
/**
* BatchSplit = 10;
*/
BatchSplit(10),
/**
* ChangePeerV2 = 11;
*/
ChangePeerV2(11),
UNRECOGNIZED(-1),
;
/**
* InvalidAdmin = 0;
*/
public static final int InvalidAdmin_VALUE = 0;
/**
* ChangePeer = 1;
*/
public static final int ChangePeer_VALUE = 1;
/**
*
* Use `BatchSplit` instead.
*
*
* Split = 2 [deprecated = true];
*/
public static final int Split_VALUE = 2;
/**
* CompactLog = 3;
*/
public static final int CompactLog_VALUE = 3;
/**
* TransferLeader = 4;
*/
public static final int TransferLeader_VALUE = 4;
/**
* ComputeHash = 5;
*/
public static final int ComputeHash_VALUE = 5;
/**
* VerifyHash = 6;
*/
public static final int VerifyHash_VALUE = 6;
/**
* PrepareMerge = 7;
*/
public static final int PrepareMerge_VALUE = 7;
/**
* CommitMerge = 8;
*/
public static final int CommitMerge_VALUE = 8;
/**
* RollbackMerge = 9;
*/
public static final int RollbackMerge_VALUE = 9;
/**
* BatchSplit = 10;
*/
public static final int BatchSplit_VALUE = 10;
/**
* ChangePeerV2 = 11;
*/
public static final int ChangePeerV2_VALUE = 11;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AdminCmdType valueOf(int value) {
return forNumber(value);
}
public static AdminCmdType forNumber(int value) {
switch (value) {
case 0: return InvalidAdmin;
case 1: return ChangePeer;
case 2: return Split;
case 3: return CompactLog;
case 4: return TransferLeader;
case 5: return ComputeHash;
case 6: return VerifyHash;
case 7: return PrepareMerge;
case 8: return CommitMerge;
case 9: return RollbackMerge;
case 10: return BatchSplit;
case 11: return ChangePeerV2;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AdminCmdType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AdminCmdType findValueByNumber(int number) {
return AdminCmdType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.getDescriptor().getEnumTypes().get(1);
}
private static final AdminCmdType[] VALUES = values();
public static AdminCmdType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AdminCmdType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:raft_cmdpb.AdminCmdType)
}
/**
* Protobuf enum {@code raft_cmdpb.StatusCmdType}
*/
public enum StatusCmdType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* InvalidStatus = 0;
*/
InvalidStatus(0),
/**
* RegionLeader = 1;
*/
RegionLeader(1),
/**
* RegionDetail = 2;
*/
RegionDetail(2),
UNRECOGNIZED(-1),
;
/**
* InvalidStatus = 0;
*/
public static final int InvalidStatus_VALUE = 0;
/**
* RegionLeader = 1;
*/
public static final int RegionLeader_VALUE = 1;
/**
* RegionDetail = 2;
*/
public static final int RegionDetail_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusCmdType valueOf(int value) {
return forNumber(value);
}
public static StatusCmdType forNumber(int value) {
switch (value) {
case 0: return InvalidStatus;
case 1: return RegionLeader;
case 2: return RegionDetail;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatusCmdType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatusCmdType findValueByNumber(int number) {
return StatusCmdType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.getDescriptor().getEnumTypes().get(2);
}
private static final StatusCmdType[] VALUES = values();
public static StatusCmdType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StatusCmdType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:raft_cmdpb.StatusCmdType)
}
public interface GetRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.GetRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cf = 1;
*/
java.lang.String getCf();
/**
* string cf = 1;
*/
com.google.protobuf.ByteString
getCfBytes();
/**
* bytes key = 2;
*/
com.google.protobuf.ByteString getKey();
}
/**
* Protobuf type {@code raft_cmdpb.GetRequest}
*/
public static final class GetRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.GetRequest)
GetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetRequest.newBuilder() to construct.
private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRequest() {
cf_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
cf_ = s;
break;
}
case 18: {
key_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.GetRequest.class, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder.class);
}
public static final int CF_FIELD_NUMBER = 1;
private volatile java.lang.Object cf_;
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCfBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCfBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cf_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.GetRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.GetRequest other = (org.tikv.kvproto.RaftCmdpb.GetRequest) obj;
boolean result = true;
result = result && getCf()
.equals(other.getCf());
result = result && getKey()
.equals(other.getKey());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CF_FIELD_NUMBER;
hash = (53 * hash) + getCf().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.GetRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.GetRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.GetRequest)
org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.GetRequest.class, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.GetRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cf_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.GetRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.GetRequest build() {
org.tikv.kvproto.RaftCmdpb.GetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.GetRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.GetRequest result = new org.tikv.kvproto.RaftCmdpb.GetRequest(this);
result.cf_ = cf_;
result.key_ = key_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.GetRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.GetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.GetRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance()) return this;
if (!other.getCf().isEmpty()) {
cf_ = other.cf_;
onChanged();
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.GetRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.GetRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object cf_ = "";
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cf = 1;
*/
public Builder setCf(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cf_ = value;
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder clearCf() {
cf_ = getDefaultInstance().getCf();
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder setCfBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cf_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 2;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 2;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.GetRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.GetRequest)
private static final org.tikv.kvproto.RaftCmdpb.GetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.GetRequest();
}
public static org.tikv.kvproto.RaftCmdpb.GetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.GetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.GetResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes value = 1;
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code raft_cmdpb.GetResponse}
*/
public static final class GetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.GetResponse)
GetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetResponse.newBuilder() to construct.
private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetResponse() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
value_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.GetResponse.class, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 1;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!value_.isEmpty()) {
output.writeBytes(1, value_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.GetResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.GetResponse other = (org.tikv.kvproto.RaftCmdpb.GetResponse) obj;
boolean result = true;
result = result && getValue()
.equals(other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.GetResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.GetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.GetResponse)
org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.GetResponse.class, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.GetResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.GetResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.GetResponse build() {
org.tikv.kvproto.RaftCmdpb.GetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.GetResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.GetResponse result = new org.tikv.kvproto.RaftCmdpb.GetResponse(this);
result.value_ = value_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.GetResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.GetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.GetResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance()) return this;
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.GetResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.GetResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 1;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 1;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 1;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.GetResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.GetResponse)
private static final org.tikv.kvproto.RaftCmdpb.GetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.GetResponse();
}
public static org.tikv.kvproto.RaftCmdpb.GetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.GetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.PutRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cf = 1;
*/
java.lang.String getCf();
/**
* string cf = 1;
*/
com.google.protobuf.ByteString
getCfBytes();
/**
* bytes key = 2;
*/
com.google.protobuf.ByteString getKey();
/**
* bytes value = 3;
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code raft_cmdpb.PutRequest}
*/
public static final class PutRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.PutRequest)
PutRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PutRequest.newBuilder() to construct.
private PutRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutRequest() {
cf_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PutRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
cf_ = s;
break;
}
case 18: {
key_ = input.readBytes();
break;
}
case 26: {
value_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PutRequest.class, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder.class);
}
public static final int CF_FIELD_NUMBER = 1;
private volatile java.lang.Object cf_;
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 3;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCfBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
if (!value_.isEmpty()) {
output.writeBytes(3, value_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCfBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cf_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.PutRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.PutRequest other = (org.tikv.kvproto.RaftCmdpb.PutRequest) obj;
boolean result = true;
result = result && getCf()
.equals(other.getCf());
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CF_FIELD_NUMBER;
hash = (53 * hash) + getCf().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.PutRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.PutRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.PutRequest)
org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PutRequest.class, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.PutRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cf_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.PutRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.PutRequest build() {
org.tikv.kvproto.RaftCmdpb.PutRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.PutRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.PutRequest result = new org.tikv.kvproto.RaftCmdpb.PutRequest(this);
result.cf_ = cf_;
result.key_ = key_;
result.value_ = value_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.PutRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.PutRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PutRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance()) return this;
if (!other.getCf().isEmpty()) {
cf_ = other.cf_;
onChanged();
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.PutRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.PutRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object cf_ = "";
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cf = 1;
*/
public Builder setCf(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cf_ = value;
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder clearCf() {
cf_ = getDefaultInstance().getCf();
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder setCfBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cf_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 2;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 2;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 3;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 3;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 3;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.PutRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.PutRequest)
private static final org.tikv.kvproto.RaftCmdpb.PutRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PutRequest();
}
public static org.tikv.kvproto.RaftCmdpb.PutRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.PutRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.PutResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.PutResponse}
*/
public static final class PutResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.PutResponse)
PutResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PutResponse.newBuilder() to construct.
private PutResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PutResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PutResponse.class, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.PutResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.PutResponse other = (org.tikv.kvproto.RaftCmdpb.PutResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.PutResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.PutResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.PutResponse)
org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PutResponse.class, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.PutResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.PutResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.PutResponse build() {
org.tikv.kvproto.RaftCmdpb.PutResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.PutResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.PutResponse result = new org.tikv.kvproto.RaftCmdpb.PutResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.PutResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.PutResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PutResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.PutResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.PutResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.PutResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.PutResponse)
private static final org.tikv.kvproto.RaftCmdpb.PutResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PutResponse();
}
public static org.tikv.kvproto.RaftCmdpb.PutResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.PutResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cf = 1;
*/
java.lang.String getCf();
/**
* string cf = 1;
*/
com.google.protobuf.ByteString
getCfBytes();
/**
* bytes key = 2;
*/
com.google.protobuf.ByteString getKey();
}
/**
* Protobuf type {@code raft_cmdpb.DeleteRequest}
*/
public static final class DeleteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteRequest)
DeleteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRequest.newBuilder() to construct.
private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRequest() {
cf_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
cf_ = s;
break;
}
case 18: {
key_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder.class);
}
public static final int CF_FIELD_NUMBER = 1;
private volatile java.lang.Object cf_;
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCfBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCfBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cf_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.DeleteRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.DeleteRequest other = (org.tikv.kvproto.RaftCmdpb.DeleteRequest) obj;
boolean result = true;
result = result && getCf()
.equals(other.getCf());
result = result && getKey()
.equals(other.getKey());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CF_FIELD_NUMBER;
hash = (53 * hash) + getCf().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.DeleteRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.DeleteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteRequest)
org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.DeleteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cf_ = "";
key_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.DeleteRequest build() {
org.tikv.kvproto.RaftCmdpb.DeleteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.DeleteRequest result = new org.tikv.kvproto.RaftCmdpb.DeleteRequest(this);
result.cf_ = cf_;
result.key_ = key_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.DeleteRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance()) return this;
if (!other.getCf().isEmpty()) {
cf_ = other.cf_;
onChanged();
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.DeleteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object cf_ = "";
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cf = 1;
*/
public Builder setCf(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cf_ = value;
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder clearCf() {
cf_ = getDefaultInstance().getCf();
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder setCfBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cf_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 2;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 2;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 2;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.DeleteRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteRequest)
private static final org.tikv.kvproto.RaftCmdpb.DeleteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteRequest();
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DeleteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.DeleteResponse}
*/
public static final class DeleteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteResponse)
DeleteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteResponse.newBuilder() to construct.
private DeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.DeleteResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.DeleteResponse other = (org.tikv.kvproto.RaftCmdpb.DeleteResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.DeleteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.DeleteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteResponse)
org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.DeleteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.DeleteResponse build() {
org.tikv.kvproto.RaftCmdpb.DeleteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.DeleteResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.DeleteResponse result = new org.tikv.kvproto.RaftCmdpb.DeleteResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.DeleteResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.DeleteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.DeleteResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteResponse)
private static final org.tikv.kvproto.RaftCmdpb.DeleteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteResponse();
}
public static org.tikv.kvproto.RaftCmdpb.DeleteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DeleteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRangeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteRangeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string cf = 1;
*/
java.lang.String getCf();
/**
* string cf = 1;
*/
com.google.protobuf.ByteString
getCfBytes();
/**
* bytes start_key = 2;
*/
com.google.protobuf.ByteString getStartKey();
/**
* bytes end_key = 3;
*/
com.google.protobuf.ByteString getEndKey();
/**
* bool notify_only = 4;
*/
boolean getNotifyOnly();
}
/**
* Protobuf type {@code raft_cmdpb.DeleteRangeRequest}
*/
public static final class DeleteRangeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteRangeRequest)
DeleteRangeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRangeRequest.newBuilder() to construct.
private DeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRangeRequest() {
cf_ = "";
startKey_ = com.google.protobuf.ByteString.EMPTY;
endKey_ = com.google.protobuf.ByteString.EMPTY;
notifyOnly_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRangeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
cf_ = s;
break;
}
case 18: {
startKey_ = input.readBytes();
break;
}
case 26: {
endKey_ = input.readBytes();
break;
}
case 32: {
notifyOnly_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder.class);
}
public static final int CF_FIELD_NUMBER = 1;
private volatile java.lang.Object cf_;
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString startKey_;
/**
* bytes start_key = 2;
*/
public com.google.protobuf.ByteString getStartKey() {
return startKey_;
}
public static final int END_KEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString endKey_;
/**
* bytes end_key = 3;
*/
public com.google.protobuf.ByteString getEndKey() {
return endKey_;
}
public static final int NOTIFY_ONLY_FIELD_NUMBER = 4;
private boolean notifyOnly_;
/**
* bool notify_only = 4;
*/
public boolean getNotifyOnly() {
return notifyOnly_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCfBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_);
}
if (!startKey_.isEmpty()) {
output.writeBytes(2, startKey_);
}
if (!endKey_.isEmpty()) {
output.writeBytes(3, endKey_);
}
if (notifyOnly_ != false) {
output.writeBool(4, notifyOnly_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCfBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cf_);
}
if (!startKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, startKey_);
}
if (!endKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, endKey_);
}
if (notifyOnly_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, notifyOnly_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest other = (org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest) obj;
boolean result = true;
result = result && getCf()
.equals(other.getCf());
result = result && getStartKey()
.equals(other.getStartKey());
result = result && getEndKey()
.equals(other.getEndKey());
result = result && (getNotifyOnly()
== other.getNotifyOnly());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CF_FIELD_NUMBER;
hash = (53 * hash) + getCf().hashCode();
hash = (37 * hash) + START_KEY_FIELD_NUMBER;
hash = (53 * hash) + getStartKey().hashCode();
hash = (37 * hash) + END_KEY_FIELD_NUMBER;
hash = (53 * hash) + getEndKey().hashCode();
hash = (37 * hash) + NOTIFY_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotifyOnly());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.DeleteRangeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteRangeRequest)
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cf_ = "";
startKey_ = com.google.protobuf.ByteString.EMPTY;
endKey_ = com.google.protobuf.ByteString.EMPTY;
notifyOnly_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest build() {
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest result = new org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest(this);
result.cf_ = cf_;
result.startKey_ = startKey_;
result.endKey_ = endKey_;
result.notifyOnly_ = notifyOnly_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance()) return this;
if (!other.getCf().isEmpty()) {
cf_ = other.cf_;
onChanged();
}
if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) {
setStartKey(other.getStartKey());
}
if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) {
setEndKey(other.getEndKey());
}
if (other.getNotifyOnly() != false) {
setNotifyOnly(other.getNotifyOnly());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object cf_ = "";
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cf = 1;
*/
public Builder setCf(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cf_ = value;
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder clearCf() {
cf_ = getDefaultInstance().getCf();
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder setCfBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cf_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes start_key = 2;
*/
public com.google.protobuf.ByteString getStartKey() {
return startKey_;
}
/**
* bytes start_key = 2;
*/
public Builder setStartKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
startKey_ = value;
onChanged();
return this;
}
/**
* bytes start_key = 2;
*/
public Builder clearStartKey() {
startKey_ = getDefaultInstance().getStartKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes end_key = 3;
*/
public com.google.protobuf.ByteString getEndKey() {
return endKey_;
}
/**
* bytes end_key = 3;
*/
public Builder setEndKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
endKey_ = value;
onChanged();
return this;
}
/**
* bytes end_key = 3;
*/
public Builder clearEndKey() {
endKey_ = getDefaultInstance().getEndKey();
onChanged();
return this;
}
private boolean notifyOnly_ ;
/**
* bool notify_only = 4;
*/
public boolean getNotifyOnly() {
return notifyOnly_;
}
/**
* bool notify_only = 4;
*/
public Builder setNotifyOnly(boolean value) {
notifyOnly_ = value;
onChanged();
return this;
}
/**
* bool notify_only = 4;
*/
public Builder clearNotifyOnly() {
notifyOnly_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.DeleteRangeRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteRangeRequest)
private static final org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest();
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DeleteRangeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRangeRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRangeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteRangeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.DeleteRangeResponse}
*/
public static final class DeleteRangeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteRangeResponse)
DeleteRangeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRangeResponse.newBuilder() to construct.
private DeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRangeResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRangeResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse other = (org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.DeleteRangeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteRangeResponse)
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse build() {
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse result = new org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.DeleteRangeResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteRangeResponse)
private static final org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse();
}
public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DeleteRangeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRangeResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.SnapRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.SnapRequest}
*/
public static final class SnapRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.SnapRequest)
SnapRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapRequest.newBuilder() to construct.
private SnapRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SnapRequest.class, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.SnapRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.SnapRequest other = (org.tikv.kvproto.RaftCmdpb.SnapRequest) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.SnapRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.SnapRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.SnapRequest)
org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SnapRequest.class, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.SnapRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.SnapRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.SnapRequest build() {
org.tikv.kvproto.RaftCmdpb.SnapRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.SnapRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.SnapRequest result = new org.tikv.kvproto.RaftCmdpb.SnapRequest(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.SnapRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.SnapRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SnapRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.SnapRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.SnapRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.SnapRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.SnapRequest)
private static final org.tikv.kvproto.RaftCmdpb.SnapRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SnapRequest();
}
public static org.tikv.kvproto.RaftCmdpb.SnapRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.SnapRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.SnapResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .metapb.Region region = 1;
*/
boolean hasRegion();
/**
* .metapb.Region region = 1;
*/
org.tikv.kvproto.Metapb.Region getRegion();
/**
* .metapb.Region region = 1;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.SnapResponse}
*/
public static final class SnapResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.SnapResponse)
SnapResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapResponse.newBuilder() to construct.
private SnapResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (region_ != null) {
subBuilder = region_.toBuilder();
}
region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(region_);
region_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SnapResponse.class, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder.class);
}
public static final int REGION_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Region region_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
return getRegion();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (region_ != null) {
output.writeMessage(1, getRegion());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (region_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRegion());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.SnapResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.SnapResponse other = (org.tikv.kvproto.RaftCmdpb.SnapResponse) obj;
boolean result = true;
result = result && (hasRegion() == other.hasRegion());
if (hasRegion()) {
result = result && getRegion()
.equals(other.getRegion());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRegion()) {
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.SnapResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.SnapResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.SnapResponse)
org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SnapResponse.class, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.SnapResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (regionBuilder_ == null) {
region_ = null;
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.SnapResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.SnapResponse build() {
org.tikv.kvproto.RaftCmdpb.SnapResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.SnapResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.SnapResponse result = new org.tikv.kvproto.RaftCmdpb.SnapResponse(this);
if (regionBuilder_ == null) {
result.region_ = region_;
} else {
result.region_ = regionBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.SnapResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.SnapResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SnapResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance()) return this;
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.SnapResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.SnapResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Metapb.Region region_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return regionBuilder_ != null || region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
if (regionBuilder_ == null) {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
} else {
return regionBuilder_.getMessage();
}
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
onChanged();
} else {
regionBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionBuilder_ == null) {
region_ = builderForValue.build();
onChanged();
} else {
regionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (region_ != null) {
region_ =
org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
onChanged();
} else {
regionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder clearRegion() {
if (regionBuilder_ == null) {
region_ = null;
onChanged();
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() {
onChanged();
return getRegionFieldBuilder().getBuilder();
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
if (regionBuilder_ != null) {
return regionBuilder_.getMessageOrBuilder();
} else {
return region_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
}
/**
* .metapb.Region region = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionFieldBuilder() {
if (regionBuilder_ == null) {
regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getRegion(),
getParentForChildren(),
isClean());
region_ = null;
}
return regionBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.SnapResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.SnapResponse)
private static final org.tikv.kvproto.RaftCmdpb.SnapResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SnapResponse();
}
public static org.tikv.kvproto.RaftCmdpb.SnapResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.SnapResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrewriteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.PrewriteRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes key = 1;
*/
com.google.protobuf.ByteString getKey();
/**
* bytes value = 2;
*/
com.google.protobuf.ByteString getValue();
/**
* bytes lock = 3;
*/
com.google.protobuf.ByteString getLock();
}
/**
* Protobuf type {@code raft_cmdpb.PrewriteRequest}
*/
public static final class PrewriteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.PrewriteRequest)
PrewriteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrewriteRequest.newBuilder() to construct.
private PrewriteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrewriteRequest() {
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
lock_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrewriteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
key_ = input.readBytes();
break;
}
case 18: {
value_ = input.readBytes();
break;
}
case 26: {
lock_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrewriteRequest.class, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 1;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int LOCK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString lock_;
/**
* bytes lock = 3;
*/
public com.google.protobuf.ByteString getLock() {
return lock_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!key_.isEmpty()) {
output.writeBytes(1, key_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
if (!lock_.isEmpty()) {
output.writeBytes(3, lock_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, key_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
if (!lock_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, lock_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.PrewriteRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.PrewriteRequest other = (org.tikv.kvproto.RaftCmdpb.PrewriteRequest) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && getLock()
.equals(other.getLock());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + LOCK_FIELD_NUMBER;
hash = (53 * hash) + getLock().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.PrewriteRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.PrewriteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.PrewriteRequest)
org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrewriteRequest.class, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.PrewriteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
lock_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest build() {
org.tikv.kvproto.RaftCmdpb.PrewriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.PrewriteRequest result = new org.tikv.kvproto.RaftCmdpb.PrewriteRequest(this);
result.key_ = key_;
result.value_ = value_;
result.lock_ = lock_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.PrewriteRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrewriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrewriteRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance()) return this;
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.getLock() != com.google.protobuf.ByteString.EMPTY) {
setLock(other.getLock());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.PrewriteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrewriteRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 1;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 1;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 1;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 2;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private com.google.protobuf.ByteString lock_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes lock = 3;
*/
public com.google.protobuf.ByteString getLock() {
return lock_;
}
/**
* bytes lock = 3;
*/
public Builder setLock(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
lock_ = value;
onChanged();
return this;
}
/**
* bytes lock = 3;
*/
public Builder clearLock() {
lock_ = getDefaultInstance().getLock();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.PrewriteRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.PrewriteRequest)
private static final org.tikv.kvproto.RaftCmdpb.PrewriteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrewriteRequest();
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrewriteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrewriteRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrewriteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.PrewriteResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.PrewriteResponse}
*/
public static final class PrewriteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.PrewriteResponse)
PrewriteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrewriteResponse.newBuilder() to construct.
private PrewriteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrewriteResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrewriteResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrewriteResponse.class, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.PrewriteResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.PrewriteResponse other = (org.tikv.kvproto.RaftCmdpb.PrewriteResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.PrewriteResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.PrewriteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.PrewriteResponse)
org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrewriteResponse.class, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.PrewriteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse build() {
org.tikv.kvproto.RaftCmdpb.PrewriteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.PrewriteResponse result = new org.tikv.kvproto.RaftCmdpb.PrewriteResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.PrewriteResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrewriteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrewriteResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.PrewriteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrewriteResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.PrewriteResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.PrewriteResponse)
private static final org.tikv.kvproto.RaftCmdpb.PrewriteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrewriteResponse();
}
public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrewriteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrewriteResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngestSSTRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.IngestSSTRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .import_sstpb.SSTMeta sst = 1;
*/
boolean hasSst();
/**
* .import_sstpb.SSTMeta sst = 1;
*/
org.tikv.kvproto.ImportSstpb.SSTMeta getSst();
/**
* .import_sstpb.SSTMeta sst = 1;
*/
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.IngestSSTRequest}
*/
public static final class IngestSSTRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.IngestSSTRequest)
IngestSSTRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngestSSTRequest.newBuilder() to construct.
private IngestSSTRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngestSSTRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngestSSTRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder subBuilder = null;
if (sst_ != null) {
subBuilder = sst_.toBuilder();
}
sst_ = input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sst_);
sst_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.class, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder.class);
}
public static final int SST_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportSstpb.SSTMeta sst_;
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public boolean hasSst() {
return sst_ != null;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() {
return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() {
return getSst();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sst_ != null) {
output.writeMessage(1, getSst());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sst_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSst());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.IngestSSTRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest other = (org.tikv.kvproto.RaftCmdpb.IngestSSTRequest) obj;
boolean result = true;
result = result && (hasSst() == other.hasSst());
if (hasSst()) {
result = result && getSst()
.equals(other.getSst());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSst()) {
hash = (37 * hash) + SST_FIELD_NUMBER;
hash = (53 * hash) + getSst().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.IngestSSTRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.IngestSSTRequest)
org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.class, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (sstBuilder_ == null) {
sst_ = null;
} else {
sst_ = null;
sstBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest build() {
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest result = new org.tikv.kvproto.RaftCmdpb.IngestSSTRequest(this);
if (sstBuilder_ == null) {
result.sst_ = sst_;
} else {
result.sst_ = sstBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.IngestSSTRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.IngestSSTRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance()) return this;
if (other.hasSst()) {
mergeSst(other.getSst());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.IngestSSTRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportSstpb.SSTMeta sst_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> sstBuilder_;
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public boolean hasSst() {
return sstBuilder_ != null || sst_ != null;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() {
if (sstBuilder_ == null) {
return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
} else {
return sstBuilder_.getMessage();
}
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public Builder setSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (sstBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sst_ = value;
onChanged();
} else {
sstBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public Builder setSst(
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (sstBuilder_ == null) {
sst_ = builderForValue.build();
onChanged();
} else {
sstBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public Builder mergeSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (sstBuilder_ == null) {
if (sst_ != null) {
sst_ =
org.tikv.kvproto.ImportSstpb.SSTMeta.newBuilder(sst_).mergeFrom(value).buildPartial();
} else {
sst_ = value;
}
onChanged();
} else {
sstBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public Builder clearSst() {
if (sstBuilder_ == null) {
sst_ = null;
onChanged();
} else {
sst_ = null;
sstBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getSstBuilder() {
onChanged();
return getSstFieldBuilder().getBuilder();
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() {
if (sstBuilder_ != null) {
return sstBuilder_.getMessageOrBuilder();
} else {
return sst_ == null ?
org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
}
}
/**
* .import_sstpb.SSTMeta sst = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getSstFieldBuilder() {
if (sstBuilder_ == null) {
sstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>(
getSst(),
getParentForChildren(),
isClean());
sst_ = null;
}
return sstBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.IngestSSTRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.IngestSSTRequest)
private static final org.tikv.kvproto.RaftCmdpb.IngestSSTRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.IngestSSTRequest();
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public IngestSSTRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngestSSTRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngestSSTResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.IngestSSTResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.IngestSSTResponse}
*/
public static final class IngestSSTResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.IngestSSTResponse)
IngestSSTResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngestSSTResponse.newBuilder() to construct.
private IngestSSTResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngestSSTResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngestSSTResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.class, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.IngestSSTResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse other = (org.tikv.kvproto.RaftCmdpb.IngestSSTResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.IngestSSTResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.IngestSSTResponse)
org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.class, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse build() {
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse result = new org.tikv.kvproto.RaftCmdpb.IngestSSTResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.IngestSSTResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.IngestSSTResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.IngestSSTResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.IngestSSTResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.IngestSSTResponse)
private static final org.tikv.kvproto.RaftCmdpb.IngestSSTResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.IngestSSTResponse();
}
public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public IngestSSTResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngestSSTResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadIndexRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ReadIndexRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* In replica read, leader uses start_ts and key_ranges to check memory locks.
*
*
* uint64 start_ts = 1;
*/
long getStartTs();
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
java.util.List
getKeyRangesList();
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
org.tikv.kvproto.Kvrpcpb.KeyRange getKeyRanges(int index);
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
int getKeyRangesCount();
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
java.util.List extends org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>
getKeyRangesOrBuilderList();
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index);
}
/**
* Protobuf type {@code raft_cmdpb.ReadIndexRequest}
*/
public static final class ReadIndexRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ReadIndexRequest)
ReadIndexRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadIndexRequest.newBuilder() to construct.
private ReadIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadIndexRequest() {
startTs_ = 0L;
keyRanges_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadIndexRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
startTs_ = input.readUInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
keyRanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
keyRanges_.add(
input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyRange.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.class, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder.class);
}
private int bitField0_;
public static final int START_TS_FIELD_NUMBER = 1;
private long startTs_;
/**
*
* In replica read, leader uses start_ts and key_ranges to check memory locks.
*
*
* uint64 start_ts = 1;
*/
public long getStartTs() {
return startTs_;
}
public static final int KEY_RANGES_FIELD_NUMBER = 2;
private java.util.List keyRanges_;
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public java.util.List getKeyRangesList() {
return keyRanges_;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public java.util.List extends org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>
getKeyRangesOrBuilderList() {
return keyRanges_;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public int getKeyRangesCount() {
return keyRanges_.size();
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRange getKeyRanges(int index) {
return keyRanges_.get(index);
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index) {
return keyRanges_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (startTs_ != 0L) {
output.writeUInt64(1, startTs_);
}
for (int i = 0; i < keyRanges_.size(); i++) {
output.writeMessage(2, keyRanges_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startTs_);
}
for (int i = 0; i < keyRanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, keyRanges_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ReadIndexRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest other = (org.tikv.kvproto.RaftCmdpb.ReadIndexRequest) obj;
boolean result = true;
result = result && (getStartTs()
== other.getStartTs());
result = result && getKeyRangesList()
.equals(other.getKeyRangesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + START_TS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTs());
if (getKeyRangesCount() > 0) {
hash = (37 * hash) + KEY_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getKeyRangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ReadIndexRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ReadIndexRequest)
org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.class, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeyRangesFieldBuilder();
}
}
public Builder clear() {
super.clear();
startTs_ = 0L;
if (keyRangesBuilder_ == null) {
keyRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
keyRangesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest build() {
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest result = new org.tikv.kvproto.RaftCmdpb.ReadIndexRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.startTs_ = startTs_;
if (keyRangesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.keyRanges_ = keyRanges_;
} else {
result.keyRanges_ = keyRangesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ReadIndexRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ReadIndexRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance()) return this;
if (other.getStartTs() != 0L) {
setStartTs(other.getStartTs());
}
if (keyRangesBuilder_ == null) {
if (!other.keyRanges_.isEmpty()) {
if (keyRanges_.isEmpty()) {
keyRanges_ = other.keyRanges_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureKeyRangesIsMutable();
keyRanges_.addAll(other.keyRanges_);
}
onChanged();
}
} else {
if (!other.keyRanges_.isEmpty()) {
if (keyRangesBuilder_.isEmpty()) {
keyRangesBuilder_.dispose();
keyRangesBuilder_ = null;
keyRanges_ = other.keyRanges_;
bitField0_ = (bitField0_ & ~0x00000002);
keyRangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeyRangesFieldBuilder() : null;
} else {
keyRangesBuilder_.addAllMessages(other.keyRanges_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ReadIndexRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long startTs_ ;
/**
*
* In replica read, leader uses start_ts and key_ranges to check memory locks.
*
*
* uint64 start_ts = 1;
*/
public long getStartTs() {
return startTs_;
}
/**
*
* In replica read, leader uses start_ts and key_ranges to check memory locks.
*
*
* uint64 start_ts = 1;
*/
public Builder setStartTs(long value) {
startTs_ = value;
onChanged();
return this;
}
/**
*
* In replica read, leader uses start_ts and key_ranges to check memory locks.
*
*
* uint64 start_ts = 1;
*/
public Builder clearStartTs() {
startTs_ = 0L;
onChanged();
return this;
}
private java.util.List keyRanges_ =
java.util.Collections.emptyList();
private void ensureKeyRangesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
keyRanges_ = new java.util.ArrayList(keyRanges_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> keyRangesBuilder_;
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public java.util.List getKeyRangesList() {
if (keyRangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyRanges_);
} else {
return keyRangesBuilder_.getMessageList();
}
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public int getKeyRangesCount() {
if (keyRangesBuilder_ == null) {
return keyRanges_.size();
} else {
return keyRangesBuilder_.getCount();
}
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRange getKeyRanges(int index) {
if (keyRangesBuilder_ == null) {
return keyRanges_.get(index);
} else {
return keyRangesBuilder_.getMessage(index);
}
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder setKeyRanges(
int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.set(index, value);
onChanged();
} else {
keyRangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder setKeyRanges(
int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.set(index, builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder addKeyRanges(org.tikv.kvproto.Kvrpcpb.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.add(value);
onChanged();
} else {
keyRangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder addKeyRanges(
int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) {
if (keyRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeyRangesIsMutable();
keyRanges_.add(index, value);
onChanged();
} else {
keyRangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder addKeyRanges(
org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.add(builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder addKeyRanges(
int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.add(index, builderForValue.build());
onChanged();
} else {
keyRangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder addAllKeyRanges(
java.lang.Iterable extends org.tikv.kvproto.Kvrpcpb.KeyRange> values) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyRanges_);
onChanged();
} else {
keyRangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder clearKeyRanges() {
if (keyRangesBuilder_ == null) {
keyRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
keyRangesBuilder_.clear();
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public Builder removeKeyRanges(int index) {
if (keyRangesBuilder_ == null) {
ensureKeyRangesIsMutable();
keyRanges_.remove(index);
onChanged();
} else {
keyRangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder getKeyRangesBuilder(
int index) {
return getKeyRangesFieldBuilder().getBuilder(index);
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getKeyRangesOrBuilder(
int index) {
if (keyRangesBuilder_ == null) {
return keyRanges_.get(index); } else {
return keyRangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public java.util.List extends org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>
getKeyRangesOrBuilderList() {
if (keyRangesBuilder_ != null) {
return keyRangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyRanges_);
}
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addKeyRangesBuilder() {
return getKeyRangesFieldBuilder().addBuilder(
org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance());
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addKeyRangesBuilder(
int index) {
return getKeyRangesFieldBuilder().addBuilder(
index, org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance());
}
/**
* repeated .kvrpcpb.KeyRange key_ranges = 2;
*/
public java.util.List
getKeyRangesBuilderList() {
return getKeyRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>
getKeyRangesFieldBuilder() {
if (keyRangesBuilder_ == null) {
keyRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>(
keyRanges_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
keyRanges_ = null;
}
return keyRangesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ReadIndexRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ReadIndexRequest)
private static final org.tikv.kvproto.RaftCmdpb.ReadIndexRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ReadIndexRequest();
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ReadIndexRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadIndexRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadIndexResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ReadIndexResponse)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 read_index = 1;
*/
long getReadIndex();
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
boolean hasLocked();
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
org.tikv.kvproto.Kvrpcpb.LockInfo getLocked();
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.ReadIndexResponse}
*/
public static final class ReadIndexResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ReadIndexResponse)
ReadIndexResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadIndexResponse.newBuilder() to construct.
private ReadIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadIndexResponse() {
readIndex_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadIndexResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
readIndex_ = input.readUInt64();
break;
}
case 18: {
org.tikv.kvproto.Kvrpcpb.LockInfo.Builder subBuilder = null;
if (locked_ != null) {
subBuilder = locked_.toBuilder();
}
locked_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(locked_);
locked_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.class, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder.class);
}
public static final int READ_INDEX_FIELD_NUMBER = 1;
private long readIndex_;
/**
* uint64 read_index = 1;
*/
public long getReadIndex() {
return readIndex_;
}
public static final int LOCKED_FIELD_NUMBER = 2;
private org.tikv.kvproto.Kvrpcpb.LockInfo locked_;
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public boolean hasLocked() {
return locked_ != null;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() {
return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() {
return getLocked();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (readIndex_ != 0L) {
output.writeUInt64(1, readIndex_);
}
if (locked_ != null) {
output.writeMessage(2, getLocked());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (readIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, readIndex_);
}
if (locked_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocked());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ReadIndexResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse other = (org.tikv.kvproto.RaftCmdpb.ReadIndexResponse) obj;
boolean result = true;
result = result && (getReadIndex()
== other.getReadIndex());
result = result && (hasLocked() == other.hasLocked());
if (hasLocked()) {
result = result && getLocked()
.equals(other.getLocked());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + READ_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReadIndex());
if (hasLocked()) {
hash = (37 * hash) + LOCKED_FIELD_NUMBER;
hash = (53 * hash) + getLocked().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ReadIndexResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ReadIndexResponse)
org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.class, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
readIndex_ = 0L;
if (lockedBuilder_ == null) {
locked_ = null;
} else {
locked_ = null;
lockedBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse build() {
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse result = new org.tikv.kvproto.RaftCmdpb.ReadIndexResponse(this);
result.readIndex_ = readIndex_;
if (lockedBuilder_ == null) {
result.locked_ = locked_;
} else {
result.locked_ = lockedBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ReadIndexResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ReadIndexResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance()) return this;
if (other.getReadIndex() != 0L) {
setReadIndex(other.getReadIndex());
}
if (other.hasLocked()) {
mergeLocked(other.getLocked());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ReadIndexResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long readIndex_ ;
/**
* uint64 read_index = 1;
*/
public long getReadIndex() {
return readIndex_;
}
/**
* uint64 read_index = 1;
*/
public Builder setReadIndex(long value) {
readIndex_ = value;
onChanged();
return this;
}
/**
* uint64 read_index = 1;
*/
public Builder clearReadIndex() {
readIndex_ = 0L;
onChanged();
return this;
}
private org.tikv.kvproto.Kvrpcpb.LockInfo locked_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> lockedBuilder_;
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public boolean hasLocked() {
return lockedBuilder_ != null || locked_ != null;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() {
if (lockedBuilder_ == null) {
return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_;
} else {
return lockedBuilder_.getMessage();
}
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public Builder setLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) {
if (lockedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
locked_ = value;
onChanged();
} else {
lockedBuilder_.setMessage(value);
}
return this;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public Builder setLocked(
org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) {
if (lockedBuilder_ == null) {
locked_ = builderForValue.build();
onChanged();
} else {
lockedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public Builder mergeLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) {
if (lockedBuilder_ == null) {
if (locked_ != null) {
locked_ =
org.tikv.kvproto.Kvrpcpb.LockInfo.newBuilder(locked_).mergeFrom(value).buildPartial();
} else {
locked_ = value;
}
onChanged();
} else {
lockedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public Builder clearLocked() {
if (lockedBuilder_ == null) {
locked_ = null;
onChanged();
} else {
locked_ = null;
lockedBuilder_ = null;
}
return this;
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLockedBuilder() {
onChanged();
return getLockedFieldBuilder().getBuilder();
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() {
if (lockedBuilder_ != null) {
return lockedBuilder_.getMessageOrBuilder();
} else {
return locked_ == null ?
org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_;
}
}
/**
*
* The memory lock blocking this read at the leader
*
*
* .kvrpcpb.LockInfo locked = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>
getLockedFieldBuilder() {
if (lockedBuilder_ == null) {
lockedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>(
getLocked(),
getParentForChildren(),
isClean());
locked_ = null;
}
return lockedBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ReadIndexResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ReadIndexResponse)
private static final org.tikv.kvproto.RaftCmdpb.ReadIndexResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ReadIndexResponse();
}
public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ReadIndexResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadIndexResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.Request)
com.google.protobuf.MessageOrBuilder {
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
int getCmdTypeValue();
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
org.tikv.kvproto.RaftCmdpb.CmdType getCmdType();
/**
* .raft_cmdpb.GetRequest get = 2;
*/
boolean hasGet();
/**
* .raft_cmdpb.GetRequest get = 2;
*/
org.tikv.kvproto.RaftCmdpb.GetRequest getGet();
/**
* .raft_cmdpb.GetRequest get = 2;
*/
org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder getGetOrBuilder();
/**
* .raft_cmdpb.PutRequest put = 4;
*/
boolean hasPut();
/**
* .raft_cmdpb.PutRequest put = 4;
*/
org.tikv.kvproto.RaftCmdpb.PutRequest getPut();
/**
* .raft_cmdpb.PutRequest put = 4;
*/
org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder getPutOrBuilder();
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
boolean hasDelete();
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
org.tikv.kvproto.RaftCmdpb.DeleteRequest getDelete();
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder getDeleteOrBuilder();
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
boolean hasSnap();
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
org.tikv.kvproto.RaftCmdpb.SnapRequest getSnap();
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder getSnapOrBuilder();
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
boolean hasPrewrite();
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
org.tikv.kvproto.RaftCmdpb.PrewriteRequest getPrewrite();
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder getPrewriteOrBuilder();
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
boolean hasDeleteRange();
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDeleteRange();
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder();
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
boolean hasIngestSst();
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getIngestSst();
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder getIngestSstOrBuilder();
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
boolean hasReadIndex();
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getReadIndex();
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder getReadIndexOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
cmdType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
cmdType_ = rawValue;
break;
}
case 18: {
org.tikv.kvproto.RaftCmdpb.GetRequest.Builder subBuilder = null;
if (get_ != null) {
subBuilder = get_.toBuilder();
}
get_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.GetRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(get_);
get_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.tikv.kvproto.RaftCmdpb.PutRequest.Builder subBuilder = null;
if (put_ != null) {
subBuilder = put_.toBuilder();
}
put_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PutRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(put_);
put_ = subBuilder.buildPartial();
}
break;
}
case 42: {
org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder subBuilder = null;
if (delete_ != null) {
subBuilder = delete_.toBuilder();
}
delete_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(delete_);
delete_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder subBuilder = null;
if (snap_ != null) {
subBuilder = snap_.toBuilder();
}
snap_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SnapRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(snap_);
snap_ = subBuilder.buildPartial();
}
break;
}
case 58: {
org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder subBuilder = null;
if (prewrite_ != null) {
subBuilder = prewrite_.toBuilder();
}
prewrite_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrewriteRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(prewrite_);
prewrite_ = subBuilder.buildPartial();
}
break;
}
case 66: {
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder subBuilder = null;
if (deleteRange_ != null) {
subBuilder = deleteRange_.toBuilder();
}
deleteRange_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deleteRange_);
deleteRange_ = subBuilder.buildPartial();
}
break;
}
case 74: {
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder subBuilder = null;
if (ingestSst_ != null) {
subBuilder = ingestSst_.toBuilder();
}
ingestSst_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ingestSst_);
ingestSst_ = subBuilder.buildPartial();
}
break;
}
case 82: {
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder subBuilder = null;
if (readIndex_ != null) {
subBuilder = readIndex_.toBuilder();
}
readIndex_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(readIndex_);
readIndex_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.Request.class, org.tikv.kvproto.RaftCmdpb.Request.Builder.class);
}
public static final int CMD_TYPE_FIELD_NUMBER = 1;
private int cmdType_;
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public int getCmdTypeValue() {
return cmdType_;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() {
org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_);
return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result;
}
public static final int GET_FIELD_NUMBER = 2;
private org.tikv.kvproto.RaftCmdpb.GetRequest get_;
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public boolean hasGet() {
return get_ != null;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetRequest getGet() {
return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance() : get_;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder getGetOrBuilder() {
return getGet();
}
public static final int PUT_FIELD_NUMBER = 4;
private org.tikv.kvproto.RaftCmdpb.PutRequest put_;
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public boolean hasPut() {
return put_ != null;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutRequest getPut() {
return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance() : put_;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder getPutOrBuilder() {
return getPut();
}
public static final int DELETE_FIELD_NUMBER = 5;
private org.tikv.kvproto.RaftCmdpb.DeleteRequest delete_;
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public boolean hasDelete() {
return delete_ != null;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDelete() {
return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance() : delete_;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder getDeleteOrBuilder() {
return getDelete();
}
public static final int SNAP_FIELD_NUMBER = 6;
private org.tikv.kvproto.RaftCmdpb.SnapRequest snap_;
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public boolean hasSnap() {
return snap_ != null;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapRequest getSnap() {
return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance() : snap_;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder getSnapOrBuilder() {
return getSnap();
}
public static final int PREWRITE_FIELD_NUMBER = 7;
private org.tikv.kvproto.RaftCmdpb.PrewriteRequest prewrite_;
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public boolean hasPrewrite() {
return prewrite_ != null;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getPrewrite() {
return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance() : prewrite_;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder getPrewriteOrBuilder() {
return getPrewrite();
}
public static final int DELETE_RANGE_FIELD_NUMBER = 8;
private org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest deleteRange_;
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public boolean hasDeleteRange() {
return deleteRange_ != null;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDeleteRange() {
return deleteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance() : deleteRange_;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder() {
return getDeleteRange();
}
public static final int INGEST_SST_FIELD_NUMBER = 9;
private org.tikv.kvproto.RaftCmdpb.IngestSSTRequest ingestSst_;
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public boolean hasIngestSst() {
return ingestSst_ != null;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getIngestSst() {
return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance() : ingestSst_;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder getIngestSstOrBuilder() {
return getIngestSst();
}
public static final int READ_INDEX_FIELD_NUMBER = 10;
private org.tikv.kvproto.RaftCmdpb.ReadIndexRequest readIndex_;
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public boolean hasReadIndex() {
return readIndex_ != null;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getReadIndex() {
return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance() : readIndex_;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder getReadIndexOrBuilder() {
return getReadIndex();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) {
output.writeEnum(1, cmdType_);
}
if (get_ != null) {
output.writeMessage(2, getGet());
}
if (put_ != null) {
output.writeMessage(4, getPut());
}
if (delete_ != null) {
output.writeMessage(5, getDelete());
}
if (snap_ != null) {
output.writeMessage(6, getSnap());
}
if (prewrite_ != null) {
output.writeMessage(7, getPrewrite());
}
if (deleteRange_ != null) {
output.writeMessage(8, getDeleteRange());
}
if (ingestSst_ != null) {
output.writeMessage(9, getIngestSst());
}
if (readIndex_ != null) {
output.writeMessage(10, getReadIndex());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, cmdType_);
}
if (get_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getGet());
}
if (put_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPut());
}
if (delete_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDelete());
}
if (snap_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSnap());
}
if (prewrite_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPrewrite());
}
if (deleteRange_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getDeleteRange());
}
if (ingestSst_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getIngestSst());
}
if (readIndex_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getReadIndex());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.Request)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.Request other = (org.tikv.kvproto.RaftCmdpb.Request) obj;
boolean result = true;
result = result && cmdType_ == other.cmdType_;
result = result && (hasGet() == other.hasGet());
if (hasGet()) {
result = result && getGet()
.equals(other.getGet());
}
result = result && (hasPut() == other.hasPut());
if (hasPut()) {
result = result && getPut()
.equals(other.getPut());
}
result = result && (hasDelete() == other.hasDelete());
if (hasDelete()) {
result = result && getDelete()
.equals(other.getDelete());
}
result = result && (hasSnap() == other.hasSnap());
if (hasSnap()) {
result = result && getSnap()
.equals(other.getSnap());
}
result = result && (hasPrewrite() == other.hasPrewrite());
if (hasPrewrite()) {
result = result && getPrewrite()
.equals(other.getPrewrite());
}
result = result && (hasDeleteRange() == other.hasDeleteRange());
if (hasDeleteRange()) {
result = result && getDeleteRange()
.equals(other.getDeleteRange());
}
result = result && (hasIngestSst() == other.hasIngestSst());
if (hasIngestSst()) {
result = result && getIngestSst()
.equals(other.getIngestSst());
}
result = result && (hasReadIndex() == other.hasReadIndex());
if (hasReadIndex()) {
result = result && getReadIndex()
.equals(other.getReadIndex());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CMD_TYPE_FIELD_NUMBER;
hash = (53 * hash) + cmdType_;
if (hasGet()) {
hash = (37 * hash) + GET_FIELD_NUMBER;
hash = (53 * hash) + getGet().hashCode();
}
if (hasPut()) {
hash = (37 * hash) + PUT_FIELD_NUMBER;
hash = (53 * hash) + getPut().hashCode();
}
if (hasDelete()) {
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + getDelete().hashCode();
}
if (hasSnap()) {
hash = (37 * hash) + SNAP_FIELD_NUMBER;
hash = (53 * hash) + getSnap().hashCode();
}
if (hasPrewrite()) {
hash = (37 * hash) + PREWRITE_FIELD_NUMBER;
hash = (53 * hash) + getPrewrite().hashCode();
}
if (hasDeleteRange()) {
hash = (37 * hash) + DELETE_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getDeleteRange().hashCode();
}
if (hasIngestSst()) {
hash = (37 * hash) + INGEST_SST_FIELD_NUMBER;
hash = (53 * hash) + getIngestSst().hashCode();
}
if (hasReadIndex()) {
hash = (37 * hash) + READ_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getReadIndex().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.Request)
org.tikv.kvproto.RaftCmdpb.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.Request.class, org.tikv.kvproto.RaftCmdpb.Request.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cmdType_ = 0;
if (getBuilder_ == null) {
get_ = null;
} else {
get_ = null;
getBuilder_ = null;
}
if (putBuilder_ == null) {
put_ = null;
} else {
put_ = null;
putBuilder_ = null;
}
if (deleteBuilder_ == null) {
delete_ = null;
} else {
delete_ = null;
deleteBuilder_ = null;
}
if (snapBuilder_ == null) {
snap_ = null;
} else {
snap_ = null;
snapBuilder_ = null;
}
if (prewriteBuilder_ == null) {
prewrite_ = null;
} else {
prewrite_ = null;
prewriteBuilder_ = null;
}
if (deleteRangeBuilder_ == null) {
deleteRange_ = null;
} else {
deleteRange_ = null;
deleteRangeBuilder_ = null;
}
if (ingestSstBuilder_ == null) {
ingestSst_ = null;
} else {
ingestSst_ = null;
ingestSstBuilder_ = null;
}
if (readIndexBuilder_ == null) {
readIndex_ = null;
} else {
readIndex_ = null;
readIndexBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.Request getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.Request build() {
org.tikv.kvproto.RaftCmdpb.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.Request buildPartial() {
org.tikv.kvproto.RaftCmdpb.Request result = new org.tikv.kvproto.RaftCmdpb.Request(this);
result.cmdType_ = cmdType_;
if (getBuilder_ == null) {
result.get_ = get_;
} else {
result.get_ = getBuilder_.build();
}
if (putBuilder_ == null) {
result.put_ = put_;
} else {
result.put_ = putBuilder_.build();
}
if (deleteBuilder_ == null) {
result.delete_ = delete_;
} else {
result.delete_ = deleteBuilder_.build();
}
if (snapBuilder_ == null) {
result.snap_ = snap_;
} else {
result.snap_ = snapBuilder_.build();
}
if (prewriteBuilder_ == null) {
result.prewrite_ = prewrite_;
} else {
result.prewrite_ = prewriteBuilder_.build();
}
if (deleteRangeBuilder_ == null) {
result.deleteRange_ = deleteRange_;
} else {
result.deleteRange_ = deleteRangeBuilder_.build();
}
if (ingestSstBuilder_ == null) {
result.ingestSst_ = ingestSst_;
} else {
result.ingestSst_ = ingestSstBuilder_.build();
}
if (readIndexBuilder_ == null) {
result.readIndex_ = readIndex_;
} else {
result.readIndex_ = readIndexBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.Request) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.Request other) {
if (other == org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance()) return this;
if (other.cmdType_ != 0) {
setCmdTypeValue(other.getCmdTypeValue());
}
if (other.hasGet()) {
mergeGet(other.getGet());
}
if (other.hasPut()) {
mergePut(other.getPut());
}
if (other.hasDelete()) {
mergeDelete(other.getDelete());
}
if (other.hasSnap()) {
mergeSnap(other.getSnap());
}
if (other.hasPrewrite()) {
mergePrewrite(other.getPrewrite());
}
if (other.hasDeleteRange()) {
mergeDeleteRange(other.getDeleteRange());
}
if (other.hasIngestSst()) {
mergeIngestSst(other.getIngestSst());
}
if (other.hasReadIndex()) {
mergeReadIndex(other.getReadIndex());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int cmdType_ = 0;
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public int getCmdTypeValue() {
return cmdType_;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public Builder setCmdTypeValue(int value) {
cmdType_ = value;
onChanged();
return this;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() {
org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_);
return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.CmdType value) {
if (value == null) {
throw new NullPointerException();
}
cmdType_ = value.getNumber();
onChanged();
return this;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public Builder clearCmdType() {
cmdType_ = 0;
onChanged();
return this;
}
private org.tikv.kvproto.RaftCmdpb.GetRequest get_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.GetRequest, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder, org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder> getBuilder_;
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public boolean hasGet() {
return getBuilder_ != null || get_ != null;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetRequest getGet() {
if (getBuilder_ == null) {
return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance() : get_;
} else {
return getBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public Builder setGet(org.tikv.kvproto.RaftCmdpb.GetRequest value) {
if (getBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
get_ = value;
onChanged();
} else {
getBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public Builder setGet(
org.tikv.kvproto.RaftCmdpb.GetRequest.Builder builderForValue) {
if (getBuilder_ == null) {
get_ = builderForValue.build();
onChanged();
} else {
getBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public Builder mergeGet(org.tikv.kvproto.RaftCmdpb.GetRequest value) {
if (getBuilder_ == null) {
if (get_ != null) {
get_ =
org.tikv.kvproto.RaftCmdpb.GetRequest.newBuilder(get_).mergeFrom(value).buildPartial();
} else {
get_ = value;
}
onChanged();
} else {
getBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public Builder clearGet() {
if (getBuilder_ == null) {
get_ = null;
onChanged();
} else {
get_ = null;
getBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetRequest.Builder getGetBuilder() {
onChanged();
return getGetFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder getGetOrBuilder() {
if (getBuilder_ != null) {
return getBuilder_.getMessageOrBuilder();
} else {
return get_ == null ?
org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance() : get_;
}
}
/**
* .raft_cmdpb.GetRequest get = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.GetRequest, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder, org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder>
getGetFieldBuilder() {
if (getBuilder_ == null) {
getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.GetRequest, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder, org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder>(
getGet(),
getParentForChildren(),
isClean());
get_ = null;
}
return getBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.PutRequest put_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PutRequest, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder, org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder> putBuilder_;
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public boolean hasPut() {
return putBuilder_ != null || put_ != null;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutRequest getPut() {
if (putBuilder_ == null) {
return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance() : put_;
} else {
return putBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public Builder setPut(org.tikv.kvproto.RaftCmdpb.PutRequest value) {
if (putBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
put_ = value;
onChanged();
} else {
putBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public Builder setPut(
org.tikv.kvproto.RaftCmdpb.PutRequest.Builder builderForValue) {
if (putBuilder_ == null) {
put_ = builderForValue.build();
onChanged();
} else {
putBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public Builder mergePut(org.tikv.kvproto.RaftCmdpb.PutRequest value) {
if (putBuilder_ == null) {
if (put_ != null) {
put_ =
org.tikv.kvproto.RaftCmdpb.PutRequest.newBuilder(put_).mergeFrom(value).buildPartial();
} else {
put_ = value;
}
onChanged();
} else {
putBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public Builder clearPut() {
if (putBuilder_ == null) {
put_ = null;
onChanged();
} else {
put_ = null;
putBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutRequest.Builder getPutBuilder() {
onChanged();
return getPutFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder getPutOrBuilder() {
if (putBuilder_ != null) {
return putBuilder_.getMessageOrBuilder();
} else {
return put_ == null ?
org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance() : put_;
}
}
/**
* .raft_cmdpb.PutRequest put = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PutRequest, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder, org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder>
getPutFieldBuilder() {
if (putBuilder_ == null) {
putBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PutRequest, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder, org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder>(
getPut(),
getParentForChildren(),
isClean());
put_ = null;
}
return putBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.DeleteRequest delete_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRequest, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder> deleteBuilder_;
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public boolean hasDelete() {
return deleteBuilder_ != null || delete_ != null;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDelete() {
if (deleteBuilder_ == null) {
return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance() : delete_;
} else {
return deleteBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public Builder setDelete(org.tikv.kvproto.RaftCmdpb.DeleteRequest value) {
if (deleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
delete_ = value;
onChanged();
} else {
deleteBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public Builder setDelete(
org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder builderForValue) {
if (deleteBuilder_ == null) {
delete_ = builderForValue.build();
onChanged();
} else {
deleteBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public Builder mergeDelete(org.tikv.kvproto.RaftCmdpb.DeleteRequest value) {
if (deleteBuilder_ == null) {
if (delete_ != null) {
delete_ =
org.tikv.kvproto.RaftCmdpb.DeleteRequest.newBuilder(delete_).mergeFrom(value).buildPartial();
} else {
delete_ = value;
}
onChanged();
} else {
deleteBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public Builder clearDelete() {
if (deleteBuilder_ == null) {
delete_ = null;
onChanged();
} else {
delete_ = null;
deleteBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder getDeleteBuilder() {
onChanged();
return getDeleteFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder getDeleteOrBuilder() {
if (deleteBuilder_ != null) {
return deleteBuilder_.getMessageOrBuilder();
} else {
return delete_ == null ?
org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance() : delete_;
}
}
/**
* .raft_cmdpb.DeleteRequest delete = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRequest, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder>
getDeleteFieldBuilder() {
if (deleteBuilder_ == null) {
deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRequest, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder>(
getDelete(),
getParentForChildren(),
isClean());
delete_ = null;
}
return deleteBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.SnapRequest snap_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SnapRequest, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder, org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder> snapBuilder_;
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public boolean hasSnap() {
return snapBuilder_ != null || snap_ != null;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapRequest getSnap() {
if (snapBuilder_ == null) {
return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance() : snap_;
} else {
return snapBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public Builder setSnap(org.tikv.kvproto.RaftCmdpb.SnapRequest value) {
if (snapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
snap_ = value;
onChanged();
} else {
snapBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public Builder setSnap(
org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder builderForValue) {
if (snapBuilder_ == null) {
snap_ = builderForValue.build();
onChanged();
} else {
snapBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public Builder mergeSnap(org.tikv.kvproto.RaftCmdpb.SnapRequest value) {
if (snapBuilder_ == null) {
if (snap_ != null) {
snap_ =
org.tikv.kvproto.RaftCmdpb.SnapRequest.newBuilder(snap_).mergeFrom(value).buildPartial();
} else {
snap_ = value;
}
onChanged();
} else {
snapBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public Builder clearSnap() {
if (snapBuilder_ == null) {
snap_ = null;
onChanged();
} else {
snap_ = null;
snapBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder getSnapBuilder() {
onChanged();
return getSnapFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder getSnapOrBuilder() {
if (snapBuilder_ != null) {
return snapBuilder_.getMessageOrBuilder();
} else {
return snap_ == null ?
org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance() : snap_;
}
}
/**
* .raft_cmdpb.SnapRequest snap = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SnapRequest, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder, org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder>
getSnapFieldBuilder() {
if (snapBuilder_ == null) {
snapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SnapRequest, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder, org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder>(
getSnap(),
getParentForChildren(),
isClean());
snap_ = null;
}
return snapBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.PrewriteRequest prewrite_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PrewriteRequest, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder> prewriteBuilder_;
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public boolean hasPrewrite() {
return prewriteBuilder_ != null || prewrite_ != null;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getPrewrite() {
if (prewriteBuilder_ == null) {
return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance() : prewrite_;
} else {
return prewriteBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public Builder setPrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteRequest value) {
if (prewriteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
prewrite_ = value;
onChanged();
} else {
prewriteBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public Builder setPrewrite(
org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder builderForValue) {
if (prewriteBuilder_ == null) {
prewrite_ = builderForValue.build();
onChanged();
} else {
prewriteBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public Builder mergePrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteRequest value) {
if (prewriteBuilder_ == null) {
if (prewrite_ != null) {
prewrite_ =
org.tikv.kvproto.RaftCmdpb.PrewriteRequest.newBuilder(prewrite_).mergeFrom(value).buildPartial();
} else {
prewrite_ = value;
}
onChanged();
} else {
prewriteBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public Builder clearPrewrite() {
if (prewriteBuilder_ == null) {
prewrite_ = null;
onChanged();
} else {
prewrite_ = null;
prewriteBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder getPrewriteBuilder() {
onChanged();
return getPrewriteFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder getPrewriteOrBuilder() {
if (prewriteBuilder_ != null) {
return prewriteBuilder_.getMessageOrBuilder();
} else {
return prewrite_ == null ?
org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance() : prewrite_;
}
}
/**
* .raft_cmdpb.PrewriteRequest prewrite = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PrewriteRequest, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder>
getPrewriteFieldBuilder() {
if (prewriteBuilder_ == null) {
prewriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PrewriteRequest, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder>(
getPrewrite(),
getParentForChildren(),
isClean());
prewrite_ = null;
}
return prewriteBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest deleteRange_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder> deleteRangeBuilder_;
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public boolean hasDeleteRange() {
return deleteRangeBuilder_ != null || deleteRange_ != null;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDeleteRange() {
if (deleteRangeBuilder_ == null) {
return deleteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance() : deleteRange_;
} else {
return deleteRangeBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public Builder setDeleteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest value) {
if (deleteRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deleteRange_ = value;
onChanged();
} else {
deleteRangeBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public Builder setDeleteRange(
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder builderForValue) {
if (deleteRangeBuilder_ == null) {
deleteRange_ = builderForValue.build();
onChanged();
} else {
deleteRangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public Builder mergeDeleteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest value) {
if (deleteRangeBuilder_ == null) {
if (deleteRange_ != null) {
deleteRange_ =
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.newBuilder(deleteRange_).mergeFrom(value).buildPartial();
} else {
deleteRange_ = value;
}
onChanged();
} else {
deleteRangeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public Builder clearDeleteRange() {
if (deleteRangeBuilder_ == null) {
deleteRange_ = null;
onChanged();
} else {
deleteRange_ = null;
deleteRangeBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder getDeleteRangeBuilder() {
onChanged();
return getDeleteRangeFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder() {
if (deleteRangeBuilder_ != null) {
return deleteRangeBuilder_.getMessageOrBuilder();
} else {
return deleteRange_ == null ?
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance() : deleteRange_;
}
}
/**
* .raft_cmdpb.DeleteRangeRequest delete_range = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder>
getDeleteRangeFieldBuilder() {
if (deleteRangeBuilder_ == null) {
deleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder>(
getDeleteRange(),
getParentForChildren(),
isClean());
deleteRange_ = null;
}
return deleteRangeBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.IngestSSTRequest ingestSst_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder> ingestSstBuilder_;
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public boolean hasIngestSst() {
return ingestSstBuilder_ != null || ingestSst_ != null;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getIngestSst() {
if (ingestSstBuilder_ == null) {
return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance() : ingestSst_;
} else {
return ingestSstBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public Builder setIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest value) {
if (ingestSstBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ingestSst_ = value;
onChanged();
} else {
ingestSstBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public Builder setIngestSst(
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder builderForValue) {
if (ingestSstBuilder_ == null) {
ingestSst_ = builderForValue.build();
onChanged();
} else {
ingestSstBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public Builder mergeIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest value) {
if (ingestSstBuilder_ == null) {
if (ingestSst_ != null) {
ingestSst_ =
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.newBuilder(ingestSst_).mergeFrom(value).buildPartial();
} else {
ingestSst_ = value;
}
onChanged();
} else {
ingestSstBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public Builder clearIngestSst() {
if (ingestSstBuilder_ == null) {
ingestSst_ = null;
onChanged();
} else {
ingestSst_ = null;
ingestSstBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder getIngestSstBuilder() {
onChanged();
return getIngestSstFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder getIngestSstOrBuilder() {
if (ingestSstBuilder_ != null) {
return ingestSstBuilder_.getMessageOrBuilder();
} else {
return ingestSst_ == null ?
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance() : ingestSst_;
}
}
/**
* .raft_cmdpb.IngestSSTRequest ingest_sst = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder>
getIngestSstFieldBuilder() {
if (ingestSstBuilder_ == null) {
ingestSstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.IngestSSTRequest, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder>(
getIngestSst(),
getParentForChildren(),
isClean());
ingestSst_ = null;
}
return ingestSstBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.ReadIndexRequest readIndex_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder> readIndexBuilder_;
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public boolean hasReadIndex() {
return readIndexBuilder_ != null || readIndex_ != null;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getReadIndex() {
if (readIndexBuilder_ == null) {
return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance() : readIndex_;
} else {
return readIndexBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public Builder setReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest value) {
if (readIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readIndex_ = value;
onChanged();
} else {
readIndexBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public Builder setReadIndex(
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder builderForValue) {
if (readIndexBuilder_ == null) {
readIndex_ = builderForValue.build();
onChanged();
} else {
readIndexBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public Builder mergeReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest value) {
if (readIndexBuilder_ == null) {
if (readIndex_ != null) {
readIndex_ =
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.newBuilder(readIndex_).mergeFrom(value).buildPartial();
} else {
readIndex_ = value;
}
onChanged();
} else {
readIndexBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public Builder clearReadIndex() {
if (readIndexBuilder_ == null) {
readIndex_ = null;
onChanged();
} else {
readIndex_ = null;
readIndexBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder getReadIndexBuilder() {
onChanged();
return getReadIndexFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder getReadIndexOrBuilder() {
if (readIndexBuilder_ != null) {
return readIndexBuilder_.getMessageOrBuilder();
} else {
return readIndex_ == null ?
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance() : readIndex_;
}
}
/**
* .raft_cmdpb.ReadIndexRequest read_index = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder>
getReadIndexFieldBuilder() {
if (readIndexBuilder_ == null) {
readIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ReadIndexRequest, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder>(
getReadIndex(),
getParentForChildren(),
isClean());
readIndex_ = null;
}
return readIndexBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.Request)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.Request)
private static final org.tikv.kvproto.RaftCmdpb.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.Request();
}
public static org.tikv.kvproto.RaftCmdpb.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Request(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.Response)
com.google.protobuf.MessageOrBuilder {
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
int getCmdTypeValue();
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
org.tikv.kvproto.RaftCmdpb.CmdType getCmdType();
/**
* .raft_cmdpb.GetResponse get = 2;
*/
boolean hasGet();
/**
* .raft_cmdpb.GetResponse get = 2;
*/
org.tikv.kvproto.RaftCmdpb.GetResponse getGet();
/**
* .raft_cmdpb.GetResponse get = 2;
*/
org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder getGetOrBuilder();
/**
* .raft_cmdpb.PutResponse put = 4;
*/
boolean hasPut();
/**
* .raft_cmdpb.PutResponse put = 4;
*/
org.tikv.kvproto.RaftCmdpb.PutResponse getPut();
/**
* .raft_cmdpb.PutResponse put = 4;
*/
org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder getPutOrBuilder();
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
boolean hasDelete();
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
org.tikv.kvproto.RaftCmdpb.DeleteResponse getDelete();
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder getDeleteOrBuilder();
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
boolean hasSnap();
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
org.tikv.kvproto.RaftCmdpb.SnapResponse getSnap();
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder getSnapOrBuilder();
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
boolean hasPrewrite();
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
org.tikv.kvproto.RaftCmdpb.PrewriteResponse getPrewrite();
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder getPrewriteOrBuilder();
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
boolean hasDelteRange();
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDelteRange();
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder getDelteRangeOrBuilder();
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
boolean hasIngestSst();
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getIngestSst();
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder getIngestSstOrBuilder();
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
boolean hasReadIndex();
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getReadIndex();
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder getReadIndexOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
cmdType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
cmdType_ = rawValue;
break;
}
case 18: {
org.tikv.kvproto.RaftCmdpb.GetResponse.Builder subBuilder = null;
if (get_ != null) {
subBuilder = get_.toBuilder();
}
get_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.GetResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(get_);
get_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.tikv.kvproto.RaftCmdpb.PutResponse.Builder subBuilder = null;
if (put_ != null) {
subBuilder = put_.toBuilder();
}
put_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PutResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(put_);
put_ = subBuilder.buildPartial();
}
break;
}
case 42: {
org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder subBuilder = null;
if (delete_ != null) {
subBuilder = delete_.toBuilder();
}
delete_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(delete_);
delete_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder subBuilder = null;
if (snap_ != null) {
subBuilder = snap_.toBuilder();
}
snap_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SnapResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(snap_);
snap_ = subBuilder.buildPartial();
}
break;
}
case 58: {
org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder subBuilder = null;
if (prewrite_ != null) {
subBuilder = prewrite_.toBuilder();
}
prewrite_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrewriteResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(prewrite_);
prewrite_ = subBuilder.buildPartial();
}
break;
}
case 66: {
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder subBuilder = null;
if (delteRange_ != null) {
subBuilder = delteRange_.toBuilder();
}
delteRange_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(delteRange_);
delteRange_ = subBuilder.buildPartial();
}
break;
}
case 74: {
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder subBuilder = null;
if (ingestSst_ != null) {
subBuilder = ingestSst_.toBuilder();
}
ingestSst_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ingestSst_);
ingestSst_ = subBuilder.buildPartial();
}
break;
}
case 82: {
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder subBuilder = null;
if (readIndex_ != null) {
subBuilder = readIndex_.toBuilder();
}
readIndex_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(readIndex_);
readIndex_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.Response.class, org.tikv.kvproto.RaftCmdpb.Response.Builder.class);
}
public static final int CMD_TYPE_FIELD_NUMBER = 1;
private int cmdType_;
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public int getCmdTypeValue() {
return cmdType_;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() {
org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_);
return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result;
}
public static final int GET_FIELD_NUMBER = 2;
private org.tikv.kvproto.RaftCmdpb.GetResponse get_;
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public boolean hasGet() {
return get_ != null;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetResponse getGet() {
return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance() : get_;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder getGetOrBuilder() {
return getGet();
}
public static final int PUT_FIELD_NUMBER = 4;
private org.tikv.kvproto.RaftCmdpb.PutResponse put_;
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public boolean hasPut() {
return put_ != null;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutResponse getPut() {
return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance() : put_;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder getPutOrBuilder() {
return getPut();
}
public static final int DELETE_FIELD_NUMBER = 5;
private org.tikv.kvproto.RaftCmdpb.DeleteResponse delete_;
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public boolean hasDelete() {
return delete_ != null;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDelete() {
return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance() : delete_;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder getDeleteOrBuilder() {
return getDelete();
}
public static final int SNAP_FIELD_NUMBER = 6;
private org.tikv.kvproto.RaftCmdpb.SnapResponse snap_;
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public boolean hasSnap() {
return snap_ != null;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapResponse getSnap() {
return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance() : snap_;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder getSnapOrBuilder() {
return getSnap();
}
public static final int PREWRITE_FIELD_NUMBER = 7;
private org.tikv.kvproto.RaftCmdpb.PrewriteResponse prewrite_;
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public boolean hasPrewrite() {
return prewrite_ != null;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getPrewrite() {
return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance() : prewrite_;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder getPrewriteOrBuilder() {
return getPrewrite();
}
public static final int DELTE_RANGE_FIELD_NUMBER = 8;
private org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse delteRange_;
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public boolean hasDelteRange() {
return delteRange_ != null;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDelteRange() {
return delteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance() : delteRange_;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder getDelteRangeOrBuilder() {
return getDelteRange();
}
public static final int INGEST_SST_FIELD_NUMBER = 9;
private org.tikv.kvproto.RaftCmdpb.IngestSSTResponse ingestSst_;
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public boolean hasIngestSst() {
return ingestSst_ != null;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getIngestSst() {
return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance() : ingestSst_;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder getIngestSstOrBuilder() {
return getIngestSst();
}
public static final int READ_INDEX_FIELD_NUMBER = 10;
private org.tikv.kvproto.RaftCmdpb.ReadIndexResponse readIndex_;
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public boolean hasReadIndex() {
return readIndex_ != null;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getReadIndex() {
return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance() : readIndex_;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder getReadIndexOrBuilder() {
return getReadIndex();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) {
output.writeEnum(1, cmdType_);
}
if (get_ != null) {
output.writeMessage(2, getGet());
}
if (put_ != null) {
output.writeMessage(4, getPut());
}
if (delete_ != null) {
output.writeMessage(5, getDelete());
}
if (snap_ != null) {
output.writeMessage(6, getSnap());
}
if (prewrite_ != null) {
output.writeMessage(7, getPrewrite());
}
if (delteRange_ != null) {
output.writeMessage(8, getDelteRange());
}
if (ingestSst_ != null) {
output.writeMessage(9, getIngestSst());
}
if (readIndex_ != null) {
output.writeMessage(10, getReadIndex());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, cmdType_);
}
if (get_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getGet());
}
if (put_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPut());
}
if (delete_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDelete());
}
if (snap_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSnap());
}
if (prewrite_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPrewrite());
}
if (delteRange_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getDelteRange());
}
if (ingestSst_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getIngestSst());
}
if (readIndex_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getReadIndex());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.Response)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.Response other = (org.tikv.kvproto.RaftCmdpb.Response) obj;
boolean result = true;
result = result && cmdType_ == other.cmdType_;
result = result && (hasGet() == other.hasGet());
if (hasGet()) {
result = result && getGet()
.equals(other.getGet());
}
result = result && (hasPut() == other.hasPut());
if (hasPut()) {
result = result && getPut()
.equals(other.getPut());
}
result = result && (hasDelete() == other.hasDelete());
if (hasDelete()) {
result = result && getDelete()
.equals(other.getDelete());
}
result = result && (hasSnap() == other.hasSnap());
if (hasSnap()) {
result = result && getSnap()
.equals(other.getSnap());
}
result = result && (hasPrewrite() == other.hasPrewrite());
if (hasPrewrite()) {
result = result && getPrewrite()
.equals(other.getPrewrite());
}
result = result && (hasDelteRange() == other.hasDelteRange());
if (hasDelteRange()) {
result = result && getDelteRange()
.equals(other.getDelteRange());
}
result = result && (hasIngestSst() == other.hasIngestSst());
if (hasIngestSst()) {
result = result && getIngestSst()
.equals(other.getIngestSst());
}
result = result && (hasReadIndex() == other.hasReadIndex());
if (hasReadIndex()) {
result = result && getReadIndex()
.equals(other.getReadIndex());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CMD_TYPE_FIELD_NUMBER;
hash = (53 * hash) + cmdType_;
if (hasGet()) {
hash = (37 * hash) + GET_FIELD_NUMBER;
hash = (53 * hash) + getGet().hashCode();
}
if (hasPut()) {
hash = (37 * hash) + PUT_FIELD_NUMBER;
hash = (53 * hash) + getPut().hashCode();
}
if (hasDelete()) {
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + getDelete().hashCode();
}
if (hasSnap()) {
hash = (37 * hash) + SNAP_FIELD_NUMBER;
hash = (53 * hash) + getSnap().hashCode();
}
if (hasPrewrite()) {
hash = (37 * hash) + PREWRITE_FIELD_NUMBER;
hash = (53 * hash) + getPrewrite().hashCode();
}
if (hasDelteRange()) {
hash = (37 * hash) + DELTE_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getDelteRange().hashCode();
}
if (hasIngestSst()) {
hash = (37 * hash) + INGEST_SST_FIELD_NUMBER;
hash = (53 * hash) + getIngestSst().hashCode();
}
if (hasReadIndex()) {
hash = (37 * hash) + READ_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getReadIndex().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.Response)
org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.Response.class, org.tikv.kvproto.RaftCmdpb.Response.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cmdType_ = 0;
if (getBuilder_ == null) {
get_ = null;
} else {
get_ = null;
getBuilder_ = null;
}
if (putBuilder_ == null) {
put_ = null;
} else {
put_ = null;
putBuilder_ = null;
}
if (deleteBuilder_ == null) {
delete_ = null;
} else {
delete_ = null;
deleteBuilder_ = null;
}
if (snapBuilder_ == null) {
snap_ = null;
} else {
snap_ = null;
snapBuilder_ = null;
}
if (prewriteBuilder_ == null) {
prewrite_ = null;
} else {
prewrite_ = null;
prewriteBuilder_ = null;
}
if (delteRangeBuilder_ == null) {
delteRange_ = null;
} else {
delteRange_ = null;
delteRangeBuilder_ = null;
}
if (ingestSstBuilder_ == null) {
ingestSst_ = null;
} else {
ingestSst_ = null;
ingestSstBuilder_ = null;
}
if (readIndexBuilder_ == null) {
readIndex_ = null;
} else {
readIndex_ = null;
readIndexBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.Response getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.Response.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.Response build() {
org.tikv.kvproto.RaftCmdpb.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.Response buildPartial() {
org.tikv.kvproto.RaftCmdpb.Response result = new org.tikv.kvproto.RaftCmdpb.Response(this);
result.cmdType_ = cmdType_;
if (getBuilder_ == null) {
result.get_ = get_;
} else {
result.get_ = getBuilder_.build();
}
if (putBuilder_ == null) {
result.put_ = put_;
} else {
result.put_ = putBuilder_.build();
}
if (deleteBuilder_ == null) {
result.delete_ = delete_;
} else {
result.delete_ = deleteBuilder_.build();
}
if (snapBuilder_ == null) {
result.snap_ = snap_;
} else {
result.snap_ = snapBuilder_.build();
}
if (prewriteBuilder_ == null) {
result.prewrite_ = prewrite_;
} else {
result.prewrite_ = prewriteBuilder_.build();
}
if (delteRangeBuilder_ == null) {
result.delteRange_ = delteRange_;
} else {
result.delteRange_ = delteRangeBuilder_.build();
}
if (ingestSstBuilder_ == null) {
result.ingestSst_ = ingestSst_;
} else {
result.ingestSst_ = ingestSstBuilder_.build();
}
if (readIndexBuilder_ == null) {
result.readIndex_ = readIndex_;
} else {
result.readIndex_ = readIndexBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.Response) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.Response other) {
if (other == org.tikv.kvproto.RaftCmdpb.Response.getDefaultInstance()) return this;
if (other.cmdType_ != 0) {
setCmdTypeValue(other.getCmdTypeValue());
}
if (other.hasGet()) {
mergeGet(other.getGet());
}
if (other.hasPut()) {
mergePut(other.getPut());
}
if (other.hasDelete()) {
mergeDelete(other.getDelete());
}
if (other.hasSnap()) {
mergeSnap(other.getSnap());
}
if (other.hasPrewrite()) {
mergePrewrite(other.getPrewrite());
}
if (other.hasDelteRange()) {
mergeDelteRange(other.getDelteRange());
}
if (other.hasIngestSst()) {
mergeIngestSst(other.getIngestSst());
}
if (other.hasReadIndex()) {
mergeReadIndex(other.getReadIndex());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int cmdType_ = 0;
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public int getCmdTypeValue() {
return cmdType_;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public Builder setCmdTypeValue(int value) {
cmdType_ = value;
onChanged();
return this;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() {
org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_);
return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.CmdType value) {
if (value == null) {
throw new NullPointerException();
}
cmdType_ = value.getNumber();
onChanged();
return this;
}
/**
* .raft_cmdpb.CmdType cmd_type = 1;
*/
public Builder clearCmdType() {
cmdType_ = 0;
onChanged();
return this;
}
private org.tikv.kvproto.RaftCmdpb.GetResponse get_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.GetResponse, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder, org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder> getBuilder_;
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public boolean hasGet() {
return getBuilder_ != null || get_ != null;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetResponse getGet() {
if (getBuilder_ == null) {
return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance() : get_;
} else {
return getBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public Builder setGet(org.tikv.kvproto.RaftCmdpb.GetResponse value) {
if (getBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
get_ = value;
onChanged();
} else {
getBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public Builder setGet(
org.tikv.kvproto.RaftCmdpb.GetResponse.Builder builderForValue) {
if (getBuilder_ == null) {
get_ = builderForValue.build();
onChanged();
} else {
getBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public Builder mergeGet(org.tikv.kvproto.RaftCmdpb.GetResponse value) {
if (getBuilder_ == null) {
if (get_ != null) {
get_ =
org.tikv.kvproto.RaftCmdpb.GetResponse.newBuilder(get_).mergeFrom(value).buildPartial();
} else {
get_ = value;
}
onChanged();
} else {
getBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public Builder clearGet() {
if (getBuilder_ == null) {
get_ = null;
onChanged();
} else {
get_ = null;
getBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetResponse.Builder getGetBuilder() {
onChanged();
return getGetFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
public org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder getGetOrBuilder() {
if (getBuilder_ != null) {
return getBuilder_.getMessageOrBuilder();
} else {
return get_ == null ?
org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance() : get_;
}
}
/**
* .raft_cmdpb.GetResponse get = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.GetResponse, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder, org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder>
getGetFieldBuilder() {
if (getBuilder_ == null) {
getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.GetResponse, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder, org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder>(
getGet(),
getParentForChildren(),
isClean());
get_ = null;
}
return getBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.PutResponse put_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PutResponse, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder, org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder> putBuilder_;
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public boolean hasPut() {
return putBuilder_ != null || put_ != null;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutResponse getPut() {
if (putBuilder_ == null) {
return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance() : put_;
} else {
return putBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public Builder setPut(org.tikv.kvproto.RaftCmdpb.PutResponse value) {
if (putBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
put_ = value;
onChanged();
} else {
putBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public Builder setPut(
org.tikv.kvproto.RaftCmdpb.PutResponse.Builder builderForValue) {
if (putBuilder_ == null) {
put_ = builderForValue.build();
onChanged();
} else {
putBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public Builder mergePut(org.tikv.kvproto.RaftCmdpb.PutResponse value) {
if (putBuilder_ == null) {
if (put_ != null) {
put_ =
org.tikv.kvproto.RaftCmdpb.PutResponse.newBuilder(put_).mergeFrom(value).buildPartial();
} else {
put_ = value;
}
onChanged();
} else {
putBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public Builder clearPut() {
if (putBuilder_ == null) {
put_ = null;
onChanged();
} else {
put_ = null;
putBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutResponse.Builder getPutBuilder() {
onChanged();
return getPutFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
public org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder getPutOrBuilder() {
if (putBuilder_ != null) {
return putBuilder_.getMessageOrBuilder();
} else {
return put_ == null ?
org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance() : put_;
}
}
/**
* .raft_cmdpb.PutResponse put = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PutResponse, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder, org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder>
getPutFieldBuilder() {
if (putBuilder_ == null) {
putBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PutResponse, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder, org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder>(
getPut(),
getParentForChildren(),
isClean());
put_ = null;
}
return putBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.DeleteResponse delete_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteResponse, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder> deleteBuilder_;
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public boolean hasDelete() {
return deleteBuilder_ != null || delete_ != null;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDelete() {
if (deleteBuilder_ == null) {
return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance() : delete_;
} else {
return deleteBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public Builder setDelete(org.tikv.kvproto.RaftCmdpb.DeleteResponse value) {
if (deleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
delete_ = value;
onChanged();
} else {
deleteBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public Builder setDelete(
org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder builderForValue) {
if (deleteBuilder_ == null) {
delete_ = builderForValue.build();
onChanged();
} else {
deleteBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public Builder mergeDelete(org.tikv.kvproto.RaftCmdpb.DeleteResponse value) {
if (deleteBuilder_ == null) {
if (delete_ != null) {
delete_ =
org.tikv.kvproto.RaftCmdpb.DeleteResponse.newBuilder(delete_).mergeFrom(value).buildPartial();
} else {
delete_ = value;
}
onChanged();
} else {
deleteBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public Builder clearDelete() {
if (deleteBuilder_ == null) {
delete_ = null;
onChanged();
} else {
delete_ = null;
deleteBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder getDeleteBuilder() {
onChanged();
return getDeleteFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder getDeleteOrBuilder() {
if (deleteBuilder_ != null) {
return deleteBuilder_.getMessageOrBuilder();
} else {
return delete_ == null ?
org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance() : delete_;
}
}
/**
* .raft_cmdpb.DeleteResponse delete = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteResponse, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder>
getDeleteFieldBuilder() {
if (deleteBuilder_ == null) {
deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteResponse, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder>(
getDelete(),
getParentForChildren(),
isClean());
delete_ = null;
}
return deleteBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.SnapResponse snap_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SnapResponse, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder, org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder> snapBuilder_;
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public boolean hasSnap() {
return snapBuilder_ != null || snap_ != null;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapResponse getSnap() {
if (snapBuilder_ == null) {
return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance() : snap_;
} else {
return snapBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public Builder setSnap(org.tikv.kvproto.RaftCmdpb.SnapResponse value) {
if (snapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
snap_ = value;
onChanged();
} else {
snapBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public Builder setSnap(
org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder builderForValue) {
if (snapBuilder_ == null) {
snap_ = builderForValue.build();
onChanged();
} else {
snapBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public Builder mergeSnap(org.tikv.kvproto.RaftCmdpb.SnapResponse value) {
if (snapBuilder_ == null) {
if (snap_ != null) {
snap_ =
org.tikv.kvproto.RaftCmdpb.SnapResponse.newBuilder(snap_).mergeFrom(value).buildPartial();
} else {
snap_ = value;
}
onChanged();
} else {
snapBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public Builder clearSnap() {
if (snapBuilder_ == null) {
snap_ = null;
onChanged();
} else {
snap_ = null;
snapBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder getSnapBuilder() {
onChanged();
return getSnapFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
public org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder getSnapOrBuilder() {
if (snapBuilder_ != null) {
return snapBuilder_.getMessageOrBuilder();
} else {
return snap_ == null ?
org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance() : snap_;
}
}
/**
* .raft_cmdpb.SnapResponse snap = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SnapResponse, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder, org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder>
getSnapFieldBuilder() {
if (snapBuilder_ == null) {
snapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SnapResponse, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder, org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder>(
getSnap(),
getParentForChildren(),
isClean());
snap_ = null;
}
return snapBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.PrewriteResponse prewrite_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PrewriteResponse, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder> prewriteBuilder_;
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public boolean hasPrewrite() {
return prewriteBuilder_ != null || prewrite_ != null;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getPrewrite() {
if (prewriteBuilder_ == null) {
return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance() : prewrite_;
} else {
return prewriteBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public Builder setPrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteResponse value) {
if (prewriteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
prewrite_ = value;
onChanged();
} else {
prewriteBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public Builder setPrewrite(
org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder builderForValue) {
if (prewriteBuilder_ == null) {
prewrite_ = builderForValue.build();
onChanged();
} else {
prewriteBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public Builder mergePrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteResponse value) {
if (prewriteBuilder_ == null) {
if (prewrite_ != null) {
prewrite_ =
org.tikv.kvproto.RaftCmdpb.PrewriteResponse.newBuilder(prewrite_).mergeFrom(value).buildPartial();
} else {
prewrite_ = value;
}
onChanged();
} else {
prewriteBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public Builder clearPrewrite() {
if (prewriteBuilder_ == null) {
prewrite_ = null;
onChanged();
} else {
prewrite_ = null;
prewriteBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder getPrewriteBuilder() {
onChanged();
return getPrewriteFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder getPrewriteOrBuilder() {
if (prewriteBuilder_ != null) {
return prewriteBuilder_.getMessageOrBuilder();
} else {
return prewrite_ == null ?
org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance() : prewrite_;
}
}
/**
* .raft_cmdpb.PrewriteResponse prewrite = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PrewriteResponse, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder>
getPrewriteFieldBuilder() {
if (prewriteBuilder_ == null) {
prewriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.PrewriteResponse, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder>(
getPrewrite(),
getParentForChildren(),
isClean());
prewrite_ = null;
}
return prewriteBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse delteRange_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder> delteRangeBuilder_;
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public boolean hasDelteRange() {
return delteRangeBuilder_ != null || delteRange_ != null;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDelteRange() {
if (delteRangeBuilder_ == null) {
return delteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance() : delteRange_;
} else {
return delteRangeBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public Builder setDelteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse value) {
if (delteRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
delteRange_ = value;
onChanged();
} else {
delteRangeBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public Builder setDelteRange(
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder builderForValue) {
if (delteRangeBuilder_ == null) {
delteRange_ = builderForValue.build();
onChanged();
} else {
delteRangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public Builder mergeDelteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse value) {
if (delteRangeBuilder_ == null) {
if (delteRange_ != null) {
delteRange_ =
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.newBuilder(delteRange_).mergeFrom(value).buildPartial();
} else {
delteRange_ = value;
}
onChanged();
} else {
delteRangeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public Builder clearDelteRange() {
if (delteRangeBuilder_ == null) {
delteRange_ = null;
onChanged();
} else {
delteRange_ = null;
delteRangeBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder getDelteRangeBuilder() {
onChanged();
return getDelteRangeFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder getDelteRangeOrBuilder() {
if (delteRangeBuilder_ != null) {
return delteRangeBuilder_.getMessageOrBuilder();
} else {
return delteRange_ == null ?
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance() : delteRange_;
}
}
/**
* .raft_cmdpb.DeleteRangeResponse delte_range = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder>
getDelteRangeFieldBuilder() {
if (delteRangeBuilder_ == null) {
delteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder>(
getDelteRange(),
getParentForChildren(),
isClean());
delteRange_ = null;
}
return delteRangeBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.IngestSSTResponse ingestSst_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder> ingestSstBuilder_;
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public boolean hasIngestSst() {
return ingestSstBuilder_ != null || ingestSst_ != null;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getIngestSst() {
if (ingestSstBuilder_ == null) {
return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance() : ingestSst_;
} else {
return ingestSstBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public Builder setIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse value) {
if (ingestSstBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ingestSst_ = value;
onChanged();
} else {
ingestSstBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public Builder setIngestSst(
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder builderForValue) {
if (ingestSstBuilder_ == null) {
ingestSst_ = builderForValue.build();
onChanged();
} else {
ingestSstBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public Builder mergeIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse value) {
if (ingestSstBuilder_ == null) {
if (ingestSst_ != null) {
ingestSst_ =
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.newBuilder(ingestSst_).mergeFrom(value).buildPartial();
} else {
ingestSst_ = value;
}
onChanged();
} else {
ingestSstBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public Builder clearIngestSst() {
if (ingestSstBuilder_ == null) {
ingestSst_ = null;
onChanged();
} else {
ingestSst_ = null;
ingestSstBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder getIngestSstBuilder() {
onChanged();
return getIngestSstFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
public org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder getIngestSstOrBuilder() {
if (ingestSstBuilder_ != null) {
return ingestSstBuilder_.getMessageOrBuilder();
} else {
return ingestSst_ == null ?
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance() : ingestSst_;
}
}
/**
* .raft_cmdpb.IngestSSTResponse ingest_sst = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder>
getIngestSstFieldBuilder() {
if (ingestSstBuilder_ == null) {
ingestSstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.IngestSSTResponse, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder>(
getIngestSst(),
getParentForChildren(),
isClean());
ingestSst_ = null;
}
return ingestSstBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.ReadIndexResponse readIndex_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder> readIndexBuilder_;
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public boolean hasReadIndex() {
return readIndexBuilder_ != null || readIndex_ != null;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getReadIndex() {
if (readIndexBuilder_ == null) {
return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance() : readIndex_;
} else {
return readIndexBuilder_.getMessage();
}
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public Builder setReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse value) {
if (readIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readIndex_ = value;
onChanged();
} else {
readIndexBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public Builder setReadIndex(
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder builderForValue) {
if (readIndexBuilder_ == null) {
readIndex_ = builderForValue.build();
onChanged();
} else {
readIndexBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public Builder mergeReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse value) {
if (readIndexBuilder_ == null) {
if (readIndex_ != null) {
readIndex_ =
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.newBuilder(readIndex_).mergeFrom(value).buildPartial();
} else {
readIndex_ = value;
}
onChanged();
} else {
readIndexBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public Builder clearReadIndex() {
if (readIndexBuilder_ == null) {
readIndex_ = null;
onChanged();
} else {
readIndex_ = null;
readIndexBuilder_ = null;
}
return this;
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder getReadIndexBuilder() {
onChanged();
return getReadIndexFieldBuilder().getBuilder();
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
public org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder getReadIndexOrBuilder() {
if (readIndexBuilder_ != null) {
return readIndexBuilder_.getMessageOrBuilder();
} else {
return readIndex_ == null ?
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance() : readIndex_;
}
}
/**
* .raft_cmdpb.ReadIndexResponse read_index = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder>
getReadIndexFieldBuilder() {
if (readIndexBuilder_ == null) {
readIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ReadIndexResponse, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder>(
getReadIndex(),
getParentForChildren(),
isClean());
readIndex_ = null;
}
return readIndexBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.Response)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.Response)
private static final org.tikv.kvproto.RaftCmdpb.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.Response();
}
public static org.tikv.kvproto.RaftCmdpb.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangePeerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
int getChangeTypeValue();
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
eraftpb.Eraftpb.ConfChangeType getChangeType();
/**
* .metapb.Peer peer = 2;
*/
boolean hasPeer();
/**
* .metapb.Peer peer = 2;
*/
org.tikv.kvproto.Metapb.Peer getPeer();
/**
* .metapb.Peer peer = 2;
*/
org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerRequest}
*/
public static final class ChangePeerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerRequest)
ChangePeerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangePeerRequest.newBuilder() to construct.
private ChangePeerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangePeerRequest() {
changeType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangePeerRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
changeType_ = rawValue;
break;
}
case 18: {
org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null;
if (peer_ != null) {
subBuilder = peer_.toBuilder();
}
peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(peer_);
peer_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.class, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder.class);
}
public static final int CHANGE_TYPE_FIELD_NUMBER = 1;
private int changeType_;
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public int getChangeTypeValue() {
return changeType_;
}
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public eraftpb.Eraftpb.ConfChangeType getChangeType() {
eraftpb.Eraftpb.ConfChangeType result = eraftpb.Eraftpb.ConfChangeType.valueOf(changeType_);
return result == null ? eraftpb.Eraftpb.ConfChangeType.UNRECOGNIZED : result;
}
public static final int PEER_FIELD_NUMBER = 2;
private org.tikv.kvproto.Metapb.Peer peer_;
/**
* .metapb.Peer peer = 2;
*/
public boolean hasPeer() {
return peer_ != null;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.Peer getPeer() {
return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() {
return getPeer();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (changeType_ != eraftpb.Eraftpb.ConfChangeType.AddNode.getNumber()) {
output.writeEnum(1, changeType_);
}
if (peer_ != null) {
output.writeMessage(2, getPeer());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (changeType_ != eraftpb.Eraftpb.ConfChangeType.AddNode.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, changeType_);
}
if (peer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPeer());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest other = (org.tikv.kvproto.RaftCmdpb.ChangePeerRequest) obj;
boolean result = true;
result = result && changeType_ == other.changeType_;
result = result && (hasPeer() == other.hasPeer());
if (hasPeer()) {
result = result && getPeer()
.equals(other.getPeer());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + changeType_;
if (hasPeer()) {
hash = (37 * hash) + PEER_FIELD_NUMBER;
hash = (53 * hash) + getPeer().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerRequest)
org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.class, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
changeType_ = 0;
if (peerBuilder_ == null) {
peer_ = null;
} else {
peer_ = null;
peerBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest build() {
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest result = new org.tikv.kvproto.RaftCmdpb.ChangePeerRequest(this);
result.changeType_ = changeType_;
if (peerBuilder_ == null) {
result.peer_ = peer_;
} else {
result.peer_ = peerBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance()) return this;
if (other.changeType_ != 0) {
setChangeTypeValue(other.getChangeTypeValue());
}
if (other.hasPeer()) {
mergePeer(other.getPeer());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int changeType_ = 0;
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public int getChangeTypeValue() {
return changeType_;
}
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public Builder setChangeTypeValue(int value) {
changeType_ = value;
onChanged();
return this;
}
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public eraftpb.Eraftpb.ConfChangeType getChangeType() {
eraftpb.Eraftpb.ConfChangeType result = eraftpb.Eraftpb.ConfChangeType.valueOf(changeType_);
return result == null ? eraftpb.Eraftpb.ConfChangeType.UNRECOGNIZED : result;
}
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public Builder setChangeType(eraftpb.Eraftpb.ConfChangeType value) {
if (value == null) {
throw new NullPointerException();
}
changeType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* This can be only called in internal RaftStore now.
*
*
* .eraftpb.ConfChangeType change_type = 1;
*/
public Builder clearChangeType() {
changeType_ = 0;
onChanged();
return this;
}
private org.tikv.kvproto.Metapb.Peer peer_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_;
/**
* .metapb.Peer peer = 2;
*/
public boolean hasPeer() {
return peerBuilder_ != null || peer_ != null;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.Peer getPeer() {
if (peerBuilder_ == null) {
return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
} else {
return peerBuilder_.getMessage();
}
}
/**
* .metapb.Peer peer = 2;
*/
public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) {
if (peerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
peer_ = value;
onChanged();
} else {
peerBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public Builder setPeer(
org.tikv.kvproto.Metapb.Peer.Builder builderForValue) {
if (peerBuilder_ == null) {
peer_ = builderForValue.build();
onChanged();
} else {
peerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) {
if (peerBuilder_ == null) {
if (peer_ != null) {
peer_ =
org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial();
} else {
peer_ = value;
}
onChanged();
} else {
peerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public Builder clearPeer() {
if (peerBuilder_ == null) {
peer_ = null;
onChanged();
} else {
peer_ = null;
peerBuilder_ = null;
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() {
onChanged();
return getPeerFieldBuilder().getBuilder();
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() {
if (peerBuilder_ != null) {
return peerBuilder_.getMessageOrBuilder();
} else {
return peer_ == null ?
org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
}
}
/**
* .metapb.Peer peer = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>
getPeerFieldBuilder() {
if (peerBuilder_ == null) {
peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>(
getPeer(),
getParentForChildren(),
isClean());
peer_ = null;
}
return peerBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ChangePeerRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerRequest)
private static final org.tikv.kvproto.RaftCmdpb.ChangePeerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerRequest();
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ChangePeerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangePeerRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangePeerResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .metapb.Region region = 1;
*/
boolean hasRegion();
/**
* .metapb.Region region = 1;
*/
org.tikv.kvproto.Metapb.Region getRegion();
/**
* .metapb.Region region = 1;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerResponse}
*/
public static final class ChangePeerResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerResponse)
ChangePeerResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangePeerResponse.newBuilder() to construct.
private ChangePeerResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangePeerResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangePeerResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (region_ != null) {
subBuilder = region_.toBuilder();
}
region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(region_);
region_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.class, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder.class);
}
public static final int REGION_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Region region_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
return getRegion();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (region_ != null) {
output.writeMessage(1, getRegion());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (region_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRegion());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ChangePeerResponse other = (org.tikv.kvproto.RaftCmdpb.ChangePeerResponse) obj;
boolean result = true;
result = result && (hasRegion() == other.hasRegion());
if (hasRegion()) {
result = result && getRegion()
.equals(other.getRegion());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRegion()) {
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ChangePeerResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerResponse)
org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.class, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (regionBuilder_ == null) {
region_ = null;
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse build() {
org.tikv.kvproto.RaftCmdpb.ChangePeerResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.ChangePeerResponse result = new org.tikv.kvproto.RaftCmdpb.ChangePeerResponse(this);
if (regionBuilder_ == null) {
result.region_ = region_;
} else {
result.region_ = regionBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance()) return this;
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Metapb.Region region_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return regionBuilder_ != null || region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
if (regionBuilder_ == null) {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
} else {
return regionBuilder_.getMessage();
}
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
onChanged();
} else {
regionBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionBuilder_ == null) {
region_ = builderForValue.build();
onChanged();
} else {
regionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (region_ != null) {
region_ =
org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
onChanged();
} else {
regionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder clearRegion() {
if (regionBuilder_ == null) {
region_ = null;
onChanged();
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() {
onChanged();
return getRegionFieldBuilder().getBuilder();
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
if (regionBuilder_ != null) {
return regionBuilder_.getMessageOrBuilder();
} else {
return region_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
}
/**
* .metapb.Region region = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionFieldBuilder() {
if (regionBuilder_ == null) {
regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getRegion(),
getParentForChildren(),
isClean());
region_ = null;
}
return regionBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ChangePeerResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerResponse)
private static final org.tikv.kvproto.RaftCmdpb.ChangePeerResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerResponse();
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ChangePeerResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangePeerResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangePeerV2RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerV2Request)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
java.util.List
getChangesList();
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChanges(int index);
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
int getChangesCount();
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
java.util.List extends org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>
getChangesOrBuilderList();
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangesOrBuilder(
int index);
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerV2Request}
*/
public static final class ChangePeerV2Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerV2Request)
ChangePeerV2RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangePeerV2Request.newBuilder() to construct.
private ChangePeerV2Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangePeerV2Request() {
changes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangePeerV2Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
changes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
changes_.add(
input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
changes_ = java.util.Collections.unmodifiableList(changes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder.class);
}
public static final int CHANGES_FIELD_NUMBER = 1;
private java.util.List changes_;
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public java.util.List getChangesList() {
return changes_;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public java.util.List extends org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>
getChangesOrBuilderList() {
return changes_;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public int getChangesCount() {
return changes_.size();
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChanges(int index) {
return changes_.get(index);
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangesOrBuilder(
int index) {
return changes_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < changes_.size(); i++) {
output.writeMessage(1, changes_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < changes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, changes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request other = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request) obj;
boolean result = true;
result = result && getChangesList()
.equals(other.getChangesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getChangesCount() > 0) {
hash = (37 * hash) + CHANGES_FIELD_NUMBER;
hash = (53 * hash) + getChangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerV2Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerV2Request)
org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChangesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (changesBuilder_ == null) {
changes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
changesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request build() {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request buildPartial() {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request result = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request(this);
int from_bitField0_ = bitField0_;
if (changesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
changes_ = java.util.Collections.unmodifiableList(changes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.changes_ = changes_;
} else {
result.changes_ = changesBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request other) {
if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance()) return this;
if (changesBuilder_ == null) {
if (!other.changes_.isEmpty()) {
if (changes_.isEmpty()) {
changes_ = other.changes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChangesIsMutable();
changes_.addAll(other.changes_);
}
onChanged();
}
} else {
if (!other.changes_.isEmpty()) {
if (changesBuilder_.isEmpty()) {
changesBuilder_.dispose();
changesBuilder_ = null;
changes_ = other.changes_;
bitField0_ = (bitField0_ & ~0x00000001);
changesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChangesFieldBuilder() : null;
} else {
changesBuilder_.addAllMessages(other.changes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List changes_ =
java.util.Collections.emptyList();
private void ensureChangesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
changes_ = new java.util.ArrayList(changes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder> changesBuilder_;
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public java.util.List getChangesList() {
if (changesBuilder_ == null) {
return java.util.Collections.unmodifiableList(changes_);
} else {
return changesBuilder_.getMessageList();
}
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public int getChangesCount() {
if (changesBuilder_ == null) {
return changes_.size();
} else {
return changesBuilder_.getCount();
}
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChanges(int index) {
if (changesBuilder_ == null) {
return changes_.get(index);
} else {
return changesBuilder_.getMessage(index);
}
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder setChanges(
int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChangesIsMutable();
changes_.set(index, value);
onChanged();
} else {
changesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder setChanges(
int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.set(index, builderForValue.build());
onChanged();
} else {
changesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder addChanges(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChangesIsMutable();
changes_.add(value);
onChanged();
} else {
changesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder addChanges(
int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChangesIsMutable();
changes_.add(index, value);
onChanged();
} else {
changesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder addChanges(
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.add(builderForValue.build());
onChanged();
} else {
changesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder addChanges(
int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.add(index, builderForValue.build());
onChanged();
} else {
changesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder addAllChanges(
java.lang.Iterable extends org.tikv.kvproto.RaftCmdpb.ChangePeerRequest> values) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, changes_);
onChanged();
} else {
changesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder clearChanges() {
if (changesBuilder_ == null) {
changes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
changesBuilder_.clear();
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public Builder removeChanges(int index) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.remove(index);
onChanged();
} else {
changesBuilder_.remove(index);
}
return this;
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder getChangesBuilder(
int index) {
return getChangesFieldBuilder().getBuilder(index);
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangesOrBuilder(
int index) {
if (changesBuilder_ == null) {
return changes_.get(index); } else {
return changesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public java.util.List extends org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>
getChangesOrBuilderList() {
if (changesBuilder_ != null) {
return changesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(changes_);
}
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder addChangesBuilder() {
return getChangesFieldBuilder().addBuilder(
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance());
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder addChangesBuilder(
int index) {
return getChangesFieldBuilder().addBuilder(
index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance());
}
/**
* repeated .raft_cmdpb.ChangePeerRequest changes = 1;
*/
public java.util.List
getChangesBuilderList() {
return getChangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>
getChangesFieldBuilder() {
if (changesBuilder_ == null) {
changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>(
changes_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
changes_ = null;
}
return changesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ChangePeerV2Request)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerV2Request)
private static final org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request();
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ChangePeerV2Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangePeerV2Request(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangePeerV2ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerV2Response)
com.google.protobuf.MessageOrBuilder {
/**
* .metapb.Region region = 1;
*/
boolean hasRegion();
/**
* .metapb.Region region = 1;
*/
org.tikv.kvproto.Metapb.Region getRegion();
/**
* .metapb.Region region = 1;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerV2Response}
*/
public static final class ChangePeerV2Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerV2Response)
ChangePeerV2ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangePeerV2Response.newBuilder() to construct.
private ChangePeerV2Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangePeerV2Response() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangePeerV2Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (region_ != null) {
subBuilder = region_.toBuilder();
}
region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(region_);
region_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder.class);
}
public static final int REGION_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Region region_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
return getRegion();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (region_ != null) {
output.writeMessage(1, getRegion());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (region_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRegion());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response other = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response) obj;
boolean result = true;
result = result && (hasRegion() == other.hasRegion());
if (hasRegion()) {
result = result && getRegion()
.equals(other.getRegion());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRegion()) {
hash = (37 * hash) + REGION_FIELD_NUMBER;
hash = (53 * hash) + getRegion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ChangePeerV2Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerV2Response)
org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (regionBuilder_ == null) {
region_ = null;
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response build() {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response buildPartial() {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response result = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response(this);
if (regionBuilder_ == null) {
result.region_ = region_;
} else {
result.region_ = regionBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response other) {
if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance()) return this;
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Metapb.Region region_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return regionBuilder_ != null || region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
if (regionBuilder_ == null) {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
} else {
return regionBuilder_.getMessage();
}
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
onChanged();
} else {
regionBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionBuilder_ == null) {
region_ = builderForValue.build();
onChanged();
} else {
regionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (region_ != null) {
region_ =
org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
onChanged();
} else {
regionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder clearRegion() {
if (regionBuilder_ == null) {
region_ = null;
onChanged();
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() {
onChanged();
return getRegionFieldBuilder().getBuilder();
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
if (regionBuilder_ != null) {
return regionBuilder_.getMessageOrBuilder();
} else {
return region_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
}
/**
* .metapb.Region region = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionFieldBuilder() {
if (regionBuilder_ == null) {
regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getRegion(),
getParentForChildren(),
isClean());
region_ = null;
}
return regionBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ChangePeerV2Response)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerV2Response)
private static final org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response();
}
public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ChangePeerV2Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangePeerV2Response(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SplitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.SplitRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* This can be only called in internal RaftStore now.
* The split_key must be in the been splitting region.
*
*
* bytes split_key = 1;
*/
com.google.protobuf.ByteString getSplitKey();
/**
*
* We split the region into two, first uses the origin
* parent region id, and the second uses the new_region_id.
* We must guarantee that the new_region_id is global unique.
*
*
* uint64 new_region_id = 2;
*/
long getNewRegionId();
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
java.util.List getNewPeerIdsList();
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
int getNewPeerIdsCount();
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
long getNewPeerIds(int index);
/**
*
* If true, right region derive the origin region_id,
* left region use new_region_id.
* Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
*
*
* bool right_derive = 4 [deprecated = true];
*/
@java.lang.Deprecated boolean getRightDerive();
}
/**
* Protobuf type {@code raft_cmdpb.SplitRequest}
*/
public static final class SplitRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.SplitRequest)
SplitRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SplitRequest.newBuilder() to construct.
private SplitRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SplitRequest() {
splitKey_ = com.google.protobuf.ByteString.EMPTY;
newRegionId_ = 0L;
newPeerIds_ = java.util.Collections.emptyList();
rightDerive_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SplitRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
splitKey_ = input.readBytes();
break;
}
case 16: {
newRegionId_ = input.readUInt64();
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
newPeerIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
newPeerIds_.add(input.readUInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
newPeerIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
newPeerIds_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 32: {
rightDerive_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SplitRequest.class, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder.class);
}
private int bitField0_;
public static final int SPLIT_KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString splitKey_;
/**
*
* This can be only called in internal RaftStore now.
* The split_key must be in the been splitting region.
*
*
* bytes split_key = 1;
*/
public com.google.protobuf.ByteString getSplitKey() {
return splitKey_;
}
public static final int NEW_REGION_ID_FIELD_NUMBER = 2;
private long newRegionId_;
/**
*
* We split the region into two, first uses the origin
* parent region id, and the second uses the new_region_id.
* We must guarantee that the new_region_id is global unique.
*
*
* uint64 new_region_id = 2;
*/
public long getNewRegionId() {
return newRegionId_;
}
public static final int NEW_PEER_IDS_FIELD_NUMBER = 3;
private java.util.List newPeerIds_;
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public java.util.List
getNewPeerIdsList() {
return newPeerIds_;
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public int getNewPeerIdsCount() {
return newPeerIds_.size();
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public long getNewPeerIds(int index) {
return newPeerIds_.get(index);
}
private int newPeerIdsMemoizedSerializedSize = -1;
public static final int RIGHT_DERIVE_FIELD_NUMBER = 4;
private boolean rightDerive_;
/**
*
* If true, right region derive the origin region_id,
* left region use new_region_id.
* Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
*
*
* bool right_derive = 4 [deprecated = true];
*/
@java.lang.Deprecated public boolean getRightDerive() {
return rightDerive_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!splitKey_.isEmpty()) {
output.writeBytes(1, splitKey_);
}
if (newRegionId_ != 0L) {
output.writeUInt64(2, newRegionId_);
}
if (getNewPeerIdsList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(newPeerIdsMemoizedSerializedSize);
}
for (int i = 0; i < newPeerIds_.size(); i++) {
output.writeUInt64NoTag(newPeerIds_.get(i));
}
if (rightDerive_ != false) {
output.writeBool(4, rightDerive_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!splitKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, splitKey_);
}
if (newRegionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, newRegionId_);
}
{
int dataSize = 0;
for (int i = 0; i < newPeerIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(newPeerIds_.get(i));
}
size += dataSize;
if (!getNewPeerIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
newPeerIdsMemoizedSerializedSize = dataSize;
}
if (rightDerive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, rightDerive_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.SplitRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.SplitRequest other = (org.tikv.kvproto.RaftCmdpb.SplitRequest) obj;
boolean result = true;
result = result && getSplitKey()
.equals(other.getSplitKey());
result = result && (getNewRegionId()
== other.getNewRegionId());
result = result && getNewPeerIdsList()
.equals(other.getNewPeerIdsList());
result = result && (getRightDerive()
== other.getRightDerive());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SPLIT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSplitKey().hashCode();
hash = (37 * hash) + NEW_REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewRegionId());
if (getNewPeerIdsCount() > 0) {
hash = (37 * hash) + NEW_PEER_IDS_FIELD_NUMBER;
hash = (53 * hash) + getNewPeerIdsList().hashCode();
}
hash = (37 * hash) + RIGHT_DERIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRightDerive());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.SplitRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.SplitRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.SplitRequest)
org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SplitRequest.class, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.SplitRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
splitKey_ = com.google.protobuf.ByteString.EMPTY;
newRegionId_ = 0L;
newPeerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
rightDerive_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.SplitRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.SplitRequest build() {
org.tikv.kvproto.RaftCmdpb.SplitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.SplitRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.SplitRequest result = new org.tikv.kvproto.RaftCmdpb.SplitRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.splitKey_ = splitKey_;
result.newRegionId_ = newRegionId_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.newPeerIds_ = newPeerIds_;
result.rightDerive_ = rightDerive_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.SplitRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.SplitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SplitRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance()) return this;
if (other.getSplitKey() != com.google.protobuf.ByteString.EMPTY) {
setSplitKey(other.getSplitKey());
}
if (other.getNewRegionId() != 0L) {
setNewRegionId(other.getNewRegionId());
}
if (!other.newPeerIds_.isEmpty()) {
if (newPeerIds_.isEmpty()) {
newPeerIds_ = other.newPeerIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureNewPeerIdsIsMutable();
newPeerIds_.addAll(other.newPeerIds_);
}
onChanged();
}
if (other.getRightDerive() != false) {
setRightDerive(other.getRightDerive());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.SplitRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.SplitRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString splitKey_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* This can be only called in internal RaftStore now.
* The split_key must be in the been splitting region.
*
*
* bytes split_key = 1;
*/
public com.google.protobuf.ByteString getSplitKey() {
return splitKey_;
}
/**
*
* This can be only called in internal RaftStore now.
* The split_key must be in the been splitting region.
*
*
* bytes split_key = 1;
*/
public Builder setSplitKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
splitKey_ = value;
onChanged();
return this;
}
/**
*
* This can be only called in internal RaftStore now.
* The split_key must be in the been splitting region.
*
*
* bytes split_key = 1;
*/
public Builder clearSplitKey() {
splitKey_ = getDefaultInstance().getSplitKey();
onChanged();
return this;
}
private long newRegionId_ ;
/**
*
* We split the region into two, first uses the origin
* parent region id, and the second uses the new_region_id.
* We must guarantee that the new_region_id is global unique.
*
*
* uint64 new_region_id = 2;
*/
public long getNewRegionId() {
return newRegionId_;
}
/**
*
* We split the region into two, first uses the origin
* parent region id, and the second uses the new_region_id.
* We must guarantee that the new_region_id is global unique.
*
*
* uint64 new_region_id = 2;
*/
public Builder setNewRegionId(long value) {
newRegionId_ = value;
onChanged();
return this;
}
/**
*
* We split the region into two, first uses the origin
* parent region id, and the second uses the new_region_id.
* We must guarantee that the new_region_id is global unique.
*
*
* uint64 new_region_id = 2;
*/
public Builder clearNewRegionId() {
newRegionId_ = 0L;
onChanged();
return this;
}
private java.util.List newPeerIds_ = java.util.Collections.emptyList();
private void ensureNewPeerIdsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
newPeerIds_ = new java.util.ArrayList(newPeerIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public java.util.List
getNewPeerIdsList() {
return java.util.Collections.unmodifiableList(newPeerIds_);
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public int getNewPeerIdsCount() {
return newPeerIds_.size();
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public long getNewPeerIds(int index) {
return newPeerIds_.get(index);
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public Builder setNewPeerIds(
int index, long value) {
ensureNewPeerIdsIsMutable();
newPeerIds_.set(index, value);
onChanged();
return this;
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public Builder addNewPeerIds(long value) {
ensureNewPeerIdsIsMutable();
newPeerIds_.add(value);
onChanged();
return this;
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public Builder addAllNewPeerIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureNewPeerIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, newPeerIds_);
onChanged();
return this;
}
/**
*
* The peer ids for the new split region.
*
*
* repeated uint64 new_peer_ids = 3;
*/
public Builder clearNewPeerIds() {
newPeerIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private boolean rightDerive_ ;
/**
*
* If true, right region derive the origin region_id,
* left region use new_region_id.
* Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
*
*
* bool right_derive = 4 [deprecated = true];
*/
@java.lang.Deprecated public boolean getRightDerive() {
return rightDerive_;
}
/**
*
* If true, right region derive the origin region_id,
* left region use new_region_id.
* Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
*
*
* bool right_derive = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setRightDerive(boolean value) {
rightDerive_ = value;
onChanged();
return this;
}
/**
*
* If true, right region derive the origin region_id,
* left region use new_region_id.
* Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
*
*
* bool right_derive = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearRightDerive() {
rightDerive_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.SplitRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.SplitRequest)
private static final org.tikv.kvproto.RaftCmdpb.SplitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SplitRequest();
}
public static org.tikv.kvproto.RaftCmdpb.SplitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SplitRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SplitRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.SplitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SplitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.SplitResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .metapb.Region left = 1;
*/
boolean hasLeft();
/**
* .metapb.Region left = 1;
*/
org.tikv.kvproto.Metapb.Region getLeft();
/**
* .metapb.Region left = 1;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder();
/**
* .metapb.Region right = 2;
*/
boolean hasRight();
/**
* .metapb.Region right = 2;
*/
org.tikv.kvproto.Metapb.Region getRight();
/**
* .metapb.Region right = 2;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.SplitResponse}
*/
public static final class SplitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.SplitResponse)
SplitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SplitResponse.newBuilder() to construct.
private SplitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SplitResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SplitResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (left_ != null) {
subBuilder = left_.toBuilder();
}
left_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(left_);
left_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (right_ != null) {
subBuilder = right_.toBuilder();
}
right_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(right_);
right_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SplitResponse.class, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder.class);
}
public static final int LEFT_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Region left_;
/**
* .metapb.Region left = 1;
*/
public boolean hasLeft() {
return left_ != null;
}
/**
* .metapb.Region left = 1;
*/
public org.tikv.kvproto.Metapb.Region getLeft() {
return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_;
}
/**
* .metapb.Region left = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() {
return getLeft();
}
public static final int RIGHT_FIELD_NUMBER = 2;
private org.tikv.kvproto.Metapb.Region right_;
/**
* .metapb.Region right = 2;
*/
public boolean hasRight() {
return right_ != null;
}
/**
* .metapb.Region right = 2;
*/
public org.tikv.kvproto.Metapb.Region getRight() {
return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_;
}
/**
* .metapb.Region right = 2;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() {
return getRight();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (left_ != null) {
output.writeMessage(1, getLeft());
}
if (right_ != null) {
output.writeMessage(2, getRight());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (left_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLeft());
}
if (right_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRight());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.SplitResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.SplitResponse other = (org.tikv.kvproto.RaftCmdpb.SplitResponse) obj;
boolean result = true;
result = result && (hasLeft() == other.hasLeft());
if (hasLeft()) {
result = result && getLeft()
.equals(other.getLeft());
}
result = result && (hasRight() == other.hasRight());
if (hasRight()) {
result = result && getRight()
.equals(other.getRight());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLeft()) {
hash = (37 * hash) + LEFT_FIELD_NUMBER;
hash = (53 * hash) + getLeft().hashCode();
}
if (hasRight()) {
hash = (37 * hash) + RIGHT_FIELD_NUMBER;
hash = (53 * hash) + getRight().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.SplitResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.SplitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.SplitResponse)
org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.SplitResponse.class, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.SplitResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (leftBuilder_ == null) {
left_ = null;
} else {
left_ = null;
leftBuilder_ = null;
}
if (rightBuilder_ == null) {
right_ = null;
} else {
right_ = null;
rightBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.SplitResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.SplitResponse build() {
org.tikv.kvproto.RaftCmdpb.SplitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.SplitResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.SplitResponse result = new org.tikv.kvproto.RaftCmdpb.SplitResponse(this);
if (leftBuilder_ == null) {
result.left_ = left_;
} else {
result.left_ = leftBuilder_.build();
}
if (rightBuilder_ == null) {
result.right_ = right_;
} else {
result.right_ = rightBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.SplitResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.SplitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SplitResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance()) return this;
if (other.hasLeft()) {
mergeLeft(other.getLeft());
}
if (other.hasRight()) {
mergeRight(other.getRight());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.SplitResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.SplitResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Metapb.Region left_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> leftBuilder_;
/**
* .metapb.Region left = 1;
*/
public boolean hasLeft() {
return leftBuilder_ != null || left_ != null;
}
/**
* .metapb.Region left = 1;
*/
public org.tikv.kvproto.Metapb.Region getLeft() {
if (leftBuilder_ == null) {
return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_;
} else {
return leftBuilder_.getMessage();
}
}
/**
* .metapb.Region left = 1;
*/
public Builder setLeft(org.tikv.kvproto.Metapb.Region value) {
if (leftBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
left_ = value;
onChanged();
} else {
leftBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region left = 1;
*/
public Builder setLeft(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (leftBuilder_ == null) {
left_ = builderForValue.build();
onChanged();
} else {
leftBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region left = 1;
*/
public Builder mergeLeft(org.tikv.kvproto.Metapb.Region value) {
if (leftBuilder_ == null) {
if (left_ != null) {
left_ =
org.tikv.kvproto.Metapb.Region.newBuilder(left_).mergeFrom(value).buildPartial();
} else {
left_ = value;
}
onChanged();
} else {
leftBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region left = 1;
*/
public Builder clearLeft() {
if (leftBuilder_ == null) {
left_ = null;
onChanged();
} else {
left_ = null;
leftBuilder_ = null;
}
return this;
}
/**
* .metapb.Region left = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getLeftBuilder() {
onChanged();
return getLeftFieldBuilder().getBuilder();
}
/**
* .metapb.Region left = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() {
if (leftBuilder_ != null) {
return leftBuilder_.getMessageOrBuilder();
} else {
return left_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_;
}
}
/**
* .metapb.Region left = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getLeftFieldBuilder() {
if (leftBuilder_ == null) {
leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getLeft(),
getParentForChildren(),
isClean());
left_ = null;
}
return leftBuilder_;
}
private org.tikv.kvproto.Metapb.Region right_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> rightBuilder_;
/**
* .metapb.Region right = 2;
*/
public boolean hasRight() {
return rightBuilder_ != null || right_ != null;
}
/**
* .metapb.Region right = 2;
*/
public org.tikv.kvproto.Metapb.Region getRight() {
if (rightBuilder_ == null) {
return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_;
} else {
return rightBuilder_.getMessage();
}
}
/**
* .metapb.Region right = 2;
*/
public Builder setRight(org.tikv.kvproto.Metapb.Region value) {
if (rightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
right_ = value;
onChanged();
} else {
rightBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region right = 2;
*/
public Builder setRight(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (rightBuilder_ == null) {
right_ = builderForValue.build();
onChanged();
} else {
rightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region right = 2;
*/
public Builder mergeRight(org.tikv.kvproto.Metapb.Region value) {
if (rightBuilder_ == null) {
if (right_ != null) {
right_ =
org.tikv.kvproto.Metapb.Region.newBuilder(right_).mergeFrom(value).buildPartial();
} else {
right_ = value;
}
onChanged();
} else {
rightBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region right = 2;
*/
public Builder clearRight() {
if (rightBuilder_ == null) {
right_ = null;
onChanged();
} else {
right_ = null;
rightBuilder_ = null;
}
return this;
}
/**
* .metapb.Region right = 2;
*/
public org.tikv.kvproto.Metapb.Region.Builder getRightBuilder() {
onChanged();
return getRightFieldBuilder().getBuilder();
}
/**
* .metapb.Region right = 2;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() {
if (rightBuilder_ != null) {
return rightBuilder_.getMessageOrBuilder();
} else {
return right_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_;
}
}
/**
* .metapb.Region right = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getRightFieldBuilder() {
if (rightBuilder_ == null) {
rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getRight(),
getParentForChildren(),
isClean());
right_ = null;
}
return rightBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.SplitResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.SplitResponse)
private static final org.tikv.kvproto.RaftCmdpb.SplitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SplitResponse();
}
public static org.tikv.kvproto.RaftCmdpb.SplitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SplitResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SplitResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.SplitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchSplitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.BatchSplitRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
java.util.List
getRequestsList();
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
org.tikv.kvproto.RaftCmdpb.SplitRequest getRequests(int index);
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
int getRequestsCount();
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
java.util.List extends org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>
getRequestsOrBuilderList();
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getRequestsOrBuilder(
int index);
/**
*
* If true, the last region derive the origin region_id,
* other regions use new ids.
*
*
* bool right_derive = 2;
*/
boolean getRightDerive();
}
/**
* Protobuf type {@code raft_cmdpb.BatchSplitRequest}
*/
public static final class BatchSplitRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.BatchSplitRequest)
BatchSplitRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchSplitRequest.newBuilder() to construct.
private BatchSplitRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchSplitRequest() {
requests_ = java.util.Collections.emptyList();
rightDerive_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchSplitRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
requests_.add(
input.readMessage(org.tikv.kvproto.RaftCmdpb.SplitRequest.parser(), extensionRegistry));
break;
}
case 16: {
rightDerive_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.class, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder.class);
}
private int bitField0_;
public static final int REQUESTS_FIELD_NUMBER = 1;
private java.util.List requests_;
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public java.util.List getRequestsList() {
return requests_;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public java.util.List extends org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>
getRequestsOrBuilderList() {
return requests_;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public int getRequestsCount() {
return requests_.size();
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequest getRequests(int index) {
return requests_.get(index);
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getRequestsOrBuilder(
int index) {
return requests_.get(index);
}
public static final int RIGHT_DERIVE_FIELD_NUMBER = 2;
private boolean rightDerive_;
/**
*
* If true, the last region derive the origin region_id,
* other regions use new ids.
*
*
* bool right_derive = 2;
*/
public boolean getRightDerive() {
return rightDerive_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < requests_.size(); i++) {
output.writeMessage(1, requests_.get(i));
}
if (rightDerive_ != false) {
output.writeBool(2, rightDerive_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < requests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, requests_.get(i));
}
if (rightDerive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, rightDerive_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.BatchSplitRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest other = (org.tikv.kvproto.RaftCmdpb.BatchSplitRequest) obj;
boolean result = true;
result = result && getRequestsList()
.equals(other.getRequestsList());
result = result && (getRightDerive()
== other.getRightDerive());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRequestsCount() > 0) {
hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getRequestsList().hashCode();
}
hash = (37 * hash) + RIGHT_DERIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRightDerive());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.BatchSplitRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.BatchSplitRequest)
org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.class, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRequestsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
requestsBuilder_.clear();
}
rightDerive_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest build() {
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest result = new org.tikv.kvproto.RaftCmdpb.BatchSplitRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (requestsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requests_ = requests_;
} else {
result.requests_ = requestsBuilder_.build();
}
result.rightDerive_ = rightDerive_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.BatchSplitRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.BatchSplitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance()) return this;
if (requestsBuilder_ == null) {
if (!other.requests_.isEmpty()) {
if (requests_.isEmpty()) {
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestsIsMutable();
requests_.addAll(other.requests_);
}
onChanged();
}
} else {
if (!other.requests_.isEmpty()) {
if (requestsBuilder_.isEmpty()) {
requestsBuilder_.dispose();
requestsBuilder_ = null;
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
requestsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRequestsFieldBuilder() : null;
} else {
requestsBuilder_.addAllMessages(other.requests_);
}
}
}
if (other.getRightDerive() != false) {
setRightDerive(other.getRightDerive());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.BatchSplitRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List requests_ =
java.util.Collections.emptyList();
private void ensureRequestsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList(requests_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder> requestsBuilder_;
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public java.util.List getRequestsList() {
if (requestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(requests_);
} else {
return requestsBuilder_.getMessageList();
}
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public int getRequestsCount() {
if (requestsBuilder_ == null) {
return requests_.size();
} else {
return requestsBuilder_.getCount();
}
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequest getRequests(int index) {
if (requestsBuilder_ == null) {
return requests_.get(index);
} else {
return requestsBuilder_.getMessage(index);
}
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder setRequests(
int index, org.tikv.kvproto.RaftCmdpb.SplitRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.set(index, value);
onChanged();
} else {
requestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder setRequests(
int index, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.set(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder addRequests(org.tikv.kvproto.RaftCmdpb.SplitRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(value);
onChanged();
} else {
requestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder addRequests(
int index, org.tikv.kvproto.RaftCmdpb.SplitRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(index, value);
onChanged();
} else {
requestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder addRequests(
org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder addRequests(
int index, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder addAllRequests(
java.lang.Iterable extends org.tikv.kvproto.RaftCmdpb.SplitRequest> values) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requests_);
onChanged();
} else {
requestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder clearRequests() {
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestsBuilder_.clear();
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public Builder removeRequests(int index) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.remove(index);
onChanged();
} else {
requestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder getRequestsBuilder(
int index) {
return getRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getRequestsOrBuilder(
int index) {
if (requestsBuilder_ == null) {
return requests_.get(index); } else {
return requestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public java.util.List extends org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>
getRequestsOrBuilderList() {
if (requestsBuilder_ != null) {
return requestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requests_);
}
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder addRequestsBuilder() {
return getRequestsFieldBuilder().addBuilder(
org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance());
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder addRequestsBuilder(
int index) {
return getRequestsFieldBuilder().addBuilder(
index, org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance());
}
/**
* repeated .raft_cmdpb.SplitRequest requests = 1;
*/
public java.util.List
getRequestsBuilderList() {
return getRequestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>
getRequestsFieldBuilder() {
if (requestsBuilder_ == null) {
requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>(
requests_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
requests_ = null;
}
return requestsBuilder_;
}
private boolean rightDerive_ ;
/**
*
* If true, the last region derive the origin region_id,
* other regions use new ids.
*
*
* bool right_derive = 2;
*/
public boolean getRightDerive() {
return rightDerive_;
}
/**
*
* If true, the last region derive the origin region_id,
* other regions use new ids.
*
*
* bool right_derive = 2;
*/
public Builder setRightDerive(boolean value) {
rightDerive_ = value;
onChanged();
return this;
}
/**
*
* If true, the last region derive the origin region_id,
* other regions use new ids.
*
*
* bool right_derive = 2;
*/
public Builder clearRightDerive() {
rightDerive_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.BatchSplitRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.BatchSplitRequest)
private static final org.tikv.kvproto.RaftCmdpb.BatchSplitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.BatchSplitRequest();
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BatchSplitRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchSplitRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchSplitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.BatchSplitResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .metapb.Region regions = 1;
*/
java.util.List
getRegionsList();
/**
* repeated .metapb.Region regions = 1;
*/
org.tikv.kvproto.Metapb.Region getRegions(int index);
/**
* repeated .metapb.Region regions = 1;
*/
int getRegionsCount();
/**
* repeated .metapb.Region regions = 1;
*/
java.util.List extends org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionsOrBuilderList();
/**
* repeated .metapb.Region regions = 1;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder(
int index);
}
/**
* Protobuf type {@code raft_cmdpb.BatchSplitResponse}
*/
public static final class BatchSplitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.BatchSplitResponse)
BatchSplitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchSplitResponse.newBuilder() to construct.
private BatchSplitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchSplitResponse() {
regions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchSplitResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
regions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
regions_.add(
input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
regions_ = java.util.Collections.unmodifiableList(regions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.class, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder.class);
}
public static final int REGIONS_FIELD_NUMBER = 1;
private java.util.List regions_;
/**
* repeated .metapb.Region regions = 1;
*/
public java.util.List getRegionsList() {
return regions_;
}
/**
* repeated .metapb.Region regions = 1;
*/
public java.util.List extends org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionsOrBuilderList() {
return regions_;
}
/**
* repeated .metapb.Region regions = 1;
*/
public int getRegionsCount() {
return regions_.size();
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegions(int index) {
return regions_.get(index);
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder(
int index) {
return regions_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < regions_.size(); i++) {
output.writeMessage(1, regions_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < regions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, regions_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.BatchSplitResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.BatchSplitResponse other = (org.tikv.kvproto.RaftCmdpb.BatchSplitResponse) obj;
boolean result = true;
result = result && getRegionsList()
.equals(other.getRegionsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRegionsCount() > 0) {
hash = (37 * hash) + REGIONS_FIELD_NUMBER;
hash = (53 * hash) + getRegionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.BatchSplitResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.BatchSplitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.BatchSplitResponse)
org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.class, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegionsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (regionsBuilder_ == null) {
regions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
regionsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse build() {
org.tikv.kvproto.RaftCmdpb.BatchSplitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.BatchSplitResponse result = new org.tikv.kvproto.RaftCmdpb.BatchSplitResponse(this);
int from_bitField0_ = bitField0_;
if (regionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
regions_ = java.util.Collections.unmodifiableList(regions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.regions_ = regions_;
} else {
result.regions_ = regionsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.BatchSplitResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.BatchSplitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.BatchSplitResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance()) return this;
if (regionsBuilder_ == null) {
if (!other.regions_.isEmpty()) {
if (regions_.isEmpty()) {
regions_ = other.regions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegionsIsMutable();
regions_.addAll(other.regions_);
}
onChanged();
}
} else {
if (!other.regions_.isEmpty()) {
if (regionsBuilder_.isEmpty()) {
regionsBuilder_.dispose();
regionsBuilder_ = null;
regions_ = other.regions_;
bitField0_ = (bitField0_ & ~0x00000001);
regionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegionsFieldBuilder() : null;
} else {
regionsBuilder_.addAllMessages(other.regions_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.BatchSplitResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List regions_ =
java.util.Collections.emptyList();
private void ensureRegionsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
regions_ = new java.util.ArrayList(regions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionsBuilder_;
/**
* repeated .metapb.Region regions = 1;
*/
public java.util.List getRegionsList() {
if (regionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(regions_);
} else {
return regionsBuilder_.getMessageList();
}
}
/**
* repeated .metapb.Region regions = 1;
*/
public int getRegionsCount() {
if (regionsBuilder_ == null) {
return regions_.size();
} else {
return regionsBuilder_.getCount();
}
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegions(int index) {
if (regionsBuilder_ == null) {
return regions_.get(index);
} else {
return regionsBuilder_.getMessage(index);
}
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder setRegions(
int index, org.tikv.kvproto.Metapb.Region value) {
if (regionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionsIsMutable();
regions_.set(index, value);
onChanged();
} else {
regionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder setRegions(
int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.set(index, builderForValue.build());
onChanged();
} else {
regionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder addRegions(org.tikv.kvproto.Metapb.Region value) {
if (regionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionsIsMutable();
regions_.add(value);
onChanged();
} else {
regionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder addRegions(
int index, org.tikv.kvproto.Metapb.Region value) {
if (regionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionsIsMutable();
regions_.add(index, value);
onChanged();
} else {
regionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder addRegions(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.add(builderForValue.build());
onChanged();
} else {
regionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder addRegions(
int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.add(index, builderForValue.build());
onChanged();
} else {
regionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder addAllRegions(
java.lang.Iterable extends org.tikv.kvproto.Metapb.Region> values) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, regions_);
onChanged();
} else {
regionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder clearRegions() {
if (regionsBuilder_ == null) {
regions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
regionsBuilder_.clear();
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public Builder removeRegions(int index) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.remove(index);
onChanged();
} else {
regionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getRegionsBuilder(
int index) {
return getRegionsFieldBuilder().getBuilder(index);
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder(
int index) {
if (regionsBuilder_ == null) {
return regions_.get(index); } else {
return regionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .metapb.Region regions = 1;
*/
public java.util.List extends org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionsOrBuilderList() {
if (regionsBuilder_ != null) {
return regionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(regions_);
}
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder() {
return getRegionsFieldBuilder().addBuilder(
org.tikv.kvproto.Metapb.Region.getDefaultInstance());
}
/**
* repeated .metapb.Region regions = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder(
int index) {
return getRegionsFieldBuilder().addBuilder(
index, org.tikv.kvproto.Metapb.Region.getDefaultInstance());
}
/**
* repeated .metapb.Region regions = 1;
*/
public java.util.List
getRegionsBuilderList() {
return getRegionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionsFieldBuilder() {
if (regionsBuilder_ == null) {
regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
regions_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
regions_ = null;
}
return regionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.BatchSplitResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.BatchSplitResponse)
private static final org.tikv.kvproto.RaftCmdpb.BatchSplitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.BatchSplitResponse();
}
public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BatchSplitResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchSplitResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactLogRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.CompactLogRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 compact_index = 1;
*/
long getCompactIndex();
/**
* uint64 compact_term = 2;
*/
long getCompactTerm();
}
/**
* Protobuf type {@code raft_cmdpb.CompactLogRequest}
*/
public static final class CompactLogRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.CompactLogRequest)
CompactLogRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactLogRequest.newBuilder() to construct.
private CompactLogRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactLogRequest() {
compactIndex_ = 0L;
compactTerm_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactLogRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
compactIndex_ = input.readUInt64();
break;
}
case 16: {
compactTerm_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CompactLogRequest.class, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder.class);
}
public static final int COMPACT_INDEX_FIELD_NUMBER = 1;
private long compactIndex_;
/**
* uint64 compact_index = 1;
*/
public long getCompactIndex() {
return compactIndex_;
}
public static final int COMPACT_TERM_FIELD_NUMBER = 2;
private long compactTerm_;
/**
* uint64 compact_term = 2;
*/
public long getCompactTerm() {
return compactTerm_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (compactIndex_ != 0L) {
output.writeUInt64(1, compactIndex_);
}
if (compactTerm_ != 0L) {
output.writeUInt64(2, compactTerm_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (compactIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, compactIndex_);
}
if (compactTerm_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, compactTerm_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.CompactLogRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.CompactLogRequest other = (org.tikv.kvproto.RaftCmdpb.CompactLogRequest) obj;
boolean result = true;
result = result && (getCompactIndex()
== other.getCompactIndex());
result = result && (getCompactTerm()
== other.getCompactTerm());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COMPACT_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCompactIndex());
hash = (37 * hash) + COMPACT_TERM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCompactTerm());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.CompactLogRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.CompactLogRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.CompactLogRequest)
org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CompactLogRequest.class, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.CompactLogRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
compactIndex_ = 0L;
compactTerm_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.CompactLogRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.CompactLogRequest build() {
org.tikv.kvproto.RaftCmdpb.CompactLogRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.CompactLogRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.CompactLogRequest result = new org.tikv.kvproto.RaftCmdpb.CompactLogRequest(this);
result.compactIndex_ = compactIndex_;
result.compactTerm_ = compactTerm_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.CompactLogRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.CompactLogRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CompactLogRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance()) return this;
if (other.getCompactIndex() != 0L) {
setCompactIndex(other.getCompactIndex());
}
if (other.getCompactTerm() != 0L) {
setCompactTerm(other.getCompactTerm());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.CompactLogRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.CompactLogRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long compactIndex_ ;
/**
* uint64 compact_index = 1;
*/
public long getCompactIndex() {
return compactIndex_;
}
/**
* uint64 compact_index = 1;
*/
public Builder setCompactIndex(long value) {
compactIndex_ = value;
onChanged();
return this;
}
/**
* uint64 compact_index = 1;
*/
public Builder clearCompactIndex() {
compactIndex_ = 0L;
onChanged();
return this;
}
private long compactTerm_ ;
/**
* uint64 compact_term = 2;
*/
public long getCompactTerm() {
return compactTerm_;
}
/**
* uint64 compact_term = 2;
*/
public Builder setCompactTerm(long value) {
compactTerm_ = value;
onChanged();
return this;
}
/**
* uint64 compact_term = 2;
*/
public Builder clearCompactTerm() {
compactTerm_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.CompactLogRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.CompactLogRequest)
private static final org.tikv.kvproto.RaftCmdpb.CompactLogRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CompactLogRequest();
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CompactLogRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactLogRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.CompactLogRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactLogResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.CompactLogResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.CompactLogResponse}
*/
public static final class CompactLogResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.CompactLogResponse)
CompactLogResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactLogResponse.newBuilder() to construct.
private CompactLogResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactLogResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactLogResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CompactLogResponse.class, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.CompactLogResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.CompactLogResponse other = (org.tikv.kvproto.RaftCmdpb.CompactLogResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.CompactLogResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.CompactLogResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.CompactLogResponse)
org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CompactLogResponse.class, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.CompactLogResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.CompactLogResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.CompactLogResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.CompactLogResponse build() {
org.tikv.kvproto.RaftCmdpb.CompactLogResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.CompactLogResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.CompactLogResponse result = new org.tikv.kvproto.RaftCmdpb.CompactLogResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.CompactLogResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.CompactLogResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CompactLogResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.CompactLogResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.CompactLogResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.CompactLogResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.CompactLogResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.CompactLogResponse)
private static final org.tikv.kvproto.RaftCmdpb.CompactLogResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CompactLogResponse();
}
public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CompactLogResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactLogResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.CompactLogResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferLeaderRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.TransferLeaderRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .metapb.Peer peer = 1;
*/
boolean hasPeer();
/**
* .metapb.Peer peer = 1;
*/
org.tikv.kvproto.Metapb.Peer getPeer();
/**
* .metapb.Peer peer = 1;
*/
org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.TransferLeaderRequest}
*/
public static final class TransferLeaderRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.TransferLeaderRequest)
TransferLeaderRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferLeaderRequest.newBuilder() to construct.
private TransferLeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferLeaderRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferLeaderRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null;
if (peer_ != null) {
subBuilder = peer_.toBuilder();
}
peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(peer_);
peer_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder.class);
}
public static final int PEER_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Peer peer_;
/**
* .metapb.Peer peer = 1;
*/
public boolean hasPeer() {
return peer_ != null;
}
/**
* .metapb.Peer peer = 1;
*/
public org.tikv.kvproto.Metapb.Peer getPeer() {
return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
}
/**
* .metapb.Peer peer = 1;
*/
public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() {
return getPeer();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (peer_ != null) {
output.writeMessage(1, getPeer());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (peer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPeer());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest other = (org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest) obj;
boolean result = true;
result = result && (hasPeer() == other.hasPeer());
if (hasPeer()) {
result = result && getPeer()
.equals(other.getPeer());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPeer()) {
hash = (37 * hash) + PEER_FIELD_NUMBER;
hash = (53 * hash) + getPeer().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.TransferLeaderRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.TransferLeaderRequest)
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (peerBuilder_ == null) {
peer_ = null;
} else {
peer_ = null;
peerBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest build() {
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest result = new org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest(this);
if (peerBuilder_ == null) {
result.peer_ = peer_;
} else {
result.peer_ = peerBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance()) return this;
if (other.hasPeer()) {
mergePeer(other.getPeer());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Metapb.Peer peer_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_;
/**
* .metapb.Peer peer = 1;
*/
public boolean hasPeer() {
return peerBuilder_ != null || peer_ != null;
}
/**
* .metapb.Peer peer = 1;
*/
public org.tikv.kvproto.Metapb.Peer getPeer() {
if (peerBuilder_ == null) {
return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
} else {
return peerBuilder_.getMessage();
}
}
/**
* .metapb.Peer peer = 1;
*/
public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) {
if (peerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
peer_ = value;
onChanged();
} else {
peerBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Peer peer = 1;
*/
public Builder setPeer(
org.tikv.kvproto.Metapb.Peer.Builder builderForValue) {
if (peerBuilder_ == null) {
peer_ = builderForValue.build();
onChanged();
} else {
peerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Peer peer = 1;
*/
public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) {
if (peerBuilder_ == null) {
if (peer_ != null) {
peer_ =
org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial();
} else {
peer_ = value;
}
onChanged();
} else {
peerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Peer peer = 1;
*/
public Builder clearPeer() {
if (peerBuilder_ == null) {
peer_ = null;
onChanged();
} else {
peer_ = null;
peerBuilder_ = null;
}
return this;
}
/**
* .metapb.Peer peer = 1;
*/
public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() {
onChanged();
return getPeerFieldBuilder().getBuilder();
}
/**
* .metapb.Peer peer = 1;
*/
public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() {
if (peerBuilder_ != null) {
return peerBuilder_.getMessageOrBuilder();
} else {
return peer_ == null ?
org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
}
}
/**
* .metapb.Peer peer = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>
getPeerFieldBuilder() {
if (peerBuilder_ == null) {
peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>(
getPeer(),
getParentForChildren(),
isClean());
peer_ = null;
}
return peerBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.TransferLeaderRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.TransferLeaderRequest)
private static final org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest();
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TransferLeaderRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferLeaderRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferLeaderResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.TransferLeaderResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.TransferLeaderResponse}
*/
public static final class TransferLeaderResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.TransferLeaderResponse)
TransferLeaderResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferLeaderResponse.newBuilder() to construct.
private TransferLeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferLeaderResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferLeaderResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse other = (org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.TransferLeaderResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.TransferLeaderResponse)
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse build() {
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse result = new org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.TransferLeaderResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.TransferLeaderResponse)
private static final org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse();
}
public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public TransferLeaderResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferLeaderResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputeHashRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.ComputeHashRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes context = 1;
*/
com.google.protobuf.ByteString getContext();
}
/**
* Protobuf type {@code raft_cmdpb.ComputeHashRequest}
*/
public static final class ComputeHashRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.ComputeHashRequest)
ComputeHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputeHashRequest.newBuilder() to construct.
private ComputeHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputeHashRequest() {
context_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputeHashRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
context_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.class, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder.class);
}
public static final int CONTEXT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString context_;
/**
* bytes context = 1;
*/
public com.google.protobuf.ByteString getContext() {
return context_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!context_.isEmpty()) {
output.writeBytes(1, context_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!context_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, context_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.ComputeHashRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest other = (org.tikv.kvproto.RaftCmdpb.ComputeHashRequest) obj;
boolean result = true;
result = result && getContext()
.equals(other.getContext());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.ComputeHashRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.ComputeHashRequest)
org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.class, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
context_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest build() {
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest result = new org.tikv.kvproto.RaftCmdpb.ComputeHashRequest(this);
result.context_ = context_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.ComputeHashRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.ComputeHashRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance()) return this;
if (other.getContext() != com.google.protobuf.ByteString.EMPTY) {
setContext(other.getContext());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.ComputeHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes context = 1;
*/
public com.google.protobuf.ByteString getContext() {
return context_;
}
/**
* bytes context = 1;
*/
public Builder setContext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
return this;
}
/**
* bytes context = 1;
*/
public Builder clearContext() {
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.ComputeHashRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.ComputeHashRequest)
private static final org.tikv.kvproto.RaftCmdpb.ComputeHashRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ComputeHashRequest();
}
public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ComputeHashRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputeHashRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VerifyHashRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.VerifyHashRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 index = 1;
*/
long getIndex();
/**
* bytes hash = 2;
*/
com.google.protobuf.ByteString getHash();
/**
* bytes context = 3;
*/
com.google.protobuf.ByteString getContext();
}
/**
* Protobuf type {@code raft_cmdpb.VerifyHashRequest}
*/
public static final class VerifyHashRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.VerifyHashRequest)
VerifyHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use VerifyHashRequest.newBuilder() to construct.
private VerifyHashRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VerifyHashRequest() {
index_ = 0L;
hash_ = com.google.protobuf.ByteString.EMPTY;
context_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VerifyHashRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
index_ = input.readUInt64();
break;
}
case 18: {
hash_ = input.readBytes();
break;
}
case 26: {
context_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.class, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder.class);
}
public static final int INDEX_FIELD_NUMBER = 1;
private long index_;
/**
* uint64 index = 1;
*/
public long getIndex() {
return index_;
}
public static final int HASH_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 2;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
public static final int CONTEXT_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString context_;
/**
* bytes context = 3;
*/
public com.google.protobuf.ByteString getContext() {
return context_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (index_ != 0L) {
output.writeUInt64(1, index_);
}
if (!hash_.isEmpty()) {
output.writeBytes(2, hash_);
}
if (!context_.isEmpty()) {
output.writeBytes(3, context_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (index_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, index_);
}
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, hash_);
}
if (!context_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, context_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.VerifyHashRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest other = (org.tikv.kvproto.RaftCmdpb.VerifyHashRequest) obj;
boolean result = true;
result = result && (getIndex()
== other.getIndex());
result = result && getHash()
.equals(other.getHash());
result = result && getContext()
.equals(other.getContext());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndex());
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.VerifyHashRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.VerifyHashRequest)
org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.class, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
index_ = 0L;
hash_ = com.google.protobuf.ByteString.EMPTY;
context_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest build() {
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest result = new org.tikv.kvproto.RaftCmdpb.VerifyHashRequest(this);
result.index_ = index_;
result.hash_ = hash_;
result.context_ = context_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.VerifyHashRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.VerifyHashRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance()) return this;
if (other.getIndex() != 0L) {
setIndex(other.getIndex());
}
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
if (other.getContext() != com.google.protobuf.ByteString.EMPTY) {
setContext(other.getContext());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.VerifyHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long index_ ;
/**
* uint64 index = 1;
*/
public long getIndex() {
return index_;
}
/**
* uint64 index = 1;
*/
public Builder setIndex(long value) {
index_ = value;
onChanged();
return this;
}
/**
* uint64 index = 1;
*/
public Builder clearIndex() {
index_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes hash = 2;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* bytes hash = 2;
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* bytes hash = 2;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes context = 3;
*/
public com.google.protobuf.ByteString getContext() {
return context_;
}
/**
* bytes context = 3;
*/
public Builder setContext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
return this;
}
/**
* bytes context = 3;
*/
public Builder clearContext() {
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.VerifyHashRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.VerifyHashRequest)
private static final org.tikv.kvproto.RaftCmdpb.VerifyHashRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.VerifyHashRequest();
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public VerifyHashRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VerifyHashRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VerifyHashResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.VerifyHashResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.VerifyHashResponse}
*/
public static final class VerifyHashResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.VerifyHashResponse)
VerifyHashResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use VerifyHashResponse.newBuilder() to construct.
private VerifyHashResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VerifyHashResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VerifyHashResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.class, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.VerifyHashResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.VerifyHashResponse other = (org.tikv.kvproto.RaftCmdpb.VerifyHashResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.VerifyHashResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.VerifyHashResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.VerifyHashResponse)
org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.class, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse build() {
org.tikv.kvproto.RaftCmdpb.VerifyHashResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.VerifyHashResponse result = new org.tikv.kvproto.RaftCmdpb.VerifyHashResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.VerifyHashResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.VerifyHashResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.VerifyHashResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.VerifyHashResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.VerifyHashResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.VerifyHashResponse)
private static final org.tikv.kvproto.RaftCmdpb.VerifyHashResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.VerifyHashResponse();
}
public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public VerifyHashResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VerifyHashResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrepareMergeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.PrepareMergeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 min_index = 1;
*/
long getMinIndex();
/**
* .metapb.Region target = 2;
*/
boolean hasTarget();
/**
* .metapb.Region target = 2;
*/
org.tikv.kvproto.Metapb.Region getTarget();
/**
* .metapb.Region target = 2;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.PrepareMergeRequest}
*/
public static final class PrepareMergeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.PrepareMergeRequest)
PrepareMergeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrepareMergeRequest.newBuilder() to construct.
private PrepareMergeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrepareMergeRequest() {
minIndex_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrepareMergeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
minIndex_ = input.readUInt64();
break;
}
case 18: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (target_ != null) {
subBuilder = target_.toBuilder();
}
target_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(target_);
target_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder.class);
}
public static final int MIN_INDEX_FIELD_NUMBER = 1;
private long minIndex_;
/**
* uint64 min_index = 1;
*/
public long getMinIndex() {
return minIndex_;
}
public static final int TARGET_FIELD_NUMBER = 2;
private org.tikv.kvproto.Metapb.Region target_;
/**
* .metapb.Region target = 2;
*/
public boolean hasTarget() {
return target_ != null;
}
/**
* .metapb.Region target = 2;
*/
public org.tikv.kvproto.Metapb.Region getTarget() {
return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_;
}
/**
* .metapb.Region target = 2;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder() {
return getTarget();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (minIndex_ != 0L) {
output.writeUInt64(1, minIndex_);
}
if (target_ != null) {
output.writeMessage(2, getTarget());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, minIndex_);
}
if (target_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTarget());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest other = (org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest) obj;
boolean result = true;
result = result && (getMinIndex()
== other.getMinIndex());
result = result && (hasTarget() == other.hasTarget());
if (hasTarget()) {
result = result && getTarget()
.equals(other.getTarget());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIN_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinIndex());
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.PrepareMergeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.PrepareMergeRequest)
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
minIndex_ = 0L;
if (targetBuilder_ == null) {
target_ = null;
} else {
target_ = null;
targetBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest build() {
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest result = new org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest(this);
result.minIndex_ = minIndex_;
if (targetBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance()) return this;
if (other.getMinIndex() != 0L) {
setMinIndex(other.getMinIndex());
}
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long minIndex_ ;
/**
* uint64 min_index = 1;
*/
public long getMinIndex() {
return minIndex_;
}
/**
* uint64 min_index = 1;
*/
public Builder setMinIndex(long value) {
minIndex_ = value;
onChanged();
return this;
}
/**
* uint64 min_index = 1;
*/
public Builder clearMinIndex() {
minIndex_ = 0L;
onChanged();
return this;
}
private org.tikv.kvproto.Metapb.Region target_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> targetBuilder_;
/**
* .metapb.Region target = 2;
*/
public boolean hasTarget() {
return targetBuilder_ != null || target_ != null;
}
/**
* .metapb.Region target = 2;
*/
public org.tikv.kvproto.Metapb.Region getTarget() {
if (targetBuilder_ == null) {
return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
* .metapb.Region target = 2;
*/
public Builder setTarget(org.tikv.kvproto.Metapb.Region value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region target = 2;
*/
public Builder setTarget(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region target = 2;
*/
public Builder mergeTarget(org.tikv.kvproto.Metapb.Region value) {
if (targetBuilder_ == null) {
if (target_ != null) {
target_ =
org.tikv.kvproto.Metapb.Region.newBuilder(target_).mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
targetBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region target = 2;
*/
public Builder clearTarget() {
if (targetBuilder_ == null) {
target_ = null;
onChanged();
} else {
target_ = null;
targetBuilder_ = null;
}
return this;
}
/**
* .metapb.Region target = 2;
*/
public org.tikv.kvproto.Metapb.Region.Builder getTargetBuilder() {
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
* .metapb.Region target = 2;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_;
}
}
/**
* .metapb.Region target = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getTarget(),
getParentForChildren(),
isClean());
target_ = null;
}
return targetBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.PrepareMergeRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.PrepareMergeRequest)
private static final org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest();
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrepareMergeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrepareMergeRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrepareMergeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.PrepareMergeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.PrepareMergeResponse}
*/
public static final class PrepareMergeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.PrepareMergeResponse)
PrepareMergeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrepareMergeResponse.newBuilder() to construct.
private PrepareMergeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrepareMergeResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrepareMergeResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse other = (org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.PrepareMergeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.PrepareMergeResponse)
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse build() {
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse result = new org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.PrepareMergeResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.PrepareMergeResponse)
private static final org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse();
}
public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PrepareMergeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrepareMergeResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitMergeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.CommitMergeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .metapb.Region source = 1;
*/
boolean hasSource();
/**
* .metapb.Region source = 1;
*/
org.tikv.kvproto.Metapb.Region getSource();
/**
* .metapb.Region source = 1;
*/
org.tikv.kvproto.Metapb.RegionOrBuilder getSourceOrBuilder();
/**
* uint64 commit = 2;
*/
long getCommit();
/**
* repeated .eraftpb.Entry entries = 3;
*/
java.util.List
getEntriesList();
/**
* repeated .eraftpb.Entry entries = 3;
*/
eraftpb.Eraftpb.Entry getEntries(int index);
/**
* repeated .eraftpb.Entry entries = 3;
*/
int getEntriesCount();
/**
* repeated .eraftpb.Entry entries = 3;
*/
java.util.List extends eraftpb.Eraftpb.EntryOrBuilder>
getEntriesOrBuilderList();
/**
* repeated .eraftpb.Entry entries = 3;
*/
eraftpb.Eraftpb.EntryOrBuilder getEntriesOrBuilder(
int index);
}
/**
* Protobuf type {@code raft_cmdpb.CommitMergeRequest}
*/
public static final class CommitMergeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.CommitMergeRequest)
CommitMergeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitMergeRequest.newBuilder() to construct.
private CommitMergeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitMergeRequest() {
commit_ = 0L;
entries_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommitMergeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Metapb.Region.Builder subBuilder = null;
if (source_ != null) {
subBuilder = source_.toBuilder();
}
source_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(source_);
source_ = subBuilder.buildPartial();
}
break;
}
case 16: {
commit_ = input.readUInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
entries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
entries_.add(
input.readMessage(eraftpb.Eraftpb.Entry.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.class, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder.class);
}
private int bitField0_;
public static final int SOURCE_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Region source_;
/**
* .metapb.Region source = 1;
*/
public boolean hasSource() {
return source_ != null;
}
/**
* .metapb.Region source = 1;
*/
public org.tikv.kvproto.Metapb.Region getSource() {
return source_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : source_;
}
/**
* .metapb.Region source = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getSourceOrBuilder() {
return getSource();
}
public static final int COMMIT_FIELD_NUMBER = 2;
private long commit_;
/**
* uint64 commit = 2;
*/
public long getCommit() {
return commit_;
}
public static final int ENTRIES_FIELD_NUMBER = 3;
private java.util.List entries_;
/**
* repeated .eraftpb.Entry entries = 3;
*/
public java.util.List getEntriesList() {
return entries_;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public java.util.List extends eraftpb.Eraftpb.EntryOrBuilder>
getEntriesOrBuilderList() {
return entries_;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.Entry getEntries(int index) {
return entries_.get(index);
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.EntryOrBuilder getEntriesOrBuilder(
int index) {
return entries_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (source_ != null) {
output.writeMessage(1, getSource());
}
if (commit_ != 0L) {
output.writeUInt64(2, commit_);
}
for (int i = 0; i < entries_.size(); i++) {
output.writeMessage(3, entries_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (source_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSource());
}
if (commit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, commit_);
}
for (int i = 0; i < entries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, entries_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.CommitMergeRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest other = (org.tikv.kvproto.RaftCmdpb.CommitMergeRequest) obj;
boolean result = true;
result = result && (hasSource() == other.hasSource());
if (hasSource()) {
result = result && getSource()
.equals(other.getSource());
}
result = result && (getCommit()
== other.getCommit());
result = result && getEntriesList()
.equals(other.getEntriesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommit());
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.CommitMergeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.CommitMergeRequest)
org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.class, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntriesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (sourceBuilder_ == null) {
source_ = null;
} else {
source_ = null;
sourceBuilder_ = null;
}
commit_ = 0L;
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
entriesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest build() {
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest result = new org.tikv.kvproto.RaftCmdpb.CommitMergeRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (sourceBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceBuilder_.build();
}
result.commit_ = commit_;
if (entriesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.CommitMergeRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.CommitMergeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance()) return this;
if (other.hasSource()) {
mergeSource(other.getSource());
}
if (other.getCommit() != 0L) {
setCommit(other.getCommit());
}
if (entriesBuilder_ == null) {
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
onChanged();
}
} else {
if (!other.entries_.isEmpty()) {
if (entriesBuilder_.isEmpty()) {
entriesBuilder_.dispose();
entriesBuilder_ = null;
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000004);
entriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntriesFieldBuilder() : null;
} else {
entriesBuilder_.addAllMessages(other.entries_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.CommitMergeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.tikv.kvproto.Metapb.Region source_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> sourceBuilder_;
/**
* .metapb.Region source = 1;
*/
public boolean hasSource() {
return sourceBuilder_ != null || source_ != null;
}
/**
* .metapb.Region source = 1;
*/
public org.tikv.kvproto.Metapb.Region getSource() {
if (sourceBuilder_ == null) {
return source_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : source_;
} else {
return sourceBuilder_.getMessage();
}
}
/**
* .metapb.Region source = 1;
*/
public Builder setSource(org.tikv.kvproto.Metapb.Region value) {
if (sourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region source = 1;
*/
public Builder setSource(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region source = 1;
*/
public Builder mergeSource(org.tikv.kvproto.Metapb.Region value) {
if (sourceBuilder_ == null) {
if (source_ != null) {
source_ =
org.tikv.kvproto.Metapb.Region.newBuilder(source_).mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
sourceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region source = 1;
*/
public Builder clearSource() {
if (sourceBuilder_ == null) {
source_ = null;
onChanged();
} else {
source_ = null;
sourceBuilder_ = null;
}
return this;
}
/**
* .metapb.Region source = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getSourceBuilder() {
onChanged();
return getSourceFieldBuilder().getBuilder();
}
/**
* .metapb.Region source = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getSourceOrBuilder() {
if (sourceBuilder_ != null) {
return sourceBuilder_.getMessageOrBuilder();
} else {
return source_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : source_;
}
}
/**
* .metapb.Region source = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getSourceFieldBuilder() {
if (sourceBuilder_ == null) {
sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getSource(),
getParentForChildren(),
isClean());
source_ = null;
}
return sourceBuilder_;
}
private long commit_ ;
/**
* uint64 commit = 2;
*/
public long getCommit() {
return commit_;
}
/**
* uint64 commit = 2;
*/
public Builder setCommit(long value) {
commit_ = value;
onChanged();
return this;
}
/**
* uint64 commit = 2;
*/
public Builder clearCommit() {
commit_ = 0L;
onChanged();
return this;
}
private java.util.List entries_ =
java.util.Collections.emptyList();
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
entries_ = new java.util.ArrayList(entries_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
eraftpb.Eraftpb.Entry, eraftpb.Eraftpb.Entry.Builder, eraftpb.Eraftpb.EntryOrBuilder> entriesBuilder_;
/**
* repeated .eraftpb.Entry entries = 3;
*/
public java.util.List getEntriesList() {
if (entriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(entries_);
} else {
return entriesBuilder_.getMessageList();
}
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public int getEntriesCount() {
if (entriesBuilder_ == null) {
return entries_.size();
} else {
return entriesBuilder_.getCount();
}
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.Entry getEntries(int index) {
if (entriesBuilder_ == null) {
return entries_.get(index);
} else {
return entriesBuilder_.getMessage(index);
}
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder setEntries(
int index, eraftpb.Eraftpb.Entry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.set(index, value);
onChanged();
} else {
entriesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder setEntries(
int index, eraftpb.Eraftpb.Entry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.set(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder addEntries(eraftpb.Eraftpb.Entry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(value);
onChanged();
} else {
entriesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder addEntries(
int index, eraftpb.Eraftpb.Entry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(index, value);
onChanged();
} else {
entriesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder addEntries(
eraftpb.Eraftpb.Entry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder addEntries(
int index, eraftpb.Eraftpb.Entry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder addAllEntries(
java.lang.Iterable extends eraftpb.Eraftpb.Entry> values) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entries_);
onChanged();
} else {
entriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder clearEntries() {
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
entriesBuilder_.clear();
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public Builder removeEntries(int index) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.remove(index);
onChanged();
} else {
entriesBuilder_.remove(index);
}
return this;
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.Entry.Builder getEntriesBuilder(
int index) {
return getEntriesFieldBuilder().getBuilder(index);
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.EntryOrBuilder getEntriesOrBuilder(
int index) {
if (entriesBuilder_ == null) {
return entries_.get(index); } else {
return entriesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public java.util.List extends eraftpb.Eraftpb.EntryOrBuilder>
getEntriesOrBuilderList() {
if (entriesBuilder_ != null) {
return entriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entries_);
}
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.Entry.Builder addEntriesBuilder() {
return getEntriesFieldBuilder().addBuilder(
eraftpb.Eraftpb.Entry.getDefaultInstance());
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public eraftpb.Eraftpb.Entry.Builder addEntriesBuilder(
int index) {
return getEntriesFieldBuilder().addBuilder(
index, eraftpb.Eraftpb.Entry.getDefaultInstance());
}
/**
* repeated .eraftpb.Entry entries = 3;
*/
public java.util.List
getEntriesBuilderList() {
return getEntriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
eraftpb.Eraftpb.Entry, eraftpb.Eraftpb.Entry.Builder, eraftpb.Eraftpb.EntryOrBuilder>
getEntriesFieldBuilder() {
if (entriesBuilder_ == null) {
entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
eraftpb.Eraftpb.Entry, eraftpb.Eraftpb.Entry.Builder, eraftpb.Eraftpb.EntryOrBuilder>(
entries_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
entries_ = null;
}
return entriesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.CommitMergeRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.CommitMergeRequest)
private static final org.tikv.kvproto.RaftCmdpb.CommitMergeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CommitMergeRequest();
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommitMergeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommitMergeRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitMergeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.CommitMergeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.CommitMergeResponse}
*/
public static final class CommitMergeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.CommitMergeResponse)
CommitMergeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitMergeResponse.newBuilder() to construct.
private CommitMergeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitMergeResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommitMergeResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.class, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.CommitMergeResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.CommitMergeResponse other = (org.tikv.kvproto.RaftCmdpb.CommitMergeResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.CommitMergeResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.CommitMergeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.CommitMergeResponse)
org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.class, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse build() {
org.tikv.kvproto.RaftCmdpb.CommitMergeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.CommitMergeResponse result = new org.tikv.kvproto.RaftCmdpb.CommitMergeResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.CommitMergeResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.CommitMergeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CommitMergeResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.CommitMergeResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.CommitMergeResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.CommitMergeResponse)
private static final org.tikv.kvproto.RaftCmdpb.CommitMergeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CommitMergeResponse();
}
public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommitMergeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommitMergeResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackMergeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.RollbackMergeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 commit = 1;
*/
long getCommit();
}
/**
* Protobuf type {@code raft_cmdpb.RollbackMergeRequest}
*/
public static final class RollbackMergeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.RollbackMergeRequest)
RollbackMergeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollbackMergeRequest.newBuilder() to construct.
private RollbackMergeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollbackMergeRequest() {
commit_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RollbackMergeRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
commit_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder.class);
}
public static final int COMMIT_FIELD_NUMBER = 1;
private long commit_;
/**
* uint64 commit = 1;
*/
public long getCommit() {
return commit_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (commit_ != 0L) {
output.writeUInt64(1, commit_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, commit_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest other = (org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest) obj;
boolean result = true;
result = result && (getCommit()
== other.getCommit());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommit());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.RollbackMergeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.RollbackMergeRequest)
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
commit_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest build() {
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest result = new org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest(this);
result.commit_ = commit_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance()) return this;
if (other.getCommit() != 0L) {
setCommit(other.getCommit());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long commit_ ;
/**
* uint64 commit = 1;
*/
public long getCommit() {
return commit_;
}
/**
* uint64 commit = 1;
*/
public Builder setCommit(long value) {
commit_ = value;
onChanged();
return this;
}
/**
* uint64 commit = 1;
*/
public Builder clearCommit() {
commit_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.RollbackMergeRequest)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.RollbackMergeRequest)
private static final org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest();
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RollbackMergeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RollbackMergeRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackMergeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.RollbackMergeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code raft_cmdpb.RollbackMergeResponse}
*/
public static final class RollbackMergeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.RollbackMergeResponse)
RollbackMergeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollbackMergeResponse.newBuilder() to construct.
private RollbackMergeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollbackMergeResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RollbackMergeResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse other = (org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.RollbackMergeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.RollbackMergeResponse)
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse build() {
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse buildPartial() {
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse result = new org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse other) {
if (other == org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:raft_cmdpb.RollbackMergeResponse)
}
// @@protoc_insertion_point(class_scope:raft_cmdpb.RollbackMergeResponse)
private static final org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse();
}
public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RollbackMergeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RollbackMergeResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdminRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:raft_cmdpb.AdminRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .raft_cmdpb.AdminCmdType cmd_type = 1;
*/
int getCmdTypeValue();
/**
* .raft_cmdpb.AdminCmdType cmd_type = 1;
*/
org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType();
/**
* .raft_cmdpb.ChangePeerRequest change_peer = 2;
*/
boolean hasChangePeer();
/**
* .raft_cmdpb.ChangePeerRequest change_peer = 2;
*/
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChangePeer();
/**
* .raft_cmdpb.ChangePeerRequest change_peer = 2;
*/
org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangePeerOrBuilder();
/**
* .raft_cmdpb.SplitRequest split = 3 [deprecated = true];
*/
@java.lang.Deprecated boolean hasSplit();
/**
* .raft_cmdpb.SplitRequest split = 3 [deprecated = true];
*/
@java.lang.Deprecated org.tikv.kvproto.RaftCmdpb.SplitRequest getSplit();
/**
* .raft_cmdpb.SplitRequest split = 3 [deprecated = true];
*/
@java.lang.Deprecated org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getSplitOrBuilder();
/**
* .raft_cmdpb.CompactLogRequest compact_log = 4;
*/
boolean hasCompactLog();
/**
* .raft_cmdpb.CompactLogRequest compact_log = 4;
*/
org.tikv.kvproto.RaftCmdpb.CompactLogRequest getCompactLog();
/**
* .raft_cmdpb.CompactLogRequest compact_log = 4;
*/
org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder getCompactLogOrBuilder();
/**
* .raft_cmdpb.TransferLeaderRequest transfer_leader = 5;
*/
boolean hasTransferLeader();
/**
* .raft_cmdpb.TransferLeaderRequest transfer_leader = 5;
*/
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getTransferLeader();
/**
* .raft_cmdpb.TransferLeaderRequest transfer_leader = 5;
*/
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder getTransferLeaderOrBuilder();
/**
* .raft_cmdpb.VerifyHashRequest verify_hash = 6;
*/
boolean hasVerifyHash();
/**
* .raft_cmdpb.VerifyHashRequest verify_hash = 6;
*/
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getVerifyHash();
/**
* .raft_cmdpb.VerifyHashRequest verify_hash = 6;
*/
org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder getVerifyHashOrBuilder();
/**
* .raft_cmdpb.PrepareMergeRequest prepare_merge = 7;
*/
boolean hasPrepareMerge();
/**
* .raft_cmdpb.PrepareMergeRequest prepare_merge = 7;
*/
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getPrepareMerge();
/**
* .raft_cmdpb.PrepareMergeRequest prepare_merge = 7;
*/
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder getPrepareMergeOrBuilder();
/**
* .raft_cmdpb.CommitMergeRequest commit_merge = 8;
*/
boolean hasCommitMerge();
/**
* .raft_cmdpb.CommitMergeRequest commit_merge = 8;
*/
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getCommitMerge();
/**
* .raft_cmdpb.CommitMergeRequest commit_merge = 8;
*/
org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder getCommitMergeOrBuilder();
/**
* .raft_cmdpb.RollbackMergeRequest rollback_merge = 9;
*/
boolean hasRollbackMerge();
/**
* .raft_cmdpb.RollbackMergeRequest rollback_merge = 9;
*/
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getRollbackMerge();
/**
* .raft_cmdpb.RollbackMergeRequest rollback_merge = 9;
*/
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder getRollbackMergeOrBuilder();
/**
* .raft_cmdpb.BatchSplitRequest splits = 10;
*/
boolean hasSplits();
/**
* .raft_cmdpb.BatchSplitRequest splits = 10;
*/
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getSplits();
/**
* .raft_cmdpb.BatchSplitRequest splits = 10;
*/
org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder getSplitsOrBuilder();
/**
* .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11;
*/
boolean hasChangePeerV2();
/**
* .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11;
*/
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getChangePeerV2();
/**
* .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11;
*/
org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder getChangePeerV2OrBuilder();
/**
* .raft_cmdpb.ComputeHashRequest compute_hash = 12;
*/
boolean hasComputeHash();
/**
* .raft_cmdpb.ComputeHashRequest compute_hash = 12;
*/
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getComputeHash();
/**
* .raft_cmdpb.ComputeHashRequest compute_hash = 12;
*/
org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder getComputeHashOrBuilder();
}
/**
* Protobuf type {@code raft_cmdpb.AdminRequest}
*/
public static final class AdminRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:raft_cmdpb.AdminRequest)
AdminRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdminRequest.newBuilder() to construct.
private AdminRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdminRequest() {
cmdType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AdminRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
cmdType_ = rawValue;
break;
}
case 18: {
org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder subBuilder = null;
if (changePeer_ != null) {
subBuilder = changePeer_.toBuilder();
}
changePeer_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(changePeer_);
changePeer_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder subBuilder = null;
if (split_ != null) {
subBuilder = split_.toBuilder();
}
split_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SplitRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(split_);
split_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder subBuilder = null;
if (compactLog_ != null) {
subBuilder = compactLog_.toBuilder();
}
compactLog_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.CompactLogRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(compactLog_);
compactLog_ = subBuilder.buildPartial();
}
break;
}
case 42: {
org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder subBuilder = null;
if (transferLeader_ != null) {
subBuilder = transferLeader_.toBuilder();
}
transferLeader_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transferLeader_);
transferLeader_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder subBuilder = null;
if (verifyHash_ != null) {
subBuilder = verifyHash_.toBuilder();
}
verifyHash_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(verifyHash_);
verifyHash_ = subBuilder.buildPartial();
}
break;
}
case 58: {
org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder subBuilder = null;
if (prepareMerge_ != null) {
subBuilder = prepareMerge_.toBuilder();
}
prepareMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(prepareMerge_);
prepareMerge_ = subBuilder.buildPartial();
}
break;
}
case 66: {
org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder subBuilder = null;
if (commitMerge_ != null) {
subBuilder = commitMerge_.toBuilder();
}
commitMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commitMerge_);
commitMerge_ = subBuilder.buildPartial();
}
break;
}
case 74: {
org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder subBuilder = null;
if (rollbackMerge_ != null) {
subBuilder = rollbackMerge_.toBuilder();
}
rollbackMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rollbackMerge_);
rollbackMerge_ = subBuilder.buildPartial();
}
break;
}
case 82: {
org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder subBuilder = null;
if (splits_ != null) {
subBuilder = splits_.toBuilder();
}
splits_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(splits_);
splits_ = subBuilder.buildPartial();
}
break;
}
case 90: {
org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder subBuilder = null;
if (changePeerV2_ != null) {
subBuilder = changePeerV2_.toBuilder();
}
changePeerV2_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(changePeerV2_);
changePeerV2_ = subBuilder.buildPartial();
}
break;
}
case 98: {
org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder subBuilder = null;
if (computeHash_ != null) {
subBuilder = computeHash_.toBuilder();
}
computeHash_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(computeHash_);
computeHash_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.AdminRequest.class, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder.class);
}
public static final int CMD_TYPE_FIELD_NUMBER = 1;
private int cmdType_;
/**
* .raft_cmdpb.AdminCmdType cmd_type = 1;
*/
public int getCmdTypeValue() {
return cmdType_;
}
/**
* .raft_cmdpb.AdminCmdType cmd_type = 1;
*/
public org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType() {
org.tikv.kvproto.RaftCmdpb.AdminCmdType result = org.tikv.kvproto.RaftCmdpb.AdminCmdType.valueOf(cmdType_);
return result == null ? org.tikv.kvproto.RaftCmdpb.AdminCmdType.UNRECOGNIZED : result;
}
public static final int CHANGE_PEER_FIELD_NUMBER = 2;
private org.tikv.kvproto.RaftCmdpb.ChangePeerRequest changePeer_;
/**
* .raft_cmdpb.ChangePeerRequest change_peer = 2;
*/
public boolean hasChangePeer() {
return changePeer_ != null;
}
/**
* .raft_cmdpb.ChangePeerRequest change_peer = 2;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChangePeer() {
return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance() : changePeer_;
}
/**
* .raft_cmdpb.ChangePeerRequest change_peer = 2;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangePeerOrBuilder() {
return getChangePeer();
}
public static final int SPLIT_FIELD_NUMBER = 3;
private org.tikv.kvproto.RaftCmdpb.SplitRequest split_;
/**
* .raft_cmdpb.SplitRequest split = 3 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasSplit() {
return split_ != null;
}
/**
* .raft_cmdpb.SplitRequest split = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequest getSplit() {
return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance() : split_;
}
/**
* .raft_cmdpb.SplitRequest split = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getSplitOrBuilder() {
return getSplit();
}
public static final int COMPACT_LOG_FIELD_NUMBER = 4;
private org.tikv.kvproto.RaftCmdpb.CompactLogRequest compactLog_;
/**
* .raft_cmdpb.CompactLogRequest compact_log = 4;
*/
public boolean hasCompactLog() {
return compactLog_ != null;
}
/**
* .raft_cmdpb.CompactLogRequest compact_log = 4;
*/
public org.tikv.kvproto.RaftCmdpb.CompactLogRequest getCompactLog() {
return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance() : compactLog_;
}
/**
* .raft_cmdpb.CompactLogRequest compact_log = 4;
*/
public org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder getCompactLogOrBuilder() {
return getCompactLog();
}
public static final int TRANSFER_LEADER_FIELD_NUMBER = 5;
private org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest transferLeader_;
/**
* .raft_cmdpb.TransferLeaderRequest transfer_leader = 5;
*/
public boolean hasTransferLeader() {
return transferLeader_ != null;
}
/**
* .raft_cmdpb.TransferLeaderRequest transfer_leader = 5;
*/
public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getTransferLeader() {
return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance() : transferLeader_;
}
/**
* .raft_cmdpb.TransferLeaderRequest transfer_leader = 5;
*/
public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder getTransferLeaderOrBuilder() {
return getTransferLeader();
}
public static final int VERIFY_HASH_FIELD_NUMBER = 6;
private org.tikv.kvproto.RaftCmdpb.VerifyHashRequest verifyHash_;
/**
* .raft_cmdpb.VerifyHashRequest verify_hash = 6;
*/
public boolean hasVerifyHash() {
return verifyHash_ != null;
}
/**
* .raft_cmdpb.VerifyHashRequest verify_hash = 6;
*/
public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getVerifyHash() {
return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance() : verifyHash_;
}
/**
* .raft_cmdpb.VerifyHashRequest verify_hash = 6;
*/
public org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder getVerifyHashOrBuilder() {
return getVerifyHash();
}
public static final int PREPARE_MERGE_FIELD_NUMBER = 7;
private org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest prepareMerge_;
/**
* .raft_cmdpb.PrepareMergeRequest prepare_merge = 7;
*/
public boolean hasPrepareMerge() {
return prepareMerge_ != null;
}
/**
* .raft_cmdpb.PrepareMergeRequest prepare_merge = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getPrepareMerge() {
return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance() : prepareMerge_;
}
/**
* .raft_cmdpb.PrepareMergeRequest prepare_merge = 7;
*/
public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder getPrepareMergeOrBuilder() {
return getPrepareMerge();
}
public static final int COMMIT_MERGE_FIELD_NUMBER = 8;
private org.tikv.kvproto.RaftCmdpb.CommitMergeRequest commitMerge_;
/**
* .raft_cmdpb.CommitMergeRequest commit_merge = 8;
*/
public boolean hasCommitMerge() {
return commitMerge_ != null;
}
/**
* .raft_cmdpb.CommitMergeRequest commit_merge = 8;
*/
public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getCommitMerge() {
return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance() : commitMerge_;
}
/**
* .raft_cmdpb.CommitMergeRequest commit_merge = 8;
*/
public org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder getCommitMergeOrBuilder() {
return getCommitMerge();
}
public static final int ROLLBACK_MERGE_FIELD_NUMBER = 9;
private org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest rollbackMerge_;
/**
* .raft_cmdpb.RollbackMergeRequest rollback_merge = 9;
*/
public boolean hasRollbackMerge() {
return rollbackMerge_ != null;
}
/**
* .raft_cmdpb.RollbackMergeRequest rollback_merge = 9;
*/
public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getRollbackMerge() {
return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance() : rollbackMerge_;
}
/**
* .raft_cmdpb.RollbackMergeRequest rollback_merge = 9;
*/
public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder getRollbackMergeOrBuilder() {
return getRollbackMerge();
}
public static final int SPLITS_FIELD_NUMBER = 10;
private org.tikv.kvproto.RaftCmdpb.BatchSplitRequest splits_;
/**
* .raft_cmdpb.BatchSplitRequest splits = 10;
*/
public boolean hasSplits() {
return splits_ != null;
}
/**
* .raft_cmdpb.BatchSplitRequest splits = 10;
*/
public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getSplits() {
return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance() : splits_;
}
/**
* .raft_cmdpb.BatchSplitRequest splits = 10;
*/
public org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder getSplitsOrBuilder() {
return getSplits();
}
public static final int CHANGE_PEER_V2_FIELD_NUMBER = 11;
private org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request changePeerV2_;
/**
* .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11;
*/
public boolean hasChangePeerV2() {
return changePeerV2_ != null;
}
/**
* .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getChangePeerV2() {
return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance() : changePeerV2_;
}
/**
* .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11;
*/
public org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder getChangePeerV2OrBuilder() {
return getChangePeerV2();
}
public static final int COMPUTE_HASH_FIELD_NUMBER = 12;
private org.tikv.kvproto.RaftCmdpb.ComputeHashRequest computeHash_;
/**
* .raft_cmdpb.ComputeHashRequest compute_hash = 12;
*/
public boolean hasComputeHash() {
return computeHash_ != null;
}
/**
* .raft_cmdpb.ComputeHashRequest compute_hash = 12;
*/
public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getComputeHash() {
return computeHash_ == null ? org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance() : computeHash_;
}
/**
* .raft_cmdpb.ComputeHashRequest compute_hash = 12;
*/
public org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder getComputeHashOrBuilder() {
return getComputeHash();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cmdType_ != org.tikv.kvproto.RaftCmdpb.AdminCmdType.InvalidAdmin.getNumber()) {
output.writeEnum(1, cmdType_);
}
if (changePeer_ != null) {
output.writeMessage(2, getChangePeer());
}
if (split_ != null) {
output.writeMessage(3, getSplit());
}
if (compactLog_ != null) {
output.writeMessage(4, getCompactLog());
}
if (transferLeader_ != null) {
output.writeMessage(5, getTransferLeader());
}
if (verifyHash_ != null) {
output.writeMessage(6, getVerifyHash());
}
if (prepareMerge_ != null) {
output.writeMessage(7, getPrepareMerge());
}
if (commitMerge_ != null) {
output.writeMessage(8, getCommitMerge());
}
if (rollbackMerge_ != null) {
output.writeMessage(9, getRollbackMerge());
}
if (splits_ != null) {
output.writeMessage(10, getSplits());
}
if (changePeerV2_ != null) {
output.writeMessage(11, getChangePeerV2());
}
if (computeHash_ != null) {
output.writeMessage(12, getComputeHash());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cmdType_ != org.tikv.kvproto.RaftCmdpb.AdminCmdType.InvalidAdmin.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, cmdType_);
}
if (changePeer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getChangePeer());
}
if (split_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSplit());
}
if (compactLog_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCompactLog());
}
if (transferLeader_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTransferLeader());
}
if (verifyHash_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getVerifyHash());
}
if (prepareMerge_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPrepareMerge());
}
if (commitMerge_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCommitMerge());
}
if (rollbackMerge_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getRollbackMerge());
}
if (splits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getSplits());
}
if (changePeerV2_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getChangePeerV2());
}
if (computeHash_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getComputeHash());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.AdminRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.RaftCmdpb.AdminRequest other = (org.tikv.kvproto.RaftCmdpb.AdminRequest) obj;
boolean result = true;
result = result && cmdType_ == other.cmdType_;
result = result && (hasChangePeer() == other.hasChangePeer());
if (hasChangePeer()) {
result = result && getChangePeer()
.equals(other.getChangePeer());
}
result = result && (hasSplit() == other.hasSplit());
if (hasSplit()) {
result = result && getSplit()
.equals(other.getSplit());
}
result = result && (hasCompactLog() == other.hasCompactLog());
if (hasCompactLog()) {
result = result && getCompactLog()
.equals(other.getCompactLog());
}
result = result && (hasTransferLeader() == other.hasTransferLeader());
if (hasTransferLeader()) {
result = result && getTransferLeader()
.equals(other.getTransferLeader());
}
result = result && (hasVerifyHash() == other.hasVerifyHash());
if (hasVerifyHash()) {
result = result && getVerifyHash()
.equals(other.getVerifyHash());
}
result = result && (hasPrepareMerge() == other.hasPrepareMerge());
if (hasPrepareMerge()) {
result = result && getPrepareMerge()
.equals(other.getPrepareMerge());
}
result = result && (hasCommitMerge() == other.hasCommitMerge());
if (hasCommitMerge()) {
result = result && getCommitMerge()
.equals(other.getCommitMerge());
}
result = result && (hasRollbackMerge() == other.hasRollbackMerge());
if (hasRollbackMerge()) {
result = result && getRollbackMerge()
.equals(other.getRollbackMerge());
}
result = result && (hasSplits() == other.hasSplits());
if (hasSplits()) {
result = result && getSplits()
.equals(other.getSplits());
}
result = result && (hasChangePeerV2() == other.hasChangePeerV2());
if (hasChangePeerV2()) {
result = result && getChangePeerV2()
.equals(other.getChangePeerV2());
}
result = result && (hasComputeHash() == other.hasComputeHash());
if (hasComputeHash()) {
result = result && getComputeHash()
.equals(other.getComputeHash());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CMD_TYPE_FIELD_NUMBER;
hash = (53 * hash) + cmdType_;
if (hasChangePeer()) {
hash = (37 * hash) + CHANGE_PEER_FIELD_NUMBER;
hash = (53 * hash) + getChangePeer().hashCode();
}
if (hasSplit()) {
hash = (37 * hash) + SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getSplit().hashCode();
}
if (hasCompactLog()) {
hash = (37 * hash) + COMPACT_LOG_FIELD_NUMBER;
hash = (53 * hash) + getCompactLog().hashCode();
}
if (hasTransferLeader()) {
hash = (37 * hash) + TRANSFER_LEADER_FIELD_NUMBER;
hash = (53 * hash) + getTransferLeader().hashCode();
}
if (hasVerifyHash()) {
hash = (37 * hash) + VERIFY_HASH_FIELD_NUMBER;
hash = (53 * hash) + getVerifyHash().hashCode();
}
if (hasPrepareMerge()) {
hash = (37 * hash) + PREPARE_MERGE_FIELD_NUMBER;
hash = (53 * hash) + getPrepareMerge().hashCode();
}
if (hasCommitMerge()) {
hash = (37 * hash) + COMMIT_MERGE_FIELD_NUMBER;
hash = (53 * hash) + getCommitMerge().hashCode();
}
if (hasRollbackMerge()) {
hash = (37 * hash) + ROLLBACK_MERGE_FIELD_NUMBER;
hash = (53 * hash) + getRollbackMerge().hashCode();
}
if (hasSplits()) {
hash = (37 * hash) + SPLITS_FIELD_NUMBER;
hash = (53 * hash) + getSplits().hashCode();
}
if (hasChangePeerV2()) {
hash = (37 * hash) + CHANGE_PEER_V2_FIELD_NUMBER;
hash = (53 * hash) + getChangePeerV2().hashCode();
}
if (hasComputeHash()) {
hash = (37 * hash) + COMPUTE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getComputeHash().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.RaftCmdpb.AdminRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code raft_cmdpb.AdminRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:raft_cmdpb.AdminRequest)
org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.RaftCmdpb.AdminRequest.class, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder.class);
}
// Construct using org.tikv.kvproto.RaftCmdpb.AdminRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
cmdType_ = 0;
if (changePeerBuilder_ == null) {
changePeer_ = null;
} else {
changePeer_ = null;
changePeerBuilder_ = null;
}
if (splitBuilder_ == null) {
split_ = null;
} else {
split_ = null;
splitBuilder_ = null;
}
if (compactLogBuilder_ == null) {
compactLog_ = null;
} else {
compactLog_ = null;
compactLogBuilder_ = null;
}
if (transferLeaderBuilder_ == null) {
transferLeader_ = null;
} else {
transferLeader_ = null;
transferLeaderBuilder_ = null;
}
if (verifyHashBuilder_ == null) {
verifyHash_ = null;
} else {
verifyHash_ = null;
verifyHashBuilder_ = null;
}
if (prepareMergeBuilder_ == null) {
prepareMerge_ = null;
} else {
prepareMerge_ = null;
prepareMergeBuilder_ = null;
}
if (commitMergeBuilder_ == null) {
commitMerge_ = null;
} else {
commitMerge_ = null;
commitMergeBuilder_ = null;
}
if (rollbackMergeBuilder_ == null) {
rollbackMerge_ = null;
} else {
rollbackMerge_ = null;
rollbackMergeBuilder_ = null;
}
if (splitsBuilder_ == null) {
splits_ = null;
} else {
splits_ = null;
splitsBuilder_ = null;
}
if (changePeerV2Builder_ == null) {
changePeerV2_ = null;
} else {
changePeerV2_ = null;
changePeerV2Builder_ = null;
}
if (computeHashBuilder_ == null) {
computeHash_ = null;
} else {
computeHash_ = null;
computeHashBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_descriptor;
}
public org.tikv.kvproto.RaftCmdpb.AdminRequest getDefaultInstanceForType() {
return org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance();
}
public org.tikv.kvproto.RaftCmdpb.AdminRequest build() {
org.tikv.kvproto.RaftCmdpb.AdminRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.RaftCmdpb.AdminRequest buildPartial() {
org.tikv.kvproto.RaftCmdpb.AdminRequest result = new org.tikv.kvproto.RaftCmdpb.AdminRequest(this);
result.cmdType_ = cmdType_;
if (changePeerBuilder_ == null) {
result.changePeer_ = changePeer_;
} else {
result.changePeer_ = changePeerBuilder_.build();
}
if (splitBuilder_ == null) {
result.split_ = split_;
} else {
result.split_ = splitBuilder_.build();
}
if (compactLogBuilder_ == null) {
result.compactLog_ = compactLog_;
} else {
result.compactLog_ = compactLogBuilder_.build();
}
if (transferLeaderBuilder_ == null) {
result.transferLeader_ = transferLeader_;
} else {
result.transferLeader_ = transferLeaderBuilder_.build();
}
if (verifyHashBuilder_ == null) {
result.verifyHash_ = verifyHash_;
} else {
result.verifyHash_ = verifyHashBuilder_.build();
}
if (prepareMergeBuilder_ == null) {
result.prepareMerge_ = prepareMerge_;
} else {
result.prepareMerge_ = prepareMergeBuilder_.build();
}
if (commitMergeBuilder_ == null) {
result.commitMerge_ = commitMerge_;
} else {
result.commitMerge_ = commitMergeBuilder_.build();
}
if (rollbackMergeBuilder_ == null) {
result.rollbackMerge_ = rollbackMerge_;
} else {
result.rollbackMerge_ = rollbackMergeBuilder_.build();
}
if (splitsBuilder_ == null) {
result.splits_ = splits_;
} else {
result.splits_ = splitsBuilder_.build();
}
if (changePeerV2Builder_ == null) {
result.changePeerV2_ = changePeerV2_;
} else {
result.changePeerV2_ = changePeerV2Builder_.build();
}
if (computeHashBuilder_ == null) {
result.computeHash_ = computeHash_;
} else {
result.computeHash_ = computeHashBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.RaftCmdpb.AdminRequest) {
return mergeFrom((org.tikv.kvproto.RaftCmdpb.AdminRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.AdminRequest other) {
if (other == org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance()) return this;
if (other.cmdType_ != 0) {
setCmdTypeValue(other.getCmdTypeValue());
}
if (other.hasChangePeer()) {
mergeChangePeer(other.getChangePeer());
}
if (other.hasSplit()) {
mergeSplit(other.getSplit());
}
if (other.hasCompactLog()) {
mergeCompactLog(other.getCompactLog());
}
if (other.hasTransferLeader()) {
mergeTransferLeader(other.getTransferLeader());
}
if (other.hasVerifyHash()) {
mergeVerifyHash(other.getVerifyHash());
}
if (other.hasPrepareMerge()) {
mergePrepareMerge(other.getPrepareMerge());
}
if (other.hasCommitMerge()) {
mergeCommitMerge(other.getCommitMerge());
}
if (other.hasRollbackMerge()) {
mergeRollbackMerge(other.getRollbackMerge());
}
if (other.hasSplits()) {
mergeSplits(other.getSplits());
}
if (other.hasChangePeerV2()) {
mergeChangePeerV2(other.getChangePeerV2());
}
if (other.hasComputeHash()) {
mergeComputeHash(other.getComputeHash());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.RaftCmdpb.AdminRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.RaftCmdpb.AdminRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int cmdType_ = 0;
/**
*