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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class CollectionCommandProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_CollectionCommand_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_CollectionCommand_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\027CollectionCommand.proto\022%com.alachisof" +
                        "t.ncache.common.protobuf\032\016LockInfo.proto" +
                        "\032\030CollectionContains.proto\032\030CollectionGe" +
                        "tChunk.proto\"\210\005\n\021CollectionCommand\022K\n\004ty" +
                        "pe\030\001 \001(\0162=.com.alachisoft.ncache.common." +
                        "protobuf.CollectionCommand.Type\022O\n\006metho" +
                        "d\030\002 \001(\0162?.com.alachisoft.ncache.common.p" +
                        "rotobuf.CollectionCommand.Method\022U\n\022coll" +
                        "ectionContains\030\003 \001(\01329.com.alachisoft.nc" +
                        "ache.common.protobuf.CollectionContains\022",
                "U\n\022collectionGetChunk\030\004 \001(\01329.com.alachi" +
                        "soft.ncache.common.protobuf.CollectionGe" +
                        "tChunk\022\021\n\trequestId\030\007 \001(\003\022\014\n\004name\030\010 \001(\t\022" +
                        "A\n\010lockInfo\030\t \001(\0132/.com.alachisoft.ncach" +
                        "e.common.protobuf.LockInfo\022\025\n\rdsWriteOpt" +
                        "ion\030\n \001(\005\022\024\n\014providerName\030\013 \001(\t\"4\n\004Type\022" +
                        "\010\n\004LIST\020\001\022\t\n\005QUEUE\020\002\022\007\n\003SET\020\003\022\016\n\nDICTION" +
                        "ARY\020\004\"`\n\006Method\022\027\n\023COLLECTION_CONTAINS\020\001" +
                        "\022\030\n\024COLLECTION_GET_COUNT\020\002\022\024\n\020COLLECTION" +
                        "_CLEAR\020\003\022\r\n\tGET_CHUNK\020\004B\033B\031CollectionCom",
                "mandProtocol"
        };
        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_CollectionCommand_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_CollectionCommand_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_CollectionCommand_descriptor,
                                new java.lang.String[]{"Type", "Method", "CollectionContains", "CollectionGetChunk", "RequestId", "Name", "LockInfo", "DsWriteOption", "ProviderName",},
                                com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.class,
                                com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.LockInfoProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.getDescriptor(),
                        }, assigner);
    }
    private CollectionCommandProtocol() {
    }

    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 CollectionCommand extends
            com.google.protobuf.GeneratedMessage {
        // optional .com.alachisoft.ncache.common.protobuf.CollectionCommand.Type type = 1;
        public static final int TYPE_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionCommand.Method method = 2;
        public static final int METHOD_FIELD_NUMBER = 2;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionContains collectionContains = 3;
        public static final int COLLECTIONCONTAINS_FIELD_NUMBER = 3;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionGetChunk collectionGetChunk = 4;
        public static final int COLLECTIONGETCHUNK_FIELD_NUMBER = 4;
        // optional int64 requestId = 7;
        public static final int REQUESTID_FIELD_NUMBER = 7;
        // optional string name = 8;
        public static final int NAME_FIELD_NUMBER = 8;
        // optional .com.alachisoft.ncache.common.protobuf.LockInfo lockInfo = 9;
        public static final int LOCKINFO_FIELD_NUMBER = 9;
        // optional int32 dsWriteOption = 10;
        public static final int DSWRITEOPTION_FIELD_NUMBER = 10;
        // optional string providerName = 11;
        public static final int PROVIDERNAME_FIELD_NUMBER = 11;
        private static final CollectionCommand defaultInstance;

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

        private boolean hasType;
        private com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type type_;
        private boolean hasMethod;
        private com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method method_;
        private boolean hasCollectionContains;
        private com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains collectionContains_;
        private boolean hasCollectionGetChunk;
        private com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk collectionGetChunk_;
        private boolean hasRequestId;
        private long requestId_ = 0L;
        private boolean hasName;
        private java.lang.String name_ = "";
        private boolean hasLockInfo;
        private com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo lockInfo_;
        private boolean hasDsWriteOption;
        private int dsWriteOption_ = 0;
        private boolean hasProviderName;
        private java.lang.String providerName_ = "";
        private int memoizedSerializedSize = -1;
        // Use CollectionCommand.newBuilder() to construct.
        private CollectionCommand() {
            initFields();
        }
        private CollectionCommand(boolean noInit) {
        }

        public static CollectionCommand getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public CollectionCommand getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasType() {
            return hasType;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type getType() {
            return type_;
        }

        public boolean hasMethod() {
            return hasMethod;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method getMethod() {
            return method_;
        }

        public boolean hasCollectionContains() {
            return hasCollectionContains;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains getCollectionContains() {
            return collectionContains_;
        }

        public boolean hasCollectionGetChunk() {
            return hasCollectionGetChunk;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk getCollectionGetChunk() {
            return collectionGetChunk_;
        }

        public boolean hasRequestId() {
            return hasRequestId;
        }

        public long getRequestId() {
            return requestId_;
        }

        public boolean hasName() {
            return hasName;
        }

        public java.lang.String getName() {
            return name_;
        }

        public boolean hasLockInfo() {
            return hasLockInfo;
        }

        public com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo getLockInfo() {
            return lockInfo_;
        }

        public boolean hasDsWriteOption() {
            return hasDsWriteOption;
        }

        public int getDsWriteOption() {
            return dsWriteOption_;
        }

        public boolean hasProviderName() {
            return hasProviderName;
        }

        public java.lang.String getProviderName() {
            return providerName_;
        }

        private void initFields() {
            type_ = com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type.LIST;
            method_ = com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method.COLLECTION_CONTAINS;
            collectionContains_ = com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.getDefaultInstance();
            collectionGetChunk_ = com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.getDefaultInstance();
            lockInfo_ = com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.getDefaultInstance();
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasType()) {
                output.writeEnum(1, getType().getNumber());
            }
            if (hasMethod()) {
                output.writeEnum(2, getMethod().getNumber());
            }
            if (hasCollectionContains()) {
                output.writeMessage(3, getCollectionContains());
            }
            if (hasCollectionGetChunk()) {
                output.writeMessage(4, getCollectionGetChunk());
            }
            if (hasRequestId()) {
                output.writeInt64(7, getRequestId());
            }
            if (hasName()) {
                output.writeString(8, getName());
            }
            if (hasLockInfo()) {
                output.writeMessage(9, getLockInfo());
            }
            if (hasDsWriteOption()) {
                output.writeInt32(10, getDsWriteOption());
            }
            if (hasProviderName()) {
                output.writeString(11, getProviderName());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(1, getType().getNumber());
            }
            if (hasMethod()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(2, getMethod().getNumber());
            }
            if (hasCollectionContains()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, getCollectionContains());
            }
            if (hasCollectionGetChunk()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(4, getCollectionGetChunk());
            }
            if (hasRequestId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(7, getRequestId());
            }
            if (hasName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(8, getName());
            }
            if (hasLockInfo()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(9, getLockInfo());
            }
            if (hasDsWriteOption()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(10, getDsWriteOption());
            }
            if (hasProviderName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(11, getProviderName());
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

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

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

        public enum Type
                implements com.google.protobuf.ProtocolMessageEnum {
            LIST(0, 1),
            QUEUE(1, 2),
            SET(2, 3),
            DICTIONARY(3, 4),
            ;


            private static final Type[] VALUES = {
                    LIST, QUEUE, SET, DICTIONARY,
            };
            private static com.google.protobuf.Internal.EnumLiteMap
                    internalValueMap =
                    new com.google.protobuf.Internal.EnumLiteMap() {
                        public Type findValueByNumber(int number) {
                            return Type.valueOf(number)
                                    ;
                        }
                    };

            static {
                com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.getDescriptor();
            }

            private final int index;
            private final int value;

            private Type(int index, int value) {
                this.index = index;
                this.value = value;
            }

            public static Type valueOf(int value) {
                switch (value) {
                    case 1:
                        return LIST;
                    case 2:
                        return QUEUE;
                    case 3:
                        return SET;
                    case 4:
                        return DICTIONARY;
                    default:
                        return null;
                }
            }

            public static com.google.protobuf.Internal.EnumLiteMap
            internalGetValueMap() {
                return internalValueMap;
            }

            public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
                return com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.getDescriptor().getEnumTypes().get(0);
            }

            public static Type valueOf(
                    com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                if (desc.getType() != getDescriptor()) {
                    throw new java.lang.IllegalArgumentException(
                            "EnumValueDescriptor is not for this type.");
                }
                return VALUES[desc.getIndex()];
            }

            public final int getNumber() {
                return value;
            }

            public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
                return getDescriptor().getValues().get(index);
            }

            public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
                return getDescriptor();
            }

            // @@protoc_insertion_point(enum_scope:com.alachisoft.ncache.common.protobuf.CollectionCommand.Type)
        }

        public enum Method
                implements com.google.protobuf.ProtocolMessageEnum {
            COLLECTION_CONTAINS(0, 1),
            COLLECTION_GET_COUNT(1, 2),
            COLLECTION_CLEAR(2, 3),
            GET_CHUNK(3, 4),
            ;


            private static final Method[] VALUES = {
                    COLLECTION_CONTAINS, COLLECTION_GET_COUNT, COLLECTION_CLEAR, GET_CHUNK,
            };
            private static com.google.protobuf.Internal.EnumLiteMap
                    internalValueMap =
                    new com.google.protobuf.Internal.EnumLiteMap() {
                        public Method findValueByNumber(int number) {
                            return Method.valueOf(number)
                                    ;
                        }
                    };

            static {
                com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.getDescriptor();
            }

            private final int index;
            private final int value;

            private Method(int index, int value) {
                this.index = index;
                this.value = value;
            }

            public static Method valueOf(int value) {
                switch (value) {
                    case 1:
                        return COLLECTION_CONTAINS;
                    case 2:
                        return COLLECTION_GET_COUNT;
                    case 3:
                        return COLLECTION_CLEAR;
                    case 4:
                        return GET_CHUNK;
                    default:
                        return null;
                }
            }

            public static com.google.protobuf.Internal.EnumLiteMap
            internalGetValueMap() {
                return internalValueMap;
            }

            public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
                return com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.getDescriptor().getEnumTypes().get(1);
            }

            public static Method valueOf(
                    com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                if (desc.getType() != getDescriptor()) {
                    throw new java.lang.IllegalArgumentException(
                            "EnumValueDescriptor is not for this type.");
                }
                return VALUES[desc.getIndex()];
            }

            public final int getNumber() {
                return value;
            }

            public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
                return getDescriptor().getValues().get(index);
            }

            public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
                return getDescriptor();
            }

            // @@protoc_insertion_point(enum_scope:com.alachisoft.ncache.common.protobuf.CollectionCommand.Method)
        }

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

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

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

            protected com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.getDefaultInstance();
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand buildPartial() {
                if (result == null) {
                    throw new IllegalStateException(
                            "build() has already been called on this Builder.");
                }
                com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand returnMe = result;
                result = null;
                return returnMe;
            }

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand other) {
                if (other == com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.getDefaultInstance())
                    return this;
                if (other.hasType()) {
                    setType(other.getType());
                }
                if (other.hasMethod()) {
                    setMethod(other.getMethod());
                }
                if (other.hasCollectionContains()) {
                    mergeCollectionContains(other.getCollectionContains());
                }
                if (other.hasCollectionGetChunk()) {
                    mergeCollectionGetChunk(other.getCollectionGetChunk());
                }
                if (other.hasRequestId()) {
                    setRequestId(other.getRequestId());
                }
                if (other.hasName()) {
                    setName(other.getName());
                }
                if (other.hasLockInfo()) {
                    mergeLockInfo(other.getLockInfo());
                }
                if (other.hasDsWriteOption()) {
                    setDsWriteOption(other.getDsWriteOption());
                }
                if (other.hasProviderName()) {
                    setProviderName(other.getProviderName());
                }
                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 8: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type value = com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(1, rawValue);
                            } else {
                                setType(value);
                            }
                            break;
                        }
                        case 16: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method value = com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(2, rawValue);
                            } else {
                                setMethod(value);
                            }
                            break;
                        }
                        case 26: {
                            com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.newBuilder();
                            if (hasCollectionContains()) {
                                subBuilder.mergeFrom(getCollectionContains());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setCollectionContains(subBuilder.buildPartial());
                            break;
                        }
                        case 34: {
                            com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.newBuilder();
                            if (hasCollectionGetChunk()) {
                                subBuilder.mergeFrom(getCollectionGetChunk());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setCollectionGetChunk(subBuilder.buildPartial());
                            break;
                        }
                        case 56: {
                            setRequestId(input.readInt64());
                            break;
                        }
                        case 66: {
                            setName(input.readString());
                            break;
                        }
                        case 74: {
                            com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.Builder subBuilder = com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.newBuilder();
                            if (hasLockInfo()) {
                                subBuilder.mergeFrom(getLockInfo());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setLockInfo(subBuilder.buildPartial());
                            break;
                        }
                        case 80: {
                            setDsWriteOption(input.readInt32());
                            break;
                        }
                        case 90: {
                            setProviderName(input.readString());
                            break;
                        }
                    }
                }
            }


            // optional .com.alachisoft.ncache.common.protobuf.CollectionCommand.Type type = 1;
            public boolean hasType() {
                return result.hasType();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type getType() {
                return result.getType();
            }

            public Builder setType(com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasType = true;
                result.type_ = value;
                return this;
            }

            public Builder clearType() {
                result.hasType = false;
                result.type_ = com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Type.LIST;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CollectionCommand.Method method = 2;
            public boolean hasMethod() {
                return result.hasMethod();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method getMethod() {
                return result.getMethod();
            }

            public Builder setMethod(com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMethod = true;
                result.method_ = value;
                return this;
            }

            public Builder clearMethod() {
                result.hasMethod = false;
                result.method_ = com.alachisoft.ncache.common.protobuf.CollectionCommandProtocol.CollectionCommand.Method.COLLECTION_CONTAINS;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CollectionContains collectionContains = 3;
            public boolean hasCollectionContains() {
                return result.hasCollectionContains();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains getCollectionContains() {
                return result.getCollectionContains();
            }

            public Builder setCollectionContains(com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCollectionContains = true;
                result.collectionContains_ = value;
                return this;
            }

            public Builder setCollectionContains(com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.Builder builderForValue) {
                result.hasCollectionContains = true;
                result.collectionContains_ = builderForValue.build();
                return this;
            }

            public Builder mergeCollectionContains(com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains value) {
                if (result.hasCollectionContains() &&
                        result.collectionContains_ != com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.getDefaultInstance()) {
                    result.collectionContains_ =
                            com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.newBuilder(result.collectionContains_).mergeFrom(value).buildPartial();
                } else {
                    result.collectionContains_ = value;
                }
                result.hasCollectionContains = true;
                return this;
            }

            public Builder clearCollectionContains() {
                result.hasCollectionContains = false;
                result.collectionContains_ = com.alachisoft.ncache.common.protobuf.CollectionContainsProtocol.CollectionContains.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CollectionGetChunk collectionGetChunk = 4;
            public boolean hasCollectionGetChunk() {
                return result.hasCollectionGetChunk();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk getCollectionGetChunk() {
                return result.getCollectionGetChunk();
            }

            public Builder setCollectionGetChunk(com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCollectionGetChunk = true;
                result.collectionGetChunk_ = value;
                return this;
            }

            public Builder setCollectionGetChunk(com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.Builder builderForValue) {
                result.hasCollectionGetChunk = true;
                result.collectionGetChunk_ = builderForValue.build();
                return this;
            }

            public Builder mergeCollectionGetChunk(com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk value) {
                if (result.hasCollectionGetChunk() &&
                        result.collectionGetChunk_ != com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.getDefaultInstance()) {
                    result.collectionGetChunk_ =
                            com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.newBuilder(result.collectionGetChunk_).mergeFrom(value).buildPartial();
                } else {
                    result.collectionGetChunk_ = value;
                }
                result.hasCollectionGetChunk = true;
                return this;
            }

            public Builder clearCollectionGetChunk() {
                result.hasCollectionGetChunk = false;
                result.collectionGetChunk_ = com.alachisoft.ncache.common.protobuf.CollectionGetChunkProtocol.CollectionGetChunk.getDefaultInstance();
                return this;
            }

            // optional int64 requestId = 7;
            public boolean hasRequestId() {
                return result.hasRequestId();
            }

            public long getRequestId() {
                return result.getRequestId();
            }

            public Builder setRequestId(long value) {
                result.hasRequestId = true;
                result.requestId_ = value;
                return this;
            }

            public Builder clearRequestId() {
                result.hasRequestId = false;
                result.requestId_ = 0L;
                return this;
            }

            // optional string name = 8;
            public boolean hasName() {
                return result.hasName();
            }

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

            public Builder setName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasName = true;
                result.name_ = value;
                return this;
            }

            public Builder clearName() {
                result.hasName = false;
                result.name_ = getDefaultInstance().getName();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.LockInfo lockInfo = 9;
            public boolean hasLockInfo() {
                return result.hasLockInfo();
            }

            public com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo getLockInfo() {
                return result.getLockInfo();
            }

            public Builder setLockInfo(com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasLockInfo = true;
                result.lockInfo_ = value;
                return this;
            }

            public Builder setLockInfo(com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.Builder builderForValue) {
                result.hasLockInfo = true;
                result.lockInfo_ = builderForValue.build();
                return this;
            }

            public Builder mergeLockInfo(com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo value) {
                if (result.hasLockInfo() &&
                        result.lockInfo_ != com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.getDefaultInstance()) {
                    result.lockInfo_ =
                            com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.newBuilder(result.lockInfo_).mergeFrom(value).buildPartial();
                } else {
                    result.lockInfo_ = value;
                }
                result.hasLockInfo = true;
                return this;
            }

            public Builder clearLockInfo() {
                result.hasLockInfo = false;
                result.lockInfo_ = com.alachisoft.ncache.common.protobuf.LockInfoProtocol.LockInfo.getDefaultInstance();
                return this;
            }

            // optional int32 dsWriteOption = 10;
            public boolean hasDsWriteOption() {
                return result.hasDsWriteOption();
            }

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

            public Builder setDsWriteOption(int value) {
                result.hasDsWriteOption = true;
                result.dsWriteOption_ = value;
                return this;
            }

            public Builder clearDsWriteOption() {
                result.hasDsWriteOption = false;
                result.dsWriteOption_ = 0;
                return this;
            }

            // optional string providerName = 11;
            public boolean hasProviderName() {
                return result.hasProviderName();
            }

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

            public Builder setProviderName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasProviderName = true;
                result.providerName_ = value;
                return this;
            }

            public Builder clearProviderName() {
                result.hasProviderName = false;
                result.providerName_ = getDefaultInstance().getProviderName();
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy