All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.log.common.AsyncSql Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: async_sql.proto

package com.aliyun.openservices.log.common;

public final class AsyncSql {
    private AsyncSql() {}
    public static void registerAllExtensions(
            com.google.protobuf.ExtensionRegistry registry) {
    }
    public interface AsyncSqlMetaPBOrBuilder
            extends com.google.protobuf.MessageOrBuilder {

        // optional int32 result_rows = 1;
        boolean hasResultRows();
        int getResultRows();

        // optional int64 processed_rows = 2;
        boolean hasProcessedRows();
        long getProcessedRows();

        // optional int64 processed_bytes = 3;
        boolean hasProcessedBytes();
        long getProcessedBytes();

        // optional int64 elapsed_milli = 4;
        boolean hasElapsedMilli();
        long getElapsedMilli();

        // optional double cpu_sec = 5;
        boolean hasCpuSec();
        double getCpuSec();

        // optional int64 cpu_cores = 6;
        boolean hasCpuCores();
        long getCpuCores();

        // optional string progress = 7;
        boolean hasProgress();
        String getProgress();

        // repeated string keys = 8;
        java.util.List getKeysList();
        int getKeysCount();
        String getKeys(int index);
    }
    public static final class AsyncSqlMetaPB extends
            com.google.protobuf.GeneratedMessage
            implements AsyncSqlMetaPBOrBuilder {
        // Use AsyncSqlMetaPB.newBuilder() to construct.
        private AsyncSqlMetaPB(Builder builder) {
            super(builder);
        }
        private AsyncSqlMetaPB(boolean noInit) {}

        private static final AsyncSqlMetaPB defaultInstance;
        public static AsyncSqlMetaPB getDefaultInstance() {
            return defaultInstance;
        }

        public AsyncSqlMetaPB getDefaultInstanceForType() {
            return defaultInstance;
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_descriptor;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_fieldAccessorTable;
        }

        private int bitField0_;
        // optional int32 result_rows = 1;
        public static final int RESULT_ROWS_FIELD_NUMBER = 1;
        private int resultRows_;
        public boolean hasResultRows() {
            return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public int getResultRows() {
            return resultRows_;
        }

        // optional int64 processed_rows = 2;
        public static final int PROCESSED_ROWS_FIELD_NUMBER = 2;
        private long processedRows_;
        public boolean hasProcessedRows() {
            return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        public long getProcessedRows() {
            return processedRows_;
        }

        // optional int64 processed_bytes = 3;
        public static final int PROCESSED_BYTES_FIELD_NUMBER = 3;
        private long processedBytes_;
        public boolean hasProcessedBytes() {
            return ((bitField0_ & 0x00000004) == 0x00000004);
        }
        public long getProcessedBytes() {
            return processedBytes_;
        }

        // optional int64 elapsed_milli = 4;
        public static final int ELAPSED_MILLI_FIELD_NUMBER = 4;
        private long elapsedMilli_;
        public boolean hasElapsedMilli() {
            return ((bitField0_ & 0x00000008) == 0x00000008);
        }
        public long getElapsedMilli() {
            return elapsedMilli_;
        }

        // optional double cpu_sec = 5;
        public static final int CPU_SEC_FIELD_NUMBER = 5;
        private double cpuSec_;
        public boolean hasCpuSec() {
            return ((bitField0_ & 0x00000010) == 0x00000010);
        }
        public double getCpuSec() {
            return cpuSec_;
        }

        // optional int64 cpu_cores = 6;
        public static final int CPU_CORES_FIELD_NUMBER = 6;
        private long cpuCores_;
        public boolean hasCpuCores() {
            return ((bitField0_ & 0x00000020) == 0x00000020);
        }
        public long getCpuCores() {
            return cpuCores_;
        }

        // optional string progress = 7;
        public static final int PROGRESS_FIELD_NUMBER = 7;
        private java.lang.Object progress_;
        public boolean hasProgress() {
            return ((bitField0_ & 0x00000040) == 0x00000040);
        }
        public String getProgress() {
            java.lang.Object ref = progress_;
            if (ref instanceof String) {
                return (String) ref;
            } else {
                com.google.protobuf.ByteString bs =
                        (com.google.protobuf.ByteString) ref;
                String s = bs.toStringUtf8();
                if (com.google.protobuf.Internal.isValidUtf8(bs)) {
                    progress_ = s;
                }
                return s;
            }
        }
        private com.google.protobuf.ByteString getProgressBytes() {
            java.lang.Object ref = progress_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8((String) ref);
                progress_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        // repeated string keys = 8;
        public static final int KEYS_FIELD_NUMBER = 8;
        private com.google.protobuf.LazyStringList keys_;
        public java.util.List
        getKeysList() {
            return keys_;
        }
        public int getKeysCount() {
            return keys_.size();
        }
        public String getKeys(int index) {
            return keys_.get(index);
        }

        private void initFields() {
            resultRows_ = 0;
            processedRows_ = 0L;
            processedBytes_ = 0L;
            elapsedMilli_ = 0L;
            cpuSec_ = 0D;
            cpuCores_ = 0L;
            progress_ = "";
            keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        }
        private byte memoizedIsInitialized = -1;
        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized != -1) return isInitialized == 1;

            memoizedIsInitialized = 1;
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                output.writeInt32(1, resultRows_);
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                output.writeInt64(2, processedRows_);
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                output.writeInt64(3, processedBytes_);
            }
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
                output.writeInt64(4, elapsedMilli_);
            }
            if (((bitField0_ & 0x00000010) == 0x00000010)) {
                output.writeDouble(5, cpuSec_);
            }
            if (((bitField0_ & 0x00000020) == 0x00000020)) {
                output.writeInt64(6, cpuCores_);
            }
            if (((bitField0_ & 0x00000040) == 0x00000040)) {
                output.writeBytes(7, getProgressBytes());
            }
            for (int i = 0; i < keys_.size(); i++) {
                output.writeBytes(8, keys_.getByteString(i));
            }
            getUnknownFields().writeTo(output);
        }

        private int memoizedSerializedSize = -1;
        public int getSerializedSize() {
            int size = memoizedSerializedSize;
            if (size != -1) return size;

            size = 0;
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(1, resultRows_);
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(2, processedRows_);
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(3, processedBytes_);
            }
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(4, elapsedMilli_);
            }
            if (((bitField0_ & 0x00000010) == 0x00000010)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeDoubleSize(5, cpuSec_);
            }
            if (((bitField0_ & 0x00000020) == 0x00000020)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(6, cpuCores_);
            }
            if (((bitField0_ & 0x00000040) == 0x00000040)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(7, getProgressBytes());
            }
            {
                int dataSize = 0;
                for (int i = 0; i < keys_.size(); i++) {
                    dataSize += com.google.protobuf.CodedOutputStream
                            .computeBytesSizeNoTag(keys_.getByteString(i));
                }
                size += dataSize;
                size += 1 * getKeysList().size();
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

        private static final long serialVersionUID = 0L;
        @java.lang.Override
        protected java.lang.Object writeReplace()
                throws java.io.ObjectStreamException {
            return super.writeReplace();
        }

        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(
                byte[] data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseDelimitedFrom(java.io.InputStream input)
                throws java.io.IOException {
            Builder builder = newBuilder();
            if (builder.mergeDelimitedFrom(input)) {
                return builder.buildParsed();
            } else {
                return null;
            }
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            Builder builder = newBuilder();
            if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
                return builder.buildParsed();
            } else {
                return null;
            }
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }

        public static Builder newBuilder() { return Builder.create(); }
        public Builder newBuilderForType() { return newBuilder(); }
        public static Builder newBuilder(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB prototype) {
            return newBuilder().mergeFrom(prototype);
        }
        public Builder toBuilder() { return newBuilder(this); }

        @java.lang.Override
        protected Builder newBuilderForType(
                com.google.protobuf.GeneratedMessage.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }
        public static final class Builder extends
                com.google.protobuf.GeneratedMessage.Builder
                implements com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
                return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_descriptor;
            }

            protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
                return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_fieldAccessorTable;
            }

            // Construct using com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }
            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
                }
            }
            private static Builder create() {
                return new Builder();
            }

            public Builder clear() {
                super.clear();
                resultRows_ = 0;
                bitField0_ = (bitField0_ & ~0x00000001);
                processedRows_ = 0L;
                bitField0_ = (bitField0_ & ~0x00000002);
                processedBytes_ = 0L;
                bitField0_ = (bitField0_ & ~0x00000004);
                elapsedMilli_ = 0L;
                bitField0_ = (bitField0_ & ~0x00000008);
                cpuSec_ = 0D;
                bitField0_ = (bitField0_ & ~0x00000010);
                cpuCores_ = 0L;
                bitField0_ = (bitField0_ & ~0x00000020);
                progress_ = "";
                bitField0_ = (bitField0_ & ~0x00000040);
                keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000080);
                return this;
            }

            public Builder clone() {
                return create().mergeFrom(buildPartial());
            }

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDescriptor();
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB getDefaultInstanceForType() {
                return com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance();
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB build() {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            private com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB buildParsed()
                    throws com.google.protobuf.InvalidProtocolBufferException {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(
                            result).asInvalidProtocolBufferException();
                }
                return result;
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB buildPartial() {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB result = new com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB(this);
                int from_bitField0_ = bitField0_;
                int to_bitField0_ = 0;
                if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
                    to_bitField0_ |= 0x00000001;
                }
                result.resultRows_ = resultRows_;
                if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
                    to_bitField0_ |= 0x00000002;
                }
                result.processedRows_ = processedRows_;
                if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
                    to_bitField0_ |= 0x00000004;
                }
                result.processedBytes_ = processedBytes_;
                if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
                    to_bitField0_ |= 0x00000008;
                }
                result.elapsedMilli_ = elapsedMilli_;
                if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
                    to_bitField0_ |= 0x00000010;
                }
                result.cpuSec_ = cpuSec_;
                if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
                    to_bitField0_ |= 0x00000020;
                }
                result.cpuCores_ = cpuCores_;
                if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
                    to_bitField0_ |= 0x00000040;
                }
                result.progress_ = progress_;
                if (((bitField0_ & 0x00000080) == 0x00000080)) {
                    keys_ = new com.google.protobuf.UnmodifiableLazyStringList(
                            keys_);
                    bitField0_ = (bitField0_ & ~0x00000080);
                }
                result.keys_ = keys_;
                result.bitField0_ = to_bitField0_;
                onBuilt();
                return result;
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB) {
                    return mergeFrom((com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB)other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB other) {
                if (other == com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance()) return this;
                if (other.hasResultRows()) {
                    setResultRows(other.getResultRows());
                }
                if (other.hasProcessedRows()) {
                    setProcessedRows(other.getProcessedRows());
                }
                if (other.hasProcessedBytes()) {
                    setProcessedBytes(other.getProcessedBytes());
                }
                if (other.hasElapsedMilli()) {
                    setElapsedMilli(other.getElapsedMilli());
                }
                if (other.hasCpuSec()) {
                    setCpuSec(other.getCpuSec());
                }
                if (other.hasCpuCores()) {
                    setCpuCores(other.getCpuCores());
                }
                if (other.hasProgress()) {
                    setProgress(other.getProgress());
                }
                if (!other.keys_.isEmpty()) {
                    if (keys_.isEmpty()) {
                        keys_ = other.keys_;
                        bitField0_ = (bitField0_ & ~0x00000080);
                    } else {
                        ensureKeysIsMutable();
                        keys_.addAll(other.keys_);
                    }
                    onChanged();
                }
                this.mergeUnknownFields(other.getUnknownFields());
                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 {
                com.google.protobuf.UnknownFieldSet.Builder unknownFields =
                        com.google.protobuf.UnknownFieldSet.newBuilder(
                                this.getUnknownFields());
                while (true) {
                    int tag = input.readTag();
                    switch (tag) {
                        case 0:
                            this.setUnknownFields(unknownFields.build());
                            onChanged();
                            return this;
                        default: {
                            if (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                this.setUnknownFields(unknownFields.build());
                                onChanged();
                                return this;
                            }
                            break;
                        }
                        case 8: {
                            bitField0_ |= 0x00000001;
                            resultRows_ = input.readInt32();
                            break;
                        }
                        case 16: {
                            bitField0_ |= 0x00000002;
                            processedRows_ = input.readInt64();
                            break;
                        }
                        case 24: {
                            bitField0_ |= 0x00000004;
                            processedBytes_ = input.readInt64();
                            break;
                        }
                        case 32: {
                            bitField0_ |= 0x00000008;
                            elapsedMilli_ = input.readInt64();
                            break;
                        }
                        case 41: {
                            bitField0_ |= 0x00000010;
                            cpuSec_ = input.readDouble();
                            break;
                        }
                        case 48: {
                            bitField0_ |= 0x00000020;
                            cpuCores_ = input.readInt64();
                            break;
                        }
                        case 58: {
                            bitField0_ |= 0x00000040;
                            progress_ = input.readBytes();
                            break;
                        }
                        case 66: {
                            ensureKeysIsMutable();
                            keys_.add(input.readBytes());
                            break;
                        }
                    }
                }
            }

            private int bitField0_;

            // optional int32 result_rows = 1;
            private int resultRows_ ;
            public boolean hasResultRows() {
                return ((bitField0_ & 0x00000001) == 0x00000001);
            }
            public int getResultRows() {
                return resultRows_;
            }
            public Builder setResultRows(int value) {
                bitField0_ |= 0x00000001;
                resultRows_ = value;
                onChanged();
                return this;
            }
            public Builder clearResultRows() {
                bitField0_ = (bitField0_ & ~0x00000001);
                resultRows_ = 0;
                onChanged();
                return this;
            }

            // optional int64 processed_rows = 2;
            private long processedRows_ ;
            public boolean hasProcessedRows() {
                return ((bitField0_ & 0x00000002) == 0x00000002);
            }
            public long getProcessedRows() {
                return processedRows_;
            }
            public Builder setProcessedRows(long value) {
                bitField0_ |= 0x00000002;
                processedRows_ = value;
                onChanged();
                return this;
            }
            public Builder clearProcessedRows() {
                bitField0_ = (bitField0_ & ~0x00000002);
                processedRows_ = 0L;
                onChanged();
                return this;
            }

            // optional int64 processed_bytes = 3;
            private long processedBytes_ ;
            public boolean hasProcessedBytes() {
                return ((bitField0_ & 0x00000004) == 0x00000004);
            }
            public long getProcessedBytes() {
                return processedBytes_;
            }
            public Builder setProcessedBytes(long value) {
                bitField0_ |= 0x00000004;
                processedBytes_ = value;
                onChanged();
                return this;
            }
            public Builder clearProcessedBytes() {
                bitField0_ = (bitField0_ & ~0x00000004);
                processedBytes_ = 0L;
                onChanged();
                return this;
            }

            // optional int64 elapsed_milli = 4;
            private long elapsedMilli_ ;
            public boolean hasElapsedMilli() {
                return ((bitField0_ & 0x00000008) == 0x00000008);
            }
            public long getElapsedMilli() {
                return elapsedMilli_;
            }
            public Builder setElapsedMilli(long value) {
                bitField0_ |= 0x00000008;
                elapsedMilli_ = value;
                onChanged();
                return this;
            }
            public Builder clearElapsedMilli() {
                bitField0_ = (bitField0_ & ~0x00000008);
                elapsedMilli_ = 0L;
                onChanged();
                return this;
            }

            // optional double cpu_sec = 5;
            private double cpuSec_ ;
            public boolean hasCpuSec() {
                return ((bitField0_ & 0x00000010) == 0x00000010);
            }
            public double getCpuSec() {
                return cpuSec_;
            }
            public Builder setCpuSec(double value) {
                bitField0_ |= 0x00000010;
                cpuSec_ = value;
                onChanged();
                return this;
            }
            public Builder clearCpuSec() {
                bitField0_ = (bitField0_ & ~0x00000010);
                cpuSec_ = 0D;
                onChanged();
                return this;
            }

            // optional int64 cpu_cores = 6;
            private long cpuCores_ ;
            public boolean hasCpuCores() {
                return ((bitField0_ & 0x00000020) == 0x00000020);
            }
            public long getCpuCores() {
                return cpuCores_;
            }
            public Builder setCpuCores(long value) {
                bitField0_ |= 0x00000020;
                cpuCores_ = value;
                onChanged();
                return this;
            }
            public Builder clearCpuCores() {
                bitField0_ = (bitField0_ & ~0x00000020);
                cpuCores_ = 0L;
                onChanged();
                return this;
            }

            // optional string progress = 7;
            private java.lang.Object progress_ = "";
            public boolean hasProgress() {
                return ((bitField0_ & 0x00000040) == 0x00000040);
            }
            public String getProgress() {
                java.lang.Object ref = progress_;
                if (!(ref instanceof String)) {
                    String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
                    progress_ = s;
                    return s;
                } else {
                    return (String) ref;
                }
            }
            public Builder setProgress(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000040;
                progress_ = value;
                onChanged();
                return this;
            }
            public Builder clearProgress() {
                bitField0_ = (bitField0_ & ~0x00000040);
                progress_ = getDefaultInstance().getProgress();
                onChanged();
                return this;
            }
            void setProgress(com.google.protobuf.ByteString value) {
                bitField0_ |= 0x00000040;
                progress_ = value;
                onChanged();
            }

            // repeated string keys = 8;
            private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
            private void ensureKeysIsMutable() {
                if (!((bitField0_ & 0x00000080) == 0x00000080)) {
                    keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
                    bitField0_ |= 0x00000080;
                }
            }
            public java.util.List
            getKeysList() {
                return java.util.Collections.unmodifiableList(keys_);
            }
            public int getKeysCount() {
                return keys_.size();
            }
            public String getKeys(int index) {
                return keys_.get(index);
            }
            public Builder setKeys(
                    int index, String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureKeysIsMutable();
                keys_.set(index, value);
                onChanged();
                return this;
            }
            public Builder addKeys(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureKeysIsMutable();
                keys_.add(value);
                onChanged();
                return this;
            }
            public Builder addAllKeys(
                    java.lang.Iterable values) {
                ensureKeysIsMutable();
                super.addAll(values, keys_);
                onChanged();
                return this;
            }
            public Builder clearKeys() {
                keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000080);
                onChanged();
                return this;
            }
            void addKeys(com.google.protobuf.ByteString value) {
                ensureKeysIsMutable();
                keys_.add(value);
                onChanged();
            }

            // @@protoc_insertion_point(builder_scope:com.aliyun.openservices.log.common.AsyncSqlMetaPB)
        }

        static {
            defaultInstance = new AsyncSqlMetaPB(true);
            defaultInstance.initFields();
        }

        // @@protoc_insertion_point(class_scope:com.aliyun.openservices.log.common.AsyncSqlMetaPB)
    }

    public interface AsyncSqlRowPBOrBuilder
            extends com.google.protobuf.MessageOrBuilder {

        // repeated string columns = 1;
        java.util.List getColumnsList();
        int getColumnsCount();
        String getColumns(int index);
    }
    public static final class AsyncSqlRowPB extends
            com.google.protobuf.GeneratedMessage
            implements AsyncSqlRowPBOrBuilder {
        // Use AsyncSqlRowPB.newBuilder() to construct.
        private AsyncSqlRowPB(Builder builder) {
            super(builder);
        }
        private AsyncSqlRowPB(boolean noInit) {}

        private static final AsyncSqlRowPB defaultInstance;
        public static AsyncSqlRowPB getDefaultInstance() {
            return defaultInstance;
        }

        public AsyncSqlRowPB getDefaultInstanceForType() {
            return defaultInstance;
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_descriptor;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_fieldAccessorTable;
        }

        // repeated string columns = 1;
        public static final int COLUMNS_FIELD_NUMBER = 1;
        private com.google.protobuf.LazyStringList columns_;
        public java.util.List
        getColumnsList() {
            return columns_;
        }
        public int getColumnsCount() {
            return columns_.size();
        }
        public String getColumns(int index) {
            return columns_.get(index);
        }

        private void initFields() {
            columns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        }
        private byte memoizedIsInitialized = -1;
        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized != -1) return isInitialized == 1;

            memoizedIsInitialized = 1;
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            for (int i = 0; i < columns_.size(); i++) {
                output.writeBytes(1, columns_.getByteString(i));
            }
            getUnknownFields().writeTo(output);
        }

        private int memoizedSerializedSize = -1;
        public int getSerializedSize() {
            int size = memoizedSerializedSize;
            if (size != -1) return size;

            size = 0;
            {
                int dataSize = 0;
                for (int i = 0; i < columns_.size(); i++) {
                    dataSize += com.google.protobuf.CodedOutputStream
                            .computeBytesSizeNoTag(columns_.getByteString(i));
                }
                size += dataSize;
                size += 1 * getColumnsList().size();
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

        private static final long serialVersionUID = 0L;
        @java.lang.Override
        protected java.lang.Object writeReplace()
                throws java.io.ObjectStreamException {
            return super.writeReplace();
        }

        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(
                byte[] data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseDelimitedFrom(java.io.InputStream input)
                throws java.io.IOException {
            Builder builder = newBuilder();
            if (builder.mergeDelimitedFrom(input)) {
                return builder.buildParsed();
            } else {
                return null;
            }
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            Builder builder = newBuilder();
            if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
                return builder.buildParsed();
            } else {
                return null;
            }
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }

        public static Builder newBuilder() { return Builder.create(); }
        public Builder newBuilderForType() { return newBuilder(); }
        public static Builder newBuilder(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB prototype) {
            return newBuilder().mergeFrom(prototype);
        }
        public Builder toBuilder() { return newBuilder(this); }

        @java.lang.Override
        protected Builder newBuilderForType(
                com.google.protobuf.GeneratedMessage.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }
        public static final class Builder extends
                com.google.protobuf.GeneratedMessage.Builder
                implements com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
                return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_descriptor;
            }

            protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
                return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_fieldAccessorTable;
            }

            // Construct using com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }
            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
                }
            }
            private static Builder create() {
                return new Builder();
            }

            public Builder clear() {
                super.clear();
                columns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000001);
                return this;
            }

            public Builder clone() {
                return create().mergeFrom(buildPartial());
            }

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.getDescriptor();
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB getDefaultInstanceForType() {
                return com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.getDefaultInstance();
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB build() {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            private com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB buildParsed()
                    throws com.google.protobuf.InvalidProtocolBufferException {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(
                            result).asInvalidProtocolBufferException();
                }
                return result;
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB buildPartial() {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB result = new com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB(this);
                int from_bitField0_ = bitField0_;
                if (((bitField0_ & 0x00000001) == 0x00000001)) {
                    columns_ = new com.google.protobuf.UnmodifiableLazyStringList(
                            columns_);
                    bitField0_ = (bitField0_ & ~0x00000001);
                }
                result.columns_ = columns_;
                onBuilt();
                return result;
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB) {
                    return mergeFrom((com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB)other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB other) {
                if (other == com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.getDefaultInstance()) return this;
                if (!other.columns_.isEmpty()) {
                    if (columns_.isEmpty()) {
                        columns_ = other.columns_;
                        bitField0_ = (bitField0_ & ~0x00000001);
                    } else {
                        ensureColumnsIsMutable();
                        columns_.addAll(other.columns_);
                    }
                    onChanged();
                }
                this.mergeUnknownFields(other.getUnknownFields());
                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 {
                com.google.protobuf.UnknownFieldSet.Builder unknownFields =
                        com.google.protobuf.UnknownFieldSet.newBuilder(
                                this.getUnknownFields());
                while (true) {
                    int tag = input.readTag();
                    switch (tag) {
                        case 0:
                            this.setUnknownFields(unknownFields.build());
                            onChanged();
                            return this;
                        default: {
                            if (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                this.setUnknownFields(unknownFields.build());
                                onChanged();
                                return this;
                            }
                            break;
                        }
                        case 10: {
                            ensureColumnsIsMutable();
                            columns_.add(input.readBytes());
                            break;
                        }
                    }
                }
            }

            private int bitField0_;

            // repeated string columns = 1;
            private com.google.protobuf.LazyStringList columns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
            private void ensureColumnsIsMutable() {
                if (!((bitField0_ & 0x00000001) == 0x00000001)) {
                    columns_ = new com.google.protobuf.LazyStringArrayList(columns_);
                    bitField0_ |= 0x00000001;
                }
            }
            public java.util.List
            getColumnsList() {
                return java.util.Collections.unmodifiableList(columns_);
            }
            public int getColumnsCount() {
                return columns_.size();
            }
            public String getColumns(int index) {
                return columns_.get(index);
            }
            public Builder setColumns(
                    int index, String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureColumnsIsMutable();
                columns_.set(index, value);
                onChanged();
                return this;
            }
            public Builder addColumns(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureColumnsIsMutable();
                columns_.add(value);
                onChanged();
                return this;
            }
            public Builder addAllColumns(
                    java.lang.Iterable values) {
                ensureColumnsIsMutable();
                super.addAll(values, columns_);
                onChanged();
                return this;
            }
            public Builder clearColumns() {
                columns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000001);
                onChanged();
                return this;
            }
            void addColumns(com.google.protobuf.ByteString value) {
                ensureColumnsIsMutable();
                columns_.add(value);
                onChanged();
            }

            // @@protoc_insertion_point(builder_scope:com.aliyun.openservices.log.common.AsyncSqlRowPB)
        }

        static {
            defaultInstance = new AsyncSqlRowPB(true);
            defaultInstance.initFields();
        }

        // @@protoc_insertion_point(class_scope:com.aliyun.openservices.log.common.AsyncSqlRowPB)
    }

    public interface AsyncSqlResponsePBOrBuilder
            extends com.google.protobuf.MessageOrBuilder {

        // required string id = 1;
        boolean hasId();
        String getId();

        // required string state = 2;
        boolean hasState();
        String getState();

        // optional .com.aliyun.openservices.log.common.AsyncSqlMetaPB meta = 3;
        boolean hasMeta();
        com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB getMeta();
        com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder getMetaOrBuilder();

        // repeated .com.aliyun.openservices.log.common.AsyncSqlRowPB rows = 4;
        java.util.List
        getRowsList();
        com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB getRows(int index);
        int getRowsCount();
        java.util.List
        getRowsOrBuilderList();
        com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder getRowsOrBuilder(
                int index);

        // optional string error_code = 5;
        boolean hasErrorCode();
        String getErrorCode();

        // optional string error_message = 6;
        boolean hasErrorMessage();
        String getErrorMessage();
    }
    public static final class AsyncSqlResponsePB extends
            com.google.protobuf.GeneratedMessage
            implements AsyncSqlResponsePBOrBuilder {
        // Use AsyncSqlResponsePB.newBuilder() to construct.
        private AsyncSqlResponsePB(Builder builder) {
            super(builder);
        }
        private AsyncSqlResponsePB(boolean noInit) {}

        private static final AsyncSqlResponsePB defaultInstance;
        public static AsyncSqlResponsePB getDefaultInstance() {
            return defaultInstance;
        }

        public AsyncSqlResponsePB getDefaultInstanceForType() {
            return defaultInstance;
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_descriptor;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_fieldAccessorTable;
        }

        private int bitField0_;
        // required string id = 1;
        public static final int ID_FIELD_NUMBER = 1;
        private java.lang.Object id_;
        public boolean hasId() {
            return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public String getId() {
            java.lang.Object ref = id_;
            if (ref instanceof String) {
                return (String) ref;
            } else {
                com.google.protobuf.ByteString bs =
                        (com.google.protobuf.ByteString) ref;
                String s = bs.toStringUtf8();
                if (com.google.protobuf.Internal.isValidUtf8(bs)) {
                    id_ = s;
                }
                return s;
            }
        }
        private com.google.protobuf.ByteString getIdBytes() {
            java.lang.Object ref = id_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8((String) ref);
                id_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        // required string state = 2;
        public static final int STATE_FIELD_NUMBER = 2;
        private java.lang.Object state_;
        public boolean hasState() {
            return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        public String getState() {
            java.lang.Object ref = state_;
            if (ref instanceof String) {
                return (String) ref;
            } else {
                com.google.protobuf.ByteString bs =
                        (com.google.protobuf.ByteString) ref;
                String s = bs.toStringUtf8();
                if (com.google.protobuf.Internal.isValidUtf8(bs)) {
                    state_ = s;
                }
                return s;
            }
        }
        private com.google.protobuf.ByteString getStateBytes() {
            java.lang.Object ref = state_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8((String) ref);
                state_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        // optional .com.aliyun.openservices.log.common.AsyncSqlMetaPB meta = 3;
        public static final int META_FIELD_NUMBER = 3;
        private com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB meta_;
        public boolean hasMeta() {
            return ((bitField0_ & 0x00000004) == 0x00000004);
        }
        public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB getMeta() {
            return meta_;
        }
        public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder getMetaOrBuilder() {
            return meta_;
        }

        // repeated .com.aliyun.openservices.log.common.AsyncSqlRowPB rows = 4;
        public static final int ROWS_FIELD_NUMBER = 4;
        private java.util.List rows_;
        public java.util.List getRowsList() {
            return rows_;
        }
        public java.util.List
        getRowsOrBuilderList() {
            return rows_;
        }
        public int getRowsCount() {
            return rows_.size();
        }
        public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB getRows(int index) {
            return rows_.get(index);
        }
        public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder getRowsOrBuilder(
                int index) {
            return rows_.get(index);
        }

        // optional string error_code = 5;
        public static final int ERROR_CODE_FIELD_NUMBER = 5;
        private java.lang.Object errorCode_;
        public boolean hasErrorCode() {
            return ((bitField0_ & 0x00000008) == 0x00000008);
        }
        public String getErrorCode() {
            java.lang.Object ref = errorCode_;
            if (ref instanceof String) {
                return (String) ref;
            } else {
                com.google.protobuf.ByteString bs =
                        (com.google.protobuf.ByteString) ref;
                String s = bs.toStringUtf8();
                if (com.google.protobuf.Internal.isValidUtf8(bs)) {
                    errorCode_ = s;
                }
                return s;
            }
        }
        private com.google.protobuf.ByteString getErrorCodeBytes() {
            java.lang.Object ref = errorCode_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8((String) ref);
                errorCode_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        // optional string error_message = 6;
        public static final int ERROR_MESSAGE_FIELD_NUMBER = 6;
        private java.lang.Object errorMessage_;
        public boolean hasErrorMessage() {
            return ((bitField0_ & 0x00000010) == 0x00000010);
        }
        public String getErrorMessage() {
            java.lang.Object ref = errorMessage_;
            if (ref instanceof String) {
                return (String) ref;
            } else {
                com.google.protobuf.ByteString bs =
                        (com.google.protobuf.ByteString) ref;
                String s = bs.toStringUtf8();
                if (com.google.protobuf.Internal.isValidUtf8(bs)) {
                    errorMessage_ = s;
                }
                return s;
            }
        }
        private com.google.protobuf.ByteString getErrorMessageBytes() {
            java.lang.Object ref = errorMessage_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8((String) ref);
                errorMessage_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        private void initFields() {
            id_ = "";
            state_ = "";
            meta_ = com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance();
            rows_ = java.util.Collections.emptyList();
            errorCode_ = "";
            errorMessage_ = "";
        }
        private byte memoizedIsInitialized = -1;
        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized != -1) return isInitialized == 1;

            if (!hasId()) {
                memoizedIsInitialized = 0;
                return false;
            }
            if (!hasState()) {
                memoizedIsInitialized = 0;
                return false;
            }
            memoizedIsInitialized = 1;
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                output.writeBytes(1, getIdBytes());
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                output.writeBytes(2, getStateBytes());
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                output.writeMessage(3, meta_);
            }
            for (int i = 0; i < rows_.size(); i++) {
                output.writeMessage(4, rows_.get(i));
            }
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
                output.writeBytes(5, getErrorCodeBytes());
            }
            if (((bitField0_ & 0x00000010) == 0x00000010)) {
                output.writeBytes(6, getErrorMessageBytes());
            }
            getUnknownFields().writeTo(output);
        }

        private int memoizedSerializedSize = -1;
        public int getSerializedSize() {
            int size = memoizedSerializedSize;
            if (size != -1) return size;

            size = 0;
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(1, getIdBytes());
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(2, getStateBytes());
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, meta_);
            }
            for (int i = 0; i < rows_.size(); i++) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(4, rows_.get(i));
            }
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(5, getErrorCodeBytes());
            }
            if (((bitField0_ & 0x00000010) == 0x00000010)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(6, getErrorMessageBytes());
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

        private static final long serialVersionUID = 0L;
        @java.lang.Override
        protected java.lang.Object writeReplace()
                throws java.io.ObjectStreamException {
            return super.writeReplace();
        }

        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(
                byte[] data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseDelimitedFrom(java.io.InputStream input)
                throws java.io.IOException {
            Builder builder = newBuilder();
            if (builder.mergeDelimitedFrom(input)) {
                return builder.buildParsed();
            } else {
                return null;
            }
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseDelimitedFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            Builder builder = newBuilder();
            if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
                return builder.buildParsed();
            } else {
                return null;
            }
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }
        public static com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB parseFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }

        public static Builder newBuilder() { return Builder.create(); }
        public Builder newBuilderForType() { return newBuilder(); }
        public static Builder newBuilder(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB prototype) {
            return newBuilder().mergeFrom(prototype);
        }
        public Builder toBuilder() { return newBuilder(this); }

        @java.lang.Override
        protected Builder newBuilderForType(
                com.google.protobuf.GeneratedMessage.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }
        public static final class Builder extends
                com.google.protobuf.GeneratedMessage.Builder
                implements com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePBOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
                return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_descriptor;
            }

            protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
                return com.aliyun.openservices.log.common.AsyncSql.internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_fieldAccessorTable;
            }

            // Construct using com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }
            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
                    getMetaFieldBuilder();
                    getRowsFieldBuilder();
                }
            }
            private static Builder create() {
                return new Builder();
            }

            public Builder clear() {
                super.clear();
                id_ = "";
                bitField0_ = (bitField0_ & ~0x00000001);
                state_ = "";
                bitField0_ = (bitField0_ & ~0x00000002);
                if (metaBuilder_ == null) {
                    meta_ = com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance();
                } else {
                    metaBuilder_.clear();
                }
                bitField0_ = (bitField0_ & ~0x00000004);
                if (rowsBuilder_ == null) {
                    rows_ = java.util.Collections.emptyList();
                    bitField0_ = (bitField0_ & ~0x00000008);
                } else {
                    rowsBuilder_.clear();
                }
                errorCode_ = "";
                bitField0_ = (bitField0_ & ~0x00000010);
                errorMessage_ = "";
                bitField0_ = (bitField0_ & ~0x00000020);
                return this;
            }

            public Builder clone() {
                return create().mergeFrom(buildPartial());
            }

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB.getDescriptor();
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB getDefaultInstanceForType() {
                return com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB.getDefaultInstance();
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB build() {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            private com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB buildParsed()
                    throws com.google.protobuf.InvalidProtocolBufferException {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(
                            result).asInvalidProtocolBufferException();
                }
                return result;
            }

            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB buildPartial() {
                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB result = new com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB(this);
                int from_bitField0_ = bitField0_;
                int to_bitField0_ = 0;
                if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
                    to_bitField0_ |= 0x00000001;
                }
                result.id_ = id_;
                if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
                    to_bitField0_ |= 0x00000002;
                }
                result.state_ = state_;
                if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
                    to_bitField0_ |= 0x00000004;
                }
                if (metaBuilder_ == null) {
                    result.meta_ = meta_;
                } else {
                    result.meta_ = metaBuilder_.build();
                }
                if (rowsBuilder_ == null) {
                    if (((bitField0_ & 0x00000008) == 0x00000008)) {
                        rows_ = java.util.Collections.unmodifiableList(rows_);
                        bitField0_ = (bitField0_ & ~0x00000008);
                    }
                    result.rows_ = rows_;
                } else {
                    result.rows_ = rowsBuilder_.build();
                }
                if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
                    to_bitField0_ |= 0x00000008;
                }
                result.errorCode_ = errorCode_;
                if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
                    to_bitField0_ |= 0x00000010;
                }
                result.errorMessage_ = errorMessage_;
                result.bitField0_ = to_bitField0_;
                onBuilt();
                return result;
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB) {
                    return mergeFrom((com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB)other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB other) {
                if (other == com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB.getDefaultInstance()) return this;
                if (other.hasId()) {
                    setId(other.getId());
                }
                if (other.hasState()) {
                    setState(other.getState());
                }
                if (other.hasMeta()) {
                    mergeMeta(other.getMeta());
                }
                if (rowsBuilder_ == null) {
                    if (!other.rows_.isEmpty()) {
                        if (rows_.isEmpty()) {
                            rows_ = other.rows_;
                            bitField0_ = (bitField0_ & ~0x00000008);
                        } else {
                            ensureRowsIsMutable();
                            rows_.addAll(other.rows_);
                        }
                        onChanged();
                    }
                } else {
                    if (!other.rows_.isEmpty()) {
                        if (rowsBuilder_.isEmpty()) {
                            rowsBuilder_.dispose();
                            rowsBuilder_ = null;
                            rows_ = other.rows_;
                            bitField0_ = (bitField0_ & ~0x00000008);
                            rowsBuilder_ =
                                    com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                                            getRowsFieldBuilder() : null;
                        } else {
                            rowsBuilder_.addAllMessages(other.rows_);
                        }
                    }
                }
                if (other.hasErrorCode()) {
                    setErrorCode(other.getErrorCode());
                }
                if (other.hasErrorMessage()) {
                    setErrorMessage(other.getErrorMessage());
                }
                this.mergeUnknownFields(other.getUnknownFields());
                return this;
            }

            public final boolean isInitialized() {
                if (!hasId()) {

                    return false;
                }
                if (!hasState()) {

                    return false;
                }
                return true;
            }

            public Builder mergeFrom(
                    com.google.protobuf.CodedInputStream input,
                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws java.io.IOException {
                com.google.protobuf.UnknownFieldSet.Builder unknownFields =
                        com.google.protobuf.UnknownFieldSet.newBuilder(
                                this.getUnknownFields());
                while (true) {
                    int tag = input.readTag();
                    switch (tag) {
                        case 0:
                            this.setUnknownFields(unknownFields.build());
                            onChanged();
                            return this;
                        default: {
                            if (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                this.setUnknownFields(unknownFields.build());
                                onChanged();
                                return this;
                            }
                            break;
                        }
                        case 10: {
                            bitField0_ |= 0x00000001;
                            id_ = input.readBytes();
                            break;
                        }
                        case 18: {
                            bitField0_ |= 0x00000002;
                            state_ = input.readBytes();
                            break;
                        }
                        case 26: {
                            com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder subBuilder = com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.newBuilder();
                            if (hasMeta()) {
                                subBuilder.mergeFrom(getMeta());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setMeta(subBuilder.buildPartial());
                            break;
                        }
                        case 34: {
                            com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder subBuilder = com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.newBuilder();
                            input.readMessage(subBuilder, extensionRegistry);
                            addRows(subBuilder.buildPartial());
                            break;
                        }
                        case 42: {
                            bitField0_ |= 0x00000010;
                            errorCode_ = input.readBytes();
                            break;
                        }
                        case 50: {
                            bitField0_ |= 0x00000020;
                            errorMessage_ = input.readBytes();
                            break;
                        }
                    }
                }
            }

            private int bitField0_;

            // required string id = 1;
            private java.lang.Object id_ = "";
            public boolean hasId() {
                return ((bitField0_ & 0x00000001) == 0x00000001);
            }
            public String getId() {
                java.lang.Object ref = id_;
                if (!(ref instanceof String)) {
                    String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
                    id_ = s;
                    return s;
                } else {
                    return (String) ref;
                }
            }
            public Builder setId(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000001;
                id_ = value;
                onChanged();
                return this;
            }
            public Builder clearId() {
                bitField0_ = (bitField0_ & ~0x00000001);
                id_ = getDefaultInstance().getId();
                onChanged();
                return this;
            }
            void setId(com.google.protobuf.ByteString value) {
                bitField0_ |= 0x00000001;
                id_ = value;
                onChanged();
            }

            // required string state = 2;
            private java.lang.Object state_ = "";
            public boolean hasState() {
                return ((bitField0_ & 0x00000002) == 0x00000002);
            }
            public String getState() {
                java.lang.Object ref = state_;
                if (!(ref instanceof String)) {
                    String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
                    state_ = s;
                    return s;
                } else {
                    return (String) ref;
                }
            }
            public Builder setState(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000002;
                state_ = value;
                onChanged();
                return this;
            }
            public Builder clearState() {
                bitField0_ = (bitField0_ & ~0x00000002);
                state_ = getDefaultInstance().getState();
                onChanged();
                return this;
            }
            void setState(com.google.protobuf.ByteString value) {
                bitField0_ |= 0x00000002;
                state_ = value;
                onChanged();
            }

            // optional .com.aliyun.openservices.log.common.AsyncSqlMetaPB meta = 3;
            private com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB meta_ = com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance();
            private com.google.protobuf.SingleFieldBuilder<
                    com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder> metaBuilder_;
            public boolean hasMeta() {
                return ((bitField0_ & 0x00000004) == 0x00000004);
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB getMeta() {
                if (metaBuilder_ == null) {
                    return meta_;
                } else {
                    return metaBuilder_.getMessage();
                }
            }
            public Builder setMeta(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB value) {
                if (metaBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    meta_ = value;
                    onChanged();
                } else {
                    metaBuilder_.setMessage(value);
                }
                bitField0_ |= 0x00000004;
                return this;
            }
            public Builder setMeta(
                    com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder builderForValue) {
                if (metaBuilder_ == null) {
                    meta_ = builderForValue.build();
                    onChanged();
                } else {
                    metaBuilder_.setMessage(builderForValue.build());
                }
                bitField0_ |= 0x00000004;
                return this;
            }
            public Builder mergeMeta(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB value) {
                if (metaBuilder_ == null) {
                    if (((bitField0_ & 0x00000004) == 0x00000004) &&
                            meta_ != com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance()) {
                        meta_ =
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.newBuilder(meta_).mergeFrom(value).buildPartial();
                    } else {
                        meta_ = value;
                    }
                    onChanged();
                } else {
                    metaBuilder_.mergeFrom(value);
                }
                bitField0_ |= 0x00000004;
                return this;
            }
            public Builder clearMeta() {
                if (metaBuilder_ == null) {
                    meta_ = com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.getDefaultInstance();
                    onChanged();
                } else {
                    metaBuilder_.clear();
                }
                bitField0_ = (bitField0_ & ~0x00000004);
                return this;
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder getMetaBuilder() {
                bitField0_ |= 0x00000004;
                onChanged();
                return getMetaFieldBuilder().getBuilder();
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder getMetaOrBuilder() {
                if (metaBuilder_ != null) {
                    return metaBuilder_.getMessageOrBuilder();
                } else {
                    return meta_;
                }
            }
            private com.google.protobuf.SingleFieldBuilder<
                    com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder>
            getMetaFieldBuilder() {
                if (metaBuilder_ == null) {
                    metaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                            com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPBOrBuilder>(
                            meta_,
                            getParentForChildren(),
                            isClean());
                    meta_ = null;
                }
                return metaBuilder_;
            }

            // repeated .com.aliyun.openservices.log.common.AsyncSqlRowPB rows = 4;
            private java.util.List rows_ =
                    java.util.Collections.emptyList();
            private void ensureRowsIsMutable() {
                if (!((bitField0_ & 0x00000008) == 0x00000008)) {
                    rows_ = new java.util.ArrayList(rows_);
                    bitField0_ |= 0x00000008;
                }
            }

            private com.google.protobuf.RepeatedFieldBuilder<
                    com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder> rowsBuilder_;

            public java.util.List getRowsList() {
                if (rowsBuilder_ == null) {
                    return java.util.Collections.unmodifiableList(rows_);
                } else {
                    return rowsBuilder_.getMessageList();
                }
            }
            public int getRowsCount() {
                if (rowsBuilder_ == null) {
                    return rows_.size();
                } else {
                    return rowsBuilder_.getCount();
                }
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB getRows(int index) {
                if (rowsBuilder_ == null) {
                    return rows_.get(index);
                } else {
                    return rowsBuilder_.getMessage(index);
                }
            }
            public Builder setRows(
                    int index, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB value) {
                if (rowsBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensureRowsIsMutable();
                    rows_.set(index, value);
                    onChanged();
                } else {
                    rowsBuilder_.setMessage(index, value);
                }
                return this;
            }
            public Builder setRows(
                    int index, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder builderForValue) {
                if (rowsBuilder_ == null) {
                    ensureRowsIsMutable();
                    rows_.set(index, builderForValue.build());
                    onChanged();
                } else {
                    rowsBuilder_.setMessage(index, builderForValue.build());
                }
                return this;
            }
            public Builder addRows(com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB value) {
                if (rowsBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensureRowsIsMutable();
                    rows_.add(value);
                    onChanged();
                } else {
                    rowsBuilder_.addMessage(value);
                }
                return this;
            }
            public Builder addRows(
                    int index, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB value) {
                if (rowsBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensureRowsIsMutable();
                    rows_.add(index, value);
                    onChanged();
                } else {
                    rowsBuilder_.addMessage(index, value);
                }
                return this;
            }
            public Builder addRows(
                    com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder builderForValue) {
                if (rowsBuilder_ == null) {
                    ensureRowsIsMutable();
                    rows_.add(builderForValue.build());
                    onChanged();
                } else {
                    rowsBuilder_.addMessage(builderForValue.build());
                }
                return this;
            }
            public Builder addRows(
                    int index, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder builderForValue) {
                if (rowsBuilder_ == null) {
                    ensureRowsIsMutable();
                    rows_.add(index, builderForValue.build());
                    onChanged();
                } else {
                    rowsBuilder_.addMessage(index, builderForValue.build());
                }
                return this;
            }
            public Builder addAllRows(
                    java.lang.Iterable values) {
                if (rowsBuilder_ == null) {
                    ensureRowsIsMutable();
                    super.addAll(values, rows_);
                    onChanged();
                } else {
                    rowsBuilder_.addAllMessages(values);
                }
                return this;
            }
            public Builder clearRows() {
                if (rowsBuilder_ == null) {
                    rows_ = java.util.Collections.emptyList();
                    bitField0_ = (bitField0_ & ~0x00000008);
                    onChanged();
                } else {
                    rowsBuilder_.clear();
                }
                return this;
            }
            public Builder removeRows(int index) {
                if (rowsBuilder_ == null) {
                    ensureRowsIsMutable();
                    rows_.remove(index);
                    onChanged();
                } else {
                    rowsBuilder_.remove(index);
                }
                return this;
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder getRowsBuilder(
                    int index) {
                return getRowsFieldBuilder().getBuilder(index);
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder getRowsOrBuilder(
                    int index) {
                if (rowsBuilder_ == null) {
                    return rows_.get(index);  } else {
                    return rowsBuilder_.getMessageOrBuilder(index);
                }
            }
            public java.util.List
            getRowsOrBuilderList() {
                if (rowsBuilder_ != null) {
                    return rowsBuilder_.getMessageOrBuilderList();
                } else {
                    return java.util.Collections.unmodifiableList(rows_);
                }
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder addRowsBuilder() {
                return getRowsFieldBuilder().addBuilder(
                        com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.getDefaultInstance());
            }
            public com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder addRowsBuilder(
                    int index) {
                return getRowsFieldBuilder().addBuilder(
                        index, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.getDefaultInstance());
            }
            public java.util.List
            getRowsBuilderList() {
                return getRowsFieldBuilder().getBuilderList();
            }
            private com.google.protobuf.RepeatedFieldBuilder<
                    com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder>
            getRowsFieldBuilder() {
                if (rowsBuilder_ == null) {
                    rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
                            com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder, com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPBOrBuilder>(
                            rows_,
                            ((bitField0_ & 0x00000008) == 0x00000008),
                            getParentForChildren(),
                            isClean());
                    rows_ = null;
                }
                return rowsBuilder_;
            }

            // optional string error_code = 5;
            private java.lang.Object errorCode_ = "";
            public boolean hasErrorCode() {
                return ((bitField0_ & 0x00000010) == 0x00000010);
            }
            public String getErrorCode() {
                java.lang.Object ref = errorCode_;
                if (!(ref instanceof String)) {
                    String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
                    errorCode_ = s;
                    return s;
                } else {
                    return (String) ref;
                }
            }
            public Builder setErrorCode(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000010;
                errorCode_ = value;
                onChanged();
                return this;
            }
            public Builder clearErrorCode() {
                bitField0_ = (bitField0_ & ~0x00000010);
                errorCode_ = getDefaultInstance().getErrorCode();
                onChanged();
                return this;
            }
            void setErrorCode(com.google.protobuf.ByteString value) {
                bitField0_ |= 0x00000010;
                errorCode_ = value;
                onChanged();
            }

            // optional string error_message = 6;
            private java.lang.Object errorMessage_ = "";
            public boolean hasErrorMessage() {
                return ((bitField0_ & 0x00000020) == 0x00000020);
            }
            public String getErrorMessage() {
                java.lang.Object ref = errorMessage_;
                if (!(ref instanceof String)) {
                    String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
                    errorMessage_ = s;
                    return s;
                } else {
                    return (String) ref;
                }
            }
            public Builder setErrorMessage(String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000020;
                errorMessage_ = value;
                onChanged();
                return this;
            }
            public Builder clearErrorMessage() {
                bitField0_ = (bitField0_ & ~0x00000020);
                errorMessage_ = getDefaultInstance().getErrorMessage();
                onChanged();
                return this;
            }
            void setErrorMessage(com.google.protobuf.ByteString value) {
                bitField0_ |= 0x00000020;
                errorMessage_ = value;
                onChanged();
            }

            // @@protoc_insertion_point(builder_scope:com.aliyun.openservices.log.common.AsyncSqlResponsePB)
        }

        static {
            defaultInstance = new AsyncSqlResponsePB(true);
            defaultInstance.initFields();
        }

        // @@protoc_insertion_point(class_scope:com.aliyun.openservices.log.common.AsyncSqlResponsePB)
    }

    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_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\017async_sql.proto\022\"com.aliyun.openservic" +
                        "es.log.common\"\261\001\n\016AsyncSqlMetaPB\022\023\n\013resu" +
                        "lt_rows\030\001 \001(\005\022\026\n\016processed_rows\030\002 \001(\003\022\027\n" +
                        "\017processed_bytes\030\003 \001(\003\022\025\n\relapsed_milli\030" +
                        "\004 \001(\003\022\017\n\007cpu_sec\030\005 \001(\001\022\021\n\tcpu_cores\030\006 \001(" +
                        "\003\022\020\n\010progress\030\007 \001(\t\022\014\n\004keys\030\010 \003(\t\" \n\rAsy" +
                        "ncSqlRowPB\022\017\n\007columns\030\001 \003(\t\"\335\001\n\022AsyncSql" +
                        "ResponsePB\022\n\n\002id\030\001 \002(\t\022\r\n\005state\030\002 \002(\t\022@\n" +
                        "\004meta\030\003 \001(\01322.com.aliyun.openservices.lo" +
                        "g.common.AsyncSqlMetaPB\022?\n\004rows\030\004 \003(\01321.",
                "com.aliyun.openservices.log.common.Async" +
                        "SqlRowPB\022\022\n\nerror_code\030\005 \001(\t\022\025\n\rerror_me" +
                        "ssage\030\006 \001(\t"
        };
        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;
                        internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_aliyun_openservices_log_common_AsyncSqlMetaPB_descriptor,
                                new java.lang.String[] { "ResultRows", "ProcessedRows", "ProcessedBytes", "ElapsedMilli", "CpuSec", "CpuCores", "Progress", "Keys", },
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.class,
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlMetaPB.Builder.class);
                        internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_descriptor =
                                getDescriptor().getMessageTypes().get(1);
                        internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_aliyun_openservices_log_common_AsyncSqlRowPB_descriptor,
                                new java.lang.String[] { "Columns", },
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.class,
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlRowPB.Builder.class);
                        internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_descriptor =
                                getDescriptor().getMessageTypes().get(2);
                        internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_aliyun_openservices_log_common_AsyncSqlResponsePB_descriptor,
                                new java.lang.String[] { "Id", "State", "Meta", "Rows", "ErrorCode", "ErrorMessage", },
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB.class,
                                com.aliyun.openservices.log.common.AsyncSql.AsyncSqlResponsePB.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[] {
                        }, assigner);
    }

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy