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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class DictionaryCommandProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_DictionaryCommand_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_DictionaryCommand_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\027DictionaryCommand.proto\022%com.alachisof" +
                        "t.ncache.common.protobuf\032\016LockInfo.proto" +
                        "\032\023DictionaryAdd.proto\032\023DictionaryGet.pro" +
                        "to\032\026DictionaryRemove.proto\032\030DictionaryCo" +
                        "ntains.proto\"\225\005\n\021DictionaryCommand\022K\n\004ty" +
                        "pe\030\001 \001(\0162=.com.alachisoft.ncache.common." +
                        "protobuf.DictionaryCommand.Type\022K\n\rdicti" +
                        "onaryAdd\030\002 \001(\01324.com.alachisoft.ncache.c" +
                        "ommon.protobuf.DictionaryAdd\022K\n\rdictiona" +
                        "ryGet\030\003 \001(\01324.com.alachisoft.ncache.comm",
                "on.protobuf.DictionaryGet\022Q\n\020dictionaryR" +
                        "emove\030\004 \001(\01327.com.alachisoft.ncache.comm" +
                        "on.protobuf.DictionaryRemove\022U\n\022dictiona" +
                        "ryContains\030\005 \001(\01329.com.alachisoft.ncache" +
                        ".common.protobuf.DictionaryContains\022\021\n\tr" +
                        "equestId\030\006 \001(\003\022\014\n\004name\030\007 \001(\t\022A\n\010lockInfo" +
                        "\030\010 \001(\0132/.com.alachisoft.ncache.common.pr" +
                        "otobuf.LockInfo\022\025\n\rdsWriteOption\030\t \001(\005\022\024" +
                        "\n\014providerName\030\n \001(\t\"^\n\004Type\022\022\n\016DICTIONA" +
                        "RY_ADD\020\001\022\022\n\016DICTIONARY_GET\020\002\022\025\n\021DICTIONA",
                "RY_REMOVE\020\003\022\027\n\023DICTIONARY_CONTAINS\020\004B\033B\031" +
                        "DictionaryCommandProtocol"
        };
        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_DictionaryCommand_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_DictionaryCommand_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_DictionaryCommand_descriptor,
                                new java.lang.String[]{"Type", "DictionaryAdd", "DictionaryGet", "DictionaryRemove", "DictionaryContains", "RequestId", "Name", "LockInfo", "DsWriteOption", "ProviderName",},
                                com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.class,
                                com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.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.DictionaryAddProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.getDescriptor(),
                        }, assigner);
    }
    private DictionaryCommandProtocol() {
    }

    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 DictionaryCommand extends
            com.google.protobuf.GeneratedMessage {
        // optional .com.alachisoft.ncache.common.protobuf.DictionaryCommand.Type type = 1;
        public static final int TYPE_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.DictionaryAdd dictionaryAdd = 2;
        public static final int DICTIONARYADD_FIELD_NUMBER = 2;
        // optional .com.alachisoft.ncache.common.protobuf.DictionaryGet dictionaryGet = 3;
        public static final int DICTIONARYGET_FIELD_NUMBER = 3;
        // optional .com.alachisoft.ncache.common.protobuf.DictionaryRemove dictionaryRemove = 4;
        public static final int DICTIONARYREMOVE_FIELD_NUMBER = 4;
        // optional .com.alachisoft.ncache.common.protobuf.DictionaryContains dictionaryContains = 5;
        public static final int DICTIONARYCONTAINS_FIELD_NUMBER = 5;
        // optional int64 requestId = 6;
        public static final int REQUESTID_FIELD_NUMBER = 6;
        // optional string name = 7;
        public static final int NAME_FIELD_NUMBER = 7;
        // optional .com.alachisoft.ncache.common.protobuf.LockInfo lockInfo = 8;
        public static final int LOCKINFO_FIELD_NUMBER = 8;
        // optional int32 dsWriteOption = 9;
        public static final int DSWRITEOPTION_FIELD_NUMBER = 9;
        // optional string providerName = 10;
        public static final int PROVIDERNAME_FIELD_NUMBER = 10;
        private static final DictionaryCommand defaultInstance;

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

        private boolean hasType;
        private com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.Type type_;
        private boolean hasDictionaryAdd;
        private com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd dictionaryAdd_;
        private boolean hasDictionaryGet;
        private com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet dictionaryGet_;
        private boolean hasDictionaryRemove;
        private com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove dictionaryRemove_;
        private boolean hasDictionaryContains;
        private com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains dictionaryContains_;
        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 DictionaryCommand.newBuilder() to construct.
        private DictionaryCommand() {
            initFields();
        }
        private DictionaryCommand(boolean noInit) {
        }

        public static DictionaryCommand getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public DictionaryCommand getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasType() {
            return hasType;
        }

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

        public boolean hasDictionaryAdd() {
            return hasDictionaryAdd;
        }

        public com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd getDictionaryAdd() {
            return dictionaryAdd_;
        }

        public boolean hasDictionaryGet() {
            return hasDictionaryGet;
        }

        public com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet getDictionaryGet() {
            return dictionaryGet_;
        }

        public boolean hasDictionaryRemove() {
            return hasDictionaryRemove;
        }

        public com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove getDictionaryRemove() {
            return dictionaryRemove_;
        }

        public boolean hasDictionaryContains() {
            return hasDictionaryContains;
        }

        public com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains getDictionaryContains() {
            return dictionaryContains_;
        }

        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.DictionaryCommandProtocol.DictionaryCommand.Type.DICTIONARY_ADD;
            dictionaryAdd_ = com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.getDefaultInstance();
            dictionaryGet_ = com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.getDefaultInstance();
            dictionaryRemove_ = com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.getDefaultInstance();
            dictionaryContains_ = com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.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 (hasDictionaryAdd()) {
                output.writeMessage(2, getDictionaryAdd());
            }
            if (hasDictionaryGet()) {
                output.writeMessage(3, getDictionaryGet());
            }
            if (hasDictionaryRemove()) {
                output.writeMessage(4, getDictionaryRemove());
            }
            if (hasDictionaryContains()) {
                output.writeMessage(5, getDictionaryContains());
            }
            if (hasRequestId()) {
                output.writeInt64(6, getRequestId());
            }
            if (hasName()) {
                output.writeString(7, getName());
            }
            if (hasLockInfo()) {
                output.writeMessage(8, getLockInfo());
            }
            if (hasDsWriteOption()) {
                output.writeInt32(9, getDsWriteOption());
            }
            if (hasProviderName()) {
                output.writeString(10, 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 (hasDictionaryAdd()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(2, getDictionaryAdd());
            }
            if (hasDictionaryGet()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, getDictionaryGet());
            }
            if (hasDictionaryRemove()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(4, getDictionaryRemove());
            }
            if (hasDictionaryContains()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(5, getDictionaryContains());
            }
            if (hasRequestId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(6, getRequestId());
            }
            if (hasName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(7, getName());
            }
            if (hasLockInfo()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(8, getLockInfo());
            }
            if (hasDsWriteOption()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(9, getDsWriteOption());
            }
            if (hasProviderName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(10, 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 {
            DICTIONARY_ADD(0, 1),
            DICTIONARY_GET(1, 2),
            DICTIONARY_REMOVE(2, 3),
            DICTIONARY_CONTAINS(3, 4),
            ;


            private static final Type[] VALUES = {
                    DICTIONARY_ADD, DICTIONARY_GET, DICTIONARY_REMOVE, DICTIONARY_CONTAINS,
            };
            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.DictionaryCommandProtocol.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 DICTIONARY_ADD;
                    case 2:
                        return DICTIONARY_GET;
                    case 3:
                        return DICTIONARY_REMOVE;
                    case 4:
                        return DICTIONARY_CONTAINS;
                    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.DictionaryCommandProtocol.DictionaryCommand.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.DictionaryCommand.Type)
        }

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

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

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

            protected com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand other) {
                if (other == com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.getDefaultInstance())
                    return this;
                if (other.hasType()) {
                    setType(other.getType());
                }
                if (other.hasDictionaryAdd()) {
                    mergeDictionaryAdd(other.getDictionaryAdd());
                }
                if (other.hasDictionaryGet()) {
                    mergeDictionaryGet(other.getDictionaryGet());
                }
                if (other.hasDictionaryRemove()) {
                    mergeDictionaryRemove(other.getDictionaryRemove());
                }
                if (other.hasDictionaryContains()) {
                    mergeDictionaryContains(other.getDictionaryContains());
                }
                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.DictionaryCommandProtocol.DictionaryCommand.Type value = com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.Type.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(1, rawValue);
                            } else {
                                setType(value);
                            }
                            break;
                        }
                        case 18: {
                            com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.Builder subBuilder = com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.newBuilder();
                            if (hasDictionaryAdd()) {
                                subBuilder.mergeFrom(getDictionaryAdd());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setDictionaryAdd(subBuilder.buildPartial());
                            break;
                        }
                        case 26: {
                            com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.Builder subBuilder = com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.newBuilder();
                            if (hasDictionaryGet()) {
                                subBuilder.mergeFrom(getDictionaryGet());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setDictionaryGet(subBuilder.buildPartial());
                            break;
                        }
                        case 34: {
                            com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.Builder subBuilder = com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.newBuilder();
                            if (hasDictionaryRemove()) {
                                subBuilder.mergeFrom(getDictionaryRemove());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setDictionaryRemove(subBuilder.buildPartial());
                            break;
                        }
                        case 42: {
                            com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.Builder subBuilder = com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.newBuilder();
                            if (hasDictionaryContains()) {
                                subBuilder.mergeFrom(getDictionaryContains());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setDictionaryContains(subBuilder.buildPartial());
                            break;
                        }
                        case 48: {
                            setRequestId(input.readInt64());
                            break;
                        }
                        case 58: {
                            setName(input.readString());
                            break;
                        }
                        case 66: {
                            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 72: {
                            setDsWriteOption(input.readInt32());
                            break;
                        }
                        case 82: {
                            setProviderName(input.readString());
                            break;
                        }
                    }
                }
            }


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

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

            public Builder setType(com.alachisoft.ncache.common.protobuf.DictionaryCommandProtocol.DictionaryCommand.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.DictionaryCommandProtocol.DictionaryCommand.Type.DICTIONARY_ADD;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.DictionaryAdd dictionaryAdd = 2;
            public boolean hasDictionaryAdd() {
                return result.hasDictionaryAdd();
            }

            public com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd getDictionaryAdd() {
                return result.getDictionaryAdd();
            }

            public Builder setDictionaryAdd(com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasDictionaryAdd = true;
                result.dictionaryAdd_ = value;
                return this;
            }

            public Builder setDictionaryAdd(com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.Builder builderForValue) {
                result.hasDictionaryAdd = true;
                result.dictionaryAdd_ = builderForValue.build();
                return this;
            }

            public Builder mergeDictionaryAdd(com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd value) {
                if (result.hasDictionaryAdd() &&
                        result.dictionaryAdd_ != com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.getDefaultInstance()) {
                    result.dictionaryAdd_ =
                            com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.newBuilder(result.dictionaryAdd_).mergeFrom(value).buildPartial();
                } else {
                    result.dictionaryAdd_ = value;
                }
                result.hasDictionaryAdd = true;
                return this;
            }

            public Builder clearDictionaryAdd() {
                result.hasDictionaryAdd = false;
                result.dictionaryAdd_ = com.alachisoft.ncache.common.protobuf.DictionaryAddProtocol.DictionaryAdd.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.DictionaryGet dictionaryGet = 3;
            public boolean hasDictionaryGet() {
                return result.hasDictionaryGet();
            }

            public com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet getDictionaryGet() {
                return result.getDictionaryGet();
            }

            public Builder setDictionaryGet(com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasDictionaryGet = true;
                result.dictionaryGet_ = value;
                return this;
            }

            public Builder setDictionaryGet(com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.Builder builderForValue) {
                result.hasDictionaryGet = true;
                result.dictionaryGet_ = builderForValue.build();
                return this;
            }

            public Builder mergeDictionaryGet(com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet value) {
                if (result.hasDictionaryGet() &&
                        result.dictionaryGet_ != com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.getDefaultInstance()) {
                    result.dictionaryGet_ =
                            com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.newBuilder(result.dictionaryGet_).mergeFrom(value).buildPartial();
                } else {
                    result.dictionaryGet_ = value;
                }
                result.hasDictionaryGet = true;
                return this;
            }

            public Builder clearDictionaryGet() {
                result.hasDictionaryGet = false;
                result.dictionaryGet_ = com.alachisoft.ncache.common.protobuf.DictionaryGetProtocol.DictionaryGet.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.DictionaryRemove dictionaryRemove = 4;
            public boolean hasDictionaryRemove() {
                return result.hasDictionaryRemove();
            }

            public com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove getDictionaryRemove() {
                return result.getDictionaryRemove();
            }

            public Builder setDictionaryRemove(com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasDictionaryRemove = true;
                result.dictionaryRemove_ = value;
                return this;
            }

            public Builder setDictionaryRemove(com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.Builder builderForValue) {
                result.hasDictionaryRemove = true;
                result.dictionaryRemove_ = builderForValue.build();
                return this;
            }

            public Builder mergeDictionaryRemove(com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove value) {
                if (result.hasDictionaryRemove() &&
                        result.dictionaryRemove_ != com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.getDefaultInstance()) {
                    result.dictionaryRemove_ =
                            com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.newBuilder(result.dictionaryRemove_).mergeFrom(value).buildPartial();
                } else {
                    result.dictionaryRemove_ = value;
                }
                result.hasDictionaryRemove = true;
                return this;
            }

            public Builder clearDictionaryRemove() {
                result.hasDictionaryRemove = false;
                result.dictionaryRemove_ = com.alachisoft.ncache.common.protobuf.DictionaryRemoveProtocol.DictionaryRemove.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.DictionaryContains dictionaryContains = 5;
            public boolean hasDictionaryContains() {
                return result.hasDictionaryContains();
            }

            public com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains getDictionaryContains() {
                return result.getDictionaryContains();
            }

            public Builder setDictionaryContains(com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasDictionaryContains = true;
                result.dictionaryContains_ = value;
                return this;
            }

            public Builder setDictionaryContains(com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.Builder builderForValue) {
                result.hasDictionaryContains = true;
                result.dictionaryContains_ = builderForValue.build();
                return this;
            }

            public Builder mergeDictionaryContains(com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains value) {
                if (result.hasDictionaryContains() &&
                        result.dictionaryContains_ != com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.getDefaultInstance()) {
                    result.dictionaryContains_ =
                            com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.newBuilder(result.dictionaryContains_).mergeFrom(value).buildPartial();
                } else {
                    result.dictionaryContains_ = value;
                }
                result.hasDictionaryContains = true;
                return this;
            }

            public Builder clearDictionaryContains() {
                result.hasDictionaryContains = false;
                result.dictionaryContains_ = com.alachisoft.ncache.common.protobuf.DictionaryContainsProtocol.DictionaryContains.getDefaultInstance();
                return this;
            }

            // optional int64 requestId = 6;
            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 = 7;
            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 = 8;
            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 = 9;
            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 = 10;
            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.DictionaryCommand)
        }

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy