org.tikv.kvproto.ImportKvpb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: import_kvpb.proto
package org.tikv.kvproto;
public final class ImportKvpb {
private ImportKvpb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface SwitchModeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.SwitchModeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string pd_addr = 1;
*/
java.lang.String getPdAddr();
/**
* string pd_addr = 1;
*/
com.google.protobuf.ByteString
getPdAddrBytes();
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
boolean hasRequest();
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
org.tikv.kvproto.ImportSstpb.SwitchModeRequest getRequest();
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder getRequestOrBuilder();
}
/**
* Protobuf type {@code import_kvpb.SwitchModeRequest}
*/
public static final class SwitchModeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.SwitchModeRequest)
SwitchModeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SwitchModeRequest.newBuilder() to construct.
private SwitchModeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SwitchModeRequest() {
pdAddr_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SwitchModeRequest(
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();
pdAddr_ = s;
break;
}
case 18: {
org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(org.tikv.kvproto.ImportSstpb.SwitchModeRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = 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.ImportKvpb.internal_static_import_kvpb_SwitchModeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.SwitchModeRequest.class, org.tikv.kvproto.ImportKvpb.SwitchModeRequest.Builder.class);
}
public static final int PD_ADDR_FIELD_NUMBER = 1;
private volatile java.lang.Object pdAddr_;
/**
* string pd_addr = 1;
*/
public java.lang.String getPdAddr() {
java.lang.Object ref = pdAddr_;
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();
pdAddr_ = s;
return s;
}
}
/**
* string pd_addr = 1;
*/
public com.google.protobuf.ByteString
getPdAddrBytes() {
java.lang.Object ref = pdAddr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pdAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUEST_FIELD_NUMBER = 2;
private org.tikv.kvproto.ImportSstpb.SwitchModeRequest request_;
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.SwitchModeRequest getRequest() {
return request_ == null ? org.tikv.kvproto.ImportSstpb.SwitchModeRequest.getDefaultInstance() : request_;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
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 (!getPdAddrBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pdAddr_);
}
if (request_ != null) {
output.writeMessage(2, getRequest());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPdAddrBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pdAddr_);
}
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRequest());
}
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.ImportKvpb.SwitchModeRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.SwitchModeRequest other = (org.tikv.kvproto.ImportKvpb.SwitchModeRequest) obj;
boolean result = true;
result = result && getPdAddr()
.equals(other.getPdAddr());
result = result && (hasRequest() == other.hasRequest());
if (hasRequest()) {
result = result && getRequest()
.equals(other.getRequest());
}
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) + PD_ADDR_FIELD_NUMBER;
hash = (53 * hash) + getPdAddr().hashCode();
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest 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.ImportKvpb.SwitchModeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest 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.ImportKvpb.SwitchModeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest 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.ImportKvpb.SwitchModeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest 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.ImportKvpb.SwitchModeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest 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.ImportKvpb.SwitchModeRequest 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 import_kvpb.SwitchModeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.SwitchModeRequest)
org.tikv.kvproto.ImportKvpb.SwitchModeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.SwitchModeRequest.class, org.tikv.kvproto.ImportKvpb.SwitchModeRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.SwitchModeRequest.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();
pdAddr_ = "";
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.SwitchModeRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.SwitchModeRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.SwitchModeRequest build() {
org.tikv.kvproto.ImportKvpb.SwitchModeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.SwitchModeRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.SwitchModeRequest result = new org.tikv.kvproto.ImportKvpb.SwitchModeRequest(this);
result.pdAddr_ = pdAddr_;
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.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.ImportKvpb.SwitchModeRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.SwitchModeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.SwitchModeRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.SwitchModeRequest.getDefaultInstance()) return this;
if (!other.getPdAddr().isEmpty()) {
pdAddr_ = other.pdAddr_;
onChanged();
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
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.ImportKvpb.SwitchModeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.SwitchModeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object pdAddr_ = "";
/**
* string pd_addr = 1;
*/
public java.lang.String getPdAddr() {
java.lang.Object ref = pdAddr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pdAddr_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string pd_addr = 1;
*/
public com.google.protobuf.ByteString
getPdAddrBytes() {
java.lang.Object ref = pdAddr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pdAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string pd_addr = 1;
*/
public Builder setPdAddr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pdAddr_ = value;
onChanged();
return this;
}
/**
* string pd_addr = 1;
*/
public Builder clearPdAddr() {
pdAddr_ = getDefaultInstance().getPdAddr();
onChanged();
return this;
}
/**
* string pd_addr = 1;
*/
public Builder setPdAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pdAddr_ = value;
onChanged();
return this;
}
private org.tikv.kvproto.ImportSstpb.SwitchModeRequest request_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SwitchModeRequest, org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder, org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder> requestBuilder_;
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.SwitchModeRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? org.tikv.kvproto.ImportSstpb.SwitchModeRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public Builder setRequest(org.tikv.kvproto.ImportSstpb.SwitchModeRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public Builder setRequest(
org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public Builder mergeRequest(org.tikv.kvproto.ImportSstpb.SwitchModeRequest value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
org.tikv.kvproto.ImportSstpb.SwitchModeRequest.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
org.tikv.kvproto.ImportSstpb.SwitchModeRequest.getDefaultInstance() : request_;
}
}
/**
* .import_sstpb.SwitchModeRequest request = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SwitchModeRequest, org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder, org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SwitchModeRequest, org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder, org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
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:import_kvpb.SwitchModeRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.SwitchModeRequest)
private static final org.tikv.kvproto.ImportKvpb.SwitchModeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.SwitchModeRequest();
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SwitchModeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SwitchModeRequest(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.ImportKvpb.SwitchModeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SwitchModeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.SwitchModeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.SwitchModeResponse}
*/
public static final class SwitchModeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.SwitchModeResponse)
SwitchModeResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SwitchModeResponse.newBuilder() to construct.
private SwitchModeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SwitchModeResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SwitchModeResponse(
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.ImportKvpb.internal_static_import_kvpb_SwitchModeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.SwitchModeResponse.class, org.tikv.kvproto.ImportKvpb.SwitchModeResponse.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.ImportKvpb.SwitchModeResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.SwitchModeResponse other = (org.tikv.kvproto.ImportKvpb.SwitchModeResponse) 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.ImportKvpb.SwitchModeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse 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.ImportKvpb.SwitchModeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse 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.ImportKvpb.SwitchModeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse 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.ImportKvpb.SwitchModeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse 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.ImportKvpb.SwitchModeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse 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.ImportKvpb.SwitchModeResponse 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 import_kvpb.SwitchModeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.SwitchModeResponse)
org.tikv.kvproto.ImportKvpb.SwitchModeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_SwitchModeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.SwitchModeResponse.class, org.tikv.kvproto.ImportKvpb.SwitchModeResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.SwitchModeResponse.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.ImportKvpb.internal_static_import_kvpb_SwitchModeResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.SwitchModeResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.SwitchModeResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.SwitchModeResponse build() {
org.tikv.kvproto.ImportKvpb.SwitchModeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.SwitchModeResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.SwitchModeResponse result = new org.tikv.kvproto.ImportKvpb.SwitchModeResponse(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.ImportKvpb.SwitchModeResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.SwitchModeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.SwitchModeResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.SwitchModeResponse.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.ImportKvpb.SwitchModeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.SwitchModeResponse) 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:import_kvpb.SwitchModeResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.SwitchModeResponse)
private static final org.tikv.kvproto.ImportKvpb.SwitchModeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.SwitchModeResponse();
}
public static org.tikv.kvproto.ImportKvpb.SwitchModeResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SwitchModeResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SwitchModeResponse(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.ImportKvpb.SwitchModeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OpenEngineRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.OpenEngineRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
/**
* bytes key_prefix = 2;
*/
com.google.protobuf.ByteString getKeyPrefix();
}
/**
* Protobuf type {@code import_kvpb.OpenEngineRequest}
*/
public static final class OpenEngineRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.OpenEngineRequest)
OpenEngineRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpenEngineRequest.newBuilder() to construct.
private OpenEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpenEngineRequest() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
keyPrefix_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenEngineRequest(
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: {
uuid_ = input.readBytes();
break;
}
case 18: {
keyPrefix_ = 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.ImportKvpb.internal_static_import_kvpb_OpenEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.OpenEngineRequest.class, org.tikv.kvproto.ImportKvpb.OpenEngineRequest.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
public static final int KEY_PREFIX_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString keyPrefix_;
/**
* bytes key_prefix = 2;
*/
public com.google.protobuf.ByteString getKeyPrefix() {
return keyPrefix_;
}
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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
if (!keyPrefix_.isEmpty()) {
output.writeBytes(2, keyPrefix_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
if (!keyPrefix_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, keyPrefix_);
}
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.ImportKvpb.OpenEngineRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.OpenEngineRequest other = (org.tikv.kvproto.ImportKvpb.OpenEngineRequest) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
result = result && getKeyPrefix()
.equals(other.getKeyPrefix());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + KEY_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getKeyPrefix().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest 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.ImportKvpb.OpenEngineRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest 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.ImportKvpb.OpenEngineRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest 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.ImportKvpb.OpenEngineRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest 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.ImportKvpb.OpenEngineRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest 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.ImportKvpb.OpenEngineRequest 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 import_kvpb.OpenEngineRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.OpenEngineRequest)
org.tikv.kvproto.ImportKvpb.OpenEngineRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.OpenEngineRequest.class, org.tikv.kvproto.ImportKvpb.OpenEngineRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.OpenEngineRequest.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();
uuid_ = com.google.protobuf.ByteString.EMPTY;
keyPrefix_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.OpenEngineRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.OpenEngineRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.OpenEngineRequest build() {
org.tikv.kvproto.ImportKvpb.OpenEngineRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.OpenEngineRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.OpenEngineRequest result = new org.tikv.kvproto.ImportKvpb.OpenEngineRequest(this);
result.uuid_ = uuid_;
result.keyPrefix_ = keyPrefix_;
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.ImportKvpb.OpenEngineRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.OpenEngineRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.OpenEngineRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.OpenEngineRequest.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
if (other.getKeyPrefix() != com.google.protobuf.ByteString.EMPTY) {
setKeyPrefix(other.getKeyPrefix());
}
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.ImportKvpb.OpenEngineRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.OpenEngineRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
private com.google.protobuf.ByteString keyPrefix_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key_prefix = 2;
*/
public com.google.protobuf.ByteString getKeyPrefix() {
return keyPrefix_;
}
/**
* bytes key_prefix = 2;
*/
public Builder setKeyPrefix(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
keyPrefix_ = value;
onChanged();
return this;
}
/**
* bytes key_prefix = 2;
*/
public Builder clearKeyPrefix() {
keyPrefix_ = getDefaultInstance().getKeyPrefix();
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:import_kvpb.OpenEngineRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.OpenEngineRequest)
private static final org.tikv.kvproto.ImportKvpb.OpenEngineRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.OpenEngineRequest();
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OpenEngineRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenEngineRequest(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.ImportKvpb.OpenEngineRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OpenEngineResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.OpenEngineResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.OpenEngineResponse}
*/
public static final class OpenEngineResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.OpenEngineResponse)
OpenEngineResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpenEngineResponse.newBuilder() to construct.
private OpenEngineResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpenEngineResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenEngineResponse(
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.ImportKvpb.internal_static_import_kvpb_OpenEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.OpenEngineResponse.class, org.tikv.kvproto.ImportKvpb.OpenEngineResponse.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.ImportKvpb.OpenEngineResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.OpenEngineResponse other = (org.tikv.kvproto.ImportKvpb.OpenEngineResponse) 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.ImportKvpb.OpenEngineResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse 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.ImportKvpb.OpenEngineResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse 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.ImportKvpb.OpenEngineResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse 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.ImportKvpb.OpenEngineResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse 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.ImportKvpb.OpenEngineResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse 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.ImportKvpb.OpenEngineResponse 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 import_kvpb.OpenEngineResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.OpenEngineResponse)
org.tikv.kvproto.ImportKvpb.OpenEngineResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_OpenEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.OpenEngineResponse.class, org.tikv.kvproto.ImportKvpb.OpenEngineResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.OpenEngineResponse.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.ImportKvpb.internal_static_import_kvpb_OpenEngineResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.OpenEngineResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.OpenEngineResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.OpenEngineResponse build() {
org.tikv.kvproto.ImportKvpb.OpenEngineResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.OpenEngineResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.OpenEngineResponse result = new org.tikv.kvproto.ImportKvpb.OpenEngineResponse(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.ImportKvpb.OpenEngineResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.OpenEngineResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.OpenEngineResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.OpenEngineResponse.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.ImportKvpb.OpenEngineResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.OpenEngineResponse) 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:import_kvpb.OpenEngineResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.OpenEngineResponse)
private static final org.tikv.kvproto.ImportKvpb.OpenEngineResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.OpenEngineResponse();
}
public static org.tikv.kvproto.ImportKvpb.OpenEngineResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OpenEngineResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenEngineResponse(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.ImportKvpb.OpenEngineResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteHeadOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.WriteHead)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
}
/**
* Protobuf type {@code import_kvpb.WriteHead}
*/
public static final class WriteHead extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.WriteHead)
WriteHeadOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteHead.newBuilder() to construct.
private WriteHead(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteHead() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteHead(
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: {
uuid_ = 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.ImportKvpb.internal_static_import_kvpb_WriteHead_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteHead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteHead.class, org.tikv.kvproto.ImportKvpb.WriteHead.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
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.ImportKvpb.WriteHead)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.WriteHead other = (org.tikv.kvproto.ImportKvpb.WriteHead) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.WriteHead parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead 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.ImportKvpb.WriteHead parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead 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.ImportKvpb.WriteHead parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead 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.ImportKvpb.WriteHead parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead 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.ImportKvpb.WriteHead parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteHead 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.ImportKvpb.WriteHead 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 import_kvpb.WriteHead}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.WriteHead)
org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteHead_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteHead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteHead.class, org.tikv.kvproto.ImportKvpb.WriteHead.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.WriteHead.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();
uuid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteHead_descriptor;
}
public org.tikv.kvproto.ImportKvpb.WriteHead getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.WriteHead build() {
org.tikv.kvproto.ImportKvpb.WriteHead result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.WriteHead buildPartial() {
org.tikv.kvproto.ImportKvpb.WriteHead result = new org.tikv.kvproto.ImportKvpb.WriteHead(this);
result.uuid_ = uuid_;
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.ImportKvpb.WriteHead) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.WriteHead)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.WriteHead other) {
if (other == org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
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.ImportKvpb.WriteHead parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.WriteHead) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
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:import_kvpb.WriteHead)
}
// @@protoc_insertion_point(class_scope:import_kvpb.WriteHead)
private static final org.tikv.kvproto.ImportKvpb.WriteHead DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.WriteHead();
}
public static org.tikv.kvproto.ImportKvpb.WriteHead getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteHead parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteHead(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.ImportKvpb.WriteHead getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MutationOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.Mutation)
com.google.protobuf.MessageOrBuilder {
/**
* .import_kvpb.Mutation.OP op = 1;
*/
int getOpValue();
/**
* .import_kvpb.Mutation.OP op = 1;
*/
org.tikv.kvproto.ImportKvpb.Mutation.OP getOp();
/**
* bytes key = 2;
*/
com.google.protobuf.ByteString getKey();
/**
* bytes value = 3;
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code import_kvpb.Mutation}
*/
public static final class Mutation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.Mutation)
MutationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Mutation.newBuilder() to construct.
private Mutation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Mutation() {
op_ = 0;
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 Mutation(
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();
op_ = rawValue;
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.ImportKvpb.internal_static_import_kvpb_Mutation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Mutation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.Mutation.class, org.tikv.kvproto.ImportKvpb.Mutation.Builder.class);
}
/**
* Protobuf enum {@code import_kvpb.Mutation.OP}
*/
public enum OP
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Put = 0;
*/
Put(0),
UNRECOGNIZED(-1),
;
/**
* Put = 0;
*/
public static final int Put_VALUE = 0;
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 OP valueOf(int value) {
return forNumber(value);
}
public static OP forNumber(int value) {
switch (value) {
case 0: return Put;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OP> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OP findValueByNumber(int number) {
return OP.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.ImportKvpb.Mutation.getDescriptor().getEnumTypes().get(0);
}
private static final OP[] VALUES = values();
public static OP 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 OP(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:import_kvpb.Mutation.OP)
}
public static final int OP_FIELD_NUMBER = 1;
private int op_;
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public int getOpValue() {
return op_;
}
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public org.tikv.kvproto.ImportKvpb.Mutation.OP getOp() {
org.tikv.kvproto.ImportKvpb.Mutation.OP result = org.tikv.kvproto.ImportKvpb.Mutation.OP.valueOf(op_);
return result == null ? org.tikv.kvproto.ImportKvpb.Mutation.OP.UNRECOGNIZED : result;
}
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 (op_ != org.tikv.kvproto.ImportKvpb.Mutation.OP.Put.getNumber()) {
output.writeEnum(1, op_);
}
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 (op_ != org.tikv.kvproto.ImportKvpb.Mutation.OP.Put.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, op_);
}
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.ImportKvpb.Mutation)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.Mutation other = (org.tikv.kvproto.ImportKvpb.Mutation) obj;
boolean result = true;
result = result && op_ == other.op_;
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) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
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.ImportKvpb.Mutation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Mutation 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.ImportKvpb.Mutation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Mutation 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.ImportKvpb.Mutation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Mutation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.Mutation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Mutation 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.ImportKvpb.Mutation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Mutation 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.ImportKvpb.Mutation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Mutation 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.ImportKvpb.Mutation 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 import_kvpb.Mutation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.Mutation)
org.tikv.kvproto.ImportKvpb.MutationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Mutation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Mutation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.Mutation.class, org.tikv.kvproto.ImportKvpb.Mutation.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.Mutation.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();
op_ = 0;
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.ImportKvpb.internal_static_import_kvpb_Mutation_descriptor;
}
public org.tikv.kvproto.ImportKvpb.Mutation getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.Mutation.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.Mutation build() {
org.tikv.kvproto.ImportKvpb.Mutation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.Mutation buildPartial() {
org.tikv.kvproto.ImportKvpb.Mutation result = new org.tikv.kvproto.ImportKvpb.Mutation(this);
result.op_ = op_;
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.ImportKvpb.Mutation) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.Mutation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.Mutation other) {
if (other == org.tikv.kvproto.ImportKvpb.Mutation.getDefaultInstance()) return this;
if (other.op_ != 0) {
setOpValue(other.getOpValue());
}
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.ImportKvpb.Mutation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.Mutation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int op_ = 0;
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public int getOpValue() {
return op_;
}
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public Builder setOpValue(int value) {
op_ = value;
onChanged();
return this;
}
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public org.tikv.kvproto.ImportKvpb.Mutation.OP getOp() {
org.tikv.kvproto.ImportKvpb.Mutation.OP result = org.tikv.kvproto.ImportKvpb.Mutation.OP.valueOf(op_);
return result == null ? org.tikv.kvproto.ImportKvpb.Mutation.OP.UNRECOGNIZED : result;
}
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public Builder setOp(org.tikv.kvproto.ImportKvpb.Mutation.OP value) {
if (value == null) {
throw new NullPointerException();
}
op_ = value.getNumber();
onChanged();
return this;
}
/**
* .import_kvpb.Mutation.OP op = 1;
*/
public Builder clearOp() {
op_ = 0;
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:import_kvpb.Mutation)
}
// @@protoc_insertion_point(class_scope:import_kvpb.Mutation)
private static final org.tikv.kvproto.ImportKvpb.Mutation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.Mutation();
}
public static org.tikv.kvproto.ImportKvpb.Mutation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Mutation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Mutation(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.ImportKvpb.Mutation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteBatchOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.WriteBatch)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 commit_ts = 1;
*/
long getCommitTs();
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
java.util.List
getMutationsList();
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
org.tikv.kvproto.ImportKvpb.Mutation getMutations(int index);
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
int getMutationsCount();
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
java.util.List extends org.tikv.kvproto.ImportKvpb.MutationOrBuilder>
getMutationsOrBuilderList();
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
org.tikv.kvproto.ImportKvpb.MutationOrBuilder getMutationsOrBuilder(
int index);
}
/**
* Protobuf type {@code import_kvpb.WriteBatch}
*/
public static final class WriteBatch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.WriteBatch)
WriteBatchOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteBatch.newBuilder() to construct.
private WriteBatch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteBatch() {
commitTs_ = 0L;
mutations_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteBatch(
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: {
commitTs_ = input.readUInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
mutations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
mutations_.add(
input.readMessage(org.tikv.kvproto.ImportKvpb.Mutation.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)) {
mutations_ = java.util.Collections.unmodifiableList(mutations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteBatch.class, org.tikv.kvproto.ImportKvpb.WriteBatch.Builder.class);
}
private int bitField0_;
public static final int COMMIT_TS_FIELD_NUMBER = 1;
private long commitTs_;
/**
* uint64 commit_ts = 1;
*/
public long getCommitTs() {
return commitTs_;
}
public static final int MUTATIONS_FIELD_NUMBER = 2;
private java.util.List mutations_;
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public java.util.List getMutationsList() {
return mutations_;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public java.util.List extends org.tikv.kvproto.ImportKvpb.MutationOrBuilder>
getMutationsOrBuilderList() {
return mutations_;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public int getMutationsCount() {
return mutations_.size();
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.Mutation getMutations(int index) {
return mutations_.get(index);
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.MutationOrBuilder getMutationsOrBuilder(
int index) {
return mutations_.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 (commitTs_ != 0L) {
output.writeUInt64(1, commitTs_);
}
for (int i = 0; i < mutations_.size(); i++) {
output.writeMessage(2, mutations_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commitTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, commitTs_);
}
for (int i = 0; i < mutations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, mutations_.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.ImportKvpb.WriteBatch)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.WriteBatch other = (org.tikv.kvproto.ImportKvpb.WriteBatch) obj;
boolean result = true;
result = result && (getCommitTs()
== other.getCommitTs());
result = result && getMutationsList()
.equals(other.getMutationsList());
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_TS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommitTs());
if (getMutationsCount() > 0) {
hash = (37 * hash) + MUTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getMutationsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch 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.ImportKvpb.WriteBatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch 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.ImportKvpb.WriteBatch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch 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.ImportKvpb.WriteBatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch 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.ImportKvpb.WriteBatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch 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.ImportKvpb.WriteBatch 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 import_kvpb.WriteBatch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.WriteBatch)
org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteBatch.class, org.tikv.kvproto.ImportKvpb.WriteBatch.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.WriteBatch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMutationsFieldBuilder();
}
}
public Builder clear() {
super.clear();
commitTs_ = 0L;
if (mutationsBuilder_ == null) {
mutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
mutationsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteBatch_descriptor;
}
public org.tikv.kvproto.ImportKvpb.WriteBatch getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.WriteBatch build() {
org.tikv.kvproto.ImportKvpb.WriteBatch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.WriteBatch buildPartial() {
org.tikv.kvproto.ImportKvpb.WriteBatch result = new org.tikv.kvproto.ImportKvpb.WriteBatch(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.commitTs_ = commitTs_;
if (mutationsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
mutations_ = java.util.Collections.unmodifiableList(mutations_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.mutations_ = mutations_;
} else {
result.mutations_ = mutationsBuilder_.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.ImportKvpb.WriteBatch) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.WriteBatch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.WriteBatch other) {
if (other == org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance()) return this;
if (other.getCommitTs() != 0L) {
setCommitTs(other.getCommitTs());
}
if (mutationsBuilder_ == null) {
if (!other.mutations_.isEmpty()) {
if (mutations_.isEmpty()) {
mutations_ = other.mutations_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMutationsIsMutable();
mutations_.addAll(other.mutations_);
}
onChanged();
}
} else {
if (!other.mutations_.isEmpty()) {
if (mutationsBuilder_.isEmpty()) {
mutationsBuilder_.dispose();
mutationsBuilder_ = null;
mutations_ = other.mutations_;
bitField0_ = (bitField0_ & ~0x00000002);
mutationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMutationsFieldBuilder() : null;
} else {
mutationsBuilder_.addAllMessages(other.mutations_);
}
}
}
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.ImportKvpb.WriteBatch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.WriteBatch) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long commitTs_ ;
/**
* uint64 commit_ts = 1;
*/
public long getCommitTs() {
return commitTs_;
}
/**
* uint64 commit_ts = 1;
*/
public Builder setCommitTs(long value) {
commitTs_ = value;
onChanged();
return this;
}
/**
* uint64 commit_ts = 1;
*/
public Builder clearCommitTs() {
commitTs_ = 0L;
onChanged();
return this;
}
private java.util.List mutations_ =
java.util.Collections.emptyList();
private void ensureMutationsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
mutations_ = new java.util.ArrayList(mutations_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Mutation, org.tikv.kvproto.ImportKvpb.Mutation.Builder, org.tikv.kvproto.ImportKvpb.MutationOrBuilder> mutationsBuilder_;
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public java.util.List getMutationsList() {
if (mutationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(mutations_);
} else {
return mutationsBuilder_.getMessageList();
}
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public int getMutationsCount() {
if (mutationsBuilder_ == null) {
return mutations_.size();
} else {
return mutationsBuilder_.getCount();
}
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.Mutation getMutations(int index) {
if (mutationsBuilder_ == null) {
return mutations_.get(index);
} else {
return mutationsBuilder_.getMessage(index);
}
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder setMutations(
int index, org.tikv.kvproto.ImportKvpb.Mutation value) {
if (mutationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMutationsIsMutable();
mutations_.set(index, value);
onChanged();
} else {
mutationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder setMutations(
int index, org.tikv.kvproto.ImportKvpb.Mutation.Builder builderForValue) {
if (mutationsBuilder_ == null) {
ensureMutationsIsMutable();
mutations_.set(index, builderForValue.build());
onChanged();
} else {
mutationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder addMutations(org.tikv.kvproto.ImportKvpb.Mutation value) {
if (mutationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMutationsIsMutable();
mutations_.add(value);
onChanged();
} else {
mutationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder addMutations(
int index, org.tikv.kvproto.ImportKvpb.Mutation value) {
if (mutationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMutationsIsMutable();
mutations_.add(index, value);
onChanged();
} else {
mutationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder addMutations(
org.tikv.kvproto.ImportKvpb.Mutation.Builder builderForValue) {
if (mutationsBuilder_ == null) {
ensureMutationsIsMutable();
mutations_.add(builderForValue.build());
onChanged();
} else {
mutationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder addMutations(
int index, org.tikv.kvproto.ImportKvpb.Mutation.Builder builderForValue) {
if (mutationsBuilder_ == null) {
ensureMutationsIsMutable();
mutations_.add(index, builderForValue.build());
onChanged();
} else {
mutationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder addAllMutations(
java.lang.Iterable extends org.tikv.kvproto.ImportKvpb.Mutation> values) {
if (mutationsBuilder_ == null) {
ensureMutationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mutations_);
onChanged();
} else {
mutationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder clearMutations() {
if (mutationsBuilder_ == null) {
mutations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
mutationsBuilder_.clear();
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public Builder removeMutations(int index) {
if (mutationsBuilder_ == null) {
ensureMutationsIsMutable();
mutations_.remove(index);
onChanged();
} else {
mutationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.Mutation.Builder getMutationsBuilder(
int index) {
return getMutationsFieldBuilder().getBuilder(index);
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.MutationOrBuilder getMutationsOrBuilder(
int index) {
if (mutationsBuilder_ == null) {
return mutations_.get(index); } else {
return mutationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public java.util.List extends org.tikv.kvproto.ImportKvpb.MutationOrBuilder>
getMutationsOrBuilderList() {
if (mutationsBuilder_ != null) {
return mutationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mutations_);
}
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.Mutation.Builder addMutationsBuilder() {
return getMutationsFieldBuilder().addBuilder(
org.tikv.kvproto.ImportKvpb.Mutation.getDefaultInstance());
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public org.tikv.kvproto.ImportKvpb.Mutation.Builder addMutationsBuilder(
int index) {
return getMutationsFieldBuilder().addBuilder(
index, org.tikv.kvproto.ImportKvpb.Mutation.getDefaultInstance());
}
/**
* repeated .import_kvpb.Mutation mutations = 2;
*/
public java.util.List
getMutationsBuilderList() {
return getMutationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Mutation, org.tikv.kvproto.ImportKvpb.Mutation.Builder, org.tikv.kvproto.ImportKvpb.MutationOrBuilder>
getMutationsFieldBuilder() {
if (mutationsBuilder_ == null) {
mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Mutation, org.tikv.kvproto.ImportKvpb.Mutation.Builder, org.tikv.kvproto.ImportKvpb.MutationOrBuilder>(
mutations_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
mutations_ = null;
}
return mutationsBuilder_;
}
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:import_kvpb.WriteBatch)
}
// @@protoc_insertion_point(class_scope:import_kvpb.WriteBatch)
private static final org.tikv.kvproto.ImportKvpb.WriteBatch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.WriteBatch();
}
public static org.tikv.kvproto.ImportKvpb.WriteBatch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteBatch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteBatch(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.ImportKvpb.WriteBatch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteEngineRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.WriteEngineRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .import_kvpb.WriteHead head = 1;
*/
boolean hasHead();
/**
* .import_kvpb.WriteHead head = 1;
*/
org.tikv.kvproto.ImportKvpb.WriteHead getHead();
/**
* .import_kvpb.WriteHead head = 1;
*/
org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder getHeadOrBuilder();
/**
* .import_kvpb.WriteBatch batch = 2;
*/
boolean hasBatch();
/**
* .import_kvpb.WriteBatch batch = 2;
*/
org.tikv.kvproto.ImportKvpb.WriteBatch getBatch();
/**
* .import_kvpb.WriteBatch batch = 2;
*/
org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder getBatchOrBuilder();
public org.tikv.kvproto.ImportKvpb.WriteEngineRequest.ChunkCase getChunkCase();
}
/**
* Protobuf type {@code import_kvpb.WriteEngineRequest}
*/
public static final class WriteEngineRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.WriteEngineRequest)
WriteEngineRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteEngineRequest.newBuilder() to construct.
private WriteEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteEngineRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteEngineRequest(
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.ImportKvpb.WriteHead.Builder subBuilder = null;
if (chunkCase_ == 1) {
subBuilder = ((org.tikv.kvproto.ImportKvpb.WriteHead) chunk_).toBuilder();
}
chunk_ =
input.readMessage(org.tikv.kvproto.ImportKvpb.WriteHead.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tikv.kvproto.ImportKvpb.WriteHead) chunk_);
chunk_ = subBuilder.buildPartial();
}
chunkCase_ = 1;
break;
}
case 18: {
org.tikv.kvproto.ImportKvpb.WriteBatch.Builder subBuilder = null;
if (chunkCase_ == 2) {
subBuilder = ((org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_).toBuilder();
}
chunk_ =
input.readMessage(org.tikv.kvproto.ImportKvpb.WriteBatch.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_);
chunk_ = subBuilder.buildPartial();
}
chunkCase_ = 2;
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.ImportKvpb.internal_static_import_kvpb_WriteEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteEngineRequest.class, org.tikv.kvproto.ImportKvpb.WriteEngineRequest.Builder.class);
}
private int chunkCase_ = 0;
private java.lang.Object chunk_;
public enum ChunkCase
implements com.google.protobuf.Internal.EnumLite {
HEAD(1),
BATCH(2),
CHUNK_NOT_SET(0);
private final int value;
private ChunkCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ChunkCase valueOf(int value) {
return forNumber(value);
}
public static ChunkCase forNumber(int value) {
switch (value) {
case 1: return HEAD;
case 2: return BATCH;
case 0: return CHUNK_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ChunkCase
getChunkCase() {
return ChunkCase.forNumber(
chunkCase_);
}
public static final int HEAD_FIELD_NUMBER = 1;
/**
* .import_kvpb.WriteHead head = 1;
*/
public boolean hasHead() {
return chunkCase_ == 1;
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public org.tikv.kvproto.ImportKvpb.WriteHead getHead() {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportKvpb.WriteHead) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder getHeadOrBuilder() {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportKvpb.WriteHead) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
}
public static final int BATCH_FIELD_NUMBER = 2;
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public boolean hasBatch() {
return chunkCase_ == 2;
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportKvpb.WriteBatch getBatch() {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder getBatchOrBuilder() {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
}
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 (chunkCase_ == 1) {
output.writeMessage(1, (org.tikv.kvproto.ImportKvpb.WriteHead) chunk_);
}
if (chunkCase_ == 2) {
output.writeMessage(2, (org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (chunkCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (org.tikv.kvproto.ImportKvpb.WriteHead) chunk_);
}
if (chunkCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_);
}
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.ImportKvpb.WriteEngineRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.WriteEngineRequest other = (org.tikv.kvproto.ImportKvpb.WriteEngineRequest) obj;
boolean result = true;
result = result && getChunkCase().equals(
other.getChunkCase());
if (!result) return false;
switch (chunkCase_) {
case 1:
result = result && getHead()
.equals(other.getHead());
break;
case 2:
result = result && getBatch()
.equals(other.getBatch());
break;
case 0:
default:
}
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();
switch (chunkCase_) {
case 1:
hash = (37 * hash) + HEAD_FIELD_NUMBER;
hash = (53 * hash) + getHead().hashCode();
break;
case 2:
hash = (37 * hash) + BATCH_FIELD_NUMBER;
hash = (53 * hash) + getBatch().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest 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.ImportKvpb.WriteEngineRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest 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.ImportKvpb.WriteEngineRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest 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.ImportKvpb.WriteEngineRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest 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.ImportKvpb.WriteEngineRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest 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.ImportKvpb.WriteEngineRequest 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 import_kvpb.WriteEngineRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.WriteEngineRequest)
org.tikv.kvproto.ImportKvpb.WriteEngineRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteEngineRequest.class, org.tikv.kvproto.ImportKvpb.WriteEngineRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.WriteEngineRequest.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();
chunkCase_ = 0;
chunk_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.WriteEngineRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.WriteEngineRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.WriteEngineRequest build() {
org.tikv.kvproto.ImportKvpb.WriteEngineRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.WriteEngineRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.WriteEngineRequest result = new org.tikv.kvproto.ImportKvpb.WriteEngineRequest(this);
if (chunkCase_ == 1) {
if (headBuilder_ == null) {
result.chunk_ = chunk_;
} else {
result.chunk_ = headBuilder_.build();
}
}
if (chunkCase_ == 2) {
if (batchBuilder_ == null) {
result.chunk_ = chunk_;
} else {
result.chunk_ = batchBuilder_.build();
}
}
result.chunkCase_ = chunkCase_;
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.ImportKvpb.WriteEngineRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.WriteEngineRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.WriteEngineRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.WriteEngineRequest.getDefaultInstance()) return this;
switch (other.getChunkCase()) {
case HEAD: {
mergeHead(other.getHead());
break;
}
case BATCH: {
mergeBatch(other.getBatch());
break;
}
case CHUNK_NOT_SET: {
break;
}
}
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.ImportKvpb.WriteEngineRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.WriteEngineRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int chunkCase_ = 0;
private java.lang.Object chunk_;
public ChunkCase
getChunkCase() {
return ChunkCase.forNumber(
chunkCase_);
}
public Builder clearChunk() {
chunkCase_ = 0;
chunk_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.WriteHead, org.tikv.kvproto.ImportKvpb.WriteHead.Builder, org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder> headBuilder_;
/**
* .import_kvpb.WriteHead head = 1;
*/
public boolean hasHead() {
return chunkCase_ == 1;
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public org.tikv.kvproto.ImportKvpb.WriteHead getHead() {
if (headBuilder_ == null) {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportKvpb.WriteHead) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
} else {
if (chunkCase_ == 1) {
return headBuilder_.getMessage();
}
return org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
}
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public Builder setHead(org.tikv.kvproto.ImportKvpb.WriteHead value) {
if (headBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
headBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public Builder setHead(
org.tikv.kvproto.ImportKvpb.WriteHead.Builder builderForValue) {
if (headBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
headBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 1;
return this;
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public Builder mergeHead(org.tikv.kvproto.ImportKvpb.WriteHead value) {
if (headBuilder_ == null) {
if (chunkCase_ == 1 &&
chunk_ != org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance()) {
chunk_ = org.tikv.kvproto.ImportKvpb.WriteHead.newBuilder((org.tikv.kvproto.ImportKvpb.WriteHead) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 1) {
headBuilder_.mergeFrom(value);
}
headBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public Builder clearHead() {
if (headBuilder_ == null) {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
onChanged();
}
} else {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
}
headBuilder_.clear();
}
return this;
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public org.tikv.kvproto.ImportKvpb.WriteHead.Builder getHeadBuilder() {
return getHeadFieldBuilder().getBuilder();
}
/**
* .import_kvpb.WriteHead head = 1;
*/
public org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder getHeadOrBuilder() {
if ((chunkCase_ == 1) && (headBuilder_ != null)) {
return headBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportKvpb.WriteHead) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
}
}
/**
* .import_kvpb.WriteHead head = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.WriteHead, org.tikv.kvproto.ImportKvpb.WriteHead.Builder, org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder>
getHeadFieldBuilder() {
if (headBuilder_ == null) {
if (!(chunkCase_ == 1)) {
chunk_ = org.tikv.kvproto.ImportKvpb.WriteHead.getDefaultInstance();
}
headBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.WriteHead, org.tikv.kvproto.ImportKvpb.WriteHead.Builder, org.tikv.kvproto.ImportKvpb.WriteHeadOrBuilder>(
(org.tikv.kvproto.ImportKvpb.WriteHead) chunk_,
getParentForChildren(),
isClean());
chunk_ = null;
}
chunkCase_ = 1;
onChanged();;
return headBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.WriteBatch, org.tikv.kvproto.ImportKvpb.WriteBatch.Builder, org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder> batchBuilder_;
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public boolean hasBatch() {
return chunkCase_ == 2;
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportKvpb.WriteBatch getBatch() {
if (batchBuilder_ == null) {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
} else {
if (chunkCase_ == 2) {
return batchBuilder_.getMessage();
}
return org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
}
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public Builder setBatch(org.tikv.kvproto.ImportKvpb.WriteBatch value) {
if (batchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
batchBuilder_.setMessage(value);
}
chunkCase_ = 2;
return this;
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public Builder setBatch(
org.tikv.kvproto.ImportKvpb.WriteBatch.Builder builderForValue) {
if (batchBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
batchBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 2;
return this;
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public Builder mergeBatch(org.tikv.kvproto.ImportKvpb.WriteBatch value) {
if (batchBuilder_ == null) {
if (chunkCase_ == 2 &&
chunk_ != org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance()) {
chunk_ = org.tikv.kvproto.ImportKvpb.WriteBatch.newBuilder((org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 2) {
batchBuilder_.mergeFrom(value);
}
batchBuilder_.setMessage(value);
}
chunkCase_ = 2;
return this;
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public Builder clearBatch() {
if (batchBuilder_ == null) {
if (chunkCase_ == 2) {
chunkCase_ = 0;
chunk_ = null;
onChanged();
}
} else {
if (chunkCase_ == 2) {
chunkCase_ = 0;
chunk_ = null;
}
batchBuilder_.clear();
}
return this;
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportKvpb.WriteBatch.Builder getBatchBuilder() {
return getBatchFieldBuilder().getBuilder();
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder getBatchOrBuilder() {
if ((chunkCase_ == 2) && (batchBuilder_ != null)) {
return batchBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
}
}
/**
* .import_kvpb.WriteBatch batch = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.WriteBatch, org.tikv.kvproto.ImportKvpb.WriteBatch.Builder, org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder>
getBatchFieldBuilder() {
if (batchBuilder_ == null) {
if (!(chunkCase_ == 2)) {
chunk_ = org.tikv.kvproto.ImportKvpb.WriteBatch.getDefaultInstance();
}
batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.WriteBatch, org.tikv.kvproto.ImportKvpb.WriteBatch.Builder, org.tikv.kvproto.ImportKvpb.WriteBatchOrBuilder>(
(org.tikv.kvproto.ImportKvpb.WriteBatch) chunk_,
getParentForChildren(),
isClean());
chunk_ = null;
}
chunkCase_ = 2;
onChanged();;
return batchBuilder_;
}
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:import_kvpb.WriteEngineRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.WriteEngineRequest)
private static final org.tikv.kvproto.ImportKvpb.WriteEngineRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.WriteEngineRequest();
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteEngineRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteEngineRequest(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.ImportKvpb.WriteEngineRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KVPairOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.KVPair)
com.google.protobuf.MessageOrBuilder {
/**
* bytes key = 1;
*/
com.google.protobuf.ByteString getKey();
/**
* bytes value = 2;
*/
com.google.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code import_kvpb.KVPair}
*/
public static final class KVPair extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.KVPair)
KVPairOrBuilder {
private static final long serialVersionUID = 0L;
// Use KVPair.newBuilder() to construct.
private KVPair(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KVPair() {
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 KVPair(
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;
}
}
}
} 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.ImportKvpb.internal_static_import_kvpb_KVPair_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_KVPair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.KVPair.class, org.tikv.kvproto.ImportKvpb.KVPair.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_;
}
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_);
}
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_);
}
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.ImportKvpb.KVPair)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.KVPair other = (org.tikv.kvproto.ImportKvpb.KVPair) obj;
boolean result = true;
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) + 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.ImportKvpb.KVPair parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.KVPair 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.ImportKvpb.KVPair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.KVPair 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.ImportKvpb.KVPair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.KVPair parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.KVPair parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.KVPair 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.ImportKvpb.KVPair parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.KVPair 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.ImportKvpb.KVPair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.KVPair 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.ImportKvpb.KVPair 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 import_kvpb.KVPair}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.KVPair)
org.tikv.kvproto.ImportKvpb.KVPairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_KVPair_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_KVPair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.KVPair.class, org.tikv.kvproto.ImportKvpb.KVPair.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.KVPair.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;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_KVPair_descriptor;
}
public org.tikv.kvproto.ImportKvpb.KVPair getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.KVPair.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.KVPair build() {
org.tikv.kvproto.ImportKvpb.KVPair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.KVPair buildPartial() {
org.tikv.kvproto.ImportKvpb.KVPair result = new org.tikv.kvproto.ImportKvpb.KVPair(this);
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.ImportKvpb.KVPair) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.KVPair)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.KVPair other) {
if (other == org.tikv.kvproto.ImportKvpb.KVPair.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());
}
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.ImportKvpb.KVPair parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.KVPair) 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;
}
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:import_kvpb.KVPair)
}
// @@protoc_insertion_point(class_scope:import_kvpb.KVPair)
private static final org.tikv.kvproto.ImportKvpb.KVPair DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.KVPair();
}
public static org.tikv.kvproto.ImportKvpb.KVPair getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public KVPair parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KVPair(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.ImportKvpb.KVPair getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteEngineV3RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.WriteEngineV3Request)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
/**
* uint64 commit_ts = 2;
*/
long getCommitTs();
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
java.util.List
getPairsList();
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
org.tikv.kvproto.ImportKvpb.KVPair getPairs(int index);
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
int getPairsCount();
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
java.util.List extends org.tikv.kvproto.ImportKvpb.KVPairOrBuilder>
getPairsOrBuilderList();
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
org.tikv.kvproto.ImportKvpb.KVPairOrBuilder getPairsOrBuilder(
int index);
}
/**
* Protobuf type {@code import_kvpb.WriteEngineV3Request}
*/
public static final class WriteEngineV3Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.WriteEngineV3Request)
WriteEngineV3RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteEngineV3Request.newBuilder() to construct.
private WriteEngineV3Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteEngineV3Request() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
commitTs_ = 0L;
pairs_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteEngineV3Request(
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: {
uuid_ = input.readBytes();
break;
}
case 16: {
commitTs_ = input.readUInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
pairs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
pairs_.add(
input.readMessage(org.tikv.kvproto.ImportKvpb.KVPair.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)) {
pairs_ = java.util.Collections.unmodifiableList(pairs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineV3Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineV3Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.class, org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.Builder.class);
}
private int bitField0_;
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
public static final int COMMIT_TS_FIELD_NUMBER = 2;
private long commitTs_;
/**
* uint64 commit_ts = 2;
*/
public long getCommitTs() {
return commitTs_;
}
public static final int PAIRS_FIELD_NUMBER = 3;
private java.util.List pairs_;
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public java.util.List getPairsList() {
return pairs_;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public java.util.List extends org.tikv.kvproto.ImportKvpb.KVPairOrBuilder>
getPairsOrBuilderList() {
return pairs_;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public int getPairsCount() {
return pairs_.size();
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPair getPairs(int index) {
return pairs_.get(index);
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPairOrBuilder getPairsOrBuilder(
int index) {
return pairs_.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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
if (commitTs_ != 0L) {
output.writeUInt64(2, commitTs_);
}
for (int i = 0; i < pairs_.size(); i++) {
output.writeMessage(3, pairs_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
if (commitTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, commitTs_);
}
for (int i = 0; i < pairs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, pairs_.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.ImportKvpb.WriteEngineV3Request)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.WriteEngineV3Request other = (org.tikv.kvproto.ImportKvpb.WriteEngineV3Request) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
result = result && (getCommitTs()
== other.getCommitTs());
result = result && getPairsList()
.equals(other.getPairsList());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommitTs());
if (getPairsCount() > 0) {
hash = (37 * hash) + PAIRS_FIELD_NUMBER;
hash = (53 * hash) + getPairsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request 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.ImportKvpb.WriteEngineV3Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request 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.ImportKvpb.WriteEngineV3Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request 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.ImportKvpb.WriteEngineV3Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request 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.ImportKvpb.WriteEngineV3Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request 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.ImportKvpb.WriteEngineV3Request 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 import_kvpb.WriteEngineV3Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.WriteEngineV3Request)
org.tikv.kvproto.ImportKvpb.WriteEngineV3RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineV3Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineV3Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.class, org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPairsFieldBuilder();
}
}
public Builder clear() {
super.clear();
uuid_ = com.google.protobuf.ByteString.EMPTY;
commitTs_ = 0L;
if (pairsBuilder_ == null) {
pairs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
pairsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineV3Request_descriptor;
}
public org.tikv.kvproto.ImportKvpb.WriteEngineV3Request getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.WriteEngineV3Request build() {
org.tikv.kvproto.ImportKvpb.WriteEngineV3Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.WriteEngineV3Request buildPartial() {
org.tikv.kvproto.ImportKvpb.WriteEngineV3Request result = new org.tikv.kvproto.ImportKvpb.WriteEngineV3Request(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.uuid_ = uuid_;
result.commitTs_ = commitTs_;
if (pairsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
pairs_ = java.util.Collections.unmodifiableList(pairs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.pairs_ = pairs_;
} else {
result.pairs_ = pairsBuilder_.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.ImportKvpb.WriteEngineV3Request) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.WriteEngineV3Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.WriteEngineV3Request other) {
if (other == org.tikv.kvproto.ImportKvpb.WriteEngineV3Request.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
if (other.getCommitTs() != 0L) {
setCommitTs(other.getCommitTs());
}
if (pairsBuilder_ == null) {
if (!other.pairs_.isEmpty()) {
if (pairs_.isEmpty()) {
pairs_ = other.pairs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePairsIsMutable();
pairs_.addAll(other.pairs_);
}
onChanged();
}
} else {
if (!other.pairs_.isEmpty()) {
if (pairsBuilder_.isEmpty()) {
pairsBuilder_.dispose();
pairsBuilder_ = null;
pairs_ = other.pairs_;
bitField0_ = (bitField0_ & ~0x00000004);
pairsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPairsFieldBuilder() : null;
} else {
pairsBuilder_.addAllMessages(other.pairs_);
}
}
}
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.ImportKvpb.WriteEngineV3Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.WriteEngineV3Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
private long commitTs_ ;
/**
* uint64 commit_ts = 2;
*/
public long getCommitTs() {
return commitTs_;
}
/**
* uint64 commit_ts = 2;
*/
public Builder setCommitTs(long value) {
commitTs_ = value;
onChanged();
return this;
}
/**
* uint64 commit_ts = 2;
*/
public Builder clearCommitTs() {
commitTs_ = 0L;
onChanged();
return this;
}
private java.util.List pairs_ =
java.util.Collections.emptyList();
private void ensurePairsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
pairs_ = new java.util.ArrayList(pairs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.KVPair, org.tikv.kvproto.ImportKvpb.KVPair.Builder, org.tikv.kvproto.ImportKvpb.KVPairOrBuilder> pairsBuilder_;
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public java.util.List getPairsList() {
if (pairsBuilder_ == null) {
return java.util.Collections.unmodifiableList(pairs_);
} else {
return pairsBuilder_.getMessageList();
}
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public int getPairsCount() {
if (pairsBuilder_ == null) {
return pairs_.size();
} else {
return pairsBuilder_.getCount();
}
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPair getPairs(int index) {
if (pairsBuilder_ == null) {
return pairs_.get(index);
} else {
return pairsBuilder_.getMessage(index);
}
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder setPairs(
int index, org.tikv.kvproto.ImportKvpb.KVPair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.set(index, value);
onChanged();
} else {
pairsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder setPairs(
int index, org.tikv.kvproto.ImportKvpb.KVPair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.set(index, builderForValue.build());
onChanged();
} else {
pairsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder addPairs(org.tikv.kvproto.ImportKvpb.KVPair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.add(value);
onChanged();
} else {
pairsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder addPairs(
int index, org.tikv.kvproto.ImportKvpb.KVPair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.add(index, value);
onChanged();
} else {
pairsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder addPairs(
org.tikv.kvproto.ImportKvpb.KVPair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.add(builderForValue.build());
onChanged();
} else {
pairsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder addPairs(
int index, org.tikv.kvproto.ImportKvpb.KVPair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.add(index, builderForValue.build());
onChanged();
} else {
pairsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder addAllPairs(
java.lang.Iterable extends org.tikv.kvproto.ImportKvpb.KVPair> values) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pairs_);
onChanged();
} else {
pairsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder clearPairs() {
if (pairsBuilder_ == null) {
pairs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
pairsBuilder_.clear();
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public Builder removePairs(int index) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.remove(index);
onChanged();
} else {
pairsBuilder_.remove(index);
}
return this;
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPair.Builder getPairsBuilder(
int index) {
return getPairsFieldBuilder().getBuilder(index);
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPairOrBuilder getPairsOrBuilder(
int index) {
if (pairsBuilder_ == null) {
return pairs_.get(index); } else {
return pairsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public java.util.List extends org.tikv.kvproto.ImportKvpb.KVPairOrBuilder>
getPairsOrBuilderList() {
if (pairsBuilder_ != null) {
return pairsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pairs_);
}
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPair.Builder addPairsBuilder() {
return getPairsFieldBuilder().addBuilder(
org.tikv.kvproto.ImportKvpb.KVPair.getDefaultInstance());
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public org.tikv.kvproto.ImportKvpb.KVPair.Builder addPairsBuilder(
int index) {
return getPairsFieldBuilder().addBuilder(
index, org.tikv.kvproto.ImportKvpb.KVPair.getDefaultInstance());
}
/**
* repeated .import_kvpb.KVPair pairs = 3;
*/
public java.util.List
getPairsBuilderList() {
return getPairsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.KVPair, org.tikv.kvproto.ImportKvpb.KVPair.Builder, org.tikv.kvproto.ImportKvpb.KVPairOrBuilder>
getPairsFieldBuilder() {
if (pairsBuilder_ == null) {
pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.KVPair, org.tikv.kvproto.ImportKvpb.KVPair.Builder, org.tikv.kvproto.ImportKvpb.KVPairOrBuilder>(
pairs_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
pairs_ = null;
}
return pairsBuilder_;
}
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:import_kvpb.WriteEngineV3Request)
}
// @@protoc_insertion_point(class_scope:import_kvpb.WriteEngineV3Request)
private static final org.tikv.kvproto.ImportKvpb.WriteEngineV3Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.WriteEngineV3Request();
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineV3Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteEngineV3Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteEngineV3Request(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.ImportKvpb.WriteEngineV3Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteEngineResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.WriteEngineResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .import_kvpb.Error error = 1;
*/
boolean hasError();
/**
* .import_kvpb.Error error = 1;
*/
org.tikv.kvproto.ImportKvpb.Error getError();
/**
* .import_kvpb.Error error = 1;
*/
org.tikv.kvproto.ImportKvpb.ErrorOrBuilder getErrorOrBuilder();
}
/**
* Protobuf type {@code import_kvpb.WriteEngineResponse}
*/
public static final class WriteEngineResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.WriteEngineResponse)
WriteEngineResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteEngineResponse.newBuilder() to construct.
private WriteEngineResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteEngineResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteEngineResponse(
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.ImportKvpb.Error.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.tikv.kvproto.ImportKvpb.Error.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = 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.ImportKvpb.internal_static_import_kvpb_WriteEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteEngineResponse.class, org.tikv.kvproto.ImportKvpb.WriteEngineResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportKvpb.Error error_;
/**
* .import_kvpb.Error error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error getError() {
return error_ == null ? org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance() : error_;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.ErrorOrBuilder getErrorOrBuilder() {
return getError();
}
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 (error_ != null) {
output.writeMessage(1, getError());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
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.ImportKvpb.WriteEngineResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.WriteEngineResponse other = (org.tikv.kvproto.ImportKvpb.WriteEngineResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
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 (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse 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.ImportKvpb.WriteEngineResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse 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.ImportKvpb.WriteEngineResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse 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.ImportKvpb.WriteEngineResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse 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.ImportKvpb.WriteEngineResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse 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.ImportKvpb.WriteEngineResponse 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 import_kvpb.WriteEngineResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.WriteEngineResponse)
org.tikv.kvproto.ImportKvpb.WriteEngineResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.WriteEngineResponse.class, org.tikv.kvproto.ImportKvpb.WriteEngineResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.WriteEngineResponse.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 (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_WriteEngineResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.WriteEngineResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.WriteEngineResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.WriteEngineResponse build() {
org.tikv.kvproto.ImportKvpb.WriteEngineResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.WriteEngineResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.WriteEngineResponse result = new org.tikv.kvproto.ImportKvpb.WriteEngineResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.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.ImportKvpb.WriteEngineResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.WriteEngineResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.WriteEngineResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.WriteEngineResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
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.ImportKvpb.WriteEngineResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.WriteEngineResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportKvpb.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error, org.tikv.kvproto.ImportKvpb.Error.Builder, org.tikv.kvproto.ImportKvpb.ErrorOrBuilder> errorBuilder_;
/**
* .import_kvpb.Error error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder setError(org.tikv.kvproto.ImportKvpb.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder setError(
org.tikv.kvproto.ImportKvpb.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder mergeError(org.tikv.kvproto.ImportKvpb.Error value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
org.tikv.kvproto.ImportKvpb.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance() : error_;
}
}
/**
* .import_kvpb.Error error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error, org.tikv.kvproto.ImportKvpb.Error.Builder, org.tikv.kvproto.ImportKvpb.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error, org.tikv.kvproto.ImportKvpb.Error.Builder, org.tikv.kvproto.ImportKvpb.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
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:import_kvpb.WriteEngineResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.WriteEngineResponse)
private static final org.tikv.kvproto.ImportKvpb.WriteEngineResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.WriteEngineResponse();
}
public static org.tikv.kvproto.ImportKvpb.WriteEngineResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteEngineResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteEngineResponse(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.ImportKvpb.WriteEngineResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseEngineRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.CloseEngineRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
}
/**
* Protobuf type {@code import_kvpb.CloseEngineRequest}
*/
public static final class CloseEngineRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.CloseEngineRequest)
CloseEngineRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CloseEngineRequest.newBuilder() to construct.
private CloseEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CloseEngineRequest() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CloseEngineRequest(
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: {
uuid_ = 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.ImportKvpb.internal_static_import_kvpb_CloseEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CloseEngineRequest.class, org.tikv.kvproto.ImportKvpb.CloseEngineRequest.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
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.ImportKvpb.CloseEngineRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.CloseEngineRequest other = (org.tikv.kvproto.ImportKvpb.CloseEngineRequest) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest 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.ImportKvpb.CloseEngineRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest 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.ImportKvpb.CloseEngineRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest 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.ImportKvpb.CloseEngineRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest 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.ImportKvpb.CloseEngineRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest 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.ImportKvpb.CloseEngineRequest 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 import_kvpb.CloseEngineRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.CloseEngineRequest)
org.tikv.kvproto.ImportKvpb.CloseEngineRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CloseEngineRequest.class, org.tikv.kvproto.ImportKvpb.CloseEngineRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.CloseEngineRequest.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();
uuid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.CloseEngineRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.CloseEngineRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.CloseEngineRequest build() {
org.tikv.kvproto.ImportKvpb.CloseEngineRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.CloseEngineRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.CloseEngineRequest result = new org.tikv.kvproto.ImportKvpb.CloseEngineRequest(this);
result.uuid_ = uuid_;
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.ImportKvpb.CloseEngineRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.CloseEngineRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.CloseEngineRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.CloseEngineRequest.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
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.ImportKvpb.CloseEngineRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.CloseEngineRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
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:import_kvpb.CloseEngineRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.CloseEngineRequest)
private static final org.tikv.kvproto.ImportKvpb.CloseEngineRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.CloseEngineRequest();
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CloseEngineRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CloseEngineRequest(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.ImportKvpb.CloseEngineRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CloseEngineResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.CloseEngineResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .import_kvpb.Error error = 1;
*/
boolean hasError();
/**
* .import_kvpb.Error error = 1;
*/
org.tikv.kvproto.ImportKvpb.Error getError();
/**
* .import_kvpb.Error error = 1;
*/
org.tikv.kvproto.ImportKvpb.ErrorOrBuilder getErrorOrBuilder();
}
/**
* Protobuf type {@code import_kvpb.CloseEngineResponse}
*/
public static final class CloseEngineResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.CloseEngineResponse)
CloseEngineResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CloseEngineResponse.newBuilder() to construct.
private CloseEngineResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CloseEngineResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CloseEngineResponse(
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.ImportKvpb.Error.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.tikv.kvproto.ImportKvpb.Error.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = 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.ImportKvpb.internal_static_import_kvpb_CloseEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CloseEngineResponse.class, org.tikv.kvproto.ImportKvpb.CloseEngineResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportKvpb.Error error_;
/**
* .import_kvpb.Error error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error getError() {
return error_ == null ? org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance() : error_;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.ErrorOrBuilder getErrorOrBuilder() {
return getError();
}
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 (error_ != null) {
output.writeMessage(1, getError());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getError());
}
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.ImportKvpb.CloseEngineResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.CloseEngineResponse other = (org.tikv.kvproto.ImportKvpb.CloseEngineResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
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 (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse 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.ImportKvpb.CloseEngineResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse 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.ImportKvpb.CloseEngineResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse 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.ImportKvpb.CloseEngineResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse 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.ImportKvpb.CloseEngineResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse 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.ImportKvpb.CloseEngineResponse 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 import_kvpb.CloseEngineResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.CloseEngineResponse)
org.tikv.kvproto.ImportKvpb.CloseEngineResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CloseEngineResponse.class, org.tikv.kvproto.ImportKvpb.CloseEngineResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.CloseEngineResponse.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 (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CloseEngineResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.CloseEngineResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.CloseEngineResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.CloseEngineResponse build() {
org.tikv.kvproto.ImportKvpb.CloseEngineResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.CloseEngineResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.CloseEngineResponse result = new org.tikv.kvproto.ImportKvpb.CloseEngineResponse(this);
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.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.ImportKvpb.CloseEngineResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.CloseEngineResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.CloseEngineResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.CloseEngineResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
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.ImportKvpb.CloseEngineResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.CloseEngineResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportKvpb.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error, org.tikv.kvproto.ImportKvpb.Error.Builder, org.tikv.kvproto.ImportKvpb.ErrorOrBuilder> errorBuilder_;
/**
* .import_kvpb.Error error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder setError(org.tikv.kvproto.ImportKvpb.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder setError(
org.tikv.kvproto.ImportKvpb.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder mergeError(org.tikv.kvproto.ImportKvpb.Error value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
org.tikv.kvproto.ImportKvpb.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* .import_kvpb.Error error = 1;
*/
public org.tikv.kvproto.ImportKvpb.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance() : error_;
}
}
/**
* .import_kvpb.Error error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error, org.tikv.kvproto.ImportKvpb.Error.Builder, org.tikv.kvproto.ImportKvpb.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error, org.tikv.kvproto.ImportKvpb.Error.Builder, org.tikv.kvproto.ImportKvpb.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
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:import_kvpb.CloseEngineResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.CloseEngineResponse)
private static final org.tikv.kvproto.ImportKvpb.CloseEngineResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.CloseEngineResponse();
}
public static org.tikv.kvproto.ImportKvpb.CloseEngineResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CloseEngineResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CloseEngineResponse(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.ImportKvpb.CloseEngineResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ImportEngineRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.ImportEngineRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
/**
* string pd_addr = 2;
*/
java.lang.String getPdAddr();
/**
* string pd_addr = 2;
*/
com.google.protobuf.ByteString
getPdAddrBytes();
}
/**
* Protobuf type {@code import_kvpb.ImportEngineRequest}
*/
public static final class ImportEngineRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.ImportEngineRequest)
ImportEngineRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ImportEngineRequest.newBuilder() to construct.
private ImportEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ImportEngineRequest() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
pdAddr_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ImportEngineRequest(
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: {
uuid_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
pdAddr_ = s;
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.ImportKvpb.internal_static_import_kvpb_ImportEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.ImportEngineRequest.class, org.tikv.kvproto.ImportKvpb.ImportEngineRequest.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
public static final int PD_ADDR_FIELD_NUMBER = 2;
private volatile java.lang.Object pdAddr_;
/**
* string pd_addr = 2;
*/
public java.lang.String getPdAddr() {
java.lang.Object ref = pdAddr_;
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();
pdAddr_ = s;
return s;
}
}
/**
* string pd_addr = 2;
*/
public com.google.protobuf.ByteString
getPdAddrBytes() {
java.lang.Object ref = pdAddr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pdAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
if (!getPdAddrBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pdAddr_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
if (!getPdAddrBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pdAddr_);
}
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.ImportKvpb.ImportEngineRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.ImportEngineRequest other = (org.tikv.kvproto.ImportKvpb.ImportEngineRequest) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
result = result && getPdAddr()
.equals(other.getPdAddr());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + PD_ADDR_FIELD_NUMBER;
hash = (53 * hash) + getPdAddr().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest 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.ImportKvpb.ImportEngineRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest 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.ImportKvpb.ImportEngineRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest 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.ImportKvpb.ImportEngineRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest 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.ImportKvpb.ImportEngineRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest 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.ImportKvpb.ImportEngineRequest 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 import_kvpb.ImportEngineRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.ImportEngineRequest)
org.tikv.kvproto.ImportKvpb.ImportEngineRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.ImportEngineRequest.class, org.tikv.kvproto.ImportKvpb.ImportEngineRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.ImportEngineRequest.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();
uuid_ = com.google.protobuf.ByteString.EMPTY;
pdAddr_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.ImportEngineRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.ImportEngineRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.ImportEngineRequest build() {
org.tikv.kvproto.ImportKvpb.ImportEngineRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.ImportEngineRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.ImportEngineRequest result = new org.tikv.kvproto.ImportKvpb.ImportEngineRequest(this);
result.uuid_ = uuid_;
result.pdAddr_ = pdAddr_;
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.ImportKvpb.ImportEngineRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.ImportEngineRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.ImportEngineRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.ImportEngineRequest.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
if (!other.getPdAddr().isEmpty()) {
pdAddr_ = other.pdAddr_;
onChanged();
}
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.ImportKvpb.ImportEngineRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.ImportEngineRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
private java.lang.Object pdAddr_ = "";
/**
* string pd_addr = 2;
*/
public java.lang.String getPdAddr() {
java.lang.Object ref = pdAddr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pdAddr_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string pd_addr = 2;
*/
public com.google.protobuf.ByteString
getPdAddrBytes() {
java.lang.Object ref = pdAddr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pdAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string pd_addr = 2;
*/
public Builder setPdAddr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pdAddr_ = value;
onChanged();
return this;
}
/**
* string pd_addr = 2;
*/
public Builder clearPdAddr() {
pdAddr_ = getDefaultInstance().getPdAddr();
onChanged();
return this;
}
/**
* string pd_addr = 2;
*/
public Builder setPdAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pdAddr_ = value;
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:import_kvpb.ImportEngineRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.ImportEngineRequest)
private static final org.tikv.kvproto.ImportKvpb.ImportEngineRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.ImportEngineRequest();
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ImportEngineRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ImportEngineRequest(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.ImportKvpb.ImportEngineRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ImportEngineResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.ImportEngineResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.ImportEngineResponse}
*/
public static final class ImportEngineResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.ImportEngineResponse)
ImportEngineResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ImportEngineResponse.newBuilder() to construct.
private ImportEngineResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ImportEngineResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ImportEngineResponse(
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.ImportKvpb.internal_static_import_kvpb_ImportEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.ImportEngineResponse.class, org.tikv.kvproto.ImportKvpb.ImportEngineResponse.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.ImportKvpb.ImportEngineResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.ImportEngineResponse other = (org.tikv.kvproto.ImportKvpb.ImportEngineResponse) 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.ImportKvpb.ImportEngineResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse 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.ImportKvpb.ImportEngineResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse 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.ImportKvpb.ImportEngineResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse 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.ImportKvpb.ImportEngineResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse 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.ImportKvpb.ImportEngineResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse 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.ImportKvpb.ImportEngineResponse 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 import_kvpb.ImportEngineResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.ImportEngineResponse)
org.tikv.kvproto.ImportKvpb.ImportEngineResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_ImportEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.ImportEngineResponse.class, org.tikv.kvproto.ImportKvpb.ImportEngineResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.ImportEngineResponse.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.ImportKvpb.internal_static_import_kvpb_ImportEngineResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.ImportEngineResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.ImportEngineResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.ImportEngineResponse build() {
org.tikv.kvproto.ImportKvpb.ImportEngineResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.ImportEngineResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.ImportEngineResponse result = new org.tikv.kvproto.ImportKvpb.ImportEngineResponse(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.ImportKvpb.ImportEngineResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.ImportEngineResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.ImportEngineResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.ImportEngineResponse.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.ImportKvpb.ImportEngineResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.ImportEngineResponse) 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:import_kvpb.ImportEngineResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.ImportEngineResponse)
private static final org.tikv.kvproto.ImportKvpb.ImportEngineResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.ImportEngineResponse();
}
public static org.tikv.kvproto.ImportKvpb.ImportEngineResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ImportEngineResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ImportEngineResponse(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.ImportKvpb.ImportEngineResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CleanupEngineRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.CleanupEngineRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
}
/**
* Protobuf type {@code import_kvpb.CleanupEngineRequest}
*/
public static final class CleanupEngineRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.CleanupEngineRequest)
CleanupEngineRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CleanupEngineRequest.newBuilder() to construct.
private CleanupEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CleanupEngineRequest() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CleanupEngineRequest(
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: {
uuid_ = 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.ImportKvpb.internal_static_import_kvpb_CleanupEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.class, org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
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.ImportKvpb.CleanupEngineRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.CleanupEngineRequest other = (org.tikv.kvproto.ImportKvpb.CleanupEngineRequest) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest 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.ImportKvpb.CleanupEngineRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest 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.ImportKvpb.CleanupEngineRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest 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.ImportKvpb.CleanupEngineRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest 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.ImportKvpb.CleanupEngineRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest 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.ImportKvpb.CleanupEngineRequest 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 import_kvpb.CleanupEngineRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.CleanupEngineRequest)
org.tikv.kvproto.ImportKvpb.CleanupEngineRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.class, org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.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();
uuid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.CleanupEngineRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.CleanupEngineRequest build() {
org.tikv.kvproto.ImportKvpb.CleanupEngineRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.CleanupEngineRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.CleanupEngineRequest result = new org.tikv.kvproto.ImportKvpb.CleanupEngineRequest(this);
result.uuid_ = uuid_;
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.ImportKvpb.CleanupEngineRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.CleanupEngineRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.CleanupEngineRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.CleanupEngineRequest.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
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.ImportKvpb.CleanupEngineRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.CleanupEngineRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
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:import_kvpb.CleanupEngineRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.CleanupEngineRequest)
private static final org.tikv.kvproto.ImportKvpb.CleanupEngineRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.CleanupEngineRequest();
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CleanupEngineRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CleanupEngineRequest(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.ImportKvpb.CleanupEngineRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CleanupEngineResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.CleanupEngineResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.CleanupEngineResponse}
*/
public static final class CleanupEngineResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.CleanupEngineResponse)
CleanupEngineResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CleanupEngineResponse.newBuilder() to construct.
private CleanupEngineResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CleanupEngineResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CleanupEngineResponse(
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.ImportKvpb.internal_static_import_kvpb_CleanupEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.class, org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.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.ImportKvpb.CleanupEngineResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.CleanupEngineResponse other = (org.tikv.kvproto.ImportKvpb.CleanupEngineResponse) 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.ImportKvpb.CleanupEngineResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse 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.ImportKvpb.CleanupEngineResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse 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.ImportKvpb.CleanupEngineResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse 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.ImportKvpb.CleanupEngineResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse 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.ImportKvpb.CleanupEngineResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse 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.ImportKvpb.CleanupEngineResponse 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 import_kvpb.CleanupEngineResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.CleanupEngineResponse)
org.tikv.kvproto.ImportKvpb.CleanupEngineResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CleanupEngineResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.class, org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.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.ImportKvpb.internal_static_import_kvpb_CleanupEngineResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.CleanupEngineResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.CleanupEngineResponse build() {
org.tikv.kvproto.ImportKvpb.CleanupEngineResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.CleanupEngineResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.CleanupEngineResponse result = new org.tikv.kvproto.ImportKvpb.CleanupEngineResponse(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.ImportKvpb.CleanupEngineResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.CleanupEngineResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.CleanupEngineResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.CleanupEngineResponse.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.ImportKvpb.CleanupEngineResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.CleanupEngineResponse) 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:import_kvpb.CleanupEngineResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.CleanupEngineResponse)
private static final org.tikv.kvproto.ImportKvpb.CleanupEngineResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.CleanupEngineResponse();
}
public static org.tikv.kvproto.ImportKvpb.CleanupEngineResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CleanupEngineResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CleanupEngineResponse(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.ImportKvpb.CleanupEngineResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactClusterRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.CompactClusterRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string pd_addr = 1;
*/
java.lang.String getPdAddr();
/**
* string pd_addr = 1;
*/
com.google.protobuf.ByteString
getPdAddrBytes();
/**
* .import_sstpb.CompactRequest request = 2;
*/
boolean hasRequest();
/**
* .import_sstpb.CompactRequest request = 2;
*/
org.tikv.kvproto.ImportSstpb.CompactRequest getRequest();
/**
* .import_sstpb.CompactRequest request = 2;
*/
org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder getRequestOrBuilder();
}
/**
* Protobuf type {@code import_kvpb.CompactClusterRequest}
*/
public static final class CompactClusterRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.CompactClusterRequest)
CompactClusterRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactClusterRequest.newBuilder() to construct.
private CompactClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactClusterRequest() {
pdAddr_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactClusterRequest(
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();
pdAddr_ = s;
break;
}
case 18: {
org.tikv.kvproto.ImportSstpb.CompactRequest.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(org.tikv.kvproto.ImportSstpb.CompactRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = 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.ImportKvpb.internal_static_import_kvpb_CompactClusterRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CompactClusterRequest.class, org.tikv.kvproto.ImportKvpb.CompactClusterRequest.Builder.class);
}
public static final int PD_ADDR_FIELD_NUMBER = 1;
private volatile java.lang.Object pdAddr_;
/**
* string pd_addr = 1;
*/
public java.lang.String getPdAddr() {
java.lang.Object ref = pdAddr_;
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();
pdAddr_ = s;
return s;
}
}
/**
* string pd_addr = 1;
*/
public com.google.protobuf.ByteString
getPdAddrBytes() {
java.lang.Object ref = pdAddr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pdAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUEST_FIELD_NUMBER = 2;
private org.tikv.kvproto.ImportSstpb.CompactRequest request_;
/**
* .import_sstpb.CompactRequest request = 2;
*/
public boolean hasRequest() {
return request_ != null;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.CompactRequest getRequest() {
return request_ == null ? org.tikv.kvproto.ImportSstpb.CompactRequest.getDefaultInstance() : request_;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder getRequestOrBuilder() {
return getRequest();
}
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 (!getPdAddrBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pdAddr_);
}
if (request_ != null) {
output.writeMessage(2, getRequest());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPdAddrBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pdAddr_);
}
if (request_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRequest());
}
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.ImportKvpb.CompactClusterRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.CompactClusterRequest other = (org.tikv.kvproto.ImportKvpb.CompactClusterRequest) obj;
boolean result = true;
result = result && getPdAddr()
.equals(other.getPdAddr());
result = result && (hasRequest() == other.hasRequest());
if (hasRequest()) {
result = result && getRequest()
.equals(other.getRequest());
}
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) + PD_ADDR_FIELD_NUMBER;
hash = (53 * hash) + getPdAddr().hashCode();
if (hasRequest()) {
hash = (37 * hash) + REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getRequest().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest 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.ImportKvpb.CompactClusterRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest 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.ImportKvpb.CompactClusterRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest 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.ImportKvpb.CompactClusterRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest 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.ImportKvpb.CompactClusterRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest 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.ImportKvpb.CompactClusterRequest 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 import_kvpb.CompactClusterRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.CompactClusterRequest)
org.tikv.kvproto.ImportKvpb.CompactClusterRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CompactClusterRequest.class, org.tikv.kvproto.ImportKvpb.CompactClusterRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.CompactClusterRequest.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();
pdAddr_ = "";
if (requestBuilder_ == null) {
request_ = null;
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.CompactClusterRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.CompactClusterRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.CompactClusterRequest build() {
org.tikv.kvproto.ImportKvpb.CompactClusterRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.CompactClusterRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.CompactClusterRequest result = new org.tikv.kvproto.ImportKvpb.CompactClusterRequest(this);
result.pdAddr_ = pdAddr_;
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.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.ImportKvpb.CompactClusterRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.CompactClusterRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.CompactClusterRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.CompactClusterRequest.getDefaultInstance()) return this;
if (!other.getPdAddr().isEmpty()) {
pdAddr_ = other.pdAddr_;
onChanged();
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
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.ImportKvpb.CompactClusterRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.CompactClusterRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object pdAddr_ = "";
/**
* string pd_addr = 1;
*/
public java.lang.String getPdAddr() {
java.lang.Object ref = pdAddr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pdAddr_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string pd_addr = 1;
*/
public com.google.protobuf.ByteString
getPdAddrBytes() {
java.lang.Object ref = pdAddr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pdAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string pd_addr = 1;
*/
public Builder setPdAddr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pdAddr_ = value;
onChanged();
return this;
}
/**
* string pd_addr = 1;
*/
public Builder clearPdAddr() {
pdAddr_ = getDefaultInstance().getPdAddr();
onChanged();
return this;
}
/**
* string pd_addr = 1;
*/
public Builder setPdAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pdAddr_ = value;
onChanged();
return this;
}
private org.tikv.kvproto.ImportSstpb.CompactRequest request_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.CompactRequest, org.tikv.kvproto.ImportSstpb.CompactRequest.Builder, org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder> requestBuilder_;
/**
* .import_sstpb.CompactRequest request = 2;
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.CompactRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? org.tikv.kvproto.ImportSstpb.CompactRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public Builder setRequest(org.tikv.kvproto.ImportSstpb.CompactRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public Builder setRequest(
org.tikv.kvproto.ImportSstpb.CompactRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public Builder mergeRequest(org.tikv.kvproto.ImportSstpb.CompactRequest value) {
if (requestBuilder_ == null) {
if (request_ != null) {
request_ =
org.tikv.kvproto.ImportSstpb.CompactRequest.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
request_ = null;
requestBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.CompactRequest.Builder getRequestBuilder() {
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
public org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
org.tikv.kvproto.ImportSstpb.CompactRequest.getDefaultInstance() : request_;
}
}
/**
* .import_sstpb.CompactRequest request = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.CompactRequest, org.tikv.kvproto.ImportSstpb.CompactRequest.Builder, org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.CompactRequest, org.tikv.kvproto.ImportSstpb.CompactRequest.Builder, org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
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:import_kvpb.CompactClusterRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.CompactClusterRequest)
private static final org.tikv.kvproto.ImportKvpb.CompactClusterRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.CompactClusterRequest();
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CompactClusterRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactClusterRequest(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.ImportKvpb.CompactClusterRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactClusterResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.CompactClusterResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.CompactClusterResponse}
*/
public static final class CompactClusterResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.CompactClusterResponse)
CompactClusterResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactClusterResponse.newBuilder() to construct.
private CompactClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactClusterResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactClusterResponse(
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.ImportKvpb.internal_static_import_kvpb_CompactClusterResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CompactClusterResponse.class, org.tikv.kvproto.ImportKvpb.CompactClusterResponse.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.ImportKvpb.CompactClusterResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.CompactClusterResponse other = (org.tikv.kvproto.ImportKvpb.CompactClusterResponse) 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.ImportKvpb.CompactClusterResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse 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.ImportKvpb.CompactClusterResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse 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.ImportKvpb.CompactClusterResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse 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.ImportKvpb.CompactClusterResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse 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.ImportKvpb.CompactClusterResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse 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.ImportKvpb.CompactClusterResponse 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 import_kvpb.CompactClusterResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.CompactClusterResponse)
org.tikv.kvproto.ImportKvpb.CompactClusterResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_CompactClusterResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.CompactClusterResponse.class, org.tikv.kvproto.ImportKvpb.CompactClusterResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.CompactClusterResponse.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.ImportKvpb.internal_static_import_kvpb_CompactClusterResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.CompactClusterResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.CompactClusterResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.CompactClusterResponse build() {
org.tikv.kvproto.ImportKvpb.CompactClusterResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.CompactClusterResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.CompactClusterResponse result = new org.tikv.kvproto.ImportKvpb.CompactClusterResponse(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.ImportKvpb.CompactClusterResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.CompactClusterResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.CompactClusterResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.CompactClusterResponse.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.ImportKvpb.CompactClusterResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.CompactClusterResponse) 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:import_kvpb.CompactClusterResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.CompactClusterResponse)
private static final org.tikv.kvproto.ImportKvpb.CompactClusterResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.CompactClusterResponse();
}
public static org.tikv.kvproto.ImportKvpb.CompactClusterResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CompactClusterResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactClusterResponse(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.ImportKvpb.CompactClusterResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetVersionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.GetVersionRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.GetVersionRequest}
*/
public static final class GetVersionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.GetVersionRequest)
GetVersionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetVersionRequest.newBuilder() to construct.
private GetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetVersionRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetVersionRequest(
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.ImportKvpb.internal_static_import_kvpb_GetVersionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetVersionRequest.class, org.tikv.kvproto.ImportKvpb.GetVersionRequest.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.ImportKvpb.GetVersionRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.GetVersionRequest other = (org.tikv.kvproto.ImportKvpb.GetVersionRequest) 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.ImportKvpb.GetVersionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest 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.ImportKvpb.GetVersionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest 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.ImportKvpb.GetVersionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest 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.ImportKvpb.GetVersionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest 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.ImportKvpb.GetVersionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest 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.ImportKvpb.GetVersionRequest 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 import_kvpb.GetVersionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.GetVersionRequest)
org.tikv.kvproto.ImportKvpb.GetVersionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetVersionRequest.class, org.tikv.kvproto.ImportKvpb.GetVersionRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.GetVersionRequest.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.ImportKvpb.internal_static_import_kvpb_GetVersionRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.GetVersionRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.GetVersionRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.GetVersionRequest build() {
org.tikv.kvproto.ImportKvpb.GetVersionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.GetVersionRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.GetVersionRequest result = new org.tikv.kvproto.ImportKvpb.GetVersionRequest(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.ImportKvpb.GetVersionRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.GetVersionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.GetVersionRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.GetVersionRequest.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.ImportKvpb.GetVersionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.GetVersionRequest) 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:import_kvpb.GetVersionRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.GetVersionRequest)
private static final org.tikv.kvproto.ImportKvpb.GetVersionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.GetVersionRequest();
}
public static org.tikv.kvproto.ImportKvpb.GetVersionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetVersionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetVersionRequest(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.ImportKvpb.GetVersionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetVersionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.GetVersionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string version = 1;
*/
java.lang.String getVersion();
/**
* string version = 1;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* string commit = 2;
*/
java.lang.String getCommit();
/**
* string commit = 2;
*/
com.google.protobuf.ByteString
getCommitBytes();
}
/**
* Protobuf type {@code import_kvpb.GetVersionResponse}
*/
public static final class GetVersionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.GetVersionResponse)
GetVersionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetVersionResponse.newBuilder() to construct.
private GetVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetVersionResponse() {
version_ = "";
commit_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetVersionResponse(
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();
version_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
commit_ = s;
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.ImportKvpb.internal_static_import_kvpb_GetVersionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetVersionResponse.class, org.tikv.kvproto.ImportKvpb.GetVersionResponse.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object version_;
/**
* string version = 1;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 1;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMIT_FIELD_NUMBER = 2;
private volatile java.lang.Object commit_;
/**
* string commit = 2;
*/
public java.lang.String getCommit() {
java.lang.Object ref = commit_;
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();
commit_ = s;
return s;
}
}
/**
* string commit = 2;
*/
public com.google.protobuf.ByteString
getCommitBytes() {
java.lang.Object ref = commit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (!getCommitBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commit_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
if (!getCommitBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.ImportKvpb.GetVersionResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.GetVersionResponse other = (org.tikv.kvproto.ImportKvpb.GetVersionResponse) obj;
boolean result = true;
result = result && getVersion()
.equals(other.getVersion());
result = result && getCommit()
.equals(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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + getCommit().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse 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.ImportKvpb.GetVersionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse 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.ImportKvpb.GetVersionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse 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.ImportKvpb.GetVersionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse 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.ImportKvpb.GetVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse 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.ImportKvpb.GetVersionResponse 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 import_kvpb.GetVersionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.GetVersionResponse)
org.tikv.kvproto.ImportKvpb.GetVersionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetVersionResponse.class, org.tikv.kvproto.ImportKvpb.GetVersionResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.GetVersionResponse.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();
version_ = "";
commit_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetVersionResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.GetVersionResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.GetVersionResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.GetVersionResponse build() {
org.tikv.kvproto.ImportKvpb.GetVersionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.GetVersionResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.GetVersionResponse result = new org.tikv.kvproto.ImportKvpb.GetVersionResponse(this);
result.version_ = version_;
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.ImportKvpb.GetVersionResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.GetVersionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.GetVersionResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.GetVersionResponse.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (!other.getCommit().isEmpty()) {
commit_ = other.commit_;
onChanged();
}
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.ImportKvpb.GetVersionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.GetVersionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object version_ = "";
/**
* string version = 1;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 1;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 1;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string version = 1;
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 1;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private java.lang.Object commit_ = "";
/**
* string commit = 2;
*/
public java.lang.String getCommit() {
java.lang.Object ref = commit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string commit = 2;
*/
public com.google.protobuf.ByteString
getCommitBytes() {
java.lang.Object ref = commit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string commit = 2;
*/
public Builder setCommit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
commit_ = value;
onChanged();
return this;
}
/**
* string commit = 2;
*/
public Builder clearCommit() {
commit_ = getDefaultInstance().getCommit();
onChanged();
return this;
}
/**
* string commit = 2;
*/
public Builder setCommitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
commit_ = value;
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:import_kvpb.GetVersionResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.GetVersionResponse)
private static final org.tikv.kvproto.ImportKvpb.GetVersionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.GetVersionResponse();
}
public static org.tikv.kvproto.ImportKvpb.GetVersionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetVersionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetVersionResponse(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.ImportKvpb.GetVersionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetMetricsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.GetMetricsRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_kvpb.GetMetricsRequest}
*/
public static final class GetMetricsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.GetMetricsRequest)
GetMetricsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetMetricsRequest.newBuilder() to construct.
private GetMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetMetricsRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetMetricsRequest(
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.ImportKvpb.internal_static_import_kvpb_GetMetricsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetMetricsRequest.class, org.tikv.kvproto.ImportKvpb.GetMetricsRequest.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.ImportKvpb.GetMetricsRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.GetMetricsRequest other = (org.tikv.kvproto.ImportKvpb.GetMetricsRequest) 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.ImportKvpb.GetMetricsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest 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.ImportKvpb.GetMetricsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest 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.ImportKvpb.GetMetricsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest 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.ImportKvpb.GetMetricsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest 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.ImportKvpb.GetMetricsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest 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.ImportKvpb.GetMetricsRequest 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 import_kvpb.GetMetricsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.GetMetricsRequest)
org.tikv.kvproto.ImportKvpb.GetMetricsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetMetricsRequest.class, org.tikv.kvproto.ImportKvpb.GetMetricsRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.GetMetricsRequest.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.ImportKvpb.internal_static_import_kvpb_GetMetricsRequest_descriptor;
}
public org.tikv.kvproto.ImportKvpb.GetMetricsRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.GetMetricsRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.GetMetricsRequest build() {
org.tikv.kvproto.ImportKvpb.GetMetricsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.GetMetricsRequest buildPartial() {
org.tikv.kvproto.ImportKvpb.GetMetricsRequest result = new org.tikv.kvproto.ImportKvpb.GetMetricsRequest(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.ImportKvpb.GetMetricsRequest) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.GetMetricsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.GetMetricsRequest other) {
if (other == org.tikv.kvproto.ImportKvpb.GetMetricsRequest.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.ImportKvpb.GetMetricsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.GetMetricsRequest) 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:import_kvpb.GetMetricsRequest)
}
// @@protoc_insertion_point(class_scope:import_kvpb.GetMetricsRequest)
private static final org.tikv.kvproto.ImportKvpb.GetMetricsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.GetMetricsRequest();
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetMetricsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetMetricsRequest(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.ImportKvpb.GetMetricsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetMetricsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.GetMetricsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string prometheus = 1;
*/
java.lang.String getPrometheus();
/**
* string prometheus = 1;
*/
com.google.protobuf.ByteString
getPrometheusBytes();
}
/**
* Protobuf type {@code import_kvpb.GetMetricsResponse}
*/
public static final class GetMetricsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.GetMetricsResponse)
GetMetricsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetMetricsResponse.newBuilder() to construct.
private GetMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetMetricsResponse() {
prometheus_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetMetricsResponse(
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();
prometheus_ = s;
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.ImportKvpb.internal_static_import_kvpb_GetMetricsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetMetricsResponse.class, org.tikv.kvproto.ImportKvpb.GetMetricsResponse.Builder.class);
}
public static final int PROMETHEUS_FIELD_NUMBER = 1;
private volatile java.lang.Object prometheus_;
/**
* string prometheus = 1;
*/
public java.lang.String getPrometheus() {
java.lang.Object ref = prometheus_;
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();
prometheus_ = s;
return s;
}
}
/**
* string prometheus = 1;
*/
public com.google.protobuf.ByteString
getPrometheusBytes() {
java.lang.Object ref = prometheus_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prometheus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getPrometheusBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, prometheus_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPrometheusBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, prometheus_);
}
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.ImportKvpb.GetMetricsResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.GetMetricsResponse other = (org.tikv.kvproto.ImportKvpb.GetMetricsResponse) obj;
boolean result = true;
result = result && getPrometheus()
.equals(other.getPrometheus());
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) + PROMETHEUS_FIELD_NUMBER;
hash = (53 * hash) + getPrometheus().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse 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.ImportKvpb.GetMetricsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse 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.ImportKvpb.GetMetricsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse 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.ImportKvpb.GetMetricsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse 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.ImportKvpb.GetMetricsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse 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.ImportKvpb.GetMetricsResponse 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 import_kvpb.GetMetricsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.GetMetricsResponse)
org.tikv.kvproto.ImportKvpb.GetMetricsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.GetMetricsResponse.class, org.tikv.kvproto.ImportKvpb.GetMetricsResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.GetMetricsResponse.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();
prometheus_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_GetMetricsResponse_descriptor;
}
public org.tikv.kvproto.ImportKvpb.GetMetricsResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.GetMetricsResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.GetMetricsResponse build() {
org.tikv.kvproto.ImportKvpb.GetMetricsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.GetMetricsResponse buildPartial() {
org.tikv.kvproto.ImportKvpb.GetMetricsResponse result = new org.tikv.kvproto.ImportKvpb.GetMetricsResponse(this);
result.prometheus_ = prometheus_;
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.ImportKvpb.GetMetricsResponse) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.GetMetricsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.GetMetricsResponse other) {
if (other == org.tikv.kvproto.ImportKvpb.GetMetricsResponse.getDefaultInstance()) return this;
if (!other.getPrometheus().isEmpty()) {
prometheus_ = other.prometheus_;
onChanged();
}
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.ImportKvpb.GetMetricsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.GetMetricsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object prometheus_ = "";
/**
* string prometheus = 1;
*/
public java.lang.String getPrometheus() {
java.lang.Object ref = prometheus_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
prometheus_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string prometheus = 1;
*/
public com.google.protobuf.ByteString
getPrometheusBytes() {
java.lang.Object ref = prometheus_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prometheus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string prometheus = 1;
*/
public Builder setPrometheus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
prometheus_ = value;
onChanged();
return this;
}
/**
* string prometheus = 1;
*/
public Builder clearPrometheus() {
prometheus_ = getDefaultInstance().getPrometheus();
onChanged();
return this;
}
/**
* string prometheus = 1;
*/
public Builder setPrometheusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
prometheus_ = value;
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:import_kvpb.GetMetricsResponse)
}
// @@protoc_insertion_point(class_scope:import_kvpb.GetMetricsResponse)
private static final org.tikv.kvproto.ImportKvpb.GetMetricsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.GetMetricsResponse();
}
public static org.tikv.kvproto.ImportKvpb.GetMetricsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetMetricsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetMetricsResponse(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.ImportKvpb.GetMetricsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.Error)
com.google.protobuf.MessageOrBuilder {
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
boolean hasEngineNotFound();
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound getEngineNotFound();
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder getEngineNotFoundOrBuilder();
}
/**
* Protobuf type {@code import_kvpb.Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.Error)
ErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Error() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Error(
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.ImportKvpb.Error.EngineNotFound.Builder subBuilder = null;
if (engineNotFound_ != null) {
subBuilder = engineNotFound_.toBuilder();
}
engineNotFound_ = input.readMessage(org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(engineNotFound_);
engineNotFound_ = 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.ImportKvpb.internal_static_import_kvpb_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.Error.class, org.tikv.kvproto.ImportKvpb.Error.Builder.class);
}
public interface EngineNotFoundOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_kvpb.Error.EngineNotFound)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
}
/**
* Protobuf type {@code import_kvpb.Error.EngineNotFound}
*/
public static final class EngineNotFound extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_kvpb.Error.EngineNotFound)
EngineNotFoundOrBuilder {
private static final long serialVersionUID = 0L;
// Use EngineNotFound.newBuilder() to construct.
private EngineNotFound(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EngineNotFound() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EngineNotFound(
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: {
uuid_ = 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.ImportKvpb.internal_static_import_kvpb_Error_EngineNotFound_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_EngineNotFound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.class, org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
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 (!uuid_.isEmpty()) {
output.writeBytes(1, uuid_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!uuid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
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.ImportKvpb.Error.EngineNotFound)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound other = (org.tikv.kvproto.ImportKvpb.Error.EngineNotFound) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound 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.ImportKvpb.Error.EngineNotFound parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound 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.ImportKvpb.Error.EngineNotFound parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound 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.ImportKvpb.Error.EngineNotFound parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound 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.ImportKvpb.Error.EngineNotFound parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound 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.ImportKvpb.Error.EngineNotFound 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 import_kvpb.Error.EngineNotFound}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.Error.EngineNotFound)
org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_EngineNotFound_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_EngineNotFound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.class, org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.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();
uuid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_EngineNotFound_descriptor;
}
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFound getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFound build() {
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFound buildPartial() {
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound result = new org.tikv.kvproto.ImportKvpb.Error.EngineNotFound(this);
result.uuid_ = uuid_;
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.ImportKvpb.Error.EngineNotFound) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.Error.EngineNotFound)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.Error.EngineNotFound other) {
if (other == org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
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.ImportKvpb.Error.EngineNotFound parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.Error.EngineNotFound) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes uuid = 1;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* bytes uuid = 1;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* bytes uuid = 1;
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
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:import_kvpb.Error.EngineNotFound)
}
// @@protoc_insertion_point(class_scope:import_kvpb.Error.EngineNotFound)
private static final org.tikv.kvproto.ImportKvpb.Error.EngineNotFound DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.Error.EngineNotFound();
}
public static org.tikv.kvproto.ImportKvpb.Error.EngineNotFound getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public EngineNotFound parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EngineNotFound(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.ImportKvpb.Error.EngineNotFound getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENGINE_NOT_FOUND_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportKvpb.Error.EngineNotFound engineNotFound_;
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public boolean hasEngineNotFound() {
return engineNotFound_ != null;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFound getEngineNotFound() {
return engineNotFound_ == null ? org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.getDefaultInstance() : engineNotFound_;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder getEngineNotFoundOrBuilder() {
return getEngineNotFound();
}
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 (engineNotFound_ != null) {
output.writeMessage(1, getEngineNotFound());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (engineNotFound_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEngineNotFound());
}
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.ImportKvpb.Error)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportKvpb.Error other = (org.tikv.kvproto.ImportKvpb.Error) obj;
boolean result = true;
result = result && (hasEngineNotFound() == other.hasEngineNotFound());
if (hasEngineNotFound()) {
result = result && getEngineNotFound()
.equals(other.getEngineNotFound());
}
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 (hasEngineNotFound()) {
hash = (37 * hash) + ENGINE_NOT_FOUND_FIELD_NUMBER;
hash = (53 * hash) + getEngineNotFound().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportKvpb.Error parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Error 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.ImportKvpb.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Error 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.ImportKvpb.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportKvpb.Error parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportKvpb.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Error 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.ImportKvpb.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Error 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.ImportKvpb.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportKvpb.Error 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.ImportKvpb.Error 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 import_kvpb.Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_kvpb.Error)
org.tikv.kvproto.ImportKvpb.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportKvpb.Error.class, org.tikv.kvproto.ImportKvpb.Error.Builder.class);
}
// Construct using org.tikv.kvproto.ImportKvpb.Error.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 (engineNotFoundBuilder_ == null) {
engineNotFound_ = null;
} else {
engineNotFound_ = null;
engineNotFoundBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportKvpb.internal_static_import_kvpb_Error_descriptor;
}
public org.tikv.kvproto.ImportKvpb.Error getDefaultInstanceForType() {
return org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance();
}
public org.tikv.kvproto.ImportKvpb.Error build() {
org.tikv.kvproto.ImportKvpb.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportKvpb.Error buildPartial() {
org.tikv.kvproto.ImportKvpb.Error result = new org.tikv.kvproto.ImportKvpb.Error(this);
if (engineNotFoundBuilder_ == null) {
result.engineNotFound_ = engineNotFound_;
} else {
result.engineNotFound_ = engineNotFoundBuilder_.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.ImportKvpb.Error) {
return mergeFrom((org.tikv.kvproto.ImportKvpb.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportKvpb.Error other) {
if (other == org.tikv.kvproto.ImportKvpb.Error.getDefaultInstance()) return this;
if (other.hasEngineNotFound()) {
mergeEngineNotFound(other.getEngineNotFound());
}
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.ImportKvpb.Error parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportKvpb.Error) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportKvpb.Error.EngineNotFound engineNotFound_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound, org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder, org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder> engineNotFoundBuilder_;
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public boolean hasEngineNotFound() {
return engineNotFoundBuilder_ != null || engineNotFound_ != null;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFound getEngineNotFound() {
if (engineNotFoundBuilder_ == null) {
return engineNotFound_ == null ? org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.getDefaultInstance() : engineNotFound_;
} else {
return engineNotFoundBuilder_.getMessage();
}
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public Builder setEngineNotFound(org.tikv.kvproto.ImportKvpb.Error.EngineNotFound value) {
if (engineNotFoundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
engineNotFound_ = value;
onChanged();
} else {
engineNotFoundBuilder_.setMessage(value);
}
return this;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public Builder setEngineNotFound(
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder builderForValue) {
if (engineNotFoundBuilder_ == null) {
engineNotFound_ = builderForValue.build();
onChanged();
} else {
engineNotFoundBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public Builder mergeEngineNotFound(org.tikv.kvproto.ImportKvpb.Error.EngineNotFound value) {
if (engineNotFoundBuilder_ == null) {
if (engineNotFound_ != null) {
engineNotFound_ =
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.newBuilder(engineNotFound_).mergeFrom(value).buildPartial();
} else {
engineNotFound_ = value;
}
onChanged();
} else {
engineNotFoundBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public Builder clearEngineNotFound() {
if (engineNotFoundBuilder_ == null) {
engineNotFound_ = null;
onChanged();
} else {
engineNotFound_ = null;
engineNotFoundBuilder_ = null;
}
return this;
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder getEngineNotFoundBuilder() {
onChanged();
return getEngineNotFoundFieldBuilder().getBuilder();
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
public org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder getEngineNotFoundOrBuilder() {
if (engineNotFoundBuilder_ != null) {
return engineNotFoundBuilder_.getMessageOrBuilder();
} else {
return engineNotFound_ == null ?
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.getDefaultInstance() : engineNotFound_;
}
}
/**
*
* This can happen if the client hasn't opened the engine, or the server
* restarts while the client is writing or closing. An unclosed engine will
* be removed on server restart, so the client should not continue but
* restart the previous job in that case.
*
*
* .import_kvpb.Error.EngineNotFound engine_not_found = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound, org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder, org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder>
getEngineNotFoundFieldBuilder() {
if (engineNotFoundBuilder_ == null) {
engineNotFoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportKvpb.Error.EngineNotFound, org.tikv.kvproto.ImportKvpb.Error.EngineNotFound.Builder, org.tikv.kvproto.ImportKvpb.Error.EngineNotFoundOrBuilder>(
getEngineNotFound(),
getParentForChildren(),
isClean());
engineNotFound_ = null;
}
return engineNotFoundBuilder_;
}
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:import_kvpb.Error)
}
// @@protoc_insertion_point(class_scope:import_kvpb.Error)
private static final org.tikv.kvproto.ImportKvpb.Error DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportKvpb.Error();
}
public static org.tikv.kvproto.ImportKvpb.Error getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Error parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Error(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.ImportKvpb.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_SwitchModeRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_SwitchModeRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_SwitchModeResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_SwitchModeResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_OpenEngineRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_OpenEngineRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_OpenEngineResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_OpenEngineResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_WriteHead_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_WriteHead_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_Mutation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_Mutation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_WriteBatch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_WriteBatch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_WriteEngineRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_WriteEngineRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_KVPair_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_KVPair_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_WriteEngineV3Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_WriteEngineV3Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_WriteEngineResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_WriteEngineResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_CloseEngineRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_CloseEngineRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_CloseEngineResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_CloseEngineResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_ImportEngineRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_ImportEngineRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_ImportEngineResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_ImportEngineResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_CleanupEngineRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_CleanupEngineRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_CleanupEngineResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_CleanupEngineResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_CompactClusterRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_CompactClusterRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_CompactClusterResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_CompactClusterResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_GetVersionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_GetVersionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_GetVersionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_GetVersionResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_GetMetricsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_GetMetricsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_GetMetricsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_GetMetricsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_Error_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_Error_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_kvpb_Error_EngineNotFound_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_kvpb_Error_EngineNotFound_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021import_kvpb.proto\022\013import_kvpb\032\022import" +
"_sstpb.proto\032\024gogoproto/gogo.proto\032\017rust" +
"proto.proto\"V\n\021SwitchModeRequest\022\017\n\007pd_a" +
"ddr\030\001 \001(\t\0220\n\007request\030\002 \001(\0132\037.import_sstp" +
"b.SwitchModeRequest\"\024\n\022SwitchModeRespons" +
"e\"5\n\021OpenEngineRequest\022\014\n\004uuid\030\001 \001(\014\022\022\n\n" +
"key_prefix\030\002 \001(\014\"\024\n\022OpenEngineResponse\"\031" +
"\n\tWriteHead\022\014\n\004uuid\030\001 \001(\014\"[\n\010Mutation\022$\n" +
"\002op\030\001 \001(\0162\030.import_kvpb.Mutation.OP\022\013\n\003k" +
"ey\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\"\r\n\002OP\022\007\n\003Put\020\000\"I" +
"\n\nWriteBatch\022\021\n\tcommit_ts\030\001 \001(\004\022(\n\tmutat" +
"ions\030\002 \003(\0132\025.import_kvpb.Mutation\"o\n\022Wri" +
"teEngineRequest\022&\n\004head\030\001 \001(\0132\026.import_k" +
"vpb.WriteHeadH\000\022(\n\005batch\030\002 \001(\0132\027.import_" +
"kvpb.WriteBatchH\000B\007\n\005chunk\"$\n\006KVPair\022\013\n\003" +
"key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\"[\n\024WriteEngineV" +
"3Request\022\014\n\004uuid\030\001 \001(\014\022\021\n\tcommit_ts\030\002 \001(" +
"\004\022\"\n\005pairs\030\003 \003(\0132\023.import_kvpb.KVPair\"8\n" +
"\023WriteEngineResponse\022!\n\005error\030\001 \001(\0132\022.im" +
"port_kvpb.Error\"\"\n\022CloseEngineRequest\022\014\n" +
"\004uuid\030\001 \001(\014\"8\n\023CloseEngineResponse\022!\n\005er" +
"ror\030\001 \001(\0132\022.import_kvpb.Error\"4\n\023ImportE" +
"ngineRequest\022\014\n\004uuid\030\001 \001(\014\022\017\n\007pd_addr\030\002 " +
"\001(\t\"\026\n\024ImportEngineResponse\"$\n\024CleanupEn" +
"gineRequest\022\014\n\004uuid\030\001 \001(\014\"\027\n\025CleanupEngi" +
"neResponse\"W\n\025CompactClusterRequest\022\017\n\007p" +
"d_addr\030\001 \001(\t\022-\n\007request\030\002 \001(\0132\034.import_s" +
"stpb.CompactRequest\"\030\n\026CompactClusterRes" +
"ponse\"\023\n\021GetVersionRequest\"5\n\022GetVersion" +
"Response\022\017\n\007version\030\001 \001(\t\022\016\n\006commit\030\002 \001(" +
"\t\"\023\n\021GetMetricsRequest\"(\n\022GetMetricsResp" +
"onse\022\022\n\nprometheus\030\001 \001(\t\"d\n\005Error\022;\n\020eng" +
"ine_not_found\030\001 \001(\0132!.import_kvpb.Error." +
"EngineNotFound\032\036\n\016EngineNotFound\022\014\n\004uuid" +
"\030\001 \001(\0142\336\006\n\010ImportKV\022O\n\nSwitchMode\022\036.impo" +
"rt_kvpb.SwitchModeRequest\032\037.import_kvpb." +
"SwitchModeResponse\"\000\022O\n\nOpenEngine\022\036.imp" +
"ort_kvpb.OpenEngineRequest\032\037.import_kvpb" +
".OpenEngineResponse\"\000\022T\n\013WriteEngine\022\037.i" +
"mport_kvpb.WriteEngineRequest\032 .import_k" +
"vpb.WriteEngineResponse\"\000(\001\022V\n\rWriteEngi" +
"neV3\022!.import_kvpb.WriteEngineV3Request\032" +
" .import_kvpb.WriteEngineResponse\"\000\022R\n\013C" +
"loseEngine\022\037.import_kvpb.CloseEngineRequ" +
"est\032 .import_kvpb.CloseEngineResponse\"\000\022" +
"U\n\014ImportEngine\022 .import_kvpb.ImportEngi" +
"neRequest\032!.import_kvpb.ImportEngineResp" +
"onse\"\000\022X\n\rCleanupEngine\022!.import_kvpb.Cl" +
"eanupEngineRequest\032\".import_kvpb.Cleanup" +
"EngineResponse\"\000\022[\n\016CompactCluster\022\".imp" +
"ort_kvpb.CompactClusterRequest\032#.import_" +
"kvpb.CompactClusterResponse\"\000\022O\n\nGetVers" +
"ion\022\036.import_kvpb.GetVersionRequest\032\037.im" +
"port_kvpb.GetVersionResponse\"\000\022O\n\nGetMet" +
"rics\022\036.import_kvpb.GetMetricsRequest\032\037.i" +
"mport_kvpb.GetMetricsResponse\"\000B\"\n\020org.t" +
"ikv.kvproto\340\342\036\001\310\342\036\001\320\342\036\001\330\250\010\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.tikv.kvproto.ImportSstpb.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
rustproto.Rustproto.getDescriptor(),
}, assigner);
internal_static_import_kvpb_SwitchModeRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_import_kvpb_SwitchModeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_SwitchModeRequest_descriptor,
new java.lang.String[] { "PdAddr", "Request", });
internal_static_import_kvpb_SwitchModeResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_import_kvpb_SwitchModeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_SwitchModeResponse_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_OpenEngineRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_import_kvpb_OpenEngineRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_OpenEngineRequest_descriptor,
new java.lang.String[] { "Uuid", "KeyPrefix", });
internal_static_import_kvpb_OpenEngineResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_import_kvpb_OpenEngineResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_OpenEngineResponse_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_WriteHead_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_import_kvpb_WriteHead_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_WriteHead_descriptor,
new java.lang.String[] { "Uuid", });
internal_static_import_kvpb_Mutation_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_import_kvpb_Mutation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_Mutation_descriptor,
new java.lang.String[] { "Op", "Key", "Value", });
internal_static_import_kvpb_WriteBatch_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_import_kvpb_WriteBatch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_WriteBatch_descriptor,
new java.lang.String[] { "CommitTs", "Mutations", });
internal_static_import_kvpb_WriteEngineRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_import_kvpb_WriteEngineRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_WriteEngineRequest_descriptor,
new java.lang.String[] { "Head", "Batch", "Chunk", });
internal_static_import_kvpb_KVPair_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_import_kvpb_KVPair_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_KVPair_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_import_kvpb_WriteEngineV3Request_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_import_kvpb_WriteEngineV3Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_WriteEngineV3Request_descriptor,
new java.lang.String[] { "Uuid", "CommitTs", "Pairs", });
internal_static_import_kvpb_WriteEngineResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_import_kvpb_WriteEngineResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_WriteEngineResponse_descriptor,
new java.lang.String[] { "Error", });
internal_static_import_kvpb_CloseEngineRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_import_kvpb_CloseEngineRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_CloseEngineRequest_descriptor,
new java.lang.String[] { "Uuid", });
internal_static_import_kvpb_CloseEngineResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_import_kvpb_CloseEngineResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_CloseEngineResponse_descriptor,
new java.lang.String[] { "Error", });
internal_static_import_kvpb_ImportEngineRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_import_kvpb_ImportEngineRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_ImportEngineRequest_descriptor,
new java.lang.String[] { "Uuid", "PdAddr", });
internal_static_import_kvpb_ImportEngineResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_import_kvpb_ImportEngineResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_ImportEngineResponse_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_CleanupEngineRequest_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_import_kvpb_CleanupEngineRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_CleanupEngineRequest_descriptor,
new java.lang.String[] { "Uuid", });
internal_static_import_kvpb_CleanupEngineResponse_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_import_kvpb_CleanupEngineResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_CleanupEngineResponse_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_CompactClusterRequest_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_import_kvpb_CompactClusterRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_CompactClusterRequest_descriptor,
new java.lang.String[] { "PdAddr", "Request", });
internal_static_import_kvpb_CompactClusterResponse_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_import_kvpb_CompactClusterResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_CompactClusterResponse_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_GetVersionRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_import_kvpb_GetVersionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_GetVersionRequest_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_GetVersionResponse_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_import_kvpb_GetVersionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_GetVersionResponse_descriptor,
new java.lang.String[] { "Version", "Commit", });
internal_static_import_kvpb_GetMetricsRequest_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_import_kvpb_GetMetricsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_GetMetricsRequest_descriptor,
new java.lang.String[] { });
internal_static_import_kvpb_GetMetricsResponse_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_import_kvpb_GetMetricsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_GetMetricsResponse_descriptor,
new java.lang.String[] { "Prometheus", });
internal_static_import_kvpb_Error_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_import_kvpb_Error_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_Error_descriptor,
new java.lang.String[] { "EngineNotFound", });
internal_static_import_kvpb_Error_EngineNotFound_descriptor =
internal_static_import_kvpb_Error_descriptor.getNestedTypes().get(0);
internal_static_import_kvpb_Error_EngineNotFound_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_kvpb_Error_EngineNotFound_descriptor,
new java.lang.String[] { "Uuid", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.marshalerAll);
registry.add(com.google.protobuf.GoGoProtos.sizerAll);
registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll);
registry.add(rustproto.Rustproto.liteRuntimeAll);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
org.tikv.kvproto.ImportSstpb.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
rustproto.Rustproto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy