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

com.alachisoft.ncache.common.protobuf.CQResultSetProtocol Maven / Gradle / Ivy

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

package com.alachisoft.ncache.common.protobuf;

public final class CQResultSetProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_CQResultSet_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_CQResultSet_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\021CQResultSet.proto\022%com.alachisoft.ncac" +
                        "he.common.protobuf\032\035KeyValuePackageRespo" +
                        "nse.proto\032\014CQType.proto\"\356\001\n\013CQResultSet\022" +
                        "\030\n\020searchKeyResults\030\001 \003(\t\022_\n\027searchKeyEn" +
                        "teriesResult\030\002 \001(\0132>.com.alachisoft.ncac" +
                        "he.common.protobuf.KeyValuePackageRespon" +
                        "se\022P\n\tqueryType\030\003 \001(\0162-.com.alachisoft.n" +
                        "cache.common.protobuf.CQType:\016SEARCH_CQ_" +
                        "KEYS\022\022\n\nCQUniqueId\030\004 \001(\tB\025B\023CQResultSetP" +
                        "rotocol"
        };
        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_alachisoft_ncache_common_protobuf_CQResultSet_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_CQResultSet_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_CQResultSet_descriptor,
                                new java.lang.String[]{"SearchKeyResults", "SearchKeyEnteriesResult", "QueryType", "CQUniqueId",},
                                com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet.class,
                                com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.CQTypeProtocol.getDescriptor(),
                        }, assigner);
    }
    private CQResultSetProtocol() {
    }

    public static void registerAllExtensions(
            com.google.protobuf.ExtensionRegistry registry) {
    }

    public static com.google.protobuf.Descriptors.FileDescriptor
    getDescriptor() {
        return descriptor;
    }

    public static void internalForceInit() {
    }

    public static final class CQResultSet extends
            com.google.protobuf.GeneratedMessage {
        // repeated string searchKeyResults = 1;
        public static final int SEARCHKEYRESULTS_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.KeyValuePackageResponse searchKeyEnteriesResult = 2;
        public static final int SEARCHKEYENTERIESRESULT_FIELD_NUMBER = 2;
        // optional .com.alachisoft.ncache.common.protobuf.CQType queryType = 3 [default = SEARCH_CQ_KEYS];
        public static final int QUERYTYPE_FIELD_NUMBER = 3;
        // optional string CQUniqueId = 4;
        public static final int CQUNIQUEID_FIELD_NUMBER = 4;
        private static final CQResultSet defaultInstance;

        static {
            defaultInstance = new CQResultSet(true);
            com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.internalForceInit();
            defaultInstance.initFields();
        }

        private java.util.List searchKeyResults_ =
                java.util.Collections.emptyList();
        private boolean hasSearchKeyEnteriesResult;
        private com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse searchKeyEnteriesResult_;
        private boolean hasQueryType;
        private com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType queryType_;
        private boolean hasCQUniqueId;
        private java.lang.String cQUniqueId_ = "";
        private int memoizedSerializedSize = -1;
        // Use CQResultSet.newBuilder() to construct.
        private CQResultSet() {
            initFields();
        }

        private CQResultSet(boolean noInit) {
        }

        public static CQResultSet getDefaultInstance() {
            return defaultInstance;
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_CQResultSet_descriptor;
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet 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.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet parseFrom(
                byte[] data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return newBuilder().mergeFrom(data, extensionRegistry)
                    .buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet parseFrom(
                java.io.InputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input, extensionRegistry)
                    .buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet 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.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet 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.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return newBuilder().mergeFrom(input).buildParsed();
        }

        public static com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet 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 static Builder newBuilder(com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet prototype) {
            return newBuilder().mergeFrom(prototype);
        }

        public CQResultSet getDefaultInstanceForType() {
            return defaultInstance;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_CQResultSet_fieldAccessorTable;
        }

        public java.util.List getSearchKeyResultsList() {
            return searchKeyResults_;
        }

        public int getSearchKeyResultsCount() {
            return searchKeyResults_.size();
        }

        public java.lang.String getSearchKeyResults(int index) {
            return searchKeyResults_.get(index);
        }

        public boolean hasSearchKeyEnteriesResult() {
            return hasSearchKeyEnteriesResult;
        }

        public com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse getSearchKeyEnteriesResult() {
            return searchKeyEnteriesResult_;
        }

        public boolean hasQueryType() {
            return hasQueryType;
        }

        public com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType getQueryType() {
            return queryType_;
        }

        public boolean hasCQUniqueId() {
            return hasCQUniqueId;
        }

        public java.lang.String getCQUniqueId() {
            return cQUniqueId_;
        }

        private void initFields() {
            searchKeyEnteriesResult_ = com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.getDefaultInstance();
            queryType_ = com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType.SEARCH_CQ_KEYS;
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            for (java.lang.String element : getSearchKeyResultsList()) {
                output.writeString(1, element);
            }
            if (hasSearchKeyEnteriesResult()) {
                output.writeMessage(2, getSearchKeyEnteriesResult());
            }
            if (hasQueryType()) {
                output.writeEnum(3, getQueryType().getNumber());
            }
            if (hasCQUniqueId()) {
                output.writeString(4, getCQUniqueId());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            {
                int dataSize = 0;
                for (java.lang.String element : getSearchKeyResultsList()) {
                    dataSize += com.google.protobuf.CodedOutputStream
                            .computeStringSizeNoTag(element);
                }
                size += dataSize;
                size += 1 * getSearchKeyResultsList().size();
            }
            if (hasSearchKeyEnteriesResult()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(2, getSearchKeyEnteriesResult());
            }
            if (hasQueryType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(3, getQueryType().getNumber());
            }
            if (hasCQUniqueId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(4, getCQUniqueId());
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

        public Builder newBuilderForType() {
            return newBuilder();
        }

        public Builder toBuilder() {
            return newBuilder(this);
        }

        public static final class Builder extends
                com.google.protobuf.GeneratedMessage.Builder {
            private com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet result;

            // Construct using com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet.newBuilder()
            private Builder() {
            }

            private static Builder create() {
                Builder builder = new Builder();
                builder.result = new com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet();
                return builder;
            }

            protected com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet internalGetResult() {
                return result;
            }

            public Builder clear() {
                if (result == null) {
                    throw new IllegalStateException(
                            "Cannot call clear() after build().");
                }
                result = new com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet();
                return this;
            }

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

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet.getDescriptor();
            }

            public com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet.getDefaultInstance();
            }

            public boolean isInitialized() {
                return result.isInitialized();
            }

            public com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet build() {
                if (result != null && !isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return buildPartial();
            }

            private com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet buildParsed()
                    throws com.google.protobuf.InvalidProtocolBufferException {
                if (!isInitialized()) {
                    throw newUninitializedMessageException(
                            result).asInvalidProtocolBufferException();
                }
                return buildPartial();
            }

            public com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet buildPartial() {
                if (result == null) {
                    throw new IllegalStateException(
                            "build() has already been called on this Builder.");
                }
                if (result.searchKeyResults_ != java.util.Collections.EMPTY_LIST) {
                    result.searchKeyResults_ =
                            java.util.Collections.unmodifiableList(result.searchKeyResults_);
                }
                com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet returnMe = result;
                result = null;
                return returnMe;
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet) {
                    return mergeFrom((com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet other) {
                if (other == com.alachisoft.ncache.common.protobuf.CQResultSetProtocol.CQResultSet.getDefaultInstance())
                    return this;
                if (!other.searchKeyResults_.isEmpty()) {
                    if (result.searchKeyResults_.isEmpty()) {
                        result.searchKeyResults_ = new java.util.ArrayList();
                    }
                    result.searchKeyResults_.addAll(other.searchKeyResults_);
                }
                if (other.hasSearchKeyEnteriesResult()) {
                    mergeSearchKeyEnteriesResult(other.getSearchKeyEnteriesResult());
                }
                if (other.hasQueryType()) {
                    setQueryType(other.getQueryType());
                }
                if (other.hasCQUniqueId()) {
                    setCQUniqueId(other.getCQUniqueId());
                }
                this.mergeUnknownFields(other.getUnknownFields());
                return this;
            }

            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());
                            return this;
                        default: {
                            if (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                this.setUnknownFields(unknownFields.build());
                                return this;
                            }
                            break;
                        }
                        case 10: {
                            addSearchKeyResults(input.readString());
                            break;
                        }
                        case 18: {
                            com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.Builder subBuilder = com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.newBuilder();
                            if (hasSearchKeyEnteriesResult()) {
                                subBuilder.mergeFrom(getSearchKeyEnteriesResult());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setSearchKeyEnteriesResult(subBuilder.buildPartial());
                            break;
                        }
                        case 24: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType value = com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(3, rawValue);
                            } else {
                                setQueryType(value);
                            }
                            break;
                        }
                        case 34: {
                            setCQUniqueId(input.readString());
                            break;
                        }
                    }
                }
            }


            // repeated string searchKeyResults = 1;
            public java.util.List getSearchKeyResultsList() {
                return java.util.Collections.unmodifiableList(result.searchKeyResults_);
            }

            public int getSearchKeyResultsCount() {
                return result.getSearchKeyResultsCount();
            }

            public java.lang.String getSearchKeyResults(int index) {
                return result.getSearchKeyResults(index);
            }

            public Builder setSearchKeyResults(int index, java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.searchKeyResults_.set(index, value);
                return this;
            }

            public Builder addSearchKeyResults(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                if (result.searchKeyResults_.isEmpty()) {
                    result.searchKeyResults_ = new java.util.ArrayList();
                }
                result.searchKeyResults_.add(value);
                return this;
            }

            public Builder addAllSearchKeyResults(
                    java.lang.Iterable values) {
                if (result.searchKeyResults_.isEmpty()) {
                    result.searchKeyResults_ = new java.util.ArrayList();
                }
                super.addAll(values, result.searchKeyResults_);
                return this;
            }

            public Builder clearSearchKeyResults() {
                result.searchKeyResults_ = java.util.Collections.emptyList();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.KeyValuePackageResponse searchKeyEnteriesResult = 2;
            public boolean hasSearchKeyEnteriesResult() {
                return result.hasSearchKeyEnteriesResult();
            }

            public com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse getSearchKeyEnteriesResult() {
                return result.getSearchKeyEnteriesResult();
            }

            public Builder setSearchKeyEnteriesResult(com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasSearchKeyEnteriesResult = true;
                result.searchKeyEnteriesResult_ = value;
                return this;
            }

            public Builder setSearchKeyEnteriesResult(com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.Builder builderForValue) {
                result.hasSearchKeyEnteriesResult = true;
                result.searchKeyEnteriesResult_ = builderForValue.build();
                return this;
            }

            public Builder mergeSearchKeyEnteriesResult(com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse value) {
                if (result.hasSearchKeyEnteriesResult() &&
                        result.searchKeyEnteriesResult_ != com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.getDefaultInstance()) {
                    result.searchKeyEnteriesResult_ =
                            com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.newBuilder(result.searchKeyEnteriesResult_).mergeFrom(value).buildPartial();
                } else {
                    result.searchKeyEnteriesResult_ = value;
                }
                result.hasSearchKeyEnteriesResult = true;
                return this;
            }

            public Builder clearSearchKeyEnteriesResult() {
                result.hasSearchKeyEnteriesResult = false;
                result.searchKeyEnteriesResult_ = com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CQType queryType = 3 [default = SEARCH_CQ_KEYS];
            public boolean hasQueryType() {
                return result.hasQueryType();
            }

            public com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType getQueryType() {
                return result.getQueryType();
            }

            public Builder setQueryType(com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasQueryType = true;
                result.queryType_ = value;
                return this;
            }

            public Builder clearQueryType() {
                result.hasQueryType = false;
                result.queryType_ = com.alachisoft.ncache.common.protobuf.CQTypeProtocol.CQType.SEARCH_CQ_KEYS;
                return this;
            }

            // optional string CQUniqueId = 4;
            public boolean hasCQUniqueId() {
                return result.hasCQUniqueId();
            }

            public java.lang.String getCQUniqueId() {
                return result.getCQUniqueId();
            }

            public Builder setCQUniqueId(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCQUniqueId = true;
                result.cQUniqueId_ = value;
                return this;
            }

            public Builder clearCQUniqueId() {
                result.hasCQUniqueId = false;
                result.cQUniqueId_ = getDefaultInstance().getCQUniqueId();
                return this;
            }

            // @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.CQResultSet)
        }

        // @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.CQResultSet)
    }

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy