org.tikv.kvproto.CoprocessorV2 Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: coprocessor_v2.proto
package org.tikv.kvproto;
public final class CoprocessorV2 {
private CoprocessorV2() {}
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 RawCoprocessorRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor_v2.RawCoprocessorRequest)
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();
/**
* string copr_name = 2;
*/
java.lang.String getCoprName();
/**
* string copr_name = 2;
*/
com.google.protobuf.ByteString
getCoprNameBytes();
/**
* string copr_version_constraint = 3;
*/
java.lang.String getCoprVersionConstraint();
/**
* string copr_version_constraint = 3;
*/
com.google.protobuf.ByteString
getCoprVersionConstraintBytes();
/**
* bytes data = 4;
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code coprocessor_v2.RawCoprocessorRequest}
*/
public static final class RawCoprocessorRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor_v2.RawCoprocessorRequest)
RawCoprocessorRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RawCoprocessorRequest.newBuilder() to construct.
private RawCoprocessorRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RawCoprocessorRequest() {
coprName_ = "";
coprVersionConstraint_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RawCoprocessorRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null;
if (context_ != null) {
subBuilder = context_.toBuilder();
}
context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(context_);
context_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
coprName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
coprVersionConstraint_ = s;
break;
}
case 34: {
data_ = 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.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.class, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder.class);
}
public static final int CONTEXT_FIELD_NUMBER = 1;
private org.tikv.kvproto.Kvrpcpb.Context context_;
/**
* .kvrpcpb.Context context = 1;
*/
public boolean hasContext() {
return context_ != null;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.Context getContext() {
return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() {
return getContext();
}
public static final int COPR_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object coprName_;
/**
* string copr_name = 2;
*/
public java.lang.String getCoprName() {
java.lang.Object ref = coprName_;
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();
coprName_ = s;
return s;
}
}
/**
* string copr_name = 2;
*/
public com.google.protobuf.ByteString
getCoprNameBytes() {
java.lang.Object ref = coprName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coprName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COPR_VERSION_CONSTRAINT_FIELD_NUMBER = 3;
private volatile java.lang.Object coprVersionConstraint_;
/**
* string copr_version_constraint = 3;
*/
public java.lang.String getCoprVersionConstraint() {
java.lang.Object ref = coprVersionConstraint_;
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();
coprVersionConstraint_ = s;
return s;
}
}
/**
* string copr_version_constraint = 3;
*/
public com.google.protobuf.ByteString
getCoprVersionConstraintBytes() {
java.lang.Object ref = coprVersionConstraint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coprVersionConstraint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 4;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (!getCoprNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, coprName_);
}
if (!getCoprVersionConstraintBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, coprVersionConstraint_);
}
if (!data_.isEmpty()) {
output.writeBytes(4, data_);
}
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 (!getCoprNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, coprName_);
}
if (!getCoprVersionConstraintBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, coprVersionConstraint_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, data_);
}
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.CoprocessorV2.RawCoprocessorRequest)) {
return super.equals(obj);
}
org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest other = (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) obj;
boolean result = true;
result = result && (hasContext() == other.hasContext());
if (hasContext()) {
result = result && getContext()
.equals(other.getContext());
}
result = result && getCoprName()
.equals(other.getCoprName());
result = result && getCoprVersionConstraint()
.equals(other.getCoprVersionConstraint());
result = result && getData()
.equals(other.getData());
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) + COPR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCoprName().hashCode();
hash = (37 * hash) + COPR_VERSION_CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + getCoprVersionConstraint().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest 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.CoprocessorV2.RawCoprocessorRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest 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.CoprocessorV2.RawCoprocessorRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest 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.CoprocessorV2.RawCoprocessorRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest 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.CoprocessorV2.RawCoprocessorRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest 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.CoprocessorV2.RawCoprocessorRequest 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_v2.RawCoprocessorRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor_v2.RawCoprocessorRequest)
org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.class, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder.class);
}
// Construct using org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
coprName_ = "";
coprVersionConstraint_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorRequest_descriptor;
}
public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest getDefaultInstanceForType() {
return org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance();
}
public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest build() {
org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest buildPartial() {
org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest result = new org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest(this);
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
result.coprName_ = coprName_;
result.coprVersionConstraint_ = coprVersionConstraint_;
result.data_ = data_;
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.CoprocessorV2.RawCoprocessorRequest) {
return mergeFrom((org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest other) {
if (other == org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance()) return this;
if (other.hasContext()) {
mergeContext(other.getContext());
}
if (!other.getCoprName().isEmpty()) {
coprName_ = other.coprName_;
onChanged();
}
if (!other.getCoprVersionConstraint().isEmpty()) {
coprVersionConstraint_ = other.coprVersionConstraint_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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.CoprocessorV2.RawCoprocessorRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Kvrpcpb.Context context_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_;
/**
* .kvrpcpb.Context context = 1;
*/
public boolean hasContext() {
return contextBuilder_ != null || context_ != null;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.Context getContext() {
if (contextBuilder_ == null) {
return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_;
} else {
return contextBuilder_.getMessage();
}
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) {
if (contextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
contextBuilder_.setMessage(value);
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder setContext(
org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) {
if (contextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
contextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) {
if (contextBuilder_ == null) {
if (context_ != null) {
context_ =
org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
contextBuilder_.mergeFrom(value);
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
context_ = null;
onChanged();
} else {
context_ = null;
contextBuilder_ = null;
}
return this;
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() {
onChanged();
return getContextFieldBuilder().getBuilder();
}
/**
* .kvrpcpb.Context context = 1;
*/
public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() {
if (contextBuilder_ != null) {
return contextBuilder_.getMessageOrBuilder();
} else {
return context_ == null ?
org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_;
}
}
/**
* .kvrpcpb.Context context = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>(
getContext(),
getParentForChildren(),
isClean());
context_ = null;
}
return contextBuilder_;
}
private java.lang.Object coprName_ = "";
/**
* string copr_name = 2;
*/
public java.lang.String getCoprName() {
java.lang.Object ref = coprName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
coprName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string copr_name = 2;
*/
public com.google.protobuf.ByteString
getCoprNameBytes() {
java.lang.Object ref = coprName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coprName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string copr_name = 2;
*/
public Builder setCoprName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
coprName_ = value;
onChanged();
return this;
}
/**
* string copr_name = 2;
*/
public Builder clearCoprName() {
coprName_ = getDefaultInstance().getCoprName();
onChanged();
return this;
}
/**
* string copr_name = 2;
*/
public Builder setCoprNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
coprName_ = value;
onChanged();
return this;
}
private java.lang.Object coprVersionConstraint_ = "";
/**
* string copr_version_constraint = 3;
*/
public java.lang.String getCoprVersionConstraint() {
java.lang.Object ref = coprVersionConstraint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
coprVersionConstraint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string copr_version_constraint = 3;
*/
public com.google.protobuf.ByteString
getCoprVersionConstraintBytes() {
java.lang.Object ref = coprVersionConstraint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coprVersionConstraint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string copr_version_constraint = 3;
*/
public Builder setCoprVersionConstraint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
coprVersionConstraint_ = value;
onChanged();
return this;
}
/**
* string copr_version_constraint = 3;
*/
public Builder clearCoprVersionConstraint() {
coprVersionConstraint_ = getDefaultInstance().getCoprVersionConstraint();
onChanged();
return this;
}
/**
* string copr_version_constraint = 3;
*/
public Builder setCoprVersionConstraintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
coprVersionConstraint_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 4;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 4;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 4;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
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_v2.RawCoprocessorRequest)
}
// @@protoc_insertion_point(class_scope:coprocessor_v2.RawCoprocessorRequest)
private static final org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest();
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RawCoprocessorRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RawCoprocessorRequest(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.CoprocessorV2.RawCoprocessorRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RawCoprocessorResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:coprocessor_v2.RawCoprocessorResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes data = 1;
*/
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();
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* string other_error = 4;
*/
java.lang.String getOtherError();
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* string other_error = 4;
*/
com.google.protobuf.ByteString
getOtherErrorBytes();
}
/**
* Protobuf type {@code coprocessor_v2.RawCoprocessorResponse}
*/
public static final class RawCoprocessorResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coprocessor_v2.RawCoprocessorResponse)
RawCoprocessorResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RawCoprocessorResponse.newBuilder() to construct.
private RawCoprocessorResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RawCoprocessorResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
otherError_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RawCoprocessorResponse(
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 34: {
java.lang.String s = input.readStringRequireUtf8();
otherError_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.class, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 1;
*/
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 OTHER_ERROR_FIELD_NUMBER = 4;
private volatile java.lang.Object otherError_;
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* 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;
}
}
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* 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;
}
}
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 (!getOtherErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, otherError_);
}
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 (!getOtherErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, otherError_);
}
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.CoprocessorV2.RawCoprocessorResponse)) {
return super.equals(obj);
}
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse other = (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) 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 && getOtherError()
.equals(other.getOtherError());
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();
}
hash = (37 * hash) + OTHER_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getOtherError().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse 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.CoprocessorV2.RawCoprocessorResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse 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.CoprocessorV2.RawCoprocessorResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse 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.CoprocessorV2.RawCoprocessorResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse 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.CoprocessorV2.RawCoprocessorResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse 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.CoprocessorV2.RawCoprocessorResponse 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_v2.RawCoprocessorResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coprocessor_v2.RawCoprocessorResponse)
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.class, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder.class);
}
// Construct using org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.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;
if (regionErrorBuilder_ == null) {
regionError_ = null;
} else {
regionError_ = null;
regionErrorBuilder_ = null;
}
otherError_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tikv.kvproto.CoprocessorV2.internal_static_coprocessor_v2_RawCoprocessorResponse_descriptor;
}
public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse getDefaultInstanceForType() {
return org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance();
}
public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse build() {
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse buildPartial() {
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse result = new org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse(this);
result.data_ = data_;
if (regionErrorBuilder_ == null) {
result.regionError_ = regionError_;
} else {
result.regionError_ = regionErrorBuilder_.build();
}
result.otherError_ = otherError_;
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.CoprocessorV2.RawCoprocessorResponse) {
return mergeFrom((org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse other) {
if (other == org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.hasRegionError()) {
mergeRegionError(other.getRegionError());
}
if (!other.getOtherError().isEmpty()) {
otherError_ = other.otherError_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) 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;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 1;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* bytes data = 1;
*/
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 java.lang.Object otherError_ = "";
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* 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;
}
}
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* 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;
}
}
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* string other_error = 4;
*/
public Builder setOtherError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
otherError_ = value;
onChanged();
return this;
}
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* string other_error = 4;
*/
public Builder clearOtherError() {
otherError_ = getDefaultInstance().getOtherError();
onChanged();
return this;
}
/**
*
* Error message for cases like if no coprocessor with a matching name is found
* or on a version mismatch between plugin_api and the coprocessor.
*
*
* 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;
}
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_v2.RawCoprocessorResponse)
}
// @@protoc_insertion_point(class_scope:coprocessor_v2.RawCoprocessorResponse)
private static final org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse();
}
public static org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RawCoprocessorResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RawCoprocessorResponse(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.CoprocessorV2.RawCoprocessorResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_v2_RawCoprocessorRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_v2_RawCoprocessorRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_coprocessor_v2_RawCoprocessorResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_coprocessor_v2_RawCoprocessorResponse_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\024coprocessor_v2.proto\022\016coprocessor_v2\032\r" +
"errorpb.proto\032\rkvrpcpb.proto\032\024gogoproto/" +
"gogo.proto\032\017rustproto.proto\"|\n\025RawCoproc" +
"essorRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb." +
"Context\022\021\n\tcopr_name\030\002 \001(\t\022\037\n\027copr_versi" +
"on_constraint\030\003 \001(\t\022\014\n\004data\030\004 \001(\014\"a\n\026Raw" +
"CoprocessorResponse\022\014\n\004data\030\001 \001(\014\022$\n\014reg" +
"ion_error\030\002 \001(\0132\016.errorpb.Error\022\023\n\013other" +
"_error\030\004 \001(\tB\"\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(),
}, assigner);
internal_static_coprocessor_v2_RawCoprocessorRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_coprocessor_v2_RawCoprocessorRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_v2_RawCoprocessorRequest_descriptor,
new java.lang.String[] { "Context", "CoprName", "CoprVersionConstraint", "Data", });
internal_static_coprocessor_v2_RawCoprocessorResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_coprocessor_v2_RawCoprocessorResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_coprocessor_v2_RawCoprocessorResponse_descriptor,
new java.lang.String[] { "Data", "RegionError", "OtherError", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.marshalerAll);
registry.add(com.google.protobuf.GoGoProtos.sizerAll);
registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll);
registry.add(rustproto.Rustproto.liteRuntimeAll);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
org.tikv.kvproto.Errorpb.getDescriptor();
org.tikv.kvproto.Kvrpcpb.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
rustproto.Rustproto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy