org.tikv.kvproto.Coprocessor Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: coprocessor.proto
package org.tikv.kvproto;
public final class Coprocessor {
private Coprocessor() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface KeyRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor.KeyRange)
com.google.protobuf.MessageOrBuilder {
/**
* bytes start = 1;
*/
com.google.protobuf.ByteString getStart();
/**
* bytes end = 2;
*/
com.google.protobuf.ByteString getEnd();
}
/**
*
* [start, end)
*
*
* Protobuf type {@code coprocessor.KeyRange}
*/
public static final class KeyRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor.KeyRange)
KeyRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyRange.newBuilder() to construct.
private KeyRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyRange() {
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 KeyRange(
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.Coprocessor.internal_static_coprocessor_KeyRange_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_KeyRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.KeyRange.class, org.tikv.kvproto.Coprocessor.KeyRange.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.Coprocessor.KeyRange)) {
return super.equals(obj);
}
org.tikv.kvproto.Coprocessor.KeyRange other = (org.tikv.kvproto.Coprocessor.KeyRange) 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.Coprocessor.KeyRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.KeyRange 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.Coprocessor.KeyRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.KeyRange 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.Coprocessor.KeyRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.KeyRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.KeyRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.KeyRange 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.Coprocessor.KeyRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.KeyRange 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.Coprocessor.KeyRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.KeyRange 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.Coprocessor.KeyRange 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;
}
/**
*
* [start, end)
*
*
* Protobuf type {@code coprocessor.KeyRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor.KeyRange)
org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_KeyRange_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_KeyRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.KeyRange.class, org.tikv.kvproto.Coprocessor.KeyRange.Builder.class);
}
// Construct using org.tikv.kvproto.Coprocessor.KeyRange.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.Coprocessor.internal_static_coprocessor_KeyRange_descriptor;
}
public org.tikv.kvproto.Coprocessor.KeyRange getDefaultInstanceForType() {
return org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance();
}
public org.tikv.kvproto.Coprocessor.KeyRange build() {
org.tikv.kvproto.Coprocessor.KeyRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.Coprocessor.KeyRange buildPartial() {
org.tikv.kvproto.Coprocessor.KeyRange result = new org.tikv.kvproto.Coprocessor.KeyRange(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.Coprocessor.KeyRange) {
return mergeFrom((org.tikv.kvproto.Coprocessor.KeyRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.Coprocessor.KeyRange other) {
if (other == org.tikv.kvproto.Coprocessor.KeyRange.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.Coprocessor.KeyRange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.Coprocessor.KeyRange) 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:coprocessor.KeyRange)
}
// @@protoc_insertion_point(class_scope:coprocessor.KeyRange)
private static final org.tikv.kvproto.Coprocessor.KeyRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.Coprocessor.KeyRange();
}
public static org.tikv.kvproto.Coprocessor.KeyRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public KeyRange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KeyRange(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.Coprocessor.KeyRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor.Request)
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();
/**
* int64 tp = 2;
*/
long getTp();
/**
* bytes data = 3;
*/
com.google.protobuf.ByteString getData();
/**
* uint64 start_ts = 7;
*/
long getStartTs();
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
java.util.List
getRangesList();
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
org.tikv.kvproto.Coprocessor.KeyRange getRanges(int index);
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
int getRangesCount();
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
java.util.List extends org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesOrBuilderList();
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangesOrBuilder(
int index);
/**
*
* If cache is enabled, TiKV returns cache hit instead of data if
* its last version matches this `cache_if_match_version`.
*
*
* bool is_cache_enabled = 5;
*/
boolean getIsCacheEnabled();
/**
* uint64 cache_if_match_version = 6;
*/
long getCacheIfMatchVersion();
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 8;
*/
long getSchemaVer();
/**
* bool is_trace_enabled = 9;
*/
boolean getIsTraceEnabled();
}
/**
* Protobuf type {@code coprocessor.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
tp_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
startTs_ = 0L;
ranges_ = java.util.Collections.emptyList();
isCacheEnabled_ = false;
cacheIfMatchVersion_ = 0L;
schemaVer_ = 0L;
isTraceEnabled_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 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 16: {
tp_ = input.readInt64();
break;
}
case 26: {
data_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
ranges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
ranges_.add(
input.readMessage(org.tikv.kvproto.Coprocessor.KeyRange.parser(), extensionRegistry));
break;
}
case 40: {
isCacheEnabled_ = input.readBool();
break;
}
case 48: {
cacheIfMatchVersion_ = input.readUInt64();
break;
}
case 56: {
startTs_ = input.readUInt64();
break;
}
case 64: {
schemaVer_ = input.readInt64();
break;
}
case 72: {
isTraceEnabled_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.Request.class, org.tikv.kvproto.Coprocessor.Request.Builder.class);
}
private int bitField0_;
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 TP_FIELD_NUMBER = 2;
private long tp_;
/**
* int64 tp = 2;
*/
public long getTp() {
return tp_;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int START_TS_FIELD_NUMBER = 7;
private long startTs_;
/**
* uint64 start_ts = 7;
*/
public long getStartTs() {
return startTs_;
}
public static final int RANGES_FIELD_NUMBER = 4;
private java.util.List ranges_;
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public java.util.List getRangesList() {
return ranges_;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public java.util.List extends org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesOrBuilderList() {
return ranges_;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public int getRangesCount() {
return ranges_.size();
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRange getRanges(int index) {
return ranges_.get(index);
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangesOrBuilder(
int index) {
return ranges_.get(index);
}
public static final int IS_CACHE_ENABLED_FIELD_NUMBER = 5;
private boolean isCacheEnabled_;
/**
*
* If cache is enabled, TiKV returns cache hit instead of data if
* its last version matches this `cache_if_match_version`.
*
*
* bool is_cache_enabled = 5;
*/
public boolean getIsCacheEnabled() {
return isCacheEnabled_;
}
public static final int CACHE_IF_MATCH_VERSION_FIELD_NUMBER = 6;
private long cacheIfMatchVersion_;
/**
* uint64 cache_if_match_version = 6;
*/
public long getCacheIfMatchVersion() {
return cacheIfMatchVersion_;
}
public static final int SCHEMA_VER_FIELD_NUMBER = 8;
private long schemaVer_;
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 8;
*/
public long getSchemaVer() {
return schemaVer_;
}
public static final int IS_TRACE_ENABLED_FIELD_NUMBER = 9;
private boolean isTraceEnabled_;
/**
* bool is_trace_enabled = 9;
*/
public boolean getIsTraceEnabled() {
return isTraceEnabled_;
}
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 (tp_ != 0L) {
output.writeInt64(2, tp_);
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
for (int i = 0; i < ranges_.size(); i++) {
output.writeMessage(4, ranges_.get(i));
}
if (isCacheEnabled_ != false) {
output.writeBool(5, isCacheEnabled_);
}
if (cacheIfMatchVersion_ != 0L) {
output.writeUInt64(6, cacheIfMatchVersion_);
}
if (startTs_ != 0L) {
output.writeUInt64(7, startTs_);
}
if (schemaVer_ != 0L) {
output.writeInt64(8, schemaVer_);
}
if (isTraceEnabled_ != false) {
output.writeBool(9, isTraceEnabled_);
}
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 (tp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, tp_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
for (int i = 0; i < ranges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, ranges_.get(i));
}
if (isCacheEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isCacheEnabled_);
}
if (cacheIfMatchVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, cacheIfMatchVersion_);
}
if (startTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, startTs_);
}
if (schemaVer_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, schemaVer_);
}
if (isTraceEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isTraceEnabled_);
}
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.Coprocessor.Request)) {
return super.equals(obj);
}
org.tikv.kvproto.Coprocessor.Request other = (org.tikv.kvproto.Coprocessor.Request) obj;
boolean result = true;
result = result && (hasContext() == other.hasContext());
if (hasContext()) {
result = result && getContext()
.equals(other.getContext());
}
result = result && (getTp()
== other.getTp());
result = result && getData()
.equals(other.getData());
result = result && (getStartTs()
== other.getStartTs());
result = result && getRangesList()
.equals(other.getRangesList());
result = result && (getIsCacheEnabled()
== other.getIsCacheEnabled());
result = result && (getCacheIfMatchVersion()
== other.getCacheIfMatchVersion());
result = result && (getSchemaVer()
== other.getSchemaVer());
result = result && (getIsTraceEnabled()
== other.getIsTraceEnabled());
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();
}
hash = (37 * hash) + TP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTp());
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + START_TS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTs());
if (getRangesCount() > 0) {
hash = (37 * hash) + RANGES_FIELD_NUMBER;
hash = (53 * hash) + getRangesList().hashCode();
}
hash = (37 * hash) + IS_CACHE_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsCacheEnabled());
hash = (37 * hash) + CACHE_IF_MATCH_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCacheIfMatchVersion());
hash = (37 * hash) + SCHEMA_VER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSchemaVer());
hash = (37 * hash) + IS_TRACE_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsTraceEnabled());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.Coprocessor.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code coprocessor.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor.Request)
org.tikv.kvproto.Coprocessor.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.Request.class, org.tikv.kvproto.Coprocessor.Request.Builder.class);
}
// Construct using org.tikv.kvproto.Coprocessor.Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRangesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
tp_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
startTs_ = 0L;
if (rangesBuilder_ == null) {
ranges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
rangesBuilder_.clear();
}
isCacheEnabled_ = false;
cacheIfMatchVersion_ = 0L;
schemaVer_ = 0L;
isTraceEnabled_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Request_descriptor;
}
public org.tikv.kvproto.Coprocessor.Request getDefaultInstanceForType() {
return org.tikv.kvproto.Coprocessor.Request.getDefaultInstance();
}
public org.tikv.kvproto.Coprocessor.Request build() {
org.tikv.kvproto.Coprocessor.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.Coprocessor.Request buildPartial() {
org.tikv.kvproto.Coprocessor.Request result = new org.tikv.kvproto.Coprocessor.Request(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
result.tp_ = tp_;
result.data_ = data_;
result.startTs_ = startTs_;
if (rangesBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.ranges_ = ranges_;
} else {
result.ranges_ = rangesBuilder_.build();
}
result.isCacheEnabled_ = isCacheEnabled_;
result.cacheIfMatchVersion_ = cacheIfMatchVersion_;
result.schemaVer_ = schemaVer_;
result.isTraceEnabled_ = isTraceEnabled_;
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.Coprocessor.Request) {
return mergeFrom((org.tikv.kvproto.Coprocessor.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.Coprocessor.Request other) {
if (other == org.tikv.kvproto.Coprocessor.Request.getDefaultInstance()) return this;
if (other.hasContext()) {
mergeContext(other.getContext());
}
if (other.getTp() != 0L) {
setTp(other.getTp());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.getStartTs() != 0L) {
setStartTs(other.getStartTs());
}
if (rangesBuilder_ == null) {
if (!other.ranges_.isEmpty()) {
if (ranges_.isEmpty()) {
ranges_ = other.ranges_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureRangesIsMutable();
ranges_.addAll(other.ranges_);
}
onChanged();
}
} else {
if (!other.ranges_.isEmpty()) {
if (rangesBuilder_.isEmpty()) {
rangesBuilder_.dispose();
rangesBuilder_ = null;
ranges_ = other.ranges_;
bitField0_ = (bitField0_ & ~0x00000010);
rangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRangesFieldBuilder() : null;
} else {
rangesBuilder_.addAllMessages(other.ranges_);
}
}
}
if (other.getIsCacheEnabled() != false) {
setIsCacheEnabled(other.getIsCacheEnabled());
}
if (other.getCacheIfMatchVersion() != 0L) {
setCacheIfMatchVersion(other.getCacheIfMatchVersion());
}
if (other.getSchemaVer() != 0L) {
setSchemaVer(other.getSchemaVer());
}
if (other.getIsTraceEnabled() != false) {
setIsTraceEnabled(other.getIsTraceEnabled());
}
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.Coprocessor.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.Coprocessor.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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 long tp_ ;
/**
* int64 tp = 2;
*/
public long getTp() {
return tp_;
}
/**
* int64 tp = 2;
*/
public Builder setTp(long value) {
tp_ = value;
onChanged();
return this;
}
/**
* int64 tp = 2;
*/
public Builder clearTp() {
tp_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 3;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 3;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private long startTs_ ;
/**
* uint64 start_ts = 7;
*/
public long getStartTs() {
return startTs_;
}
/**
* uint64 start_ts = 7;
*/
public Builder setStartTs(long value) {
startTs_ = value;
onChanged();
return this;
}
/**
* uint64 start_ts = 7;
*/
public Builder clearStartTs() {
startTs_ = 0L;
onChanged();
return this;
}
private java.util.List ranges_ =
java.util.Collections.emptyList();
private void ensureRangesIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
ranges_ = new java.util.ArrayList(ranges_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder> rangesBuilder_;
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public java.util.List getRangesList() {
if (rangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(ranges_);
} else {
return rangesBuilder_.getMessageList();
}
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public int getRangesCount() {
if (rangesBuilder_ == null) {
return ranges_.size();
} else {
return rangesBuilder_.getCount();
}
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRange getRanges(int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index);
} else {
return rangesBuilder_.getMessage(index);
}
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder setRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.set(index, value);
onChanged();
} else {
rangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder setRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.set(index, builderForValue.build());
onChanged();
} else {
rangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder addRanges(org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(value);
onChanged();
} else {
rangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder addRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(index, value);
onChanged();
} else {
rangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder addRanges(
org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.add(builderForValue.build());
onChanged();
} else {
rangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder addRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.add(index, builderForValue.build());
onChanged();
} else {
rangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder addAllRanges(
java.lang.Iterable extends org.tikv.kvproto.Coprocessor.KeyRange> values) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ranges_);
onChanged();
} else {
rangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder clearRanges() {
if (rangesBuilder_ == null) {
ranges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
rangesBuilder_.clear();
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public Builder removeRanges(int index) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.remove(index);
onChanged();
} else {
rangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder getRangesBuilder(
int index) {
return getRangesFieldBuilder().getBuilder(index);
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangesOrBuilder(
int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index); } else {
return rangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public java.util.List extends org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesOrBuilderList() {
if (rangesBuilder_ != null) {
return rangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ranges_);
}
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder addRangesBuilder() {
return getRangesFieldBuilder().addBuilder(
org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance());
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder addRangesBuilder(
int index) {
return getRangesFieldBuilder().addBuilder(
index, org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance());
}
/**
* repeated .coprocessor.KeyRange ranges = 4;
*/
public java.util.List
getRangesBuilderList() {
return getRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesFieldBuilder() {
if (rangesBuilder_ == null) {
rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>(
ranges_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
ranges_ = null;
}
return rangesBuilder_;
}
private boolean isCacheEnabled_ ;
/**
*
* If cache is enabled, TiKV returns cache hit instead of data if
* its last version matches this `cache_if_match_version`.
*
*
* bool is_cache_enabled = 5;
*/
public boolean getIsCacheEnabled() {
return isCacheEnabled_;
}
/**
*
* If cache is enabled, TiKV returns cache hit instead of data if
* its last version matches this `cache_if_match_version`.
*
*
* bool is_cache_enabled = 5;
*/
public Builder setIsCacheEnabled(boolean value) {
isCacheEnabled_ = value;
onChanged();
return this;
}
/**
*
* If cache is enabled, TiKV returns cache hit instead of data if
* its last version matches this `cache_if_match_version`.
*
*
* bool is_cache_enabled = 5;
*/
public Builder clearIsCacheEnabled() {
isCacheEnabled_ = false;
onChanged();
return this;
}
private long cacheIfMatchVersion_ ;
/**
* uint64 cache_if_match_version = 6;
*/
public long getCacheIfMatchVersion() {
return cacheIfMatchVersion_;
}
/**
* uint64 cache_if_match_version = 6;
*/
public Builder setCacheIfMatchVersion(long value) {
cacheIfMatchVersion_ = value;
onChanged();
return this;
}
/**
* uint64 cache_if_match_version = 6;
*/
public Builder clearCacheIfMatchVersion() {
cacheIfMatchVersion_ = 0L;
onChanged();
return this;
}
private long schemaVer_ ;
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 8;
*/
public long getSchemaVer() {
return schemaVer_;
}
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 8;
*/
public Builder setSchemaVer(long value) {
schemaVer_ = value;
onChanged();
return this;
}
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 8;
*/
public Builder clearSchemaVer() {
schemaVer_ = 0L;
onChanged();
return this;
}
private boolean isTraceEnabled_ ;
/**
* bool is_trace_enabled = 9;
*/
public boolean getIsTraceEnabled() {
return isTraceEnabled_;
}
/**
* bool is_trace_enabled = 9;
*/
public Builder setIsTraceEnabled(boolean value) {
isTraceEnabled_ = value;
onChanged();
return this;
}
/**
* bool is_trace_enabled = 9;
*/
public Builder clearIsTraceEnabled() {
isTraceEnabled_ = 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:coprocessor.Request)
}
// @@protoc_insertion_point(class_scope:coprocessor.Request)
private static final org.tikv.kvproto.Coprocessor.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.Coprocessor.Request();
}
public static org.tikv.kvproto.Coprocessor.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Request(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.Coprocessor.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor.Response)
com.google.protobuf.MessageOrBuilder {
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
com.google.protobuf.ByteString getData();
/**
* .errorpb.Error region_error = 2;
*/
boolean hasRegionError();
/**
* .errorpb.Error region_error = 2;
*/
org.tikv.kvproto.Errorpb.Error getRegionError();
/**
* .errorpb.Error region_error = 2;
*/
org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder();
/**
* .kvrpcpb.LockInfo locked = 3;
*/
boolean hasLocked();
/**
* .kvrpcpb.LockInfo locked = 3;
*/
org.tikv.kvproto.Kvrpcpb.LockInfo getLocked();
/**
* .kvrpcpb.LockInfo locked = 3;
*/
org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder();
/**
* string other_error = 4;
*/
java.lang.String getOtherError();
/**
* string other_error = 4;
*/
com.google.protobuf.ByteString
getOtherErrorBytes();
/**
* .coprocessor.KeyRange range = 5;
*/
boolean hasRange();
/**
* .coprocessor.KeyRange range = 5;
*/
org.tikv.kvproto.Coprocessor.KeyRange getRange();
/**
* .coprocessor.KeyRange range = 5;
*/
org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangeOrBuilder();
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
boolean hasExecDetails();
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
org.tikv.kvproto.Kvrpcpb.ExecDetails getExecDetails();
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder getExecDetailsOrBuilder();
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
boolean hasExecDetailsV2();
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2();
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder();
/**
* bool is_cache_hit = 7;
*/
boolean getIsCacheHit();
/**
* uint64 cache_last_version = 8;
*/
long getCacheLastVersion();
/**
* bool can_be_cached = 9;
*/
boolean getCanBeCached();
/**
* repeated .span.SpanSet spans = 10;
*/
java.util.List
getSpansList();
/**
* repeated .span.SpanSet spans = 10;
*/
span.SpanOuterClass.SpanSet getSpans(int index);
/**
* repeated .span.SpanSet spans = 10;
*/
int getSpansCount();
/**
* repeated .span.SpanSet spans = 10;
*/
java.util.List extends span.SpanOuterClass.SpanSetOrBuilder>
getSpansOrBuilderList();
/**
* repeated .span.SpanSet spans = 10;
*/
span.SpanOuterClass.SpanSetOrBuilder getSpansOrBuilder(
int index);
}
/**
* Protobuf type {@code coprocessor.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
data_ = com.google.protobuf.ByteString.EMPTY;
otherError_ = "";
isCacheHit_ = false;
cacheLastVersion_ = 0L;
canBeCached_ = false;
spans_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
data_ = input.readBytes();
break;
}
case 18: {
org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null;
if (regionError_ != null) {
subBuilder = regionError_.toBuilder();
}
regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(regionError_);
regionError_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.tikv.kvproto.Kvrpcpb.LockInfo.Builder subBuilder = null;
if (locked_ != null) {
subBuilder = locked_.toBuilder();
}
locked_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(locked_);
locked_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
otherError_ = s;
break;
}
case 42: {
org.tikv.kvproto.Coprocessor.KeyRange.Builder subBuilder = null;
if (range_ != null) {
subBuilder = range_.toBuilder();
}
range_ = input.readMessage(org.tikv.kvproto.Coprocessor.KeyRange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(range_);
range_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder subBuilder = null;
if (execDetails_ != null) {
subBuilder = execDetails_.toBuilder();
}
execDetails_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ExecDetails.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(execDetails_);
execDetails_ = subBuilder.buildPartial();
}
break;
}
case 56: {
isCacheHit_ = input.readBool();
break;
}
case 64: {
cacheLastVersion_ = input.readUInt64();
break;
}
case 72: {
canBeCached_ = input.readBool();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
spans_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
spans_.add(
input.readMessage(span.SpanOuterClass.SpanSet.parser(), extensionRegistry));
break;
}
case 90: {
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder subBuilder = null;
if (execDetailsV2_ != null) {
subBuilder = execDetailsV2_.toBuilder();
}
execDetailsV2_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(execDetailsV2_);
execDetailsV2_ = 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 {
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
spans_ = java.util.Collections.unmodifiableList(spans_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.Response.class, org.tikv.kvproto.Coprocessor.Response.Builder.class);
}
private int bitField0_;
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int REGION_ERROR_FIELD_NUMBER = 2;
private org.tikv.kvproto.Errorpb.Error regionError_;
/**
* .errorpb.Error region_error = 2;
*/
public boolean hasRegionError() {
return regionError_ != null;
}
/**
* .errorpb.Error region_error = 2;
*/
public org.tikv.kvproto.Errorpb.Error getRegionError() {
return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_;
}
/**
* .errorpb.Error region_error = 2;
*/
public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() {
return getRegionError();
}
public static final int LOCKED_FIELD_NUMBER = 3;
private org.tikv.kvproto.Kvrpcpb.LockInfo locked_;
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public boolean hasLocked() {
return locked_ != null;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() {
return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() {
return getLocked();
}
public static final int OTHER_ERROR_FIELD_NUMBER = 4;
private volatile java.lang.Object otherError_;
/**
* string other_error = 4;
*/
public java.lang.String getOtherError() {
java.lang.Object ref = otherError_;
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();
otherError_ = s;
return s;
}
}
/**
* string other_error = 4;
*/
public com.google.protobuf.ByteString
getOtherErrorBytes() {
java.lang.Object ref = otherError_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
otherError_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RANGE_FIELD_NUMBER = 5;
private org.tikv.kvproto.Coprocessor.KeyRange range_;
/**
* .coprocessor.KeyRange range = 5;
*/
public boolean hasRange() {
return range_ != null;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public org.tikv.kvproto.Coprocessor.KeyRange getRange() {
return range_ == null ? org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance() : range_;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangeOrBuilder() {
return getRange();
}
public static final int EXEC_DETAILS_FIELD_NUMBER = 6;
private org.tikv.kvproto.Kvrpcpb.ExecDetails execDetails_;
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public boolean hasExecDetails() {
return execDetails_ != null;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetails getExecDetails() {
return execDetails_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance() : execDetails_;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder getExecDetailsOrBuilder() {
return getExecDetails();
}
public static final int EXEC_DETAILS_V2_FIELD_NUMBER = 11;
private org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 execDetailsV2_;
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public boolean hasExecDetailsV2() {
return execDetailsV2_ != null;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2() {
return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder() {
return getExecDetailsV2();
}
public static final int IS_CACHE_HIT_FIELD_NUMBER = 7;
private boolean isCacheHit_;
/**
* bool is_cache_hit = 7;
*/
public boolean getIsCacheHit() {
return isCacheHit_;
}
public static final int CACHE_LAST_VERSION_FIELD_NUMBER = 8;
private long cacheLastVersion_;
/**
* uint64 cache_last_version = 8;
*/
public long getCacheLastVersion() {
return cacheLastVersion_;
}
public static final int CAN_BE_CACHED_FIELD_NUMBER = 9;
private boolean canBeCached_;
/**
* bool can_be_cached = 9;
*/
public boolean getCanBeCached() {
return canBeCached_;
}
public static final int SPANS_FIELD_NUMBER = 10;
private java.util.List spans_;
/**
* repeated .span.SpanSet spans = 10;
*/
public java.util.List getSpansList() {
return spans_;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public java.util.List extends span.SpanOuterClass.SpanSetOrBuilder>
getSpansOrBuilderList() {
return spans_;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public int getSpansCount() {
return spans_.size();
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSet getSpans(int index) {
return spans_.get(index);
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSetOrBuilder getSpansOrBuilder(
int index) {
return spans_.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 (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
if (regionError_ != null) {
output.writeMessage(2, getRegionError());
}
if (locked_ != null) {
output.writeMessage(3, getLocked());
}
if (!getOtherErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, otherError_);
}
if (range_ != null) {
output.writeMessage(5, getRange());
}
if (execDetails_ != null) {
output.writeMessage(6, getExecDetails());
}
if (isCacheHit_ != false) {
output.writeBool(7, isCacheHit_);
}
if (cacheLastVersion_ != 0L) {
output.writeUInt64(8, cacheLastVersion_);
}
if (canBeCached_ != false) {
output.writeBool(9, canBeCached_);
}
for (int i = 0; i < spans_.size(); i++) {
output.writeMessage(10, spans_.get(i));
}
if (execDetailsV2_ != null) {
output.writeMessage(11, getExecDetailsV2());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
if (regionError_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRegionError());
}
if (locked_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocked());
}
if (!getOtherErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, otherError_);
}
if (range_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getRange());
}
if (execDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getExecDetails());
}
if (isCacheHit_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isCacheHit_);
}
if (cacheLastVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, cacheLastVersion_);
}
if (canBeCached_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, canBeCached_);
}
for (int i = 0; i < spans_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, spans_.get(i));
}
if (execDetailsV2_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getExecDetailsV2());
}
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.Coprocessor.Response)) {
return super.equals(obj);
}
org.tikv.kvproto.Coprocessor.Response other = (org.tikv.kvproto.Coprocessor.Response) obj;
boolean result = true;
result = result && getData()
.equals(other.getData());
result = result && (hasRegionError() == other.hasRegionError());
if (hasRegionError()) {
result = result && getRegionError()
.equals(other.getRegionError());
}
result = result && (hasLocked() == other.hasLocked());
if (hasLocked()) {
result = result && getLocked()
.equals(other.getLocked());
}
result = result && getOtherError()
.equals(other.getOtherError());
result = result && (hasRange() == other.hasRange());
if (hasRange()) {
result = result && getRange()
.equals(other.getRange());
}
result = result && (hasExecDetails() == other.hasExecDetails());
if (hasExecDetails()) {
result = result && getExecDetails()
.equals(other.getExecDetails());
}
result = result && (hasExecDetailsV2() == other.hasExecDetailsV2());
if (hasExecDetailsV2()) {
result = result && getExecDetailsV2()
.equals(other.getExecDetailsV2());
}
result = result && (getIsCacheHit()
== other.getIsCacheHit());
result = result && (getCacheLastVersion()
== other.getCacheLastVersion());
result = result && (getCanBeCached()
== other.getCanBeCached());
result = result && getSpansList()
.equals(other.getSpansList());
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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
if (hasRegionError()) {
hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getRegionError().hashCode();
}
if (hasLocked()) {
hash = (37 * hash) + LOCKED_FIELD_NUMBER;
hash = (53 * hash) + getLocked().hashCode();
}
hash = (37 * hash) + OTHER_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getOtherError().hashCode();
if (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
if (hasExecDetails()) {
hash = (37 * hash) + EXEC_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getExecDetails().hashCode();
}
if (hasExecDetailsV2()) {
hash = (37 * hash) + EXEC_DETAILS_V2_FIELD_NUMBER;
hash = (53 * hash) + getExecDetailsV2().hashCode();
}
hash = (37 * hash) + IS_CACHE_HIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsCacheHit());
hash = (37 * hash) + CACHE_LAST_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCacheLastVersion());
hash = (37 * hash) + CAN_BE_CACHED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanBeCached());
if (getSpansCount() > 0) {
hash = (37 * hash) + SPANS_FIELD_NUMBER;
hash = (53 * hash) + getSpansList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tikv.kvproto.Coprocessor.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code coprocessor.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor.Response)
org.tikv.kvproto.Coprocessor.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.Response.class, org.tikv.kvproto.Coprocessor.Response.Builder.class);
}
// Construct using org.tikv.kvproto.Coprocessor.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpansFieldBuilder();
}
}
public Builder clear() {
super.clear();
data_ = com.google.protobuf.ByteString.EMPTY;
if (regionErrorBuilder_ == null) {
regionError_ = null;
} else {
regionError_ = null;
regionErrorBuilder_ = null;
}
if (lockedBuilder_ == null) {
locked_ = null;
} else {
locked_ = null;
lockedBuilder_ = null;
}
otherError_ = "";
if (rangeBuilder_ == null) {
range_ = null;
} else {
range_ = null;
rangeBuilder_ = null;
}
if (execDetailsBuilder_ == null) {
execDetails_ = null;
} else {
execDetails_ = null;
execDetailsBuilder_ = null;
}
if (execDetailsV2Builder_ == null) {
execDetailsV2_ = null;
} else {
execDetailsV2_ = null;
execDetailsV2Builder_ = null;
}
isCacheHit_ = false;
cacheLastVersion_ = 0L;
canBeCached_ = false;
if (spansBuilder_ == null) {
spans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
spansBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_Response_descriptor;
}
public org.tikv.kvproto.Coprocessor.Response getDefaultInstanceForType() {
return org.tikv.kvproto.Coprocessor.Response.getDefaultInstance();
}
public org.tikv.kvproto.Coprocessor.Response build() {
org.tikv.kvproto.Coprocessor.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.Coprocessor.Response buildPartial() {
org.tikv.kvproto.Coprocessor.Response result = new org.tikv.kvproto.Coprocessor.Response(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.data_ = data_;
if (regionErrorBuilder_ == null) {
result.regionError_ = regionError_;
} else {
result.regionError_ = regionErrorBuilder_.build();
}
if (lockedBuilder_ == null) {
result.locked_ = locked_;
} else {
result.locked_ = lockedBuilder_.build();
}
result.otherError_ = otherError_;
if (rangeBuilder_ == null) {
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
if (execDetailsBuilder_ == null) {
result.execDetails_ = execDetails_;
} else {
result.execDetails_ = execDetailsBuilder_.build();
}
if (execDetailsV2Builder_ == null) {
result.execDetailsV2_ = execDetailsV2_;
} else {
result.execDetailsV2_ = execDetailsV2Builder_.build();
}
result.isCacheHit_ = isCacheHit_;
result.cacheLastVersion_ = cacheLastVersion_;
result.canBeCached_ = canBeCached_;
if (spansBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400)) {
spans_ = java.util.Collections.unmodifiableList(spans_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.spans_ = spans_;
} else {
result.spans_ = spansBuilder_.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.Coprocessor.Response) {
return mergeFrom((org.tikv.kvproto.Coprocessor.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.Coprocessor.Response other) {
if (other == org.tikv.kvproto.Coprocessor.Response.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.hasRegionError()) {
mergeRegionError(other.getRegionError());
}
if (other.hasLocked()) {
mergeLocked(other.getLocked());
}
if (!other.getOtherError().isEmpty()) {
otherError_ = other.otherError_;
onChanged();
}
if (other.hasRange()) {
mergeRange(other.getRange());
}
if (other.hasExecDetails()) {
mergeExecDetails(other.getExecDetails());
}
if (other.hasExecDetailsV2()) {
mergeExecDetailsV2(other.getExecDetailsV2());
}
if (other.getIsCacheHit() != false) {
setIsCacheHit(other.getIsCacheHit());
}
if (other.getCacheLastVersion() != 0L) {
setCacheLastVersion(other.getCacheLastVersion());
}
if (other.getCanBeCached() != false) {
setCanBeCached(other.getCanBeCached());
}
if (spansBuilder_ == null) {
if (!other.spans_.isEmpty()) {
if (spans_.isEmpty()) {
spans_ = other.spans_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureSpansIsMutable();
spans_.addAll(other.spans_);
}
onChanged();
}
} else {
if (!other.spans_.isEmpty()) {
if (spansBuilder_.isEmpty()) {
spansBuilder_.dispose();
spansBuilder_ = null;
spans_ = other.spans_;
bitField0_ = (bitField0_ & ~0x00000400);
spansBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpansFieldBuilder() : null;
} else {
spansBuilder_.addAllMessages(other.spans_);
}
}
}
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.Coprocessor.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.Coprocessor.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private org.tikv.kvproto.Errorpb.Error regionError_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_;
/**
* .errorpb.Error region_error = 2;
*/
public boolean hasRegionError() {
return regionErrorBuilder_ != null || regionError_ != null;
}
/**
* .errorpb.Error region_error = 2;
*/
public org.tikv.kvproto.Errorpb.Error getRegionError() {
if (regionErrorBuilder_ == null) {
return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_;
} else {
return regionErrorBuilder_.getMessage();
}
}
/**
* .errorpb.Error region_error = 2;
*/
public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) {
if (regionErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
regionError_ = value;
onChanged();
} else {
regionErrorBuilder_.setMessage(value);
}
return this;
}
/**
* .errorpb.Error region_error = 2;
*/
public Builder setRegionError(
org.tikv.kvproto.Errorpb.Error.Builder builderForValue) {
if (regionErrorBuilder_ == null) {
regionError_ = builderForValue.build();
onChanged();
} else {
regionErrorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .errorpb.Error region_error = 2;
*/
public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) {
if (regionErrorBuilder_ == null) {
if (regionError_ != null) {
regionError_ =
org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial();
} else {
regionError_ = value;
}
onChanged();
} else {
regionErrorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .errorpb.Error region_error = 2;
*/
public Builder clearRegionError() {
if (regionErrorBuilder_ == null) {
regionError_ = null;
onChanged();
} else {
regionError_ = null;
regionErrorBuilder_ = null;
}
return this;
}
/**
* .errorpb.Error region_error = 2;
*/
public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() {
onChanged();
return getRegionErrorFieldBuilder().getBuilder();
}
/**
* .errorpb.Error region_error = 2;
*/
public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() {
if (regionErrorBuilder_ != null) {
return regionErrorBuilder_.getMessageOrBuilder();
} else {
return regionError_ == null ?
org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_;
}
}
/**
* .errorpb.Error region_error = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>
getRegionErrorFieldBuilder() {
if (regionErrorBuilder_ == null) {
regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>(
getRegionError(),
getParentForChildren(),
isClean());
regionError_ = null;
}
return regionErrorBuilder_;
}
private org.tikv.kvproto.Kvrpcpb.LockInfo locked_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> lockedBuilder_;
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public boolean hasLocked() {
return lockedBuilder_ != null || locked_ != null;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() {
if (lockedBuilder_ == null) {
return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_;
} else {
return lockedBuilder_.getMessage();
}
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public Builder setLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) {
if (lockedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
locked_ = value;
onChanged();
} else {
lockedBuilder_.setMessage(value);
}
return this;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public Builder setLocked(
org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) {
if (lockedBuilder_ == null) {
locked_ = builderForValue.build();
onChanged();
} else {
lockedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public Builder mergeLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) {
if (lockedBuilder_ == null) {
if (locked_ != null) {
locked_ =
org.tikv.kvproto.Kvrpcpb.LockInfo.newBuilder(locked_).mergeFrom(value).buildPartial();
} else {
locked_ = value;
}
onChanged();
} else {
lockedBuilder_.mergeFrom(value);
}
return this;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public Builder clearLocked() {
if (lockedBuilder_ == null) {
locked_ = null;
onChanged();
} else {
locked_ = null;
lockedBuilder_ = null;
}
return this;
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLockedBuilder() {
onChanged();
return getLockedFieldBuilder().getBuilder();
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() {
if (lockedBuilder_ != null) {
return lockedBuilder_.getMessageOrBuilder();
} else {
return locked_ == null ?
org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_;
}
}
/**
* .kvrpcpb.LockInfo locked = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>
getLockedFieldBuilder() {
if (lockedBuilder_ == null) {
lockedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>(
getLocked(),
getParentForChildren(),
isClean());
locked_ = null;
}
return lockedBuilder_;
}
private java.lang.Object otherError_ = "";
/**
* string other_error = 4;
*/
public java.lang.String getOtherError() {
java.lang.Object ref = otherError_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
otherError_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string other_error = 4;
*/
public com.google.protobuf.ByteString
getOtherErrorBytes() {
java.lang.Object ref = otherError_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
otherError_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string other_error = 4;
*/
public Builder setOtherError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
otherError_ = value;
onChanged();
return this;
}
/**
* string other_error = 4;
*/
public Builder clearOtherError() {
otherError_ = getDefaultInstance().getOtherError();
onChanged();
return this;
}
/**
* string other_error = 4;
*/
public Builder setOtherErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
otherError_ = value;
onChanged();
return this;
}
private org.tikv.kvproto.Coprocessor.KeyRange range_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder> rangeBuilder_;
/**
* .coprocessor.KeyRange range = 5;
*/
public boolean hasRange() {
return rangeBuilder_ != null || range_ != null;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public org.tikv.kvproto.Coprocessor.KeyRange getRange() {
if (rangeBuilder_ == null) {
return range_ == null ? org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance() : range_;
} else {
return rangeBuilder_.getMessage();
}
}
/**
* .coprocessor.KeyRange range = 5;
*/
public Builder setRange(org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
range_ = value;
onChanged();
} else {
rangeBuilder_.setMessage(value);
}
return this;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public Builder setRange(
org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
onChanged();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public Builder mergeRange(org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangeBuilder_ == null) {
if (range_ != null) {
range_ =
org.tikv.kvproto.Coprocessor.KeyRange.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
onChanged();
} else {
rangeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public Builder clearRange() {
if (rangeBuilder_ == null) {
range_ = null;
onChanged();
} else {
range_ = null;
rangeBuilder_ = null;
}
return this;
}
/**
* .coprocessor.KeyRange range = 5;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder getRangeBuilder() {
onChanged();
return getRangeFieldBuilder().getBuilder();
}
/**
* .coprocessor.KeyRange range = 5;
*/
public org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangeOrBuilder() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilder();
} else {
return range_ == null ?
org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance() : range_;
}
}
/**
* .coprocessor.KeyRange range = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>(
getRange(),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
private org.tikv.kvproto.Kvrpcpb.ExecDetails execDetails_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetails, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder> execDetailsBuilder_;
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public boolean hasExecDetails() {
return execDetailsBuilder_ != null || execDetails_ != null;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetails getExecDetails() {
if (execDetailsBuilder_ == null) {
return execDetails_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance() : execDetails_;
} else {
return execDetailsBuilder_.getMessage();
}
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public Builder setExecDetails(org.tikv.kvproto.Kvrpcpb.ExecDetails value) {
if (execDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
execDetails_ = value;
onChanged();
} else {
execDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public Builder setExecDetails(
org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder builderForValue) {
if (execDetailsBuilder_ == null) {
execDetails_ = builderForValue.build();
onChanged();
} else {
execDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public Builder mergeExecDetails(org.tikv.kvproto.Kvrpcpb.ExecDetails value) {
if (execDetailsBuilder_ == null) {
if (execDetails_ != null) {
execDetails_ =
org.tikv.kvproto.Kvrpcpb.ExecDetails.newBuilder(execDetails_).mergeFrom(value).buildPartial();
} else {
execDetails_ = value;
}
onChanged();
} else {
execDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public Builder clearExecDetails() {
if (execDetailsBuilder_ == null) {
execDetails_ = null;
onChanged();
} else {
execDetails_ = null;
execDetailsBuilder_ = null;
}
return this;
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder getExecDetailsBuilder() {
onChanged();
return getExecDetailsFieldBuilder().getBuilder();
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder getExecDetailsOrBuilder() {
if (execDetailsBuilder_ != null) {
return execDetailsBuilder_.getMessageOrBuilder();
} else {
return execDetails_ == null ?
org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance() : execDetails_;
}
}
/**
*
* This field is always filled for compatibility consideration. However
* newer TiDB should respect `exec_details_v2` field instead.
*
*
* .kvrpcpb.ExecDetails exec_details = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetails, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder>
getExecDetailsFieldBuilder() {
if (execDetailsBuilder_ == null) {
execDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetails, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder>(
getExecDetails(),
getParentForChildren(),
isClean());
execDetails_ = null;
}
return execDetailsBuilder_;
}
private org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 execDetailsV2_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder> execDetailsV2Builder_;
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public boolean hasExecDetailsV2() {
return execDetailsV2Builder_ != null || execDetailsV2_ != null;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2() {
if (execDetailsV2Builder_ == null) {
return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_;
} else {
return execDetailsV2Builder_.getMessage();
}
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public Builder setExecDetailsV2(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 value) {
if (execDetailsV2Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
execDetailsV2_ = value;
onChanged();
} else {
execDetailsV2Builder_.setMessage(value);
}
return this;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public Builder setExecDetailsV2(
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder builderForValue) {
if (execDetailsV2Builder_ == null) {
execDetailsV2_ = builderForValue.build();
onChanged();
} else {
execDetailsV2Builder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public Builder mergeExecDetailsV2(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 value) {
if (execDetailsV2Builder_ == null) {
if (execDetailsV2_ != null) {
execDetailsV2_ =
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.newBuilder(execDetailsV2_).mergeFrom(value).buildPartial();
} else {
execDetailsV2_ = value;
}
onChanged();
} else {
execDetailsV2Builder_.mergeFrom(value);
}
return this;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public Builder clearExecDetailsV2() {
if (execDetailsV2Builder_ == null) {
execDetailsV2_ = null;
onChanged();
} else {
execDetailsV2_ = null;
execDetailsV2Builder_ = null;
}
return this;
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder getExecDetailsV2Builder() {
onChanged();
return getExecDetailsV2FieldBuilder().getBuilder();
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder() {
if (execDetailsV2Builder_ != null) {
return execDetailsV2Builder_.getMessageOrBuilder();
} else {
return execDetailsV2_ == null ?
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_;
}
}
/**
*
* This field is provided in later versions, containing more detailed
* information.
*
*
* .kvrpcpb.ExecDetailsV2 exec_details_v2 = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder>
getExecDetailsV2FieldBuilder() {
if (execDetailsV2Builder_ == null) {
execDetailsV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder>(
getExecDetailsV2(),
getParentForChildren(),
isClean());
execDetailsV2_ = null;
}
return execDetailsV2Builder_;
}
private boolean isCacheHit_ ;
/**
* bool is_cache_hit = 7;
*/
public boolean getIsCacheHit() {
return isCacheHit_;
}
/**
* bool is_cache_hit = 7;
*/
public Builder setIsCacheHit(boolean value) {
isCacheHit_ = value;
onChanged();
return this;
}
/**
* bool is_cache_hit = 7;
*/
public Builder clearIsCacheHit() {
isCacheHit_ = false;
onChanged();
return this;
}
private long cacheLastVersion_ ;
/**
* uint64 cache_last_version = 8;
*/
public long getCacheLastVersion() {
return cacheLastVersion_;
}
/**
* uint64 cache_last_version = 8;
*/
public Builder setCacheLastVersion(long value) {
cacheLastVersion_ = value;
onChanged();
return this;
}
/**
* uint64 cache_last_version = 8;
*/
public Builder clearCacheLastVersion() {
cacheLastVersion_ = 0L;
onChanged();
return this;
}
private boolean canBeCached_ ;
/**
* bool can_be_cached = 9;
*/
public boolean getCanBeCached() {
return canBeCached_;
}
/**
* bool can_be_cached = 9;
*/
public Builder setCanBeCached(boolean value) {
canBeCached_ = value;
onChanged();
return this;
}
/**
* bool can_be_cached = 9;
*/
public Builder clearCanBeCached() {
canBeCached_ = false;
onChanged();
return this;
}
private java.util.List spans_ =
java.util.Collections.emptyList();
private void ensureSpansIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
spans_ = new java.util.ArrayList(spans_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
span.SpanOuterClass.SpanSet, span.SpanOuterClass.SpanSet.Builder, span.SpanOuterClass.SpanSetOrBuilder> spansBuilder_;
/**
* repeated .span.SpanSet spans = 10;
*/
public java.util.List getSpansList() {
if (spansBuilder_ == null) {
return java.util.Collections.unmodifiableList(spans_);
} else {
return spansBuilder_.getMessageList();
}
}
/**
* repeated .span.SpanSet spans = 10;
*/
public int getSpansCount() {
if (spansBuilder_ == null) {
return spans_.size();
} else {
return spansBuilder_.getCount();
}
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSet getSpans(int index) {
if (spansBuilder_ == null) {
return spans_.get(index);
} else {
return spansBuilder_.getMessage(index);
}
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder setSpans(
int index, span.SpanOuterClass.SpanSet value) {
if (spansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpansIsMutable();
spans_.set(index, value);
onChanged();
} else {
spansBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder setSpans(
int index, span.SpanOuterClass.SpanSet.Builder builderForValue) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.set(index, builderForValue.build());
onChanged();
} else {
spansBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder addSpans(span.SpanOuterClass.SpanSet value) {
if (spansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpansIsMutable();
spans_.add(value);
onChanged();
} else {
spansBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder addSpans(
int index, span.SpanOuterClass.SpanSet value) {
if (spansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpansIsMutable();
spans_.add(index, value);
onChanged();
} else {
spansBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder addSpans(
span.SpanOuterClass.SpanSet.Builder builderForValue) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.add(builderForValue.build());
onChanged();
} else {
spansBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder addSpans(
int index, span.SpanOuterClass.SpanSet.Builder builderForValue) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.add(index, builderForValue.build());
onChanged();
} else {
spansBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder addAllSpans(
java.lang.Iterable extends span.SpanOuterClass.SpanSet> values) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spans_);
onChanged();
} else {
spansBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder clearSpans() {
if (spansBuilder_ == null) {
spans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
spansBuilder_.clear();
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public Builder removeSpans(int index) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.remove(index);
onChanged();
} else {
spansBuilder_.remove(index);
}
return this;
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSet.Builder getSpansBuilder(
int index) {
return getSpansFieldBuilder().getBuilder(index);
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSetOrBuilder getSpansOrBuilder(
int index) {
if (spansBuilder_ == null) {
return spans_.get(index); } else {
return spansBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .span.SpanSet spans = 10;
*/
public java.util.List extends span.SpanOuterClass.SpanSetOrBuilder>
getSpansOrBuilderList() {
if (spansBuilder_ != null) {
return spansBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spans_);
}
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSet.Builder addSpansBuilder() {
return getSpansFieldBuilder().addBuilder(
span.SpanOuterClass.SpanSet.getDefaultInstance());
}
/**
* repeated .span.SpanSet spans = 10;
*/
public span.SpanOuterClass.SpanSet.Builder addSpansBuilder(
int index) {
return getSpansFieldBuilder().addBuilder(
index, span.SpanOuterClass.SpanSet.getDefaultInstance());
}
/**
* repeated .span.SpanSet spans = 10;
*/
public java.util.List
getSpansBuilderList() {
return getSpansFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
span.SpanOuterClass.SpanSet, span.SpanOuterClass.SpanSet.Builder, span.SpanOuterClass.SpanSetOrBuilder>
getSpansFieldBuilder() {
if (spansBuilder_ == null) {
spansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
span.SpanOuterClass.SpanSet, span.SpanOuterClass.SpanSet.Builder, span.SpanOuterClass.SpanSetOrBuilder>(
spans_,
((bitField0_ & 0x00000400) == 0x00000400),
getParentForChildren(),
isClean());
spans_ = null;
}
return spansBuilder_;
}
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:coprocessor.Response)
}
// @@protoc_insertion_point(class_scope:coprocessor.Response)
private static final org.tikv.kvproto.Coprocessor.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.Coprocessor.Response();
}
public static org.tikv.kvproto.Coprocessor.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tikv.kvproto.Coprocessor.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor.RegionInfo)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 region_id = 1;
*/
long getRegionId();
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
boolean hasRegionEpoch();
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch();
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder();
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
java.util.List
getRangesList();
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
org.tikv.kvproto.Coprocessor.KeyRange getRanges(int index);
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
int getRangesCount();
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
java.util.List extends org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesOrBuilderList();
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangesOrBuilder(
int index);
}
/**
* Protobuf type {@code coprocessor.RegionInfo}
*/
public static final class RegionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor.RegionInfo)
RegionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegionInfo.newBuilder() to construct.
private RegionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegionInfo() {
regionId_ = 0L;
ranges_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegionInfo(
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: {
regionId_ = input.readUInt64();
break;
}
case 18: {
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 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
ranges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
ranges_.add(
input.readMessage(org.tikv.kvproto.Coprocessor.KeyRange.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_RegionInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_RegionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.RegionInfo.class, org.tikv.kvproto.Coprocessor.RegionInfo.Builder.class);
}
private int bitField0_;
public static final int REGION_ID_FIELD_NUMBER = 1;
private long regionId_;
/**
* uint64 region_id = 1;
*/
public long getRegionId() {
return regionId_;
}
public static final int REGION_EPOCH_FIELD_NUMBER = 2;
private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_;
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
public boolean hasRegionEpoch() {
return regionEpoch_ != null;
}
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() {
return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_;
}
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() {
return getRegionEpoch();
}
public static final int RANGES_FIELD_NUMBER = 3;
private java.util.List ranges_;
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public java.util.List getRangesList() {
return ranges_;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public java.util.List extends org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesOrBuilderList() {
return ranges_;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public int getRangesCount() {
return ranges_.size();
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRange getRanges(int index) {
return ranges_.get(index);
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangesOrBuilder(
int index) {
return ranges_.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 (regionId_ != 0L) {
output.writeUInt64(1, regionId_);
}
if (regionEpoch_ != null) {
output.writeMessage(2, getRegionEpoch());
}
for (int i = 0; i < ranges_.size(); i++) {
output.writeMessage(3, ranges_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (regionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, regionId_);
}
if (regionEpoch_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRegionEpoch());
}
for (int i = 0; i < ranges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, ranges_.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.Coprocessor.RegionInfo)) {
return super.equals(obj);
}
org.tikv.kvproto.Coprocessor.RegionInfo other = (org.tikv.kvproto.Coprocessor.RegionInfo) obj;
boolean result = true;
result = result && (getRegionId()
== other.getRegionId());
result = result && (hasRegionEpoch() == other.hasRegionEpoch());
if (hasRegionEpoch()) {
result = result && getRegionEpoch()
.equals(other.getRegionEpoch());
}
result = result && getRangesList()
.equals(other.getRangesList());
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) + 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();
}
if (getRangesCount() > 0) {
hash = (37 * hash) + RANGES_FIELD_NUMBER;
hash = (53 * hash) + getRangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.Coprocessor.RegionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo 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.Coprocessor.RegionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo 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.Coprocessor.RegionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo 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.Coprocessor.RegionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo 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.Coprocessor.RegionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.RegionInfo 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.Coprocessor.RegionInfo 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 coprocessor.RegionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor.RegionInfo)
org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_RegionInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_RegionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.RegionInfo.class, org.tikv.kvproto.Coprocessor.RegionInfo.Builder.class);
}
// Construct using org.tikv.kvproto.Coprocessor.RegionInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRangesFieldBuilder();
}
}
public Builder clear() {
super.clear();
regionId_ = 0L;
if (regionEpochBuilder_ == null) {
regionEpoch_ = null;
} else {
regionEpoch_ = null;
regionEpochBuilder_ = null;
}
if (rangesBuilder_ == null) {
ranges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
rangesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_RegionInfo_descriptor;
}
public org.tikv.kvproto.Coprocessor.RegionInfo getDefaultInstanceForType() {
return org.tikv.kvproto.Coprocessor.RegionInfo.getDefaultInstance();
}
public org.tikv.kvproto.Coprocessor.RegionInfo build() {
org.tikv.kvproto.Coprocessor.RegionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.Coprocessor.RegionInfo buildPartial() {
org.tikv.kvproto.Coprocessor.RegionInfo result = new org.tikv.kvproto.Coprocessor.RegionInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.regionId_ = regionId_;
if (regionEpochBuilder_ == null) {
result.regionEpoch_ = regionEpoch_;
} else {
result.regionEpoch_ = regionEpochBuilder_.build();
}
if (rangesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.ranges_ = ranges_;
} else {
result.ranges_ = rangesBuilder_.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.Coprocessor.RegionInfo) {
return mergeFrom((org.tikv.kvproto.Coprocessor.RegionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.Coprocessor.RegionInfo other) {
if (other == org.tikv.kvproto.Coprocessor.RegionInfo.getDefaultInstance()) return this;
if (other.getRegionId() != 0L) {
setRegionId(other.getRegionId());
}
if (other.hasRegionEpoch()) {
mergeRegionEpoch(other.getRegionEpoch());
}
if (rangesBuilder_ == null) {
if (!other.ranges_.isEmpty()) {
if (ranges_.isEmpty()) {
ranges_ = other.ranges_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRangesIsMutable();
ranges_.addAll(other.ranges_);
}
onChanged();
}
} else {
if (!other.ranges_.isEmpty()) {
if (rangesBuilder_.isEmpty()) {
rangesBuilder_.dispose();
rangesBuilder_ = null;
ranges_ = other.ranges_;
bitField0_ = (bitField0_ & ~0x00000004);
rangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRangesFieldBuilder() : null;
} else {
rangesBuilder_.addAllMessages(other.ranges_);
}
}
}
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.Coprocessor.RegionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.Coprocessor.RegionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long regionId_ ;
/**
* uint64 region_id = 1;
*/
public long getRegionId() {
return regionId_;
}
/**
* uint64 region_id = 1;
*/
public Builder setRegionId(long value) {
regionId_ = value;
onChanged();
return this;
}
/**
* uint64 region_id = 1;
*/
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 = 2;
*/
public boolean hasRegionEpoch() {
return regionEpochBuilder_ != null || regionEpoch_ != null;
}
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder clearRegionEpoch() {
if (regionEpochBuilder_ == null) {
regionEpoch_ = null;
onChanged();
} else {
regionEpoch_ = null;
regionEpochBuilder_ = null;
}
return this;
}
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() {
onChanged();
return getRegionEpochFieldBuilder().getBuilder();
}
/**
* .metapb.RegionEpoch region_epoch = 2;
*/
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 = 2;
*/
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 java.util.List ranges_ =
java.util.Collections.emptyList();
private void ensureRangesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
ranges_ = new java.util.ArrayList(ranges_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder> rangesBuilder_;
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public java.util.List getRangesList() {
if (rangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(ranges_);
} else {
return rangesBuilder_.getMessageList();
}
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public int getRangesCount() {
if (rangesBuilder_ == null) {
return ranges_.size();
} else {
return rangesBuilder_.getCount();
}
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRange getRanges(int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index);
} else {
return rangesBuilder_.getMessage(index);
}
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder setRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.set(index, value);
onChanged();
} else {
rangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder setRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.set(index, builderForValue.build());
onChanged();
} else {
rangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder addRanges(org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(value);
onChanged();
} else {
rangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder addRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(index, value);
onChanged();
} else {
rangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder addRanges(
org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.add(builderForValue.build());
onChanged();
} else {
rangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder addRanges(
int index, org.tikv.kvproto.Coprocessor.KeyRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.add(index, builderForValue.build());
onChanged();
} else {
rangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder addAllRanges(
java.lang.Iterable extends org.tikv.kvproto.Coprocessor.KeyRange> values) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ranges_);
onChanged();
} else {
rangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder clearRanges() {
if (rangesBuilder_ == null) {
ranges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
rangesBuilder_.clear();
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public Builder removeRanges(int index) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.remove(index);
onChanged();
} else {
rangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder getRangesBuilder(
int index) {
return getRangesFieldBuilder().getBuilder(index);
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder getRangesOrBuilder(
int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index); } else {
return rangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public java.util.List extends org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesOrBuilderList() {
if (rangesBuilder_ != null) {
return rangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ranges_);
}
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder addRangesBuilder() {
return getRangesFieldBuilder().addBuilder(
org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance());
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public org.tikv.kvproto.Coprocessor.KeyRange.Builder addRangesBuilder(
int index) {
return getRangesFieldBuilder().addBuilder(
index, org.tikv.kvproto.Coprocessor.KeyRange.getDefaultInstance());
}
/**
* repeated .coprocessor.KeyRange ranges = 3;
*/
public java.util.List
getRangesBuilderList() {
return getRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>
getRangesFieldBuilder() {
if (rangesBuilder_ == null) {
rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.KeyRange, org.tikv.kvproto.Coprocessor.KeyRange.Builder, org.tikv.kvproto.Coprocessor.KeyRangeOrBuilder>(
ranges_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
ranges_ = null;
}
return rangesBuilder_;
}
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:coprocessor.RegionInfo)
}
// @@protoc_insertion_point(class_scope:coprocessor.RegionInfo)
private static final org.tikv.kvproto.Coprocessor.RegionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.Coprocessor.RegionInfo();
}
public static org.tikv.kvproto.Coprocessor.RegionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RegionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegionInfo(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.Coprocessor.RegionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor.BatchRequest)
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();
/**
* int64 tp = 2;
*/
long getTp();
/**
* bytes data = 3;
*/
com.google.protobuf.ByteString getData();
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
java.util.List
getRegionsList();
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
org.tikv.kvproto.Coprocessor.RegionInfo getRegions(int index);
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
int getRegionsCount();
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
java.util.List extends org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder>
getRegionsOrBuilderList();
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder getRegionsOrBuilder(
int index);
/**
* uint64 start_ts = 5;
*/
long getStartTs();
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 6;
*/
long getSchemaVer();
}
/**
* Protobuf type {@code coprocessor.BatchRequest}
*/
public static final class BatchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor.BatchRequest)
BatchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchRequest.newBuilder() to construct.
private BatchRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchRequest() {
tp_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
regions_ = java.util.Collections.emptyList();
startTs_ = 0L;
schemaVer_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchRequest(
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 16: {
tp_ = input.readInt64();
break;
}
case 26: {
data_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
regions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
regions_.add(
input.readMessage(org.tikv.kvproto.Coprocessor.RegionInfo.parser(), extensionRegistry));
break;
}
case 40: {
startTs_ = input.readUInt64();
break;
}
case 48: {
schemaVer_ = input.readInt64();
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_ & 0x00000008) == 0x00000008)) {
regions_ = java.util.Collections.unmodifiableList(regions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.BatchRequest.class, org.tikv.kvproto.Coprocessor.BatchRequest.Builder.class);
}
private int bitField0_;
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 TP_FIELD_NUMBER = 2;
private long tp_;
/**
* int64 tp = 2;
*/
public long getTp() {
return tp_;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int REGIONS_FIELD_NUMBER = 4;
private java.util.List regions_;
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public java.util.List getRegionsList() {
return regions_;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public java.util.List extends org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder>
getRegionsOrBuilderList() {
return regions_;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public int getRegionsCount() {
return regions_.size();
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfo getRegions(int index) {
return regions_.get(index);
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder getRegionsOrBuilder(
int index) {
return regions_.get(index);
}
public static final int START_TS_FIELD_NUMBER = 5;
private long startTs_;
/**
* uint64 start_ts = 5;
*/
public long getStartTs() {
return startTs_;
}
public static final int SCHEMA_VER_FIELD_NUMBER = 6;
private long schemaVer_;
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 6;
*/
public long getSchemaVer() {
return schemaVer_;
}
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 (tp_ != 0L) {
output.writeInt64(2, tp_);
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
for (int i = 0; i < regions_.size(); i++) {
output.writeMessage(4, regions_.get(i));
}
if (startTs_ != 0L) {
output.writeUInt64(5, startTs_);
}
if (schemaVer_ != 0L) {
output.writeInt64(6, schemaVer_);
}
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 (tp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, tp_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
for (int i = 0; i < regions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, regions_.get(i));
}
if (startTs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, startTs_);
}
if (schemaVer_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, schemaVer_);
}
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.Coprocessor.BatchRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.Coprocessor.BatchRequest other = (org.tikv.kvproto.Coprocessor.BatchRequest) obj;
boolean result = true;
result = result && (hasContext() == other.hasContext());
if (hasContext()) {
result = result && getContext()
.equals(other.getContext());
}
result = result && (getTp()
== other.getTp());
result = result && getData()
.equals(other.getData());
result = result && getRegionsList()
.equals(other.getRegionsList());
result = result && (getStartTs()
== other.getStartTs());
result = result && (getSchemaVer()
== other.getSchemaVer());
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();
}
hash = (37 * hash) + TP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTp());
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
if (getRegionsCount() > 0) {
hash = (37 * hash) + REGIONS_FIELD_NUMBER;
hash = (53 * hash) + getRegionsList().hashCode();
}
hash = (37 * hash) + START_TS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTs());
hash = (37 * hash) + SCHEMA_VER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSchemaVer());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.Coprocessor.BatchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest 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.Coprocessor.BatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest 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.Coprocessor.BatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest 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.Coprocessor.BatchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest 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.Coprocessor.BatchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.BatchRequest 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.Coprocessor.BatchRequest 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 coprocessor.BatchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor.BatchRequest)
org.tikv.kvproto.Coprocessor.BatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.BatchRequest.class, org.tikv.kvproto.Coprocessor.BatchRequest.Builder.class);
}
// Construct using org.tikv.kvproto.Coprocessor.BatchRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegionsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
tp_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
if (regionsBuilder_ == null) {
regions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
regionsBuilder_.clear();
}
startTs_ = 0L;
schemaVer_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchRequest_descriptor;
}
public org.tikv.kvproto.Coprocessor.BatchRequest getDefaultInstanceForType() {
return org.tikv.kvproto.Coprocessor.BatchRequest.getDefaultInstance();
}
public org.tikv.kvproto.Coprocessor.BatchRequest build() {
org.tikv.kvproto.Coprocessor.BatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.Coprocessor.BatchRequest buildPartial() {
org.tikv.kvproto.Coprocessor.BatchRequest result = new org.tikv.kvproto.Coprocessor.BatchRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
result.tp_ = tp_;
result.data_ = data_;
if (regionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
regions_ = java.util.Collections.unmodifiableList(regions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.regions_ = regions_;
} else {
result.regions_ = regionsBuilder_.build();
}
result.startTs_ = startTs_;
result.schemaVer_ = schemaVer_;
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.Coprocessor.BatchRequest) {
return mergeFrom((org.tikv.kvproto.Coprocessor.BatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.Coprocessor.BatchRequest other) {
if (other == org.tikv.kvproto.Coprocessor.BatchRequest.getDefaultInstance()) return this;
if (other.hasContext()) {
mergeContext(other.getContext());
}
if (other.getTp() != 0L) {
setTp(other.getTp());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (regionsBuilder_ == null) {
if (!other.regions_.isEmpty()) {
if (regions_.isEmpty()) {
regions_ = other.regions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRegionsIsMutable();
regions_.addAll(other.regions_);
}
onChanged();
}
} else {
if (!other.regions_.isEmpty()) {
if (regionsBuilder_.isEmpty()) {
regionsBuilder_.dispose();
regionsBuilder_ = null;
regions_ = other.regions_;
bitField0_ = (bitField0_ & ~0x00000008);
regionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegionsFieldBuilder() : null;
} else {
regionsBuilder_.addAllMessages(other.regions_);
}
}
}
if (other.getStartTs() != 0L) {
setStartTs(other.getStartTs());
}
if (other.getSchemaVer() != 0L) {
setSchemaVer(other.getSchemaVer());
}
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.Coprocessor.BatchRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.Coprocessor.BatchRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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 long tp_ ;
/**
* int64 tp = 2;
*/
public long getTp() {
return tp_;
}
/**
* int64 tp = 2;
*/
public Builder setTp(long value) {
tp_ = value;
onChanged();
return this;
}
/**
* int64 tp = 2;
*/
public Builder clearTp() {
tp_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 3;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 3;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.util.List regions_ =
java.util.Collections.emptyList();
private void ensureRegionsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
regions_ = new java.util.ArrayList(regions_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.RegionInfo, org.tikv.kvproto.Coprocessor.RegionInfo.Builder, org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder> regionsBuilder_;
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public java.util.List getRegionsList() {
if (regionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(regions_);
} else {
return regionsBuilder_.getMessageList();
}
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public int getRegionsCount() {
if (regionsBuilder_ == null) {
return regions_.size();
} else {
return regionsBuilder_.getCount();
}
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfo getRegions(int index) {
if (regionsBuilder_ == null) {
return regions_.get(index);
} else {
return regionsBuilder_.getMessage(index);
}
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder setRegions(
int index, org.tikv.kvproto.Coprocessor.RegionInfo value) {
if (regionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionsIsMutable();
regions_.set(index, value);
onChanged();
} else {
regionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder setRegions(
int index, org.tikv.kvproto.Coprocessor.RegionInfo.Builder builderForValue) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.set(index, builderForValue.build());
onChanged();
} else {
regionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder addRegions(org.tikv.kvproto.Coprocessor.RegionInfo value) {
if (regionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionsIsMutable();
regions_.add(value);
onChanged();
} else {
regionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder addRegions(
int index, org.tikv.kvproto.Coprocessor.RegionInfo value) {
if (regionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionsIsMutable();
regions_.add(index, value);
onChanged();
} else {
regionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder addRegions(
org.tikv.kvproto.Coprocessor.RegionInfo.Builder builderForValue) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.add(builderForValue.build());
onChanged();
} else {
regionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder addRegions(
int index, org.tikv.kvproto.Coprocessor.RegionInfo.Builder builderForValue) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.add(index, builderForValue.build());
onChanged();
} else {
regionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder addAllRegions(
java.lang.Iterable extends org.tikv.kvproto.Coprocessor.RegionInfo> values) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, regions_);
onChanged();
} else {
regionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder clearRegions() {
if (regionsBuilder_ == null) {
regions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
regionsBuilder_.clear();
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public Builder removeRegions(int index) {
if (regionsBuilder_ == null) {
ensureRegionsIsMutable();
regions_.remove(index);
onChanged();
} else {
regionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfo.Builder getRegionsBuilder(
int index) {
return getRegionsFieldBuilder().getBuilder(index);
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder getRegionsOrBuilder(
int index) {
if (regionsBuilder_ == null) {
return regions_.get(index); } else {
return regionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public java.util.List extends org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder>
getRegionsOrBuilderList() {
if (regionsBuilder_ != null) {
return regionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(regions_);
}
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfo.Builder addRegionsBuilder() {
return getRegionsFieldBuilder().addBuilder(
org.tikv.kvproto.Coprocessor.RegionInfo.getDefaultInstance());
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public org.tikv.kvproto.Coprocessor.RegionInfo.Builder addRegionsBuilder(
int index) {
return getRegionsFieldBuilder().addBuilder(
index, org.tikv.kvproto.Coprocessor.RegionInfo.getDefaultInstance());
}
/**
* repeated .coprocessor.RegionInfo regions = 4;
*/
public java.util.List
getRegionsBuilderList() {
return getRegionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.RegionInfo, org.tikv.kvproto.Coprocessor.RegionInfo.Builder, org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder>
getRegionsFieldBuilder() {
if (regionsBuilder_ == null) {
regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.Coprocessor.RegionInfo, org.tikv.kvproto.Coprocessor.RegionInfo.Builder, org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder>(
regions_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
regions_ = null;
}
return regionsBuilder_;
}
private long startTs_ ;
/**
* uint64 start_ts = 5;
*/
public long getStartTs() {
return startTs_;
}
/**
* uint64 start_ts = 5;
*/
public Builder setStartTs(long value) {
startTs_ = value;
onChanged();
return this;
}
/**
* uint64 start_ts = 5;
*/
public Builder clearStartTs() {
startTs_ = 0L;
onChanged();
return this;
}
private long schemaVer_ ;
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 6;
*/
public long getSchemaVer() {
return schemaVer_;
}
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 6;
*/
public Builder setSchemaVer(long value) {
schemaVer_ = value;
onChanged();
return this;
}
/**
*
* Any schema-ful storage to validate schema correctness if necessary.
*
*
* int64 schema_ver = 6;
*/
public Builder clearSchemaVer() {
schemaVer_ = 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:coprocessor.BatchRequest)
}
// @@protoc_insertion_point(class_scope:coprocessor.BatchRequest)
private static final org.tikv.kvproto.Coprocessor.BatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.Coprocessor.BatchRequest();
}
public static org.tikv.kvproto.Coprocessor.BatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchRequest(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.Coprocessor.BatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor.BatchResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
com.google.protobuf.ByteString getData();
/**
* string other_error = 2;
*/
java.lang.String getOtherError();
/**
* string other_error = 2;
*/
com.google.protobuf.ByteString
getOtherErrorBytes();
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
boolean hasExecDetails();
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
org.tikv.kvproto.Kvrpcpb.ExecDetails getExecDetails();
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder getExecDetailsOrBuilder();
}
/**
* Protobuf type {@code coprocessor.BatchResponse}
*/
public static final class BatchResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor.BatchResponse)
BatchResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchResponse.newBuilder() to construct.
private BatchResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
otherError_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchResponse(
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: {
data_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
otherError_ = s;
break;
}
case 26: {
org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder subBuilder = null;
if (execDetails_ != null) {
subBuilder = execDetails_.toBuilder();
}
execDetails_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ExecDetails.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(execDetails_);
execDetails_ = 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.Coprocessor.internal_static_coprocessor_BatchResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.BatchResponse.class, org.tikv.kvproto.Coprocessor.BatchResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int OTHER_ERROR_FIELD_NUMBER = 2;
private volatile java.lang.Object otherError_;
/**
* string other_error = 2;
*/
public java.lang.String getOtherError() {
java.lang.Object ref = otherError_;
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();
otherError_ = s;
return s;
}
}
/**
* string other_error = 2;
*/
public com.google.protobuf.ByteString
getOtherErrorBytes() {
java.lang.Object ref = otherError_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
otherError_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXEC_DETAILS_FIELD_NUMBER = 3;
private org.tikv.kvproto.Kvrpcpb.ExecDetails execDetails_;
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public boolean hasExecDetails() {
return execDetails_ != null;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetails getExecDetails() {
return execDetails_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance() : execDetails_;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder getExecDetailsOrBuilder() {
return getExecDetails();
}
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 (!data_.isEmpty()) {
output.writeBytes(1, data_);
}
if (!getOtherErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, otherError_);
}
if (execDetails_ != null) {
output.writeMessage(3, getExecDetails());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
if (!getOtherErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, otherError_);
}
if (execDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExecDetails());
}
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.Coprocessor.BatchResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.Coprocessor.BatchResponse other = (org.tikv.kvproto.Coprocessor.BatchResponse) obj;
boolean result = true;
result = result && getData()
.equals(other.getData());
result = result && getOtherError()
.equals(other.getOtherError());
result = result && (hasExecDetails() == other.hasExecDetails());
if (hasExecDetails()) {
result = result && getExecDetails()
.equals(other.getExecDetails());
}
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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + OTHER_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getOtherError().hashCode();
if (hasExecDetails()) {
hash = (37 * hash) + EXEC_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getExecDetails().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.Coprocessor.BatchResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse 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.Coprocessor.BatchResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse 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.Coprocessor.BatchResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse 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.Coprocessor.BatchResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse 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.Coprocessor.BatchResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.Coprocessor.BatchResponse 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.Coprocessor.BatchResponse 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 coprocessor.BatchResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor.BatchResponse)
org.tikv.kvproto.Coprocessor.BatchResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.Coprocessor.BatchResponse.class, org.tikv.kvproto.Coprocessor.BatchResponse.Builder.class);
}
// Construct using org.tikv.kvproto.Coprocessor.BatchResponse.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();
data_ = com.google.protobuf.ByteString.EMPTY;
otherError_ = "";
if (execDetailsBuilder_ == null) {
execDetails_ = null;
} else {
execDetails_ = null;
execDetailsBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.Coprocessor.internal_static_coprocessor_BatchResponse_descriptor;
}
public org.tikv.kvproto.Coprocessor.BatchResponse getDefaultInstanceForType() {
return org.tikv.kvproto.Coprocessor.BatchResponse.getDefaultInstance();
}
public org.tikv.kvproto.Coprocessor.BatchResponse build() {
org.tikv.kvproto.Coprocessor.BatchResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.Coprocessor.BatchResponse buildPartial() {
org.tikv.kvproto.Coprocessor.BatchResponse result = new org.tikv.kvproto.Coprocessor.BatchResponse(this);
result.data_ = data_;
result.otherError_ = otherError_;
if (execDetailsBuilder_ == null) {
result.execDetails_ = execDetails_;
} else {
result.execDetails_ = execDetailsBuilder_.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.Coprocessor.BatchResponse) {
return mergeFrom((org.tikv.kvproto.Coprocessor.BatchResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.Coprocessor.BatchResponse other) {
if (other == org.tikv.kvproto.Coprocessor.BatchResponse.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getOtherError().isEmpty()) {
otherError_ = other.otherError_;
onChanged();
}
if (other.hasExecDetails()) {
mergeExecDetails(other.getExecDetails());
}
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.Coprocessor.BatchResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.Coprocessor.BatchResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/kvproto/pkg/sharedbytes.SharedBytes"];
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object otherError_ = "";
/**
* string other_error = 2;
*/
public java.lang.String getOtherError() {
java.lang.Object ref = otherError_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
otherError_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string other_error = 2;
*/
public com.google.protobuf.ByteString
getOtherErrorBytes() {
java.lang.Object ref = otherError_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
otherError_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string other_error = 2;
*/
public Builder setOtherError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
otherError_ = value;
onChanged();
return this;
}
/**
* string other_error = 2;
*/
public Builder clearOtherError() {
otherError_ = getDefaultInstance().getOtherError();
onChanged();
return this;
}
/**
* string other_error = 2;
*/
public Builder setOtherErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
otherError_ = value;
onChanged();
return this;
}
private org.tikv.kvproto.Kvrpcpb.ExecDetails execDetails_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetails, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder> execDetailsBuilder_;
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public boolean hasExecDetails() {
return execDetailsBuilder_ != null || execDetails_ != null;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetails getExecDetails() {
if (execDetailsBuilder_ == null) {
return execDetails_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance() : execDetails_;
} else {
return execDetailsBuilder_.getMessage();
}
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public Builder setExecDetails(org.tikv.kvproto.Kvrpcpb.ExecDetails value) {
if (execDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
execDetails_ = value;
onChanged();
} else {
execDetailsBuilder_.setMessage(value);
}
return this;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public Builder setExecDetails(
org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder builderForValue) {
if (execDetailsBuilder_ == null) {
execDetails_ = builderForValue.build();
onChanged();
} else {
execDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public Builder mergeExecDetails(org.tikv.kvproto.Kvrpcpb.ExecDetails value) {
if (execDetailsBuilder_ == null) {
if (execDetails_ != null) {
execDetails_ =
org.tikv.kvproto.Kvrpcpb.ExecDetails.newBuilder(execDetails_).mergeFrom(value).buildPartial();
} else {
execDetails_ = value;
}
onChanged();
} else {
execDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public Builder clearExecDetails() {
if (execDetailsBuilder_ == null) {
execDetails_ = null;
onChanged();
} else {
execDetails_ = null;
execDetailsBuilder_ = null;
}
return this;
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder getExecDetailsBuilder() {
onChanged();
return getExecDetailsFieldBuilder().getBuilder();
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
public org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder getExecDetailsOrBuilder() {
if (execDetailsBuilder_ != null) {
return execDetailsBuilder_.getMessageOrBuilder();
} else {
return execDetails_ == null ?
org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance() : execDetails_;
}
}
/**
* .kvrpcpb.ExecDetails exec_details = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetails, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder>
getExecDetailsFieldBuilder() {
if (execDetailsBuilder_ == null) {
execDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.ExecDetails, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder>(
getExecDetails(),
getParentForChildren(),
isClean());
execDetails_ = null;
}
return execDetailsBuilder_;
}
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:coprocessor.BatchResponse)
}
// @@protoc_insertion_point(class_scope:coprocessor.BatchResponse)
private static final org.tikv.kvproto.Coprocessor.BatchResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.Coprocessor.BatchResponse();
}
public static org.tikv.kvproto.Coprocessor.BatchResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public BatchResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchResponse(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.Coprocessor.BatchResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_KeyRange_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_KeyRange_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_Response_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_RegionInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_RegionInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_BatchRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_BatchRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_BatchResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_BatchResponse_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\021coprocessor.proto\022\013coprocessor\032\rerrorp" +
"b.proto\032\rkvrpcpb.proto\032\024gogoproto/gogo.p" +
"roto\032\017rustproto.proto\032\014metapb.proto\032\nspa" +
"n.proto\"&\n\010KeyRange\022\r\n\005start\030\001 \001(\014\022\013\n\003en" +
"d\030\002 \001(\014\"\347\001\n\007Request\022!\n\007context\030\001 \001(\0132\020.k" +
"vrpcpb.Context\022\n\n\002tp\030\002 \001(\003\022\014\n\004data\030\003 \001(\014" +
"\022\020\n\010start_ts\030\007 \001(\004\022%\n\006ranges\030\004 \003(\0132\025.cop" +
"rocessor.KeyRange\022\030\n\020is_cache_enabled\030\005 " +
"\001(\010\022\036\n\026cache_if_match_version\030\006 \001(\004\022\022\n\ns" +
"chema_ver\030\010 \001(\003\022\030\n\020is_trace_enabled\030\t \001(" +
"\010\"\240\003\n\010Response\022L\n\004data\030\001 \001(\014B>\332\336\0376github" +
".com/pingcap/kvproto/pkg/sharedbytes.Sha" +
"redBytes\310\336\037\000\022$\n\014region_error\030\002 \001(\0132\016.err" +
"orpb.Error\022!\n\006locked\030\003 \001(\0132\021.kvrpcpb.Loc" +
"kInfo\022\023\n\013other_error\030\004 \001(\t\022$\n\005range\030\005 \001(" +
"\0132\025.coprocessor.KeyRange\022*\n\014exec_details" +
"\030\006 \001(\0132\024.kvrpcpb.ExecDetails\022/\n\017exec_det" +
"ails_v2\030\013 \001(\0132\026.kvrpcpb.ExecDetailsV2\022\024\n" +
"\014is_cache_hit\030\007 \001(\010\022\032\n\022cache_last_versio" +
"n\030\010 \001(\004\022\025\n\rcan_be_cached\030\t \001(\010\022\034\n\005spans\030" +
"\n \003(\0132\r.span.SpanSet\"q\n\nRegionInfo\022\021\n\tre" +
"gion_id\030\001 \001(\004\022)\n\014region_epoch\030\002 \001(\0132\023.me" +
"tapb.RegionEpoch\022%\n\006ranges\030\003 \003(\0132\025.copro" +
"cessor.KeyRange\"\233\001\n\014BatchRequest\022!\n\007cont" +
"ext\030\001 \001(\0132\020.kvrpcpb.Context\022\n\n\002tp\030\002 \001(\003\022" +
"\014\n\004data\030\003 \001(\014\022(\n\007regions\030\004 \003(\0132\027.coproce" +
"ssor.RegionInfo\022\020\n\010start_ts\030\005 \001(\004\022\022\n\nsch" +
"ema_ver\030\006 \001(\003\"\236\001\n\rBatchResponse\022L\n\004data\030" +
"\001 \001(\014B>\332\336\0376github.com/pingcap/kvproto/pk" +
"g/sharedbytes.SharedBytes\310\336\037\000\022\023\n\013other_e" +
"rror\030\002 \001(\t\022*\n\014exec_details\030\003 \001(\0132\024.kvrpc" +
"pb.ExecDetailsB\"\n\020org.tikv.kvproto\310\342\036\001\340\342" +
"\036\001\320\342\036\001\330\250\010\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.tikv.kvproto.Errorpb.getDescriptor(),
org.tikv.kvproto.Kvrpcpb.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
rustproto.Rustproto.getDescriptor(),
org.tikv.kvproto.Metapb.getDescriptor(),
span.SpanOuterClass.getDescriptor(),
}, assigner);
internal_static_coprocessor_KeyRange_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_coprocessor_KeyRange_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_KeyRange_descriptor,
new java.lang.String[] { "Start", "End", });
internal_static_coprocessor_Request_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_coprocessor_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_Request_descriptor,
new java.lang.String[] { "Context", "Tp", "Data", "StartTs", "Ranges", "IsCacheEnabled", "CacheIfMatchVersion", "SchemaVer", "IsTraceEnabled", });
internal_static_coprocessor_Response_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_coprocessor_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_Response_descriptor,
new java.lang.String[] { "Data", "RegionError", "Locked", "OtherError", "Range", "ExecDetails", "ExecDetailsV2", "IsCacheHit", "CacheLastVersion", "CanBeCached", "Spans", });
internal_static_coprocessor_RegionInfo_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_coprocessor_RegionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_RegionInfo_descriptor,
new java.lang.String[] { "RegionId", "RegionEpoch", "Ranges", });
internal_static_coprocessor_BatchRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_coprocessor_BatchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_BatchRequest_descriptor,
new java.lang.String[] { "Context", "Tp", "Data", "Regions", "StartTs", "SchemaVer", });
internal_static_coprocessor_BatchResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_coprocessor_BatchResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_BatchResponse_descriptor,
new java.lang.String[] { "Data", "OtherError", "ExecDetails", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.customtype);
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.Errorpb.getDescriptor();
org.tikv.kvproto.Kvrpcpb.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
rustproto.Rustproto.getDescriptor();
org.tikv.kvproto.Metapb.getDescriptor();
span.SpanOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy