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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class QueryResultSetProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_QueryResultSet_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_QueryResultSet_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\024QueryResultSet.proto\022%com.alachisoft.n" +
                        "cache.common.protobuf\032\035KeyValuePackageRe" +
                        "sponse.proto\032\022KeyValuePair.proto\032\017QueryT" +
                        "ype.proto\032\024DictionaryItem.proto\032\033Aggrega" +
                        "teFunctionType.proto\032\017RecordSet.proto\"\373\003" +
                        "\n\016QueryResultSet\022\030\n\020searchKeyResults\030\001 \003" +
                        "(\t\022_\n\027searchKeyEnteriesResult\030\002 \001(\0132>.co" +
                        "m.alachisoft.ncache.common.protobuf.KeyV" +
                        "aluePackageResponse\022V\n\027aggregateFunction" +
                        "Result\030\003 \001(\01325.com.alachisoft.ncache.com",
                "mon.protobuf.DictionaryItem\022P\n\tqueryType" +
                        "\030\004 \001(\01620.com.alachisoft.ncache.common.pr" +
                        "otobuf.QueryType:\013SEARCH_KEYS\022j\n\025aggrega" +
                        "teFunctionType\030\005 \001(\0162<.com.alachisoft.nc" +
                        "ache.common.protobuf.AggregateFunctionTy" +
                        "pe:\rNOTAPPLICABLE\022X\n\036groupByAggregateFun" +
                        "ctionResult\030\006 \001(\01320.com.alachisoft.ncach" +
                        "e.common.protobuf.RecordSetB\030B\026QueryResu" +
                        "ltSetProtocol"
        };
        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_QueryResultSet_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_QueryResultSet_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_QueryResultSet_descriptor,
                                new java.lang.String[]{"SearchKeyResults", "SearchKeyEnteriesResult", "AggregateFunctionResult", "QueryType", "AggregateFunctionType", "GroupByAggregateFunctionResult",},
                                com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet.class,
                                com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet.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.KeyValuePairProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.RecordSetProtocol.getDescriptor(),
                        }, assigner);
    }
    private QueryResultSetProtocol() {
    }

    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 QueryResultSet 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.DictionaryItem aggregateFunctionResult = 3;
        public static final int AGGREGATEFUNCTIONRESULT_FIELD_NUMBER = 3;
        // optional .com.alachisoft.ncache.common.protobuf.QueryType queryType = 4 [default = SEARCH_KEYS];
        public static final int QUERYTYPE_FIELD_NUMBER = 4;
        // optional .com.alachisoft.ncache.common.protobuf.AggregateFunctionType aggregateFunctionType = 5 [default = NOTAPPLICABLE];
        public static final int AGGREGATEFUNCTIONTYPE_FIELD_NUMBER = 5;
        // optional .com.alachisoft.ncache.common.protobuf.RecordSet groupByAggregateFunctionResult = 6;
        public static final int GROUPBYAGGREGATEFUNCTIONRESULT_FIELD_NUMBER = 6;
        private static final QueryResultSet defaultInstance;

        static {
            defaultInstance = new QueryResultSet(true);
            com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.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 hasAggregateFunctionResult;
        private com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem aggregateFunctionResult_;
        private boolean hasQueryType;
        private com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType queryType_;
        private boolean hasAggregateFunctionType;
        private com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType aggregateFunctionType_;
        private boolean hasGroupByAggregateFunctionResult;
        private com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet groupByAggregateFunctionResult_;
        private int memoizedSerializedSize = -1;

        // Use QueryResultSet.newBuilder() to construct.
        private QueryResultSet() {
            initFields();
        }

        private QueryResultSet(boolean noInit) {
        }

        public static QueryResultSet getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public QueryResultSet getDefaultInstanceForType() {
            return defaultInstance;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_QueryResultSet_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 hasAggregateFunctionResult() {
            return hasAggregateFunctionResult;
        }

        public com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem getAggregateFunctionResult() {
            return aggregateFunctionResult_;
        }

        public boolean hasQueryType() {
            return hasQueryType;
        }

        public com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType getQueryType() {
            return queryType_;
        }

        public boolean hasAggregateFunctionType() {
            return hasAggregateFunctionType;
        }

        public com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType getAggregateFunctionType() {
            return aggregateFunctionType_;
        }

        public boolean hasGroupByAggregateFunctionResult() {
            return hasGroupByAggregateFunctionResult;
        }

        public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet getGroupByAggregateFunctionResult() {
            return groupByAggregateFunctionResult_;
        }

        private void initFields() {
            searchKeyEnteriesResult_ = com.alachisoft.ncache.common.protobuf.KeyValuePackageResponseProtocol.KeyValuePackageResponse.getDefaultInstance();
            aggregateFunctionResult_ = com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.getDefaultInstance();
            queryType_ = com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType.SEARCH_KEYS;
            aggregateFunctionType_ = com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType.NOTAPPLICABLE;
            groupByAggregateFunctionResult_ = com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance();
        }

        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 (hasAggregateFunctionResult()) {
                output.writeMessage(3, getAggregateFunctionResult());
            }
            if (hasQueryType()) {
                output.writeEnum(4, getQueryType().getNumber());
            }
            if (hasAggregateFunctionType()) {
                output.writeEnum(5, getAggregateFunctionType().getNumber());
            }
            if (hasGroupByAggregateFunctionResult()) {
                output.writeMessage(6, getGroupByAggregateFunctionResult());
            }
            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 (hasAggregateFunctionResult()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, getAggregateFunctionResult());
            }
            if (hasQueryType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(4, getQueryType().getNumber());
            }
            if (hasAggregateFunctionType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(5, getAggregateFunctionType().getNumber());
            }
            if (hasGroupByAggregateFunctionResult()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(6, getGroupByAggregateFunctionResult());
            }
            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.QueryResultSetProtocol.QueryResultSet result;

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

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

            protected com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet.getDefaultInstance();
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet 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.QueryResultSetProtocol.QueryResultSet returnMe = result;
                result = null;
                return returnMe;
            }

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet other) {
                if (other == com.alachisoft.ncache.common.protobuf.QueryResultSetProtocol.QueryResultSet.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.hasAggregateFunctionResult()) {
                    mergeAggregateFunctionResult(other.getAggregateFunctionResult());
                }
                if (other.hasQueryType()) {
                    setQueryType(other.getQueryType());
                }
                if (other.hasAggregateFunctionType()) {
                    setAggregateFunctionType(other.getAggregateFunctionType());
                }
                if (other.hasGroupByAggregateFunctionResult()) {
                    mergeGroupByAggregateFunctionResult(other.getGroupByAggregateFunctionResult());
                }
                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 26: {
                            com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.Builder subBuilder = com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.newBuilder();
                            if (hasAggregateFunctionResult()) {
                                subBuilder.mergeFrom(getAggregateFunctionResult());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setAggregateFunctionResult(subBuilder.buildPartial());
                            break;
                        }
                        case 32: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType value = com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(4, rawValue);
                            } else {
                                setQueryType(value);
                            }
                            break;
                        }
                        case 40: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType value = com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(5, rawValue);
                            } else {
                                setAggregateFunctionType(value);
                            }
                            break;
                        }
                        case 50: {
                            com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.Builder subBuilder = com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.newBuilder();
                            if (hasGroupByAggregateFunctionResult()) {
                                subBuilder.mergeFrom(getGroupByAggregateFunctionResult());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setGroupByAggregateFunctionResult(subBuilder.buildPartial());
                            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.DictionaryItem aggregateFunctionResult = 3;
            public boolean hasAggregateFunctionResult() {
                return result.hasAggregateFunctionResult();
            }

            public com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem getAggregateFunctionResult() {
                return result.getAggregateFunctionResult();
            }

            public Builder setAggregateFunctionResult(com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasAggregateFunctionResult = true;
                result.aggregateFunctionResult_ = value;
                return this;
            }

            public Builder setAggregateFunctionResult(com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.Builder builderForValue) {
                result.hasAggregateFunctionResult = true;
                result.aggregateFunctionResult_ = builderForValue.build();
                return this;
            }

            public Builder mergeAggregateFunctionResult(com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem value) {
                if (result.hasAggregateFunctionResult() &&
                        result.aggregateFunctionResult_ != com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.getDefaultInstance()) {
                    result.aggregateFunctionResult_ =
                            com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.newBuilder(result.aggregateFunctionResult_).mergeFrom(value).buildPartial();
                } else {
                    result.aggregateFunctionResult_ = value;
                }
                result.hasAggregateFunctionResult = true;
                return this;
            }

            public Builder clearAggregateFunctionResult() {
                result.hasAggregateFunctionResult = false;
                result.aggregateFunctionResult_ = com.alachisoft.ncache.common.protobuf.DictionaryItemProtocol.DictionaryItem.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.QueryType queryType = 4 [default = SEARCH_KEYS];
            public boolean hasQueryType() {
                return result.hasQueryType();
            }

            public com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType getQueryType() {
                return result.getQueryType();
            }

            public Builder setQueryType(com.alachisoft.ncache.common.protobuf.QueryTypeProtocol.QueryType 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.QueryTypeProtocol.QueryType.SEARCH_KEYS;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.AggregateFunctionType aggregateFunctionType = 5 [default = NOTAPPLICABLE];
            public boolean hasAggregateFunctionType() {
                return result.hasAggregateFunctionType();
            }

            public com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType getAggregateFunctionType() {
                return result.getAggregateFunctionType();
            }

            public Builder setAggregateFunctionType(com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasAggregateFunctionType = true;
                result.aggregateFunctionType_ = value;
                return this;
            }

            public Builder clearAggregateFunctionType() {
                result.hasAggregateFunctionType = false;
                result.aggregateFunctionType_ = com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType.NOTAPPLICABLE;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.RecordSet groupByAggregateFunctionResult = 6;
            public boolean hasGroupByAggregateFunctionResult() {
                return result.hasGroupByAggregateFunctionResult();
            }

            public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet getGroupByAggregateFunctionResult() {
                return result.getGroupByAggregateFunctionResult();
            }

            public Builder setGroupByAggregateFunctionResult(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasGroupByAggregateFunctionResult = true;
                result.groupByAggregateFunctionResult_ = value;
                return this;
            }

            public Builder setGroupByAggregateFunctionResult(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.Builder builderForValue) {
                result.hasGroupByAggregateFunctionResult = true;
                result.groupByAggregateFunctionResult_ = builderForValue.build();
                return this;
            }

            public Builder mergeGroupByAggregateFunctionResult(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet value) {
                if (result.hasGroupByAggregateFunctionResult() &&
                        result.groupByAggregateFunctionResult_ != com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance()) {
                    result.groupByAggregateFunctionResult_ =
                            com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.newBuilder(result.groupByAggregateFunctionResult_).mergeFrom(value).buildPartial();
                } else {
                    result.groupByAggregateFunctionResult_ = value;
                }
                result.hasGroupByAggregateFunctionResult = true;
                return this;
            }

            public Builder clearGroupByAggregateFunctionResult() {
                result.hasGroupByAggregateFunctionResult = false;
                result.groupByAggregateFunctionResult_ = com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance();
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy