org.tikv.kvproto.ImportSstpb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: import_sstpb.proto
package org.tikv.kvproto;
public final class ImportSstpb {
private ImportSstpb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code import_sstpb.SwitchMode}
*/
public enum SwitchMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Normal = 0;
*/
Normal(0),
/**
* Import = 1;
*/
Import(1),
UNRECOGNIZED(-1),
;
/**
* Normal = 0;
*/
public static final int Normal_VALUE = 0;
/**
* Import = 1;
*/
public static final int Import_VALUE = 1;
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 SwitchMode valueOf(int value) {
return forNumber(value);
}
public static SwitchMode forNumber(int value) {
switch (value) {
case 0: return Normal;
case 1: return Import;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SwitchMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SwitchMode findValueByNumber(int number) {
return SwitchMode.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.ImportSstpb.getDescriptor().getEnumTypes().get(0);
}
private static final SwitchMode[] VALUES = values();
public static SwitchMode 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 SwitchMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:import_sstpb.SwitchMode)
}
public interface SwitchModeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.SwitchModeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .import_sstpb.SwitchMode mode = 1;
*/
int getModeValue();
/**
* .import_sstpb.SwitchMode mode = 1;
*/
org.tikv.kvproto.ImportSstpb.SwitchMode getMode();
}
/**
* Protobuf type {@code import_sstpb.SwitchModeRequest}
*/
public static final class SwitchModeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.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() {
mode_ = 0;
}
@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 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
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.ImportSstpb.internal_static_import_sstpb_SwitchModeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SwitchModeRequest.class, org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder.class);
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public org.tikv.kvproto.ImportSstpb.SwitchMode getMode() {
org.tikv.kvproto.ImportSstpb.SwitchMode result = org.tikv.kvproto.ImportSstpb.SwitchMode.valueOf(mode_);
return result == null ? org.tikv.kvproto.ImportSstpb.SwitchMode.UNRECOGNIZED : result;
}
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 (mode_ != org.tikv.kvproto.ImportSstpb.SwitchMode.Normal.getNumber()) {
output.writeEnum(1, mode_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != org.tikv.kvproto.ImportSstpb.SwitchMode.Normal.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
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.ImportSstpb.SwitchModeRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.SwitchModeRequest other = (org.tikv.kvproto.ImportSstpb.SwitchModeRequest) obj;
boolean result = true;
result = result && mode_ == other.mode_;
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) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.SwitchModeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SwitchModeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.SwitchModeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.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_sstpb.SwitchModeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.SwitchModeRequest)
org.tikv.kvproto.ImportSstpb.SwitchModeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SwitchModeRequest.class, org.tikv.kvproto.ImportSstpb.SwitchModeRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.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();
mode_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.SwitchModeRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.SwitchModeRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.SwitchModeRequest build() {
org.tikv.kvproto.ImportSstpb.SwitchModeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.SwitchModeRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.SwitchModeRequest result = new org.tikv.kvproto.ImportSstpb.SwitchModeRequest(this);
result.mode_ = mode_;
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.ImportSstpb.SwitchModeRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.SwitchModeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.SwitchModeRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.SwitchModeRequest.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
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.ImportSstpb.SwitchModeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.SwitchModeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public org.tikv.kvproto.ImportSstpb.SwitchMode getMode() {
org.tikv.kvproto.ImportSstpb.SwitchMode result = org.tikv.kvproto.ImportSstpb.SwitchMode.valueOf(mode_);
return result == null ? org.tikv.kvproto.ImportSstpb.SwitchMode.UNRECOGNIZED : result;
}
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public Builder setMode(org.tikv.kvproto.ImportSstpb.SwitchMode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
* .import_sstpb.SwitchMode mode = 1;
*/
public Builder clearMode() {
mode_ = 0;
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_sstpb.SwitchModeRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.SwitchModeRequest)
private static final org.tikv.kvproto.ImportSstpb.SwitchModeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.SwitchModeRequest();
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SwitchModeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.SwitchModeResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_sstpb.SwitchModeResponse}
*/
public static final class SwitchModeResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.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.ImportSstpb.internal_static_import_sstpb_SwitchModeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SwitchModeResponse.class, org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.SwitchModeResponse other = (org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SwitchModeResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.SwitchModeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.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_sstpb.SwitchModeResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.SwitchModeResponse)
org.tikv.kvproto.ImportSstpb.SwitchModeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SwitchModeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SwitchModeResponse.class, org.tikv.kvproto.ImportSstpb.SwitchModeResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.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.ImportSstpb.internal_static_import_sstpb_SwitchModeResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.SwitchModeResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.SwitchModeResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.SwitchModeResponse build() {
org.tikv.kvproto.ImportSstpb.SwitchModeResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.SwitchModeResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.SwitchModeResponse result = new org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.SwitchModeResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.SwitchModeResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.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_sstpb.SwitchModeResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.SwitchModeResponse)
private static final org.tikv.kvproto.ImportSstpb.SwitchModeResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.SwitchModeResponse();
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SwitchModeResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.Range)
com.google.protobuf.MessageOrBuilder {
/**
* bytes start = 1;
*/
com.google.protobuf.ByteString getStart();
/**
* bytes end = 2;
*/
com.google.protobuf.ByteString getEnd();
}
/**
* Protobuf type {@code import_sstpb.Range}
*/
public static final class Range extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.Range)
RangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Range.newBuilder() to construct.
private Range(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Range() {
start_ = com.google.protobuf.ByteString.EMPTY;
end_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Range(
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: {
start_ = input.readBytes();
break;
}
case 18: {
end_ = 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.ImportSstpb.internal_static_import_sstpb_Range_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Range_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.Range.class, org.tikv.kvproto.ImportSstpb.Range.Builder.class);
}
public static final int START_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString start_;
/**
* bytes start = 1;
*/
public com.google.protobuf.ByteString getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString end_;
/**
* bytes end = 2;
*/
public com.google.protobuf.ByteString getEnd() {
return end_;
}
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 (!start_.isEmpty()) {
output.writeBytes(1, start_);
}
if (!end_.isEmpty()) {
output.writeBytes(2, end_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!start_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, start_);
}
if (!end_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, end_);
}
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.ImportSstpb.Range)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.Range other = (org.tikv.kvproto.ImportSstpb.Range) obj;
boolean result = true;
result = result && getStart()
.equals(other.getStart());
result = result && getEnd()
.equals(other.getEnd());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + getEnd().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.Range parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Range 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.ImportSstpb.Range parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Range 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.ImportSstpb.Range parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Range parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.Range parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.Range 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.ImportSstpb.Range parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.Range 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.ImportSstpb.Range parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.Range 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.ImportSstpb.Range 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_sstpb.Range}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.Range)
org.tikv.kvproto.ImportSstpb.RangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Range_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Range_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.Range.class, org.tikv.kvproto.ImportSstpb.Range.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.Range.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();
start_ = com.google.protobuf.ByteString.EMPTY;
end_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Range_descriptor;
}
public org.tikv.kvproto.ImportSstpb.Range getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.Range build() {
org.tikv.kvproto.ImportSstpb.Range result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.Range buildPartial() {
org.tikv.kvproto.ImportSstpb.Range result = new org.tikv.kvproto.ImportSstpb.Range(this);
result.start_ = start_;
result.end_ = end_;
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.ImportSstpb.Range) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.Range)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.Range other) {
if (other == org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance()) return this;
if (other.getStart() != com.google.protobuf.ByteString.EMPTY) {
setStart(other.getStart());
}
if (other.getEnd() != com.google.protobuf.ByteString.EMPTY) {
setEnd(other.getEnd());
}
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.ImportSstpb.Range parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.Range) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString start_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes start = 1;
*/
public com.google.protobuf.ByteString getStart() {
return start_;
}
/**
* bytes start = 1;
*/
public Builder setStart(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
start_ = value;
onChanged();
return this;
}
/**
* bytes start = 1;
*/
public Builder clearStart() {
start_ = getDefaultInstance().getStart();
onChanged();
return this;
}
private com.google.protobuf.ByteString end_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes end = 2;
*/
public com.google.protobuf.ByteString getEnd() {
return end_;
}
/**
* bytes end = 2;
*/
public Builder setEnd(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
end_ = value;
onChanged();
return this;
}
/**
* bytes end = 2;
*/
public Builder clearEnd() {
end_ = getDefaultInstance().getEnd();
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_sstpb.Range)
}
// @@protoc_insertion_point(class_scope:import_sstpb.Range)
private static final org.tikv.kvproto.ImportSstpb.Range DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.Range();
}
public static org.tikv.kvproto.ImportSstpb.Range getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Range parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Range(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.ImportSstpb.Range getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SSTMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.SSTMeta)
com.google.protobuf.MessageOrBuilder {
/**
* bytes uuid = 1;
*/
com.google.protobuf.ByteString getUuid();
/**
* .import_sstpb.Range range = 2;
*/
boolean hasRange();
/**
* .import_sstpb.Range range = 2;
*/
org.tikv.kvproto.ImportSstpb.Range getRange();
/**
* .import_sstpb.Range range = 2;
*/
org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder();
/**
* uint32 crc32 = 3;
*/
int getCrc32();
/**
* uint64 length = 4;
*/
long getLength();
/**
* string cf_name = 5;
*/
java.lang.String getCfName();
/**
* string cf_name = 5;
*/
com.google.protobuf.ByteString
getCfNameBytes();
/**
* uint64 region_id = 6;
*/
long getRegionId();
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
boolean hasRegionEpoch();
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch();
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder();
/**
* bool end_key_exclusive = 8;
*/
boolean getEndKeyExclusive();
}
/**
* Protobuf type {@code import_sstpb.SSTMeta}
*/
public static final class SSTMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.SSTMeta)
SSTMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use SSTMeta.newBuilder() to construct.
private SSTMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SSTMeta() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
crc32_ = 0;
length_ = 0L;
cfName_ = "";
regionId_ = 0L;
endKeyExclusive_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SSTMeta(
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: {
org.tikv.kvproto.ImportSstpb.Range.Builder subBuilder = null;
if (range_ != null) {
subBuilder = range_.toBuilder();
}
range_ = input.readMessage(org.tikv.kvproto.ImportSstpb.Range.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(range_);
range_ = subBuilder.buildPartial();
}
break;
}
case 24: {
crc32_ = input.readUInt32();
break;
}
case 32: {
length_ = input.readUInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
cfName_ = s;
break;
}
case 48: {
regionId_ = input.readUInt64();
break;
}
case 58: {
org.tikv.kvproto.Metapb.RegionEpoch.Builder subBuilder = null;
if (regionEpoch_ != null) {
subBuilder = regionEpoch_.toBuilder();
}
regionEpoch_ = input.readMessage(org.tikv.kvproto.Metapb.RegionEpoch.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(regionEpoch_);
regionEpoch_ = subBuilder.buildPartial();
}
break;
}
case 64: {
endKeyExclusive_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SSTMeta_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SSTMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SSTMeta.class, org.tikv.kvproto.ImportSstpb.SSTMeta.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 RANGE_FIELD_NUMBER = 2;
private org.tikv.kvproto.ImportSstpb.Range range_;
/**
* .import_sstpb.Range range = 2;
*/
public boolean hasRange() {
return range_ != null;
}
/**
* .import_sstpb.Range range = 2;
*/
public org.tikv.kvproto.ImportSstpb.Range getRange() {
return range_ == null ? org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
}
/**
* .import_sstpb.Range range = 2;
*/
public org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder() {
return getRange();
}
public static final int CRC32_FIELD_NUMBER = 3;
private int crc32_;
/**
* uint32 crc32 = 3;
*/
public int getCrc32() {
return crc32_;
}
public static final int LENGTH_FIELD_NUMBER = 4;
private long length_;
/**
* uint64 length = 4;
*/
public long getLength() {
return length_;
}
public static final int CF_NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object cfName_;
/**
* string cf_name = 5;
*/
public java.lang.String getCfName() {
java.lang.Object ref = cfName_;
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();
cfName_ = s;
return s;
}
}
/**
* string cf_name = 5;
*/
public com.google.protobuf.ByteString
getCfNameBytes() {
java.lang.Object ref = cfName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cfName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGION_ID_FIELD_NUMBER = 6;
private long regionId_;
/**
* uint64 region_id = 6;
*/
public long getRegionId() {
return regionId_;
}
public static final int REGION_EPOCH_FIELD_NUMBER = 7;
private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_;
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public boolean hasRegionEpoch() {
return regionEpoch_ != null;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() {
return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() {
return getRegionEpoch();
}
public static final int END_KEY_EXCLUSIVE_FIELD_NUMBER = 8;
private boolean endKeyExclusive_;
/**
* bool end_key_exclusive = 8;
*/
public boolean getEndKeyExclusive() {
return endKeyExclusive_;
}
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 (range_ != null) {
output.writeMessage(2, getRange());
}
if (crc32_ != 0) {
output.writeUInt32(3, crc32_);
}
if (length_ != 0L) {
output.writeUInt64(4, length_);
}
if (!getCfNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cfName_);
}
if (regionId_ != 0L) {
output.writeUInt64(6, regionId_);
}
if (regionEpoch_ != null) {
output.writeMessage(7, getRegionEpoch());
}
if (endKeyExclusive_ != false) {
output.writeBool(8, endKeyExclusive_);
}
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 (range_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRange());
}
if (crc32_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, crc32_);
}
if (length_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, length_);
}
if (!getCfNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cfName_);
}
if (regionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, regionId_);
}
if (regionEpoch_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getRegionEpoch());
}
if (endKeyExclusive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, endKeyExclusive_);
}
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.ImportSstpb.SSTMeta)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.SSTMeta other = (org.tikv.kvproto.ImportSstpb.SSTMeta) obj;
boolean result = true;
result = result && getUuid()
.equals(other.getUuid());
result = result && (hasRange() == other.hasRange());
if (hasRange()) {
result = result && getRange()
.equals(other.getRange());
}
result = result && (getCrc32()
== other.getCrc32());
result = result && (getLength()
== other.getLength());
result = result && getCfName()
.equals(other.getCfName());
result = result && (getRegionId()
== other.getRegionId());
result = result && (hasRegionEpoch() == other.hasRegionEpoch());
if (hasRegionEpoch()) {
result = result && getRegionEpoch()
.equals(other.getRegionEpoch());
}
result = result && (getEndKeyExclusive()
== other.getEndKeyExclusive());
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();
if (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
hash = (37 * hash) + CRC32_FIELD_NUMBER;
hash = (53 * hash) + getCrc32();
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLength());
hash = (37 * hash) + CF_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCfName().hashCode();
hash = (37 * hash) + REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRegionId());
if (hasRegionEpoch()) {
hash = (37 * hash) + REGION_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + getRegionEpoch().hashCode();
}
hash = (37 * hash) + END_KEY_EXCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEndKeyExclusive());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta 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.ImportSstpb.SSTMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta 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.ImportSstpb.SSTMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta 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.ImportSstpb.SSTMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta 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.ImportSstpb.SSTMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta 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.ImportSstpb.SSTMeta 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_sstpb.SSTMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.SSTMeta)
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SSTMeta_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SSTMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SSTMeta.class, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.SSTMeta.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;
if (rangeBuilder_ == null) {
range_ = null;
} else {
range_ = null;
rangeBuilder_ = null;
}
crc32_ = 0;
length_ = 0L;
cfName_ = "";
regionId_ = 0L;
if (regionEpochBuilder_ == null) {
regionEpoch_ = null;
} else {
regionEpoch_ = null;
regionEpochBuilder_ = null;
}
endKeyExclusive_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SSTMeta_descriptor;
}
public org.tikv.kvproto.ImportSstpb.SSTMeta getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.SSTMeta build() {
org.tikv.kvproto.ImportSstpb.SSTMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.SSTMeta buildPartial() {
org.tikv.kvproto.ImportSstpb.SSTMeta result = new org.tikv.kvproto.ImportSstpb.SSTMeta(this);
result.uuid_ = uuid_;
if (rangeBuilder_ == null) {
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
result.crc32_ = crc32_;
result.length_ = length_;
result.cfName_ = cfName_;
result.regionId_ = regionId_;
if (regionEpochBuilder_ == null) {
result.regionEpoch_ = regionEpoch_;
} else {
result.regionEpoch_ = regionEpochBuilder_.build();
}
result.endKeyExclusive_ = endKeyExclusive_;
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.ImportSstpb.SSTMeta) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.SSTMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.SSTMeta other) {
if (other == org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance()) return this;
if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) {
setUuid(other.getUuid());
}
if (other.hasRange()) {
mergeRange(other.getRange());
}
if (other.getCrc32() != 0) {
setCrc32(other.getCrc32());
}
if (other.getLength() != 0L) {
setLength(other.getLength());
}
if (!other.getCfName().isEmpty()) {
cfName_ = other.cfName_;
onChanged();
}
if (other.getRegionId() != 0L) {
setRegionId(other.getRegionId());
}
if (other.hasRegionEpoch()) {
mergeRegionEpoch(other.getRegionEpoch());
}
if (other.getEndKeyExclusive() != false) {
setEndKeyExclusive(other.getEndKeyExclusive());
}
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.ImportSstpb.SSTMeta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.SSTMeta) 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 org.tikv.kvproto.ImportSstpb.Range range_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder> rangeBuilder_;
/**
* .import_sstpb.Range range = 2;
*/
public boolean hasRange() {
return rangeBuilder_ != null || range_ != null;
}
/**
* .import_sstpb.Range range = 2;
*/
public org.tikv.kvproto.ImportSstpb.Range getRange() {
if (rangeBuilder_ == null) {
return range_ == null ? org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
} else {
return rangeBuilder_.getMessage();
}
}
/**
* .import_sstpb.Range range = 2;
*/
public Builder setRange(org.tikv.kvproto.ImportSstpb.Range value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
range_ = value;
onChanged();
} else {
rangeBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.Range range = 2;
*/
public Builder setRange(
org.tikv.kvproto.ImportSstpb.Range.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
onChanged();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.Range range = 2;
*/
public Builder mergeRange(org.tikv.kvproto.ImportSstpb.Range value) {
if (rangeBuilder_ == null) {
if (range_ != null) {
range_ =
org.tikv.kvproto.ImportSstpb.Range.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
onChanged();
} else {
rangeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.Range range = 2;
*/
public Builder clearRange() {
if (rangeBuilder_ == null) {
range_ = null;
onChanged();
} else {
range_ = null;
rangeBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.Range range = 2;
*/
public org.tikv.kvproto.ImportSstpb.Range.Builder getRangeBuilder() {
onChanged();
return getRangeFieldBuilder().getBuilder();
}
/**
* .import_sstpb.Range range = 2;
*/
public org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilder();
} else {
return range_ == null ?
org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
}
}
/**
* .import_sstpb.Range range = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder>(
getRange(),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
private int crc32_ ;
/**
* uint32 crc32 = 3;
*/
public int getCrc32() {
return crc32_;
}
/**
* uint32 crc32 = 3;
*/
public Builder setCrc32(int value) {
crc32_ = value;
onChanged();
return this;
}
/**
* uint32 crc32 = 3;
*/
public Builder clearCrc32() {
crc32_ = 0;
onChanged();
return this;
}
private long length_ ;
/**
* uint64 length = 4;
*/
public long getLength() {
return length_;
}
/**
* uint64 length = 4;
*/
public Builder setLength(long value) {
length_ = value;
onChanged();
return this;
}
/**
* uint64 length = 4;
*/
public Builder clearLength() {
length_ = 0L;
onChanged();
return this;
}
private java.lang.Object cfName_ = "";
/**
* string cf_name = 5;
*/
public java.lang.String getCfName() {
java.lang.Object ref = cfName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cfName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cf_name = 5;
*/
public com.google.protobuf.ByteString
getCfNameBytes() {
java.lang.Object ref = cfName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cfName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cf_name = 5;
*/
public Builder setCfName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cfName_ = value;
onChanged();
return this;
}
/**
* string cf_name = 5;
*/
public Builder clearCfName() {
cfName_ = getDefaultInstance().getCfName();
onChanged();
return this;
}
/**
* string cf_name = 5;
*/
public Builder setCfNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cfName_ = value;
onChanged();
return this;
}
private long regionId_ ;
/**
* uint64 region_id = 6;
*/
public long getRegionId() {
return regionId_;
}
/**
* uint64 region_id = 6;
*/
public Builder setRegionId(long value) {
regionId_ = value;
onChanged();
return this;
}
/**
* uint64 region_id = 6;
*/
public Builder clearRegionId() {
regionId_ = 0L;
onChanged();
return this;
}
private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> regionEpochBuilder_;
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public boolean hasRegionEpoch() {
return regionEpochBuilder_ != null || regionEpoch_ != null;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() {
if (regionEpochBuilder_ == null) {
return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_;
} else {
return regionEpochBuilder_.getMessage();
}
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public Builder setRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) {
if (regionEpochBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
regionEpoch_ = value;
onChanged();
} else {
regionEpochBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public Builder setRegionEpoch(
org.tikv.kvproto.Metapb.RegionEpoch.Builder builderForValue) {
if (regionEpochBuilder_ == null) {
regionEpoch_ = builderForValue.build();
onChanged();
} else {
regionEpochBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public Builder mergeRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) {
if (regionEpochBuilder_ == null) {
if (regionEpoch_ != null) {
regionEpoch_ =
org.tikv.kvproto.Metapb.RegionEpoch.newBuilder(regionEpoch_).mergeFrom(value).buildPartial();
} else {
regionEpoch_ = value;
}
onChanged();
} else {
regionEpochBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public Builder clearRegionEpoch() {
if (regionEpochBuilder_ == null) {
regionEpoch_ = null;
onChanged();
} else {
regionEpoch_ = null;
regionEpochBuilder_ = null;
}
return this;
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() {
onChanged();
return getRegionEpochFieldBuilder().getBuilder();
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() {
if (regionEpochBuilder_ != null) {
return regionEpochBuilder_.getMessageOrBuilder();
} else {
return regionEpoch_ == null ?
org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_;
}
}
/**
* .metapb.RegionEpoch region_epoch = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder>
getRegionEpochFieldBuilder() {
if (regionEpochBuilder_ == null) {
regionEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder>(
getRegionEpoch(),
getParentForChildren(),
isClean());
regionEpoch_ = null;
}
return regionEpochBuilder_;
}
private boolean endKeyExclusive_ ;
/**
* bool end_key_exclusive = 8;
*/
public boolean getEndKeyExclusive() {
return endKeyExclusive_;
}
/**
* bool end_key_exclusive = 8;
*/
public Builder setEndKeyExclusive(boolean value) {
endKeyExclusive_ = value;
onChanged();
return this;
}
/**
* bool end_key_exclusive = 8;
*/
public Builder clearEndKeyExclusive() {
endKeyExclusive_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:import_sstpb.SSTMeta)
}
// @@protoc_insertion_point(class_scope:import_sstpb.SSTMeta)
private static final org.tikv.kvproto.ImportSstpb.SSTMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.SSTMeta();
}
public static org.tikv.kvproto.ImportSstpb.SSTMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SSTMeta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SSTMeta(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.ImportSstpb.SSTMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RewriteRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.RewriteRule)
com.google.protobuf.MessageOrBuilder {
/**
* bytes old_key_prefix = 1;
*/
com.google.protobuf.ByteString getOldKeyPrefix();
/**
* bytes new_key_prefix = 2;
*/
com.google.protobuf.ByteString getNewKeyPrefix();
/**
* uint64 new_timestamp = 3;
*/
long getNewTimestamp();
}
/**
*
* A rewrite rule is applied on the *encoded* keys (the internal storage
* representation).
*
*
* Protobuf type {@code import_sstpb.RewriteRule}
*/
public static final class RewriteRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.RewriteRule)
RewriteRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use RewriteRule.newBuilder() to construct.
private RewriteRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RewriteRule() {
oldKeyPrefix_ = com.google.protobuf.ByteString.EMPTY;
newKeyPrefix_ = com.google.protobuf.ByteString.EMPTY;
newTimestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RewriteRule(
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: {
oldKeyPrefix_ = input.readBytes();
break;
}
case 18: {
newKeyPrefix_ = input.readBytes();
break;
}
case 24: {
newTimestamp_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_RewriteRule_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_RewriteRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.RewriteRule.class, org.tikv.kvproto.ImportSstpb.RewriteRule.Builder.class);
}
public static final int OLD_KEY_PREFIX_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString oldKeyPrefix_;
/**
* bytes old_key_prefix = 1;
*/
public com.google.protobuf.ByteString getOldKeyPrefix() {
return oldKeyPrefix_;
}
public static final int NEW_KEY_PREFIX_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString newKeyPrefix_;
/**
* bytes new_key_prefix = 2;
*/
public com.google.protobuf.ByteString getNewKeyPrefix() {
return newKeyPrefix_;
}
public static final int NEW_TIMESTAMP_FIELD_NUMBER = 3;
private long newTimestamp_;
/**
* uint64 new_timestamp = 3;
*/
public long getNewTimestamp() {
return newTimestamp_;
}
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 (!oldKeyPrefix_.isEmpty()) {
output.writeBytes(1, oldKeyPrefix_);
}
if (!newKeyPrefix_.isEmpty()) {
output.writeBytes(2, newKeyPrefix_);
}
if (newTimestamp_ != 0L) {
output.writeUInt64(3, newTimestamp_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!oldKeyPrefix_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, oldKeyPrefix_);
}
if (!newKeyPrefix_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, newKeyPrefix_);
}
if (newTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, newTimestamp_);
}
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.ImportSstpb.RewriteRule)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.RewriteRule other = (org.tikv.kvproto.ImportSstpb.RewriteRule) obj;
boolean result = true;
result = result && getOldKeyPrefix()
.equals(other.getOldKeyPrefix());
result = result && getNewKeyPrefix()
.equals(other.getNewKeyPrefix());
result = result && (getNewTimestamp()
== other.getNewTimestamp());
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) + OLD_KEY_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getOldKeyPrefix().hashCode();
hash = (37 * hash) + NEW_KEY_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getNewKeyPrefix().hashCode();
hash = (37 * hash) + NEW_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule 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.ImportSstpb.RewriteRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule 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.ImportSstpb.RewriteRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule 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.ImportSstpb.RewriteRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule 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.ImportSstpb.RewriteRule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule 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.ImportSstpb.RewriteRule 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;
}
/**
*
* A rewrite rule is applied on the *encoded* keys (the internal storage
* representation).
*
*
* Protobuf type {@code import_sstpb.RewriteRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.RewriteRule)
org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_RewriteRule_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_RewriteRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.RewriteRule.class, org.tikv.kvproto.ImportSstpb.RewriteRule.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.RewriteRule.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();
oldKeyPrefix_ = com.google.protobuf.ByteString.EMPTY;
newKeyPrefix_ = com.google.protobuf.ByteString.EMPTY;
newTimestamp_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_RewriteRule_descriptor;
}
public org.tikv.kvproto.ImportSstpb.RewriteRule getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.RewriteRule.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.RewriteRule build() {
org.tikv.kvproto.ImportSstpb.RewriteRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.RewriteRule buildPartial() {
org.tikv.kvproto.ImportSstpb.RewriteRule result = new org.tikv.kvproto.ImportSstpb.RewriteRule(this);
result.oldKeyPrefix_ = oldKeyPrefix_;
result.newKeyPrefix_ = newKeyPrefix_;
result.newTimestamp_ = newTimestamp_;
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.ImportSstpb.RewriteRule) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.RewriteRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.RewriteRule other) {
if (other == org.tikv.kvproto.ImportSstpb.RewriteRule.getDefaultInstance()) return this;
if (other.getOldKeyPrefix() != com.google.protobuf.ByteString.EMPTY) {
setOldKeyPrefix(other.getOldKeyPrefix());
}
if (other.getNewKeyPrefix() != com.google.protobuf.ByteString.EMPTY) {
setNewKeyPrefix(other.getNewKeyPrefix());
}
if (other.getNewTimestamp() != 0L) {
setNewTimestamp(other.getNewTimestamp());
}
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.ImportSstpb.RewriteRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.RewriteRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString oldKeyPrefix_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes old_key_prefix = 1;
*/
public com.google.protobuf.ByteString getOldKeyPrefix() {
return oldKeyPrefix_;
}
/**
* bytes old_key_prefix = 1;
*/
public Builder setOldKeyPrefix(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
oldKeyPrefix_ = value;
onChanged();
return this;
}
/**
* bytes old_key_prefix = 1;
*/
public Builder clearOldKeyPrefix() {
oldKeyPrefix_ = getDefaultInstance().getOldKeyPrefix();
onChanged();
return this;
}
private com.google.protobuf.ByteString newKeyPrefix_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes new_key_prefix = 2;
*/
public com.google.protobuf.ByteString getNewKeyPrefix() {
return newKeyPrefix_;
}
/**
* bytes new_key_prefix = 2;
*/
public Builder setNewKeyPrefix(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
newKeyPrefix_ = value;
onChanged();
return this;
}
/**
* bytes new_key_prefix = 2;
*/
public Builder clearNewKeyPrefix() {
newKeyPrefix_ = getDefaultInstance().getNewKeyPrefix();
onChanged();
return this;
}
private long newTimestamp_ ;
/**
* uint64 new_timestamp = 3;
*/
public long getNewTimestamp() {
return newTimestamp_;
}
/**
* uint64 new_timestamp = 3;
*/
public Builder setNewTimestamp(long value) {
newTimestamp_ = value;
onChanged();
return this;
}
/**
* uint64 new_timestamp = 3;
*/
public Builder clearNewTimestamp() {
newTimestamp_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:import_sstpb.RewriteRule)
}
// @@protoc_insertion_point(class_scope:import_sstpb.RewriteRule)
private static final org.tikv.kvproto.ImportSstpb.RewriteRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.RewriteRule();
}
public static org.tikv.kvproto.ImportSstpb.RewriteRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RewriteRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RewriteRule(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.ImportSstpb.RewriteRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UploadRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.UploadRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .import_sstpb.SSTMeta meta = 1;
*/
boolean hasMeta();
/**
* .import_sstpb.SSTMeta meta = 1;
*/
org.tikv.kvproto.ImportSstpb.SSTMeta getMeta();
/**
* .import_sstpb.SSTMeta meta = 1;
*/
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetaOrBuilder();
/**
* bytes data = 2;
*/
com.google.protobuf.ByteString getData();
public org.tikv.kvproto.ImportSstpb.UploadRequest.ChunkCase getChunkCase();
}
/**
* Protobuf type {@code import_sstpb.UploadRequest}
*/
public static final class UploadRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.UploadRequest)
UploadRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadRequest.newBuilder() to construct.
private UploadRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder subBuilder = null;
if (chunkCase_ == 1) {
subBuilder = ((org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_).toBuilder();
}
chunk_ =
input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_);
chunk_ = subBuilder.buildPartial();
}
chunkCase_ = 1;
break;
}
case 18: {
chunkCase_ = 2;
chunk_ = 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.ImportSstpb.internal_static_import_sstpb_UploadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_UploadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.UploadRequest.class, org.tikv.kvproto.ImportSstpb.UploadRequest.Builder.class);
}
private int chunkCase_ = 0;
private java.lang.Object chunk_;
public enum ChunkCase
implements com.google.protobuf.Internal.EnumLite {
META(1),
DATA(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 META;
case 2: return DATA;
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 META_FIELD_NUMBER = 1;
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public boolean hasMeta() {
return chunkCase_ == 1;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getMeta() {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetaOrBuilder() {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
public static final int DATA_FIELD_NUMBER = 2;
/**
* bytes data = 2;
*/
public com.google.protobuf.ByteString getData() {
if (chunkCase_ == 2) {
return (com.google.protobuf.ByteString) chunk_;
}
return com.google.protobuf.ByteString.EMPTY;
}
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.ImportSstpb.SSTMeta) chunk_);
}
if (chunkCase_ == 2) {
output.writeBytes(
2, (com.google.protobuf.ByteString) 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.ImportSstpb.SSTMeta) chunk_);
}
if (chunkCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
2, (com.google.protobuf.ByteString) 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.ImportSstpb.UploadRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.UploadRequest other = (org.tikv.kvproto.ImportSstpb.UploadRequest) obj;
boolean result = true;
result = result && getChunkCase().equals(
other.getChunkCase());
if (!result) return false;
switch (chunkCase_) {
case 1:
result = result && getMeta()
.equals(other.getMeta());
break;
case 2:
result = result && getData()
.equals(other.getData());
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) + META_FIELD_NUMBER;
hash = (53 * hash) + getMeta().hashCode();
break;
case 2:
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest 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.ImportSstpb.UploadRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest 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.ImportSstpb.UploadRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest 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.ImportSstpb.UploadRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest 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.ImportSstpb.UploadRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest 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.ImportSstpb.UploadRequest 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_sstpb.UploadRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.UploadRequest)
org.tikv.kvproto.ImportSstpb.UploadRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_UploadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_UploadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.UploadRequest.class, org.tikv.kvproto.ImportSstpb.UploadRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.UploadRequest.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.ImportSstpb.internal_static_import_sstpb_UploadRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.UploadRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.UploadRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.UploadRequest build() {
org.tikv.kvproto.ImportSstpb.UploadRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.UploadRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.UploadRequest result = new org.tikv.kvproto.ImportSstpb.UploadRequest(this);
if (chunkCase_ == 1) {
if (metaBuilder_ == null) {
result.chunk_ = chunk_;
} else {
result.chunk_ = metaBuilder_.build();
}
}
if (chunkCase_ == 2) {
result.chunk_ = chunk_;
}
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.ImportSstpb.UploadRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.UploadRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.UploadRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.UploadRequest.getDefaultInstance()) return this;
switch (other.getChunkCase()) {
case META: {
mergeMeta(other.getMeta());
break;
}
case DATA: {
setData(other.getData());
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.ImportSstpb.UploadRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.UploadRequest) 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.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> metaBuilder_;
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public boolean hasMeta() {
return chunkCase_ == 1;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getMeta() {
if (metaBuilder_ == null) {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
} else {
if (chunkCase_ == 1) {
return metaBuilder_.getMessage();
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder setMeta(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
metaBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder setMeta(
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (metaBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
metaBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 1;
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder mergeMeta(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metaBuilder_ == null) {
if (chunkCase_ == 1 &&
chunk_ != org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance()) {
chunk_ = org.tikv.kvproto.ImportSstpb.SSTMeta.newBuilder((org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 1) {
metaBuilder_.mergeFrom(value);
}
metaBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder clearMeta() {
if (metaBuilder_ == null) {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
onChanged();
}
} else {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
}
metaBuilder_.clear();
}
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getMetaBuilder() {
return getMetaFieldBuilder().getBuilder();
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetaOrBuilder() {
if ((chunkCase_ == 1) && (metaBuilder_ != null)) {
return metaBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getMetaFieldBuilder() {
if (metaBuilder_ == null) {
if (!(chunkCase_ == 1)) {
chunk_ = org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>(
(org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_,
getParentForChildren(),
isClean());
chunk_ = null;
}
chunkCase_ = 1;
onChanged();;
return metaBuilder_;
}
/**
* bytes data = 2;
*/
public com.google.protobuf.ByteString getData() {
if (chunkCase_ == 2) {
return (com.google.protobuf.ByteString) chunk_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes data = 2;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
chunkCase_ = 2;
chunk_ = value;
onChanged();
return this;
}
/**
* bytes data = 2;
*/
public Builder clearData() {
if (chunkCase_ == 2) {
chunkCase_ = 0;
chunk_ = null;
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_sstpb.UploadRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.UploadRequest)
private static final org.tikv.kvproto.ImportSstpb.UploadRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.UploadRequest();
}
public static org.tikv.kvproto.ImportSstpb.UploadRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public UploadRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadRequest(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.ImportSstpb.UploadRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UploadResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.UploadResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_sstpb.UploadResponse}
*/
public static final class UploadResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.UploadResponse)
UploadResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadResponse.newBuilder() to construct.
private UploadResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadResponse(
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.ImportSstpb.internal_static_import_sstpb_UploadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_UploadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.UploadResponse.class, org.tikv.kvproto.ImportSstpb.UploadResponse.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.ImportSstpb.UploadResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.UploadResponse other = (org.tikv.kvproto.ImportSstpb.UploadResponse) 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.ImportSstpb.UploadResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse 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.ImportSstpb.UploadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse 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.ImportSstpb.UploadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse 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.ImportSstpb.UploadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse 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.ImportSstpb.UploadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse 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.ImportSstpb.UploadResponse 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_sstpb.UploadResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.UploadResponse)
org.tikv.kvproto.ImportSstpb.UploadResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_UploadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_UploadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.UploadResponse.class, org.tikv.kvproto.ImportSstpb.UploadResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.UploadResponse.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.ImportSstpb.internal_static_import_sstpb_UploadResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.UploadResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.UploadResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.UploadResponse build() {
org.tikv.kvproto.ImportSstpb.UploadResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.UploadResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.UploadResponse result = new org.tikv.kvproto.ImportSstpb.UploadResponse(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.ImportSstpb.UploadResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.UploadResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.UploadResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.UploadResponse.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.ImportSstpb.UploadResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.UploadResponse) 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_sstpb.UploadResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.UploadResponse)
private static final org.tikv.kvproto.ImportSstpb.UploadResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.UploadResponse();
}
public static org.tikv.kvproto.ImportSstpb.UploadResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public UploadResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadResponse(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.ImportSstpb.UploadResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngestRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.IngestRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .kvrpcpb.Context context = 1;
*/
boolean hasContext();
/**
* .kvrpcpb.Context context = 1;
*/
org.tikv.kvproto.Kvrpcpb.Context getContext();
/**
* .kvrpcpb.Context context = 1;
*/
org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder();
/**
* .import_sstpb.SSTMeta sst = 2;
*/
boolean hasSst();
/**
* .import_sstpb.SSTMeta sst = 2;
*/
org.tikv.kvproto.ImportSstpb.SSTMeta getSst();
/**
* .import_sstpb.SSTMeta sst = 2;
*/
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder();
}
/**
* Protobuf type {@code import_sstpb.IngestRequest}
*/
public static final class IngestRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.IngestRequest)
IngestRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngestRequest.newBuilder() to construct.
private IngestRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngestRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngestRequest(
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.Kvrpcpb.Context.Builder subBuilder = null;
if (context_ != null) {
subBuilder = context_.toBuilder();
}
context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(context_);
context_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder subBuilder = null;
if (sst_ != null) {
subBuilder = sst_.toBuilder();
}
sst_ = input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sst_);
sst_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.IngestRequest.class, org.tikv.kvproto.ImportSstpb.IngestRequest.Builder.class);
}
public static final int CONTEXT_FIELD_NUMBER = 1;
private org.tikv.kvproto.Kvrpcpb.Context context_;
/**
* .kvrpcpb.Context context = 1;
*/
public boolean hasContext() {
return context_ != null;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.Context getContext() {
return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() {
return getContext();
}
public static final int SST_FIELD_NUMBER = 2;
private org.tikv.kvproto.ImportSstpb.SSTMeta sst_;
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public boolean hasSst() {
return sst_ != null;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() {
return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() {
return getSst();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (context_ != null) {
output.writeMessage(1, getContext());
}
if (sst_ != null) {
output.writeMessage(2, getSst());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (context_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContext());
}
if (sst_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSst());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tikv.kvproto.ImportSstpb.IngestRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.IngestRequest other = (org.tikv.kvproto.ImportSstpb.IngestRequest) obj;
boolean result = true;
result = result && (hasContext() == other.hasContext());
if (hasContext()) {
result = result && getContext()
.equals(other.getContext());
}
result = result && (hasSst() == other.hasSst());
if (hasSst()) {
result = result && getSst()
.equals(other.getSst());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
if (hasSst()) {
hash = (37 * hash) + SST_FIELD_NUMBER;
hash = (53 * hash) + getSst().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest 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.ImportSstpb.IngestRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest 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.ImportSstpb.IngestRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest 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.ImportSstpb.IngestRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest 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.ImportSstpb.IngestRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest 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.ImportSstpb.IngestRequest 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_sstpb.IngestRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.IngestRequest)
org.tikv.kvproto.ImportSstpb.IngestRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.IngestRequest.class, org.tikv.kvproto.ImportSstpb.IngestRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.IngestRequest.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 (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
if (sstBuilder_ == null) {
sst_ = null;
} else {
sst_ = null;
sstBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.IngestRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.IngestRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.IngestRequest build() {
org.tikv.kvproto.ImportSstpb.IngestRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.IngestRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.IngestRequest result = new org.tikv.kvproto.ImportSstpb.IngestRequest(this);
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
if (sstBuilder_ == null) {
result.sst_ = sst_;
} else {
result.sst_ = sstBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tikv.kvproto.ImportSstpb.IngestRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.IngestRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.IngestRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.IngestRequest.getDefaultInstance()) return this;
if (other.hasContext()) {
mergeContext(other.getContext());
}
if (other.hasSst()) {
mergeSst(other.getSst());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.ImportSstpb.IngestRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.IngestRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Kvrpcpb.Context context_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_;
/**
* .kvrpcpb.Context context = 1;
*/
public boolean hasContext() {
return contextBuilder_ != null || context_ != null;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.Context getContext() {
if (contextBuilder_ == null) {
return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_;
} else {
return contextBuilder_.getMessage();
}
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) {
if (contextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
contextBuilder_.setMessage(value);
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder setContext(
org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) {
if (contextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
contextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) {
if (contextBuilder_ == null) {
if (context_ != null) {
context_ =
org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
contextBuilder_.mergeFrom(value);
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
context_ = null;
onChanged();
} else {
context_ = null;
contextBuilder_ = null;
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() {
onChanged();
return getContextFieldBuilder().getBuilder();
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() {
if (contextBuilder_ != null) {
return contextBuilder_.getMessageOrBuilder();
} else {
return context_ == null ?
org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_;
}
}
/**
* .kvrpcpb.Context context = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>(
getContext(),
getParentForChildren(),
isClean());
context_ = null;
}
return contextBuilder_;
}
private org.tikv.kvproto.ImportSstpb.SSTMeta sst_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> sstBuilder_;
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public boolean hasSst() {
return sstBuilder_ != null || sst_ != null;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() {
if (sstBuilder_ == null) {
return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
} else {
return sstBuilder_.getMessage();
}
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public Builder setSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (sstBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sst_ = value;
onChanged();
} else {
sstBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public Builder setSst(
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (sstBuilder_ == null) {
sst_ = builderForValue.build();
onChanged();
} else {
sstBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public Builder mergeSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (sstBuilder_ == null) {
if (sst_ != null) {
sst_ =
org.tikv.kvproto.ImportSstpb.SSTMeta.newBuilder(sst_).mergeFrom(value).buildPartial();
} else {
sst_ = value;
}
onChanged();
} else {
sstBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public Builder clearSst() {
if (sstBuilder_ == null) {
sst_ = null;
onChanged();
} else {
sst_ = null;
sstBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getSstBuilder() {
onChanged();
return getSstFieldBuilder().getBuilder();
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() {
if (sstBuilder_ != null) {
return sstBuilder_.getMessageOrBuilder();
} else {
return sst_ == null ?
org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
}
}
/**
* .import_sstpb.SSTMeta sst = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getSstFieldBuilder() {
if (sstBuilder_ == null) {
sstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>(
getSst(),
getParentForChildren(),
isClean());
sst_ = null;
}
return sstBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:import_sstpb.IngestRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.IngestRequest)
private static final org.tikv.kvproto.ImportSstpb.IngestRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.IngestRequest();
}
public static org.tikv.kvproto.ImportSstpb.IngestRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public IngestRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngestRequest(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.ImportSstpb.IngestRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngestResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.IngestResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .errorpb.Error error = 1;
*/
boolean hasError();
/**
* .errorpb.Error error = 1;
*/
org.tikv.kvproto.Errorpb.Error getError();
/**
* .errorpb.Error error = 1;
*/
org.tikv.kvproto.Errorpb.ErrorOrBuilder getErrorOrBuilder();
}
/**
* Protobuf type {@code import_sstpb.IngestResponse}
*/
public static final class IngestResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.IngestResponse)
IngestResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngestResponse.newBuilder() to construct.
private IngestResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngestResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngestResponse(
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.Errorpb.Error.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.tikv.kvproto.Errorpb.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.ImportSstpb.internal_static_import_sstpb_IngestResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.IngestResponse.class, org.tikv.kvproto.ImportSstpb.IngestResponse.Builder.class);
}
public static final int ERROR_FIELD_NUMBER = 1;
private org.tikv.kvproto.Errorpb.Error error_;
/**
* .errorpb.Error error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
* .errorpb.Error error = 1;
*/
public org.tikv.kvproto.Errorpb.Error getError() {
return error_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : error_;
}
/**
* .errorpb.Error error = 1;
*/
public org.tikv.kvproto.Errorpb.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.ImportSstpb.IngestResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.IngestResponse other = (org.tikv.kvproto.ImportSstpb.IngestResponse) 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.ImportSstpb.IngestResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse 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.ImportSstpb.IngestResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse 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.ImportSstpb.IngestResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse 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.ImportSstpb.IngestResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse 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.ImportSstpb.IngestResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse 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.ImportSstpb.IngestResponse 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_sstpb.IngestResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.IngestResponse)
org.tikv.kvproto.ImportSstpb.IngestResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_IngestResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.IngestResponse.class, org.tikv.kvproto.ImportSstpb.IngestResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.IngestResponse.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.ImportSstpb.internal_static_import_sstpb_IngestResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.IngestResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.IngestResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.IngestResponse build() {
org.tikv.kvproto.ImportSstpb.IngestResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.IngestResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.IngestResponse result = new org.tikv.kvproto.ImportSstpb.IngestResponse(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.ImportSstpb.IngestResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.IngestResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.IngestResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.IngestResponse.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.ImportSstpb.IngestResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.IngestResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Errorpb.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> errorBuilder_;
/**
* .errorpb.Error error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
* .errorpb.Error error = 1;
*/
public org.tikv.kvproto.Errorpb.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* .errorpb.Error error = 1;
*/
public Builder setError(org.tikv.kvproto.Errorpb.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
* .errorpb.Error error = 1;
*/
public Builder setError(
org.tikv.kvproto.Errorpb.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .errorpb.Error error = 1;
*/
public Builder mergeError(org.tikv.kvproto.Errorpb.Error value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
org.tikv.kvproto.Errorpb.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .errorpb.Error error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
* .errorpb.Error error = 1;
*/
public org.tikv.kvproto.Errorpb.Error.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* .errorpb.Error error = 1;
*/
public org.tikv.kvproto.Errorpb.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : error_;
}
}
/**
* .errorpb.Error error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.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_sstpb.IngestResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.IngestResponse)
private static final org.tikv.kvproto.ImportSstpb.IngestResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.IngestResponse();
}
public static org.tikv.kvproto.ImportSstpb.IngestResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public IngestResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngestResponse(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.ImportSstpb.IngestResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.CompactRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
boolean hasRange();
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
org.tikv.kvproto.ImportSstpb.Range getRange();
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder();
/**
* int32 output_level = 2;
*/
int getOutputLevel();
}
/**
* Protobuf type {@code import_sstpb.CompactRequest}
*/
public static final class CompactRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.CompactRequest)
CompactRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactRequest.newBuilder() to construct.
private CompactRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactRequest() {
outputLevel_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.ImportSstpb.Range.Builder subBuilder = null;
if (range_ != null) {
subBuilder = range_.toBuilder();
}
range_ = input.readMessage(org.tikv.kvproto.ImportSstpb.Range.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(range_);
range_ = subBuilder.buildPartial();
}
break;
}
case 16: {
outputLevel_ = input.readInt32();
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.ImportSstpb.internal_static_import_sstpb_CompactRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.CompactRequest.class, org.tikv.kvproto.ImportSstpb.CompactRequest.Builder.class);
}
public static final int RANGE_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportSstpb.Range range_;
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public boolean hasRange() {
return range_ != null;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public org.tikv.kvproto.ImportSstpb.Range getRange() {
return range_ == null ? org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder() {
return getRange();
}
public static final int OUTPUT_LEVEL_FIELD_NUMBER = 2;
private int outputLevel_;
/**
* int32 output_level = 2;
*/
public int getOutputLevel() {
return outputLevel_;
}
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 (range_ != null) {
output.writeMessage(1, getRange());
}
if (outputLevel_ != 0) {
output.writeInt32(2, outputLevel_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (range_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRange());
}
if (outputLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, outputLevel_);
}
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.ImportSstpb.CompactRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.CompactRequest other = (org.tikv.kvproto.ImportSstpb.CompactRequest) obj;
boolean result = true;
result = result && (hasRange() == other.hasRange());
if (hasRange()) {
result = result && getRange()
.equals(other.getRange());
}
result = result && (getOutputLevel()
== other.getOutputLevel());
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 (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
hash = (37 * hash) + OUTPUT_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getOutputLevel();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest 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.ImportSstpb.CompactRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest 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.ImportSstpb.CompactRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest 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.ImportSstpb.CompactRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest 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.ImportSstpb.CompactRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest 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.ImportSstpb.CompactRequest 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_sstpb.CompactRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.CompactRequest)
org.tikv.kvproto.ImportSstpb.CompactRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.CompactRequest.class, org.tikv.kvproto.ImportSstpb.CompactRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.CompactRequest.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 (rangeBuilder_ == null) {
range_ = null;
} else {
range_ = null;
rangeBuilder_ = null;
}
outputLevel_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.CompactRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.CompactRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.CompactRequest build() {
org.tikv.kvproto.ImportSstpb.CompactRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.CompactRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.CompactRequest result = new org.tikv.kvproto.ImportSstpb.CompactRequest(this);
if (rangeBuilder_ == null) {
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
result.outputLevel_ = outputLevel_;
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.ImportSstpb.CompactRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.CompactRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.CompactRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.CompactRequest.getDefaultInstance()) return this;
if (other.hasRange()) {
mergeRange(other.getRange());
}
if (other.getOutputLevel() != 0) {
setOutputLevel(other.getOutputLevel());
}
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.ImportSstpb.CompactRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.CompactRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportSstpb.Range range_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder> rangeBuilder_;
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public boolean hasRange() {
return rangeBuilder_ != null || range_ != null;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public org.tikv.kvproto.ImportSstpb.Range getRange() {
if (rangeBuilder_ == null) {
return range_ == null ? org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
} else {
return rangeBuilder_.getMessage();
}
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public Builder setRange(org.tikv.kvproto.ImportSstpb.Range value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
range_ = value;
onChanged();
} else {
rangeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public Builder setRange(
org.tikv.kvproto.ImportSstpb.Range.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
onChanged();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public Builder mergeRange(org.tikv.kvproto.ImportSstpb.Range value) {
if (rangeBuilder_ == null) {
if (range_ != null) {
range_ =
org.tikv.kvproto.ImportSstpb.Range.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
onChanged();
} else {
rangeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public Builder clearRange() {
if (rangeBuilder_ == null) {
range_ = null;
onChanged();
} else {
range_ = null;
rangeBuilder_ = null;
}
return this;
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public org.tikv.kvproto.ImportSstpb.Range.Builder getRangeBuilder() {
onChanged();
return getRangeFieldBuilder().getBuilder();
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
public org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilder();
} else {
return range_ == null ?
org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
}
}
/**
*
* Compact files in the range and above the output level.
* Compact all files if the range is not specified.
* Compact all files to the bottommost level if the output level is -1.
*
*
* .import_sstpb.Range range = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder>(
getRange(),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
private int outputLevel_ ;
/**
* int32 output_level = 2;
*/
public int getOutputLevel() {
return outputLevel_;
}
/**
* int32 output_level = 2;
*/
public Builder setOutputLevel(int value) {
outputLevel_ = value;
onChanged();
return this;
}
/**
* int32 output_level = 2;
*/
public Builder clearOutputLevel() {
outputLevel_ = 0;
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_sstpb.CompactRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.CompactRequest)
private static final org.tikv.kvproto.ImportSstpb.CompactRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.CompactRequest();
}
public static org.tikv.kvproto.ImportSstpb.CompactRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CompactRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactRequest(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.ImportSstpb.CompactRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.CompactResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_sstpb.CompactResponse}
*/
public static final class CompactResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.CompactResponse)
CompactResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactResponse.newBuilder() to construct.
private CompactResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactResponse(
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.ImportSstpb.internal_static_import_sstpb_CompactResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.CompactResponse.class, org.tikv.kvproto.ImportSstpb.CompactResponse.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.ImportSstpb.CompactResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.CompactResponse other = (org.tikv.kvproto.ImportSstpb.CompactResponse) 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.ImportSstpb.CompactResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse 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.ImportSstpb.CompactResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse 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.ImportSstpb.CompactResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse 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.ImportSstpb.CompactResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse 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.ImportSstpb.CompactResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse 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.ImportSstpb.CompactResponse 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_sstpb.CompactResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.CompactResponse)
org.tikv.kvproto.ImportSstpb.CompactResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_CompactResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.CompactResponse.class, org.tikv.kvproto.ImportSstpb.CompactResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.CompactResponse.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.ImportSstpb.internal_static_import_sstpb_CompactResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.CompactResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.CompactResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.CompactResponse build() {
org.tikv.kvproto.ImportSstpb.CompactResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.CompactResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.CompactResponse result = new org.tikv.kvproto.ImportSstpb.CompactResponse(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.ImportSstpb.CompactResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.CompactResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.CompactResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.CompactResponse.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.ImportSstpb.CompactResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.CompactResponse) 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_sstpb.CompactResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.CompactResponse)
private static final org.tikv.kvproto.ImportSstpb.CompactResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.CompactResponse();
}
public static org.tikv.kvproto.ImportSstpb.CompactResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CompactResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactResponse(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.ImportSstpb.CompactResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DownloadRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.DownloadRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
boolean hasSst();
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
org.tikv.kvproto.ImportSstpb.SSTMeta getSst();
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder();
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
java.lang.String getName();
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
boolean hasRewriteRule();
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
org.tikv.kvproto.ImportSstpb.RewriteRule getRewriteRule();
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder getRewriteRuleOrBuilder();
/**
* .backup.StorageBackend storage_backend = 14;
*/
boolean hasStorageBackend();
/**
* .backup.StorageBackend storage_backend = 14;
*/
org.tikv.kvproto.BackupOuterClass.StorageBackend getStorageBackend();
/**
* .backup.StorageBackend storage_backend = 14;
*/
org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder getStorageBackendOrBuilder();
/**
* bool is_raw_kv = 15;
*/
boolean getIsRawKv();
}
/**
* Protobuf type {@code import_sstpb.DownloadRequest}
*/
public static final class DownloadRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.DownloadRequest)
DownloadRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DownloadRequest.newBuilder() to construct.
private DownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DownloadRequest() {
name_ = "";
isRawKv_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DownloadRequest(
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 18: {
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder subBuilder = null;
if (sst_ != null) {
subBuilder = sst_.toBuilder();
}
sst_ = input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sst_);
sst_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 106: {
org.tikv.kvproto.ImportSstpb.RewriteRule.Builder subBuilder = null;
if (rewriteRule_ != null) {
subBuilder = rewriteRule_.toBuilder();
}
rewriteRule_ = input.readMessage(org.tikv.kvproto.ImportSstpb.RewriteRule.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rewriteRule_);
rewriteRule_ = subBuilder.buildPartial();
}
break;
}
case 114: {
org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder subBuilder = null;
if (storageBackend_ != null) {
subBuilder = storageBackend_.toBuilder();
}
storageBackend_ = input.readMessage(org.tikv.kvproto.BackupOuterClass.StorageBackend.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storageBackend_);
storageBackend_ = subBuilder.buildPartial();
}
break;
}
case 120: {
isRawKv_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.DownloadRequest.class, org.tikv.kvproto.ImportSstpb.DownloadRequest.Builder.class);
}
public static final int SST_FIELD_NUMBER = 2;
private org.tikv.kvproto.ImportSstpb.SSTMeta sst_;
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasSst() {
return sst_ != null;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() {
return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() {
return getSst();
}
public static final int NAME_FIELD_NUMBER = 9;
private volatile java.lang.Object name_;
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REWRITE_RULE_FIELD_NUMBER = 13;
private org.tikv.kvproto.ImportSstpb.RewriteRule rewriteRule_;
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public boolean hasRewriteRule() {
return rewriteRule_ != null;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RewriteRule getRewriteRule() {
return rewriteRule_ == null ? org.tikv.kvproto.ImportSstpb.RewriteRule.getDefaultInstance() : rewriteRule_;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder getRewriteRuleOrBuilder() {
return getRewriteRule();
}
public static final int STORAGE_BACKEND_FIELD_NUMBER = 14;
private org.tikv.kvproto.BackupOuterClass.StorageBackend storageBackend_;
/**
* .backup.StorageBackend storage_backend = 14;
*/
public boolean hasStorageBackend() {
return storageBackend_ != null;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public org.tikv.kvproto.BackupOuterClass.StorageBackend getStorageBackend() {
return storageBackend_ == null ? org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance() : storageBackend_;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder getStorageBackendOrBuilder() {
return getStorageBackend();
}
public static final int IS_RAW_KV_FIELD_NUMBER = 15;
private boolean isRawKv_;
/**
* bool is_raw_kv = 15;
*/
public boolean getIsRawKv() {
return isRawKv_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sst_ != null) {
output.writeMessage(2, getSst());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_);
}
if (rewriteRule_ != null) {
output.writeMessage(13, getRewriteRule());
}
if (storageBackend_ != null) {
output.writeMessage(14, getStorageBackend());
}
if (isRawKv_ != false) {
output.writeBool(15, isRawKv_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sst_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSst());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_);
}
if (rewriteRule_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getRewriteRule());
}
if (storageBackend_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getStorageBackend());
}
if (isRawKv_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isRawKv_);
}
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.ImportSstpb.DownloadRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.DownloadRequest other = (org.tikv.kvproto.ImportSstpb.DownloadRequest) obj;
boolean result = true;
result = result && (hasSst() == other.hasSst());
if (hasSst()) {
result = result && getSst()
.equals(other.getSst());
}
result = result && getName()
.equals(other.getName());
result = result && (hasRewriteRule() == other.hasRewriteRule());
if (hasRewriteRule()) {
result = result && getRewriteRule()
.equals(other.getRewriteRule());
}
result = result && (hasStorageBackend() == other.hasStorageBackend());
if (hasStorageBackend()) {
result = result && getStorageBackend()
.equals(other.getStorageBackend());
}
result = result && (getIsRawKv()
== other.getIsRawKv());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSst()) {
hash = (37 * hash) + SST_FIELD_NUMBER;
hash = (53 * hash) + getSst().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasRewriteRule()) {
hash = (37 * hash) + REWRITE_RULE_FIELD_NUMBER;
hash = (53 * hash) + getRewriteRule().hashCode();
}
if (hasStorageBackend()) {
hash = (37 * hash) + STORAGE_BACKEND_FIELD_NUMBER;
hash = (53 * hash) + getStorageBackend().hashCode();
}
hash = (37 * hash) + IS_RAW_KV_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsRawKv());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest 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.ImportSstpb.DownloadRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest 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.ImportSstpb.DownloadRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest 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.ImportSstpb.DownloadRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest 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.ImportSstpb.DownloadRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest 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.ImportSstpb.DownloadRequest 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_sstpb.DownloadRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.DownloadRequest)
org.tikv.kvproto.ImportSstpb.DownloadRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.DownloadRequest.class, org.tikv.kvproto.ImportSstpb.DownloadRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.DownloadRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (sstBuilder_ == null) {
sst_ = null;
} else {
sst_ = null;
sstBuilder_ = null;
}
name_ = "";
if (rewriteRuleBuilder_ == null) {
rewriteRule_ = null;
} else {
rewriteRule_ = null;
rewriteRuleBuilder_ = null;
}
if (storageBackendBuilder_ == null) {
storageBackend_ = null;
} else {
storageBackend_ = null;
storageBackendBuilder_ = null;
}
isRawKv_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.DownloadRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.DownloadRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.DownloadRequest build() {
org.tikv.kvproto.ImportSstpb.DownloadRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.DownloadRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.DownloadRequest result = new org.tikv.kvproto.ImportSstpb.DownloadRequest(this);
if (sstBuilder_ == null) {
result.sst_ = sst_;
} else {
result.sst_ = sstBuilder_.build();
}
result.name_ = name_;
if (rewriteRuleBuilder_ == null) {
result.rewriteRule_ = rewriteRule_;
} else {
result.rewriteRule_ = rewriteRuleBuilder_.build();
}
if (storageBackendBuilder_ == null) {
result.storageBackend_ = storageBackend_;
} else {
result.storageBackend_ = storageBackendBuilder_.build();
}
result.isRawKv_ = isRawKv_;
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.ImportSstpb.DownloadRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.DownloadRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.DownloadRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.DownloadRequest.getDefaultInstance()) return this;
if (other.hasSst()) {
mergeSst(other.getSst());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasRewriteRule()) {
mergeRewriteRule(other.getRewriteRule());
}
if (other.hasStorageBackend()) {
mergeStorageBackend(other.getStorageBackend());
}
if (other.getIsRawKv() != false) {
setIsRawKv(other.getIsRawKv());
}
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.ImportSstpb.DownloadRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.DownloadRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportSstpb.SSTMeta sst_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> sstBuilder_;
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public boolean hasSst() {
return sstBuilder_ != null || sst_ != null;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() {
if (sstBuilder_ == null) {
return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
} else {
return sstBuilder_.getMessage();
}
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public Builder setSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (sstBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sst_ = value;
onChanged();
} else {
sstBuilder_.setMessage(value);
}
return this;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public Builder setSst(
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (sstBuilder_ == null) {
sst_ = builderForValue.build();
onChanged();
} else {
sstBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public Builder mergeSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (sstBuilder_ == null) {
if (sst_ != null) {
sst_ =
org.tikv.kvproto.ImportSstpb.SSTMeta.newBuilder(sst_).mergeFrom(value).buildPartial();
} else {
sst_ = value;
}
onChanged();
} else {
sstBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearSst() {
if (sstBuilder_ == null) {
sst_ = null;
onChanged();
} else {
sst_ = null;
sstBuilder_ = null;
}
return this;
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getSstBuilder() {
onChanged();
return getSstFieldBuilder().getBuilder();
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() {
if (sstBuilder_ != null) {
return sstBuilder_.getMessageOrBuilder();
} else {
return sst_ == null ?
org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_;
}
}
/**
*
* The SST meta used to identify the downloaded file.
* Must be the same among all nodes in the same Raft group.
* Note: the "crc32" and "cf_name" fields are ignored in this request,
* and the "range" field represents the closed key range after rewrite
* (as origin keys in encoded representation).
*
*
* .import_sstpb.SSTMeta sst = 2 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getSstFieldBuilder() {
if (sstBuilder_ == null) {
sstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>(
getSst(),
getParentForChildren(),
isClean());
sst_ = null;
}
return sstBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The file name of the SST file.
*
*
* string name = 9;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private org.tikv.kvproto.ImportSstpb.RewriteRule rewriteRule_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.RewriteRule, org.tikv.kvproto.ImportSstpb.RewriteRule.Builder, org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder> rewriteRuleBuilder_;
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public boolean hasRewriteRule() {
return rewriteRuleBuilder_ != null || rewriteRule_ != null;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RewriteRule getRewriteRule() {
if (rewriteRuleBuilder_ == null) {
return rewriteRule_ == null ? org.tikv.kvproto.ImportSstpb.RewriteRule.getDefaultInstance() : rewriteRule_;
} else {
return rewriteRuleBuilder_.getMessage();
}
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public Builder setRewriteRule(org.tikv.kvproto.ImportSstpb.RewriteRule value) {
if (rewriteRuleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rewriteRule_ = value;
onChanged();
} else {
rewriteRuleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public Builder setRewriteRule(
org.tikv.kvproto.ImportSstpb.RewriteRule.Builder builderForValue) {
if (rewriteRuleBuilder_ == null) {
rewriteRule_ = builderForValue.build();
onChanged();
} else {
rewriteRuleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public Builder mergeRewriteRule(org.tikv.kvproto.ImportSstpb.RewriteRule value) {
if (rewriteRuleBuilder_ == null) {
if (rewriteRule_ != null) {
rewriteRule_ =
org.tikv.kvproto.ImportSstpb.RewriteRule.newBuilder(rewriteRule_).mergeFrom(value).buildPartial();
} else {
rewriteRule_ = value;
}
onChanged();
} else {
rewriteRuleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public Builder clearRewriteRule() {
if (rewriteRuleBuilder_ == null) {
rewriteRule_ = null;
onChanged();
} else {
rewriteRule_ = null;
rewriteRuleBuilder_ = null;
}
return this;
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RewriteRule.Builder getRewriteRuleBuilder() {
onChanged();
return getRewriteRuleFieldBuilder().getBuilder();
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder getRewriteRuleOrBuilder() {
if (rewriteRuleBuilder_ != null) {
return rewriteRuleBuilder_.getMessageOrBuilder();
} else {
return rewriteRule_ == null ?
org.tikv.kvproto.ImportSstpb.RewriteRule.getDefaultInstance() : rewriteRule_;
}
}
/**
*
* Performs a key prefix rewrite after downloading the SST file.
* All keys in the SST will be rewritten as:
* new_key = new_key_prefix + old_key[len(old_key_prefix)..]
* When used for TiDB, rewriting the prefix changes the table ID. Please
* note that key-rewrite is applied on the origin keys in encoded
* representation (the SST itself should still use data keys in encoded
* representation).
* You need to ensure that the keys before and after rewriting are in the
* same order, otherwise the RPC request will fail.
*
*
* .import_sstpb.RewriteRule rewrite_rule = 13 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.RewriteRule, org.tikv.kvproto.ImportSstpb.RewriteRule.Builder, org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder>
getRewriteRuleFieldBuilder() {
if (rewriteRuleBuilder_ == null) {
rewriteRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.RewriteRule, org.tikv.kvproto.ImportSstpb.RewriteRule.Builder, org.tikv.kvproto.ImportSstpb.RewriteRuleOrBuilder>(
getRewriteRule(),
getParentForChildren(),
isClean());
rewriteRule_ = null;
}
return rewriteRuleBuilder_;
}
private org.tikv.kvproto.BackupOuterClass.StorageBackend storageBackend_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.BackupOuterClass.StorageBackend, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder, org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder> storageBackendBuilder_;
/**
* .backup.StorageBackend storage_backend = 14;
*/
public boolean hasStorageBackend() {
return storageBackendBuilder_ != null || storageBackend_ != null;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public org.tikv.kvproto.BackupOuterClass.StorageBackend getStorageBackend() {
if (storageBackendBuilder_ == null) {
return storageBackend_ == null ? org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance() : storageBackend_;
} else {
return storageBackendBuilder_.getMessage();
}
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public Builder setStorageBackend(org.tikv.kvproto.BackupOuterClass.StorageBackend value) {
if (storageBackendBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storageBackend_ = value;
onChanged();
} else {
storageBackendBuilder_.setMessage(value);
}
return this;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public Builder setStorageBackend(
org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder builderForValue) {
if (storageBackendBuilder_ == null) {
storageBackend_ = builderForValue.build();
onChanged();
} else {
storageBackendBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public Builder mergeStorageBackend(org.tikv.kvproto.BackupOuterClass.StorageBackend value) {
if (storageBackendBuilder_ == null) {
if (storageBackend_ != null) {
storageBackend_ =
org.tikv.kvproto.BackupOuterClass.StorageBackend.newBuilder(storageBackend_).mergeFrom(value).buildPartial();
} else {
storageBackend_ = value;
}
onChanged();
} else {
storageBackendBuilder_.mergeFrom(value);
}
return this;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public Builder clearStorageBackend() {
if (storageBackendBuilder_ == null) {
storageBackend_ = null;
onChanged();
} else {
storageBackend_ = null;
storageBackendBuilder_ = null;
}
return this;
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder getStorageBackendBuilder() {
onChanged();
return getStorageBackendFieldBuilder().getBuilder();
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
public org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder getStorageBackendOrBuilder() {
if (storageBackendBuilder_ != null) {
return storageBackendBuilder_.getMessageOrBuilder();
} else {
return storageBackend_ == null ?
org.tikv.kvproto.BackupOuterClass.StorageBackend.getDefaultInstance() : storageBackend_;
}
}
/**
* .backup.StorageBackend storage_backend = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.BackupOuterClass.StorageBackend, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder, org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder>
getStorageBackendFieldBuilder() {
if (storageBackendBuilder_ == null) {
storageBackendBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.BackupOuterClass.StorageBackend, org.tikv.kvproto.BackupOuterClass.StorageBackend.Builder, org.tikv.kvproto.BackupOuterClass.StorageBackendOrBuilder>(
getStorageBackend(),
getParentForChildren(),
isClean());
storageBackend_ = null;
}
return storageBackendBuilder_;
}
private boolean isRawKv_ ;
/**
* bool is_raw_kv = 15;
*/
public boolean getIsRawKv() {
return isRawKv_;
}
/**
* bool is_raw_kv = 15;
*/
public Builder setIsRawKv(boolean value) {
isRawKv_ = value;
onChanged();
return this;
}
/**
* bool is_raw_kv = 15;
*/
public Builder clearIsRawKv() {
isRawKv_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:import_sstpb.DownloadRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.DownloadRequest)
private static final org.tikv.kvproto.ImportSstpb.DownloadRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.DownloadRequest();
}
public static org.tikv.kvproto.ImportSstpb.DownloadRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DownloadRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DownloadRequest(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.ImportSstpb.DownloadRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.Error)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
*/
java.lang.String getMessage();
/**
* string message = 1;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* For now it is just used for distinguishing the error of the request with the error
* of gRPC, add more concrete types if it is necessary later.
*
*
* Protobuf type {@code import_sstpb.Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.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() {
message_ = "";
}
@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: {
java.lang.String s = input.readStringRequireUtf8();
message_ = 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.ImportSstpb.internal_static_import_sstpb_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.Error.class, org.tikv.kvproto.ImportSstpb.Error.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 1;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = 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 (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
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.ImportSstpb.Error)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.Error other = (org.tikv.kvproto.ImportSstpb.Error) obj;
boolean result = true;
result = result && getMessage()
.equals(other.getMessage());
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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.Error parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Error parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.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;
}
/**
*
* For now it is just used for distinguishing the error of the request with the error
* of gRPC, add more concrete types if it is necessary later.
*
*
* Protobuf type {@code import_sstpb.Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.Error)
org.tikv.kvproto.ImportSstpb.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.Error.class, org.tikv.kvproto.ImportSstpb.Error.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.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();
message_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Error_descriptor;
}
public org.tikv.kvproto.ImportSstpb.Error getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.Error build() {
org.tikv.kvproto.ImportSstpb.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.Error buildPartial() {
org.tikv.kvproto.ImportSstpb.Error result = new org.tikv.kvproto.ImportSstpb.Error(this);
result.message_ = message_;
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.ImportSstpb.Error) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.Error other) {
if (other == org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
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.ImportSstpb.Error parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.Error) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = 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_sstpb.Error)
}
// @@protoc_insertion_point(class_scope:import_sstpb.Error)
private static final org.tikv.kvproto.ImportSstpb.Error DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.Error();
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DownloadResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.DownloadResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
boolean hasRange();
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
org.tikv.kvproto.ImportSstpb.Range getRange();
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder();
/**
*
* Whether the SST is empty. An empty SST is prohibited in TiKV, do not
* ingest if this field is true.
* (Deprecated, should be replaced by checking `length == 0` in the future)
*
*
* bool is_empty = 2;
*/
boolean getIsEmpty();
/**
* .import_sstpb.Error error = 3;
*/
boolean hasError();
/**
* .import_sstpb.Error error = 3;
*/
org.tikv.kvproto.ImportSstpb.Error getError();
/**
* .import_sstpb.Error error = 3;
*/
org.tikv.kvproto.ImportSstpb.ErrorOrBuilder getErrorOrBuilder();
/**
*
* The CRC32 checksum of the rewritten SST file (implementation can return
* zero, indicating the CRC32 was not calculated).
*
*
* uint32 crc32 = 4;
*/
int getCrc32();
/**
*
* The actual length of the rewritten SST file.
*
*
* uint64 length = 5;
*/
long getLength();
}
/**
* Protobuf type {@code import_sstpb.DownloadResponse}
*/
public static final class DownloadResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.DownloadResponse)
DownloadResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DownloadResponse.newBuilder() to construct.
private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DownloadResponse() {
isEmpty_ = false;
crc32_ = 0;
length_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DownloadResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.ImportSstpb.Range.Builder subBuilder = null;
if (range_ != null) {
subBuilder = range_.toBuilder();
}
range_ = input.readMessage(org.tikv.kvproto.ImportSstpb.Range.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(range_);
range_ = subBuilder.buildPartial();
}
break;
}
case 16: {
isEmpty_ = input.readBool();
break;
}
case 26: {
org.tikv.kvproto.ImportSstpb.Error.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.tikv.kvproto.ImportSstpb.Error.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 32: {
crc32_ = input.readUInt32();
break;
}
case 40: {
length_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.DownloadResponse.class, org.tikv.kvproto.ImportSstpb.DownloadResponse.Builder.class);
}
public static final int RANGE_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportSstpb.Range range_;
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasRange() {
return range_ != null;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.Range getRange() {
return range_ == null ? org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder() {
return getRange();
}
public static final int IS_EMPTY_FIELD_NUMBER = 2;
private boolean isEmpty_;
/**
*
* Whether the SST is empty. An empty SST is prohibited in TiKV, do not
* ingest if this field is true.
* (Deprecated, should be replaced by checking `length == 0` in the future)
*
*
* bool is_empty = 2;
*/
public boolean getIsEmpty() {
return isEmpty_;
}
public static final int ERROR_FIELD_NUMBER = 3;
private org.tikv.kvproto.ImportSstpb.Error error_;
/**
* .import_sstpb.Error error = 3;
*/
public boolean hasError() {
return error_ != null;
}
/**
* .import_sstpb.Error error = 3;
*/
public org.tikv.kvproto.ImportSstpb.Error getError() {
return error_ == null ? org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance() : error_;
}
/**
* .import_sstpb.Error error = 3;
*/
public org.tikv.kvproto.ImportSstpb.ErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int CRC32_FIELD_NUMBER = 4;
private int crc32_;
/**
*
* The CRC32 checksum of the rewritten SST file (implementation can return
* zero, indicating the CRC32 was not calculated).
*
*
* uint32 crc32 = 4;
*/
public int getCrc32() {
return crc32_;
}
public static final int LENGTH_FIELD_NUMBER = 5;
private long length_;
/**
*
* The actual length of the rewritten SST file.
*
*
* uint64 length = 5;
*/
public long getLength() {
return length_;
}
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 (range_ != null) {
output.writeMessage(1, getRange());
}
if (isEmpty_ != false) {
output.writeBool(2, isEmpty_);
}
if (error_ != null) {
output.writeMessage(3, getError());
}
if (crc32_ != 0) {
output.writeUInt32(4, crc32_);
}
if (length_ != 0L) {
output.writeUInt64(5, length_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (range_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRange());
}
if (isEmpty_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isEmpty_);
}
if (error_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getError());
}
if (crc32_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, crc32_);
}
if (length_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, length_);
}
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.ImportSstpb.DownloadResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.DownloadResponse other = (org.tikv.kvproto.ImportSstpb.DownloadResponse) obj;
boolean result = true;
result = result && (hasRange() == other.hasRange());
if (hasRange()) {
result = result && getRange()
.equals(other.getRange());
}
result = result && (getIsEmpty()
== other.getIsEmpty());
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (getCrc32()
== other.getCrc32());
result = result && (getLength()
== other.getLength());
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 (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
hash = (37 * hash) + IS_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsEmpty());
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (37 * hash) + CRC32_FIELD_NUMBER;
hash = (53 * hash) + getCrc32();
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLength());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse 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.ImportSstpb.DownloadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse 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.ImportSstpb.DownloadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse 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.ImportSstpb.DownloadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse 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.ImportSstpb.DownloadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse 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.ImportSstpb.DownloadResponse 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_sstpb.DownloadResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.DownloadResponse)
org.tikv.kvproto.ImportSstpb.DownloadResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.DownloadResponse.class, org.tikv.kvproto.ImportSstpb.DownloadResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.DownloadResponse.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 (rangeBuilder_ == null) {
range_ = null;
} else {
range_ = null;
rangeBuilder_ = null;
}
isEmpty_ = false;
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
crc32_ = 0;
length_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_DownloadResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.DownloadResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.DownloadResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.DownloadResponse build() {
org.tikv.kvproto.ImportSstpb.DownloadResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.DownloadResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.DownloadResponse result = new org.tikv.kvproto.ImportSstpb.DownloadResponse(this);
if (rangeBuilder_ == null) {
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
result.isEmpty_ = isEmpty_;
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
result.crc32_ = crc32_;
result.length_ = length_;
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.ImportSstpb.DownloadResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.DownloadResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.DownloadResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.DownloadResponse.getDefaultInstance()) return this;
if (other.hasRange()) {
mergeRange(other.getRange());
}
if (other.getIsEmpty() != false) {
setIsEmpty(other.getIsEmpty());
}
if (other.hasError()) {
mergeError(other.getError());
}
if (other.getCrc32() != 0) {
setCrc32(other.getCrc32());
}
if (other.getLength() != 0L) {
setLength(other.getLength());
}
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.ImportSstpb.DownloadResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.DownloadResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.ImportSstpb.Range range_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder> rangeBuilder_;
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasRange() {
return rangeBuilder_ != null || range_ != null;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.Range getRange() {
if (rangeBuilder_ == null) {
return range_ == null ? org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
} else {
return rangeBuilder_.getMessage();
}
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public Builder setRange(org.tikv.kvproto.ImportSstpb.Range value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
range_ = value;
onChanged();
} else {
rangeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public Builder setRange(
org.tikv.kvproto.ImportSstpb.Range.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
onChanged();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeRange(org.tikv.kvproto.ImportSstpb.Range value) {
if (rangeBuilder_ == null) {
if (range_ != null) {
range_ =
org.tikv.kvproto.ImportSstpb.Range.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
onChanged();
} else {
rangeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearRange() {
if (rangeBuilder_ == null) {
range_ = null;
onChanged();
} else {
range_ = null;
rangeBuilder_ = null;
}
return this;
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.Range.Builder getRangeBuilder() {
onChanged();
return getRangeFieldBuilder().getBuilder();
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
public org.tikv.kvproto.ImportSstpb.RangeOrBuilder getRangeOrBuilder() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilder();
} else {
return range_ == null ?
org.tikv.kvproto.ImportSstpb.Range.getDefaultInstance() : range_;
}
}
/**
*
* The actual key range (after rewrite) of the downloaded SST. The range is
* inclusive in both ends.
*
*
* .import_sstpb.Range range = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Range, org.tikv.kvproto.ImportSstpb.Range.Builder, org.tikv.kvproto.ImportSstpb.RangeOrBuilder>(
getRange(),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
private boolean isEmpty_ ;
/**
*
* Whether the SST is empty. An empty SST is prohibited in TiKV, do not
* ingest if this field is true.
* (Deprecated, should be replaced by checking `length == 0` in the future)
*
*
* bool is_empty = 2;
*/
public boolean getIsEmpty() {
return isEmpty_;
}
/**
*
* Whether the SST is empty. An empty SST is prohibited in TiKV, do not
* ingest if this field is true.
* (Deprecated, should be replaced by checking `length == 0` in the future)
*
*
* bool is_empty = 2;
*/
public Builder setIsEmpty(boolean value) {
isEmpty_ = value;
onChanged();
return this;
}
/**
*
* Whether the SST is empty. An empty SST is prohibited in TiKV, do not
* ingest if this field is true.
* (Deprecated, should be replaced by checking `length == 0` in the future)
*
*
* bool is_empty = 2;
*/
public Builder clearIsEmpty() {
isEmpty_ = false;
onChanged();
return this;
}
private org.tikv.kvproto.ImportSstpb.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Error, org.tikv.kvproto.ImportSstpb.Error.Builder, org.tikv.kvproto.ImportSstpb.ErrorOrBuilder> errorBuilder_;
/**
* .import_sstpb.Error error = 3;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
* .import_sstpb.Error error = 3;
*/
public org.tikv.kvproto.ImportSstpb.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* .import_sstpb.Error error = 3;
*/
public Builder setError(org.tikv.kvproto.ImportSstpb.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.Error error = 3;
*/
public Builder setError(
org.tikv.kvproto.ImportSstpb.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.Error error = 3;
*/
public Builder mergeError(org.tikv.kvproto.ImportSstpb.Error value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
org.tikv.kvproto.ImportSstpb.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.Error error = 3;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.Error error = 3;
*/
public org.tikv.kvproto.ImportSstpb.Error.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* .import_sstpb.Error error = 3;
*/
public org.tikv.kvproto.ImportSstpb.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance() : error_;
}
}
/**
* .import_sstpb.Error error = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Error, org.tikv.kvproto.ImportSstpb.Error.Builder, org.tikv.kvproto.ImportSstpb.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Error, org.tikv.kvproto.ImportSstpb.Error.Builder, org.tikv.kvproto.ImportSstpb.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private int crc32_ ;
/**
*
* The CRC32 checksum of the rewritten SST file (implementation can return
* zero, indicating the CRC32 was not calculated).
*
*
* uint32 crc32 = 4;
*/
public int getCrc32() {
return crc32_;
}
/**
*
* The CRC32 checksum of the rewritten SST file (implementation can return
* zero, indicating the CRC32 was not calculated).
*
*
* uint32 crc32 = 4;
*/
public Builder setCrc32(int value) {
crc32_ = value;
onChanged();
return this;
}
/**
*
* The CRC32 checksum of the rewritten SST file (implementation can return
* zero, indicating the CRC32 was not calculated).
*
*
* uint32 crc32 = 4;
*/
public Builder clearCrc32() {
crc32_ = 0;
onChanged();
return this;
}
private long length_ ;
/**
*
* The actual length of the rewritten SST file.
*
*
* uint64 length = 5;
*/
public long getLength() {
return length_;
}
/**
*
* The actual length of the rewritten SST file.
*
*
* uint64 length = 5;
*/
public Builder setLength(long value) {
length_ = value;
onChanged();
return this;
}
/**
*
* The actual length of the rewritten SST file.
*
*
* uint64 length = 5;
*/
public Builder clearLength() {
length_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:import_sstpb.DownloadResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.DownloadResponse)
private static final org.tikv.kvproto.ImportSstpb.DownloadResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.DownloadResponse();
}
public static org.tikv.kvproto.ImportSstpb.DownloadResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DownloadResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DownloadResponse(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.ImportSstpb.DownloadResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetDownloadSpeedLimitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.SetDownloadSpeedLimitRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The download speed limit (bytes/second). Set to 0 for unlimited speed.
*
*
* uint64 speed_limit = 1;
*/
long getSpeedLimit();
}
/**
* Protobuf type {@code import_sstpb.SetDownloadSpeedLimitRequest}
*/
public static final class SetDownloadSpeedLimitRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.SetDownloadSpeedLimitRequest)
SetDownloadSpeedLimitRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetDownloadSpeedLimitRequest.newBuilder() to construct.
private SetDownloadSpeedLimitRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetDownloadSpeedLimitRequest() {
speedLimit_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetDownloadSpeedLimitRequest(
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: {
speedLimit_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.class, org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.Builder.class);
}
public static final int SPEED_LIMIT_FIELD_NUMBER = 1;
private long speedLimit_;
/**
*
* The download speed limit (bytes/second). Set to 0 for unlimited speed.
*
*
* uint64 speed_limit = 1;
*/
public long getSpeedLimit() {
return speedLimit_;
}
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 (speedLimit_ != 0L) {
output.writeUInt64(1, speedLimit_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (speedLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, speedLimit_);
}
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.ImportSstpb.SetDownloadSpeedLimitRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest other = (org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest) obj;
boolean result = true;
result = result && (getSpeedLimit()
== other.getSpeedLimit());
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) + SPEED_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSpeedLimit());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest 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.ImportSstpb.SetDownloadSpeedLimitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest 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.ImportSstpb.SetDownloadSpeedLimitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest 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.ImportSstpb.SetDownloadSpeedLimitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest 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.ImportSstpb.SetDownloadSpeedLimitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest 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.ImportSstpb.SetDownloadSpeedLimitRequest 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_sstpb.SetDownloadSpeedLimitRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.SetDownloadSpeedLimitRequest)
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.class, org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.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();
speedLimit_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest build() {
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest result = new org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest(this);
result.speedLimit_ = speedLimit_;
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.ImportSstpb.SetDownloadSpeedLimitRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest.getDefaultInstance()) return this;
if (other.getSpeedLimit() != 0L) {
setSpeedLimit(other.getSpeedLimit());
}
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.ImportSstpb.SetDownloadSpeedLimitRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long speedLimit_ ;
/**
*
* The download speed limit (bytes/second). Set to 0 for unlimited speed.
*
*
* uint64 speed_limit = 1;
*/
public long getSpeedLimit() {
return speedLimit_;
}
/**
*
* The download speed limit (bytes/second). Set to 0 for unlimited speed.
*
*
* uint64 speed_limit = 1;
*/
public Builder setSpeedLimit(long value) {
speedLimit_ = value;
onChanged();
return this;
}
/**
*
* The download speed limit (bytes/second). Set to 0 for unlimited speed.
*
*
* uint64 speed_limit = 1;
*/
public Builder clearSpeedLimit() {
speedLimit_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:import_sstpb.SetDownloadSpeedLimitRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.SetDownloadSpeedLimitRequest)
private static final org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest();
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SetDownloadSpeedLimitRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetDownloadSpeedLimitRequest(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.ImportSstpb.SetDownloadSpeedLimitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetDownloadSpeedLimitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.SetDownloadSpeedLimitResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code import_sstpb.SetDownloadSpeedLimitResponse}
*/
public static final class SetDownloadSpeedLimitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.SetDownloadSpeedLimitResponse)
SetDownloadSpeedLimitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetDownloadSpeedLimitResponse.newBuilder() to construct.
private SetDownloadSpeedLimitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetDownloadSpeedLimitResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetDownloadSpeedLimitResponse(
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.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.class, org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.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.ImportSstpb.SetDownloadSpeedLimitResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse other = (org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse) 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.ImportSstpb.SetDownloadSpeedLimitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse 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.ImportSstpb.SetDownloadSpeedLimitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse 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.ImportSstpb.SetDownloadSpeedLimitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse 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.ImportSstpb.SetDownloadSpeedLimitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse 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.ImportSstpb.SetDownloadSpeedLimitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse 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.ImportSstpb.SetDownloadSpeedLimitResponse 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_sstpb.SetDownloadSpeedLimitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.SetDownloadSpeedLimitResponse)
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.class, org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.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.ImportSstpb.internal_static_import_sstpb_SetDownloadSpeedLimitResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse build() {
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse result = new org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse(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.ImportSstpb.SetDownloadSpeedLimitResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse.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.ImportSstpb.SetDownloadSpeedLimitResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse) 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_sstpb.SetDownloadSpeedLimitResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.SetDownloadSpeedLimitResponse)
private static final org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse();
}
public static org.tikv.kvproto.ImportSstpb.SetDownloadSpeedLimitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SetDownloadSpeedLimitResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetDownloadSpeedLimitResponse(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.ImportSstpb.SetDownloadSpeedLimitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PairOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.Pair)
com.google.protobuf.MessageOrBuilder {
/**
* bytes key = 1;
*/
com.google.protobuf.ByteString getKey();
/**
* bytes value = 2;
*/
com.google.protobuf.ByteString getValue();
/**
* .import_sstpb.Pair.OP op = 3;
*/
int getOpValue();
/**
* .import_sstpb.Pair.OP op = 3;
*/
org.tikv.kvproto.ImportSstpb.Pair.OP getOp();
}
/**
* Protobuf type {@code import_sstpb.Pair}
*/
public static final class Pair extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.Pair)
PairOrBuilder {
private static final long serialVersionUID = 0L;
// Use Pair.newBuilder() to construct.
private Pair(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Pair() {
key_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
op_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Pair(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
key_ = input.readBytes();
break;
}
case 18: {
value_ = input.readBytes();
break;
}
case 24: {
int rawValue = input.readEnum();
op_ = rawValue;
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.ImportSstpb.internal_static_import_sstpb_Pair_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Pair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.Pair.class, org.tikv.kvproto.ImportSstpb.Pair.Builder.class);
}
/**
* Protobuf enum {@code import_sstpb.Pair.OP}
*/
public enum OP
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Put = 0;
*/
Put(0),
/**
* Delete = 1;
*/
Delete(1),
UNRECOGNIZED(-1),
;
/**
* Put = 0;
*/
public static final int Put_VALUE = 0;
/**
* Delete = 1;
*/
public static final int Delete_VALUE = 1;
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;
case 1: return Delete;
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.ImportSstpb.Pair.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_sstpb.Pair.OP)
}
public static final int KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString key_;
/**
* bytes key = 1;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int OP_FIELD_NUMBER = 3;
private int op_;
/**
* .import_sstpb.Pair.OP op = 3;
*/
public int getOpValue() {
return op_;
}
/**
* .import_sstpb.Pair.OP op = 3;
*/
public org.tikv.kvproto.ImportSstpb.Pair.OP getOp() {
org.tikv.kvproto.ImportSstpb.Pair.OP result = org.tikv.kvproto.ImportSstpb.Pair.OP.valueOf(op_);
return result == null ? org.tikv.kvproto.ImportSstpb.Pair.OP.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!key_.isEmpty()) {
output.writeBytes(1, key_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
if (op_ != org.tikv.kvproto.ImportSstpb.Pair.OP.Put.getNumber()) {
output.writeEnum(3, op_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, key_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
if (op_ != org.tikv.kvproto.ImportSstpb.Pair.OP.Put.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, op_);
}
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.ImportSstpb.Pair)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.Pair other = (org.tikv.kvproto.ImportSstpb.Pair) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && op_ == other.op_;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.Pair parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Pair 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.ImportSstpb.Pair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Pair 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.ImportSstpb.Pair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.Pair parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.Pair parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.Pair 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.ImportSstpb.Pair parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.Pair 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.ImportSstpb.Pair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.Pair 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.ImportSstpb.Pair 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_sstpb.Pair}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.Pair)
org.tikv.kvproto.ImportSstpb.PairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Pair_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Pair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.Pair.class, org.tikv.kvproto.ImportSstpb.Pair.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.Pair.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;
op_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_Pair_descriptor;
}
public org.tikv.kvproto.ImportSstpb.Pair getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.Pair.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.Pair build() {
org.tikv.kvproto.ImportSstpb.Pair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.Pair buildPartial() {
org.tikv.kvproto.ImportSstpb.Pair result = new org.tikv.kvproto.ImportSstpb.Pair(this);
result.key_ = key_;
result.value_ = value_;
result.op_ = op_;
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.ImportSstpb.Pair) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.Pair)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.Pair other) {
if (other == org.tikv.kvproto.ImportSstpb.Pair.getDefaultInstance()) return this;
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.op_ != 0) {
setOpValue(other.getOpValue());
}
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.ImportSstpb.Pair parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.Pair) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes key = 1;
*/
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
* bytes key = 1;
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* bytes key = 1;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 2;
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 2;
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* bytes value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private int op_ = 0;
/**
* .import_sstpb.Pair.OP op = 3;
*/
public int getOpValue() {
return op_;
}
/**
* .import_sstpb.Pair.OP op = 3;
*/
public Builder setOpValue(int value) {
op_ = value;
onChanged();
return this;
}
/**
* .import_sstpb.Pair.OP op = 3;
*/
public org.tikv.kvproto.ImportSstpb.Pair.OP getOp() {
org.tikv.kvproto.ImportSstpb.Pair.OP result = org.tikv.kvproto.ImportSstpb.Pair.OP.valueOf(op_);
return result == null ? org.tikv.kvproto.ImportSstpb.Pair.OP.UNRECOGNIZED : result;
}
/**
* .import_sstpb.Pair.OP op = 3;
*/
public Builder setOp(org.tikv.kvproto.ImportSstpb.Pair.OP value) {
if (value == null) {
throw new NullPointerException();
}
op_ = value.getNumber();
onChanged();
return this;
}
/**
* .import_sstpb.Pair.OP op = 3;
*/
public Builder clearOp() {
op_ = 0;
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_sstpb.Pair)
}
// @@protoc_insertion_point(class_scope:import_sstpb.Pair)
private static final org.tikv.kvproto.ImportSstpb.Pair DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.Pair();
}
public static org.tikv.kvproto.ImportSstpb.Pair getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Pair parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pair(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.ImportSstpb.Pair getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteBatchOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.WriteBatch)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 commit_ts = 1;
*/
long getCommitTs();
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
java.util.List
getPairsList();
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
org.tikv.kvproto.ImportSstpb.Pair getPairs(int index);
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
int getPairsCount();
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
java.util.List extends org.tikv.kvproto.ImportSstpb.PairOrBuilder>
getPairsOrBuilderList();
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
org.tikv.kvproto.ImportSstpb.PairOrBuilder getPairsOrBuilder(
int index);
}
/**
* Protobuf type {@code import_sstpb.WriteBatch}
*/
public static final class WriteBatch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.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;
pairs_ = 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)) {
pairs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
pairs_.add(
input.readMessage(org.tikv.kvproto.ImportSstpb.Pair.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)) {
pairs_ = java.util.Collections.unmodifiableList(pairs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.WriteBatch.class, org.tikv.kvproto.ImportSstpb.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 PAIRS_FIELD_NUMBER = 2;
private java.util.List pairs_;
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public java.util.List getPairsList() {
return pairs_;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public java.util.List extends org.tikv.kvproto.ImportSstpb.PairOrBuilder>
getPairsOrBuilderList() {
return pairs_;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public int getPairsCount() {
return pairs_.size();
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.Pair getPairs(int index) {
return pairs_.get(index);
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.PairOrBuilder 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 (commitTs_ != 0L) {
output.writeUInt64(1, commitTs_);
}
for (int i = 0; i < pairs_.size(); i++) {
output.writeMessage(2, pairs_.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 < pairs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, 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.ImportSstpb.WriteBatch)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.WriteBatch other = (org.tikv.kvproto.ImportSstpb.WriteBatch) obj;
boolean result = true;
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) + 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.ImportSstpb.WriteBatch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.WriteBatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.WriteBatch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteBatch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.WriteBatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.WriteBatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.WriteBatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.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_sstpb.WriteBatch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.WriteBatch)
org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.WriteBatch.class, org.tikv.kvproto.ImportSstpb.WriteBatch.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.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) {
getPairsFieldBuilder();
}
}
public Builder clear() {
super.clear();
commitTs_ = 0L;
if (pairsBuilder_ == null) {
pairs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
pairsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteBatch_descriptor;
}
public org.tikv.kvproto.ImportSstpb.WriteBatch getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.WriteBatch build() {
org.tikv.kvproto.ImportSstpb.WriteBatch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.WriteBatch buildPartial() {
org.tikv.kvproto.ImportSstpb.WriteBatch result = new org.tikv.kvproto.ImportSstpb.WriteBatch(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.commitTs_ = commitTs_;
if (pairsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
pairs_ = java.util.Collections.unmodifiableList(pairs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
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.ImportSstpb.WriteBatch) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.WriteBatch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.WriteBatch other) {
if (other == org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance()) return this;
if (other.getCommitTs() != 0L) {
setCommitTs(other.getCommitTs());
}
if (pairsBuilder_ == null) {
if (!other.pairs_.isEmpty()) {
if (pairs_.isEmpty()) {
pairs_ = other.pairs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePairsIsMutable();
pairs_.addAll(other.pairs_);
}
onChanged();
}
} else {
if (!other.pairs_.isEmpty()) {
if (pairsBuilder_.isEmpty()) {
pairsBuilder_.dispose();
pairsBuilder_ = null;
pairs_ = other.pairs_;
bitField0_ = (bitField0_ & ~0x00000002);
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.ImportSstpb.WriteBatch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.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 pairs_ =
java.util.Collections.emptyList();
private void ensurePairsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
pairs_ = new java.util.ArrayList(pairs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Pair, org.tikv.kvproto.ImportSstpb.Pair.Builder, org.tikv.kvproto.ImportSstpb.PairOrBuilder> pairsBuilder_;
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public java.util.List getPairsList() {
if (pairsBuilder_ == null) {
return java.util.Collections.unmodifiableList(pairs_);
} else {
return pairsBuilder_.getMessageList();
}
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public int getPairsCount() {
if (pairsBuilder_ == null) {
return pairs_.size();
} else {
return pairsBuilder_.getCount();
}
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.Pair getPairs(int index) {
if (pairsBuilder_ == null) {
return pairs_.get(index);
} else {
return pairsBuilder_.getMessage(index);
}
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder setPairs(
int index, org.tikv.kvproto.ImportSstpb.Pair 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_sstpb.Pair pairs = 2;
*/
public Builder setPairs(
int index, org.tikv.kvproto.ImportSstpb.Pair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.set(index, builderForValue.build());
onChanged();
} else {
pairsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder addPairs(org.tikv.kvproto.ImportSstpb.Pair value) {
if (pairsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePairsIsMutable();
pairs_.add(value);
onChanged();
} else {
pairsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder addPairs(
int index, org.tikv.kvproto.ImportSstpb.Pair 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_sstpb.Pair pairs = 2;
*/
public Builder addPairs(
org.tikv.kvproto.ImportSstpb.Pair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.add(builderForValue.build());
onChanged();
} else {
pairsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder addPairs(
int index, org.tikv.kvproto.ImportSstpb.Pair.Builder builderForValue) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.add(index, builderForValue.build());
onChanged();
} else {
pairsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder addAllPairs(
java.lang.Iterable extends org.tikv.kvproto.ImportSstpb.Pair> values) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pairs_);
onChanged();
} else {
pairsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder clearPairs() {
if (pairsBuilder_ == null) {
pairs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
pairsBuilder_.clear();
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public Builder removePairs(int index) {
if (pairsBuilder_ == null) {
ensurePairsIsMutable();
pairs_.remove(index);
onChanged();
} else {
pairsBuilder_.remove(index);
}
return this;
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.Pair.Builder getPairsBuilder(
int index) {
return getPairsFieldBuilder().getBuilder(index);
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.PairOrBuilder getPairsOrBuilder(
int index) {
if (pairsBuilder_ == null) {
return pairs_.get(index); } else {
return pairsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public java.util.List extends org.tikv.kvproto.ImportSstpb.PairOrBuilder>
getPairsOrBuilderList() {
if (pairsBuilder_ != null) {
return pairsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pairs_);
}
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.Pair.Builder addPairsBuilder() {
return getPairsFieldBuilder().addBuilder(
org.tikv.kvproto.ImportSstpb.Pair.getDefaultInstance());
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public org.tikv.kvproto.ImportSstpb.Pair.Builder addPairsBuilder(
int index) {
return getPairsFieldBuilder().addBuilder(
index, org.tikv.kvproto.ImportSstpb.Pair.getDefaultInstance());
}
/**
* repeated .import_sstpb.Pair pairs = 2;
*/
public java.util.List
getPairsBuilderList() {
return getPairsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Pair, org.tikv.kvproto.ImportSstpb.Pair.Builder, org.tikv.kvproto.ImportSstpb.PairOrBuilder>
getPairsFieldBuilder() {
if (pairsBuilder_ == null) {
pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Pair, org.tikv.kvproto.ImportSstpb.Pair.Builder, org.tikv.kvproto.ImportSstpb.PairOrBuilder>(
pairs_,
((bitField0_ & 0x00000002) == 0x00000002),
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_sstpb.WriteBatch)
}
// @@protoc_insertion_point(class_scope:import_sstpb.WriteBatch)
private static final org.tikv.kvproto.ImportSstpb.WriteBatch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.WriteBatch();
}
public static org.tikv.kvproto.ImportSstpb.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.ImportSstpb.WriteBatch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.WriteRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .import_sstpb.SSTMeta meta = 1;
*/
boolean hasMeta();
/**
* .import_sstpb.SSTMeta meta = 1;
*/
org.tikv.kvproto.ImportSstpb.SSTMeta getMeta();
/**
* .import_sstpb.SSTMeta meta = 1;
*/
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetaOrBuilder();
/**
* .import_sstpb.WriteBatch batch = 2;
*/
boolean hasBatch();
/**
* .import_sstpb.WriteBatch batch = 2;
*/
org.tikv.kvproto.ImportSstpb.WriteBatch getBatch();
/**
* .import_sstpb.WriteBatch batch = 2;
*/
org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder getBatchOrBuilder();
public org.tikv.kvproto.ImportSstpb.WriteRequest.ChunkCase getChunkCase();
}
/**
* Protobuf type {@code import_sstpb.WriteRequest}
*/
public static final class WriteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.WriteRequest)
WriteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteRequest.newBuilder() to construct.
private WriteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder subBuilder = null;
if (chunkCase_ == 1) {
subBuilder = ((org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_).toBuilder();
}
chunk_ =
input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_);
chunk_ = subBuilder.buildPartial();
}
chunkCase_ = 1;
break;
}
case 18: {
org.tikv.kvproto.ImportSstpb.WriteBatch.Builder subBuilder = null;
if (chunkCase_ == 2) {
subBuilder = ((org.tikv.kvproto.ImportSstpb.WriteBatch) chunk_).toBuilder();
}
chunk_ =
input.readMessage(org.tikv.kvproto.ImportSstpb.WriteBatch.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tikv.kvproto.ImportSstpb.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.ImportSstpb.internal_static_import_sstpb_WriteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.WriteRequest.class, org.tikv.kvproto.ImportSstpb.WriteRequest.Builder.class);
}
private int chunkCase_ = 0;
private java.lang.Object chunk_;
public enum ChunkCase
implements com.google.protobuf.Internal.EnumLite {
META(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 META;
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 META_FIELD_NUMBER = 1;
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public boolean hasMeta() {
return chunkCase_ == 1;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getMeta() {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetaOrBuilder() {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
public static final int BATCH_FIELD_NUMBER = 2;
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public boolean hasBatch() {
return chunkCase_ == 2;
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportSstpb.WriteBatch getBatch() {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportSstpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance();
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder getBatchOrBuilder() {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportSstpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SSTMeta) chunk_);
}
if (chunkCase_ == 2) {
output.writeMessage(2, (org.tikv.kvproto.ImportSstpb.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.ImportSstpb.SSTMeta) chunk_);
}
if (chunkCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (org.tikv.kvproto.ImportSstpb.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.ImportSstpb.WriteRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.WriteRequest other = (org.tikv.kvproto.ImportSstpb.WriteRequest) obj;
boolean result = true;
result = result && getChunkCase().equals(
other.getChunkCase());
if (!result) return false;
switch (chunkCase_) {
case 1:
result = result && getMeta()
.equals(other.getMeta());
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) + META_FIELD_NUMBER;
hash = (53 * hash) + getMeta().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.ImportSstpb.WriteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest 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.ImportSstpb.WriteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest 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.ImportSstpb.WriteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest 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.ImportSstpb.WriteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest 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.ImportSstpb.WriteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest 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.ImportSstpb.WriteRequest 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_sstpb.WriteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.WriteRequest)
org.tikv.kvproto.ImportSstpb.WriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.WriteRequest.class, org.tikv.kvproto.ImportSstpb.WriteRequest.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.WriteRequest.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.ImportSstpb.internal_static_import_sstpb_WriteRequest_descriptor;
}
public org.tikv.kvproto.ImportSstpb.WriteRequest getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.WriteRequest.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.WriteRequest build() {
org.tikv.kvproto.ImportSstpb.WriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.WriteRequest buildPartial() {
org.tikv.kvproto.ImportSstpb.WriteRequest result = new org.tikv.kvproto.ImportSstpb.WriteRequest(this);
if (chunkCase_ == 1) {
if (metaBuilder_ == null) {
result.chunk_ = chunk_;
} else {
result.chunk_ = metaBuilder_.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.ImportSstpb.WriteRequest) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.WriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.WriteRequest other) {
if (other == org.tikv.kvproto.ImportSstpb.WriteRequest.getDefaultInstance()) return this;
switch (other.getChunkCase()) {
case META: {
mergeMeta(other.getMeta());
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.ImportSstpb.WriteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.WriteRequest) 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.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> metaBuilder_;
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public boolean hasMeta() {
return chunkCase_ == 1;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getMeta() {
if (metaBuilder_ == null) {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
} else {
if (chunkCase_ == 1) {
return metaBuilder_.getMessage();
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder setMeta(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
metaBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder setMeta(
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (metaBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
metaBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 1;
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder mergeMeta(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metaBuilder_ == null) {
if (chunkCase_ == 1 &&
chunk_ != org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance()) {
chunk_ = org.tikv.kvproto.ImportSstpb.SSTMeta.newBuilder((org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 1) {
metaBuilder_.mergeFrom(value);
}
metaBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public Builder clearMeta() {
if (metaBuilder_ == null) {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
onChanged();
}
} else {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
}
metaBuilder_.clear();
}
return this;
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getMetaBuilder() {
return getMetaFieldBuilder().getBuilder();
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetaOrBuilder() {
if ((chunkCase_ == 1) && (metaBuilder_ != null)) {
return metaBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 1) {
return (org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_;
}
return org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
}
/**
* .import_sstpb.SSTMeta meta = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getMetaFieldBuilder() {
if (metaBuilder_ == null) {
if (!(chunkCase_ == 1)) {
chunk_ = org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance();
}
metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>(
(org.tikv.kvproto.ImportSstpb.SSTMeta) chunk_,
getParentForChildren(),
isClean());
chunk_ = null;
}
chunkCase_ = 1;
onChanged();;
return metaBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.WriteBatch, org.tikv.kvproto.ImportSstpb.WriteBatch.Builder, org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder> batchBuilder_;
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public boolean hasBatch() {
return chunkCase_ == 2;
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportSstpb.WriteBatch getBatch() {
if (batchBuilder_ == null) {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportSstpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance();
} else {
if (chunkCase_ == 2) {
return batchBuilder_.getMessage();
}
return org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance();
}
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public Builder setBatch(org.tikv.kvproto.ImportSstpb.WriteBatch value) {
if (batchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
batchBuilder_.setMessage(value);
}
chunkCase_ = 2;
return this;
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public Builder setBatch(
org.tikv.kvproto.ImportSstpb.WriteBatch.Builder builderForValue) {
if (batchBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
batchBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 2;
return this;
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public Builder mergeBatch(org.tikv.kvproto.ImportSstpb.WriteBatch value) {
if (batchBuilder_ == null) {
if (chunkCase_ == 2 &&
chunk_ != org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance()) {
chunk_ = org.tikv.kvproto.ImportSstpb.WriteBatch.newBuilder((org.tikv.kvproto.ImportSstpb.WriteBatch) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 2) {
batchBuilder_.mergeFrom(value);
}
batchBuilder_.setMessage(value);
}
chunkCase_ = 2;
return this;
}
/**
* .import_sstpb.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_sstpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportSstpb.WriteBatch.Builder getBatchBuilder() {
return getBatchFieldBuilder().getBuilder();
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
public org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder getBatchOrBuilder() {
if ((chunkCase_ == 2) && (batchBuilder_ != null)) {
return batchBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 2) {
return (org.tikv.kvproto.ImportSstpb.WriteBatch) chunk_;
}
return org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance();
}
}
/**
* .import_sstpb.WriteBatch batch = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.WriteBatch, org.tikv.kvproto.ImportSstpb.WriteBatch.Builder, org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder>
getBatchFieldBuilder() {
if (batchBuilder_ == null) {
if (!(chunkCase_ == 2)) {
chunk_ = org.tikv.kvproto.ImportSstpb.WriteBatch.getDefaultInstance();
}
batchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.WriteBatch, org.tikv.kvproto.ImportSstpb.WriteBatch.Builder, org.tikv.kvproto.ImportSstpb.WriteBatchOrBuilder>(
(org.tikv.kvproto.ImportSstpb.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_sstpb.WriteRequest)
}
// @@protoc_insertion_point(class_scope:import_sstpb.WriteRequest)
private static final org.tikv.kvproto.ImportSstpb.WriteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.WriteRequest();
}
public static org.tikv.kvproto.ImportSstpb.WriteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteRequest(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.ImportSstpb.WriteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:import_sstpb.WriteResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .import_sstpb.Error error = 1;
*/
boolean hasError();
/**
* .import_sstpb.Error error = 1;
*/
org.tikv.kvproto.ImportSstpb.Error getError();
/**
* .import_sstpb.Error error = 1;
*/
org.tikv.kvproto.ImportSstpb.ErrorOrBuilder getErrorOrBuilder();
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
java.util.List
getMetasList();
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
org.tikv.kvproto.ImportSstpb.SSTMeta getMetas(int index);
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
int getMetasCount();
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
java.util.List extends org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getMetasOrBuilderList();
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetasOrBuilder(
int index);
}
/**
* Protobuf type {@code import_sstpb.WriteResponse}
*/
public static final class WriteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:import_sstpb.WriteResponse)
WriteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteResponse.newBuilder() to construct.
private WriteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteResponse() {
metas_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.ImportSstpb.Error.Builder subBuilder = null;
if (error_ != null) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.tikv.kvproto.ImportSstpb.Error.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
metas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
metas_.add(
input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.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)) {
metas_ = java.util.Collections.unmodifiableList(metas_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.WriteResponse.class, org.tikv.kvproto.ImportSstpb.WriteResponse.Builder.class);
}
private int bitField0_;
public static final int ERROR_FIELD_NUMBER = 1;
private org.tikv.kvproto.ImportSstpb.Error error_;
/**
* .import_sstpb.Error error = 1;
*/
public boolean hasError() {
return error_ != null;
}
/**
* .import_sstpb.Error error = 1;
*/
public org.tikv.kvproto.ImportSstpb.Error getError() {
return error_ == null ? org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance() : error_;
}
/**
* .import_sstpb.Error error = 1;
*/
public org.tikv.kvproto.ImportSstpb.ErrorOrBuilder getErrorOrBuilder() {
return getError();
}
public static final int METAS_FIELD_NUMBER = 2;
private java.util.List metas_;
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public java.util.List getMetasList() {
return metas_;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public java.util.List extends org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getMetasOrBuilderList() {
return metas_;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public int getMetasCount() {
return metas_.size();
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getMetas(int index) {
return metas_.get(index);
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetasOrBuilder(
int index) {
return metas_.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 (error_ != null) {
output.writeMessage(1, getError());
}
for (int i = 0; i < metas_.size(); i++) {
output.writeMessage(2, metas_.get(i));
}
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());
}
for (int i = 0; i < metas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, metas_.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.ImportSstpb.WriteResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.ImportSstpb.WriteResponse other = (org.tikv.kvproto.ImportSstpb.WriteResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && getMetasList()
.equals(other.getMetasList());
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();
}
if (getMetasCount() > 0) {
hash = (37 * hash) + METAS_FIELD_NUMBER;
hash = (53 * hash) + getMetasList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse 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.ImportSstpb.WriteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse 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.ImportSstpb.WriteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse 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.ImportSstpb.WriteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse 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.ImportSstpb.WriteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse 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.ImportSstpb.WriteResponse 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_sstpb.WriteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:import_sstpb.WriteResponse)
org.tikv.kvproto.ImportSstpb.WriteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.ImportSstpb.WriteResponse.class, org.tikv.kvproto.ImportSstpb.WriteResponse.Builder.class);
}
// Construct using org.tikv.kvproto.ImportSstpb.WriteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetasFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
error_ = null;
errorBuilder_ = null;
}
if (metasBuilder_ == null) {
metas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
metasBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.ImportSstpb.internal_static_import_sstpb_WriteResponse_descriptor;
}
public org.tikv.kvproto.ImportSstpb.WriteResponse getDefaultInstanceForType() {
return org.tikv.kvproto.ImportSstpb.WriteResponse.getDefaultInstance();
}
public org.tikv.kvproto.ImportSstpb.WriteResponse build() {
org.tikv.kvproto.ImportSstpb.WriteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.ImportSstpb.WriteResponse buildPartial() {
org.tikv.kvproto.ImportSstpb.WriteResponse result = new org.tikv.kvproto.ImportSstpb.WriteResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (metasBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
metas_ = java.util.Collections.unmodifiableList(metas_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.metas_ = metas_;
} else {
result.metas_ = metasBuilder_.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.ImportSstpb.WriteResponse) {
return mergeFrom((org.tikv.kvproto.ImportSstpb.WriteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.ImportSstpb.WriteResponse other) {
if (other == org.tikv.kvproto.ImportSstpb.WriteResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (metasBuilder_ == null) {
if (!other.metas_.isEmpty()) {
if (metas_.isEmpty()) {
metas_ = other.metas_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMetasIsMutable();
metas_.addAll(other.metas_);
}
onChanged();
}
} else {
if (!other.metas_.isEmpty()) {
if (metasBuilder_.isEmpty()) {
metasBuilder_.dispose();
metasBuilder_ = null;
metas_ = other.metas_;
bitField0_ = (bitField0_ & ~0x00000002);
metasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMetasFieldBuilder() : null;
} else {
metasBuilder_.addAllMessages(other.metas_);
}
}
}
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.ImportSstpb.WriteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.ImportSstpb.WriteResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.tikv.kvproto.ImportSstpb.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Error, org.tikv.kvproto.ImportSstpb.Error.Builder, org.tikv.kvproto.ImportSstpb.ErrorOrBuilder> errorBuilder_;
/**
* .import_sstpb.Error error = 1;
*/
public boolean hasError() {
return errorBuilder_ != null || error_ != null;
}
/**
* .import_sstpb.Error error = 1;
*/
public org.tikv.kvproto.ImportSstpb.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* .import_sstpb.Error error = 1;
*/
public Builder setError(org.tikv.kvproto.ImportSstpb.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
return this;
}
/**
* .import_sstpb.Error error = 1;
*/
public Builder setError(
org.tikv.kvproto.ImportSstpb.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .import_sstpb.Error error = 1;
*/
public Builder mergeError(org.tikv.kvproto.ImportSstpb.Error value) {
if (errorBuilder_ == null) {
if (error_ != null) {
error_ =
org.tikv.kvproto.ImportSstpb.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .import_sstpb.Error error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
error_ = null;
errorBuilder_ = null;
}
return this;
}
/**
* .import_sstpb.Error error = 1;
*/
public org.tikv.kvproto.ImportSstpb.Error.Builder getErrorBuilder() {
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* .import_sstpb.Error error = 1;
*/
public org.tikv.kvproto.ImportSstpb.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.tikv.kvproto.ImportSstpb.Error.getDefaultInstance() : error_;
}
}
/**
* .import_sstpb.Error error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Error, org.tikv.kvproto.ImportSstpb.Error.Builder, org.tikv.kvproto.ImportSstpb.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.Error, org.tikv.kvproto.ImportSstpb.Error.Builder, org.tikv.kvproto.ImportSstpb.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private java.util.List metas_ =
java.util.Collections.emptyList();
private void ensureMetasIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
metas_ = new java.util.ArrayList(metas_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> metasBuilder_;
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public java.util.List getMetasList() {
if (metasBuilder_ == null) {
return java.util.Collections.unmodifiableList(metas_);
} else {
return metasBuilder_.getMessageList();
}
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public int getMetasCount() {
if (metasBuilder_ == null) {
return metas_.size();
} else {
return metasBuilder_.getCount();
}
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta getMetas(int index) {
if (metasBuilder_ == null) {
return metas_.get(index);
} else {
return metasBuilder_.getMessage(index);
}
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder setMetas(
int index, org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetasIsMutable();
metas_.set(index, value);
onChanged();
} else {
metasBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder setMetas(
int index, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (metasBuilder_ == null) {
ensureMetasIsMutable();
metas_.set(index, builderForValue.build());
onChanged();
} else {
metasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder addMetas(org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetasIsMutable();
metas_.add(value);
onChanged();
} else {
metasBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder addMetas(
int index, org.tikv.kvproto.ImportSstpb.SSTMeta value) {
if (metasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetasIsMutable();
metas_.add(index, value);
onChanged();
} else {
metasBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder addMetas(
org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (metasBuilder_ == null) {
ensureMetasIsMutable();
metas_.add(builderForValue.build());
onChanged();
} else {
metasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder addMetas(
int index, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) {
if (metasBuilder_ == null) {
ensureMetasIsMutable();
metas_.add(index, builderForValue.build());
onChanged();
} else {
metasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder addAllMetas(
java.lang.Iterable extends org.tikv.kvproto.ImportSstpb.SSTMeta> values) {
if (metasBuilder_ == null) {
ensureMetasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, metas_);
onChanged();
} else {
metasBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder clearMetas() {
if (metasBuilder_ == null) {
metas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
metasBuilder_.clear();
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public Builder removeMetas(int index) {
if (metasBuilder_ == null) {
ensureMetasIsMutable();
metas_.remove(index);
onChanged();
} else {
metasBuilder_.remove(index);
}
return this;
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getMetasBuilder(
int index) {
return getMetasFieldBuilder().getBuilder(index);
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getMetasOrBuilder(
int index) {
if (metasBuilder_ == null) {
return metas_.get(index); } else {
return metasBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public java.util.List extends org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getMetasOrBuilderList() {
if (metasBuilder_ != null) {
return metasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(metas_);
}
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder addMetasBuilder() {
return getMetasFieldBuilder().addBuilder(
org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance());
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder addMetasBuilder(
int index) {
return getMetasFieldBuilder().addBuilder(
index, org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance());
}
/**
* repeated .import_sstpb.SSTMeta metas = 2;
*/
public java.util.List
getMetasBuilderList() {
return getMetasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>
getMetasFieldBuilder() {
if (metasBuilder_ == null) {
metasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>(
metas_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
metas_ = null;
}
return metasBuilder_;
}
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_sstpb.WriteResponse)
}
// @@protoc_insertion_point(class_scope:import_sstpb.WriteResponse)
private static final org.tikv.kvproto.ImportSstpb.WriteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.ImportSstpb.WriteResponse();
}
public static org.tikv.kvproto.ImportSstpb.WriteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public WriteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteResponse(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.ImportSstpb.WriteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_SwitchModeRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_SwitchModeRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_SwitchModeResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_SwitchModeResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_Range_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_Range_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_SSTMeta_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_SSTMeta_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_RewriteRule_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_RewriteRule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_UploadRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_UploadRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_UploadResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_UploadResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_IngestRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_IngestRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_IngestResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_IngestResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_CompactRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_CompactRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_CompactResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_CompactResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_DownloadRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_DownloadRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_Error_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_Error_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_DownloadResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_DownloadResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_SetDownloadSpeedLimitRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_SetDownloadSpeedLimitRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_SetDownloadSpeedLimitResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_SetDownloadSpeedLimitResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_Pair_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_Pair_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_WriteBatch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_WriteBatch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_WriteRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_WriteRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_import_sstpb_WriteResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_import_sstpb_WriteResponse_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\022import_sstpb.proto\022\014import_sstpb\032\014meta" +
"pb.proto\032\rerrorpb.proto\032\rkvrpcpb.proto\032\024" +
"gogoproto/gogo.proto\032\017rustproto.proto\032\014b" +
"ackup.proto\";\n\021SwitchModeRequest\022&\n\004mode" +
"\030\001 \001(\0162\030.import_sstpb.SwitchMode\"\024\n\022Swit" +
"chModeResponse\"#\n\005Range\022\r\n\005start\030\001 \001(\014\022\013" +
"\n\003end\030\002 \001(\014\"\304\001\n\007SSTMeta\022\014\n\004uuid\030\001 \001(\014\022\"\n" +
"\005range\030\002 \001(\0132\023.import_sstpb.Range\022\r\n\005crc" +
"32\030\003 \001(\r\022\016\n\006length\030\004 \001(\004\022\017\n\007cf_name\030\005 \001(" +
"\t\022\021\n\tregion_id\030\006 \001(\004\022)\n\014region_epoch\030\007 \001" +
"(\0132\023.metapb.RegionEpoch\022\031\n\021end_key_exclu" +
"sive\030\010 \001(\010\"T\n\013RewriteRule\022\026\n\016old_key_pre" +
"fix\030\001 \001(\014\022\026\n\016new_key_prefix\030\002 \001(\014\022\025\n\rnew" +
"_timestamp\030\003 \001(\004\"O\n\rUploadRequest\022%\n\004met" +
"a\030\001 \001(\0132\025.import_sstpb.SSTMetaH\000\022\016\n\004data" +
"\030\002 \001(\014H\000B\007\n\005chunk\"\020\n\016UploadResponse\"V\n\rI" +
"ngestRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb." +
"Context\022\"\n\003sst\030\002 \001(\0132\025.import_sstpb.SSTM" +
"eta\"/\n\016IngestResponse\022\035\n\005error\030\001 \001(\0132\016.e" +
"rrorpb.Error\"J\n\016CompactRequest\022\"\n\005range\030" +
"\001 \001(\0132\023.import_sstpb.Range\022\024\n\014output_lev" +
"el\030\002 \001(\005\"\021\n\017CompactResponse\"\317\001\n\017Download" +
"Request\022(\n\003sst\030\002 \001(\0132\025.import_sstpb.SSTM" +
"etaB\004\310\336\037\000\022\014\n\004name\030\t \001(\t\0225\n\014rewrite_rule\030" +
"\r \001(\0132\031.import_sstpb.RewriteRuleB\004\310\336\037\000\022/" +
"\n\017storage_backend\030\016 \001(\0132\026.backup.Storage" +
"Backend\022\021\n\tis_raw_kv\030\017 \001(\010J\004\010\010\020\tR\003url\"\030\n" +
"\005Error\022\017\n\007message\030\001 \001(\t\"\221\001\n\020DownloadResp" +
"onse\022(\n\005range\030\001 \001(\0132\023.import_sstpb.Range" +
"B\004\310\336\037\000\022\020\n\010is_empty\030\002 \001(\010\022\"\n\005error\030\003 \001(\0132" +
"\023.import_sstpb.Error\022\r\n\005crc32\030\004 \001(\r\022\016\n\006l" +
"ength\030\005 \001(\004\"3\n\034SetDownloadSpeedLimitRequ" +
"est\022\023\n\013speed_limit\030\001 \001(\004\"\037\n\035SetDownloadS" +
"peedLimitResponse\"`\n\004Pair\022\013\n\003key\030\001 \001(\014\022\r" +
"\n\005value\030\002 \001(\014\022!\n\002op\030\003 \001(\0162\025.import_sstpb" +
".Pair.OP\"\031\n\002OP\022\007\n\003Put\020\000\022\n\n\006Delete\020\001\"B\n\nW" +
"riteBatch\022\021\n\tcommit_ts\030\001 \001(\004\022!\n\005pairs\030\002 " +
"\003(\0132\022.import_sstpb.Pair\"i\n\014WriteRequest\022" +
"%\n\004meta\030\001 \001(\0132\025.import_sstpb.SSTMetaH\000\022)" +
"\n\005batch\030\002 \001(\0132\030.import_sstpb.WriteBatchH" +
"\000B\007\n\005chunk\"Y\n\rWriteResponse\022\"\n\005error\030\001 \001" +
"(\0132\023.import_sstpb.Error\022$\n\005metas\030\002 \003(\0132\025" +
".import_sstpb.SSTMeta*$\n\nSwitchMode\022\n\n\006N" +
"ormal\020\000\022\n\n\006Import\020\0012\277\004\n\tImportSST\022Q\n\nSwi" +
"tchMode\022\037.import_sstpb.SwitchModeRequest" +
"\032 .import_sstpb.SwitchModeResponse\"\000\022G\n\006" +
"Upload\022\033.import_sstpb.UploadRequest\032\034.im" +
"port_sstpb.UploadResponse\"\000(\001\022E\n\006Ingest\022" +
"\033.import_sstpb.IngestRequest\032\034.import_ss" +
"tpb.IngestResponse\"\000\022H\n\007Compact\022\034.import" +
"_sstpb.CompactRequest\032\035.import_sstpb.Com" +
"pactResponse\"\000\022r\n\025SetDownloadSpeedLimit\022" +
"*.import_sstpb.SetDownloadSpeedLimitRequ" +
"est\032+.import_sstpb.SetDownloadSpeedLimit" +
"Response\"\000\022K\n\010Download\022\035.import_sstpb.Do" +
"wnloadRequest\032\036.import_sstpb.DownloadRes" +
"ponse\"\000\022D\n\005Write\022\032.import_sstpb.WriteReq" +
"uest\032\033.import_sstpb.WriteResponse\"\000(\001B\"\n" +
"\020org.tikv.kvproto\340\342\036\001\310\342\036\001\320\342\036\001\330\250\010\001b\006proto" +
"3"
};
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.Metapb.getDescriptor(),
org.tikv.kvproto.Errorpb.getDescriptor(),
org.tikv.kvproto.Kvrpcpb.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
rustproto.Rustproto.getDescriptor(),
org.tikv.kvproto.BackupOuterClass.getDescriptor(),
}, assigner);
internal_static_import_sstpb_SwitchModeRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_import_sstpb_SwitchModeRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_SwitchModeRequest_descriptor,
new java.lang.String[] { "Mode", });
internal_static_import_sstpb_SwitchModeResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_import_sstpb_SwitchModeResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_SwitchModeResponse_descriptor,
new java.lang.String[] { });
internal_static_import_sstpb_Range_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_import_sstpb_Range_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_Range_descriptor,
new java.lang.String[] { "Start", "End", });
internal_static_import_sstpb_SSTMeta_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_import_sstpb_SSTMeta_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_SSTMeta_descriptor,
new java.lang.String[] { "Uuid", "Range", "Crc32", "Length", "CfName", "RegionId", "RegionEpoch", "EndKeyExclusive", });
internal_static_import_sstpb_RewriteRule_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_import_sstpb_RewriteRule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_RewriteRule_descriptor,
new java.lang.String[] { "OldKeyPrefix", "NewKeyPrefix", "NewTimestamp", });
internal_static_import_sstpb_UploadRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_import_sstpb_UploadRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_UploadRequest_descriptor,
new java.lang.String[] { "Meta", "Data", "Chunk", });
internal_static_import_sstpb_UploadResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_import_sstpb_UploadResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_UploadResponse_descriptor,
new java.lang.String[] { });
internal_static_import_sstpb_IngestRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_import_sstpb_IngestRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_IngestRequest_descriptor,
new java.lang.String[] { "Context", "Sst", });
internal_static_import_sstpb_IngestResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_import_sstpb_IngestResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_IngestResponse_descriptor,
new java.lang.String[] { "Error", });
internal_static_import_sstpb_CompactRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_import_sstpb_CompactRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_CompactRequest_descriptor,
new java.lang.String[] { "Range", "OutputLevel", });
internal_static_import_sstpb_CompactResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_import_sstpb_CompactResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_CompactResponse_descriptor,
new java.lang.String[] { });
internal_static_import_sstpb_DownloadRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_import_sstpb_DownloadRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_DownloadRequest_descriptor,
new java.lang.String[] { "Sst", "Name", "RewriteRule", "StorageBackend", "IsRawKv", });
internal_static_import_sstpb_Error_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_import_sstpb_Error_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_Error_descriptor,
new java.lang.String[] { "Message", });
internal_static_import_sstpb_DownloadResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_import_sstpb_DownloadResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_DownloadResponse_descriptor,
new java.lang.String[] { "Range", "IsEmpty", "Error", "Crc32", "Length", });
internal_static_import_sstpb_SetDownloadSpeedLimitRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_import_sstpb_SetDownloadSpeedLimitRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_SetDownloadSpeedLimitRequest_descriptor,
new java.lang.String[] { "SpeedLimit", });
internal_static_import_sstpb_SetDownloadSpeedLimitResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_import_sstpb_SetDownloadSpeedLimitResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_SetDownloadSpeedLimitResponse_descriptor,
new java.lang.String[] { });
internal_static_import_sstpb_Pair_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_import_sstpb_Pair_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_Pair_descriptor,
new java.lang.String[] { "Key", "Value", "Op", });
internal_static_import_sstpb_WriteBatch_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_import_sstpb_WriteBatch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_WriteBatch_descriptor,
new java.lang.String[] { "CommitTs", "Pairs", });
internal_static_import_sstpb_WriteRequest_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_import_sstpb_WriteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_WriteRequest_descriptor,
new java.lang.String[] { "Meta", "Batch", "Chunk", });
internal_static_import_sstpb_WriteResponse_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_import_sstpb_WriteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_import_sstpb_WriteResponse_descriptor,
new java.lang.String[] { "Error", "Metas", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.marshalerAll);
registry.add(com.google.protobuf.GoGoProtos.nullable);
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.Metapb.getDescriptor();
org.tikv.kvproto.Errorpb.getDescriptor();
org.tikv.kvproto.Kvrpcpb.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
rustproto.Rustproto.getDescriptor();
org.tikv.kvproto.BackupOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy