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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class HashSetCommandProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_HashSetCommand_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_HashSetCommand_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\024HashSetCommand.proto\022%com.alachisoft.n" +
                        "cache.common.protobuf\032\016LockInfo.proto\032\020H" +
                        "ashSetAdd.proto\032\026HashSetGetRandom.proto\032" +
                        "\031HashSetRemoveRandom.proto\032\023HashSetRemov" +
                        "e.proto\032\025HashSetContains.proto\"\362\005\n\016HashS" +
                        "etCommand\022H\n\004type\030\001 \001(\0162:.com.alachisoft" +
                        ".ncache.common.protobuf.HashSetCommand.T" +
                        "ype\022E\n\nhashSetAdd\030\002 \001(\01321.com.alachisoft" +
                        ".ncache.common.protobuf.HashSetAdd\022Q\n\020ha" +
                        "shSetGetRandom\030\003 \001(\01327.com.alachisoft.nc",
                "ache.common.protobuf.HashSetGetRandom\022K\n" +
                        "\rhashSetRemove\030\004 \001(\01324.com.alachisoft.nc" +
                        "ache.common.protobuf.HashSetRemove\022O\n\017ha" +
                        "shSetContains\030\005 \001(\01326.com.alachisoft.nca" +
                        "che.common.protobuf.HashSetContains\022W\n\023h" +
                        "ashSetRemoveRandom\030\006 \001(\0132:.com.alachisof" +
                        "t.ncache.common.protobuf.HashSetRemoveRa" +
                        "ndom\022\021\n\trequestId\030\007 \001(\003\022\014\n\004name\030\010 \001(\t\022A\n" +
                        "\010lockInfo\030\t \001(\0132/.com.alachisoft.ncache." +
                        "common.protobuf.LockInfo\022\025\n\rdsWriteOptio",
                "n\030\n \001(\005\022\024\n\014providerName\030\013 \001(\t\"t\n\004Type\022\017\n" +
                        "\013HASHSET_ADD\020\001\022\026\n\022HASHSET_GET_RANDOM\020\002\022\022" +
                        "\n\016HASHSET_REMOVE\020\003\022\024\n\020HASHSET_CONTAINS\020\004" +
                        "\022\031\n\025HASHSET_REMOVE_RANDOM\020\005B\030B\026HashSetCo" +
                        "mmandProtocol"
        };
        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_HashSetCommand_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_HashSetCommand_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_HashSetCommand_descriptor,
                                new java.lang.String[]{"Type", "HashSetAdd", "HashSetGetRandom", "HashSetRemove", "HashSetContains", "HashSetRemoveRandom", "RequestId", "Name", "LockInfo", "DsWriteOption", "ProviderName",},
                                com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.class,
                                com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.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.HashSetAddProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.getDescriptor(),
                        }, assigner);
    }
    private HashSetCommandProtocol() {
    }

    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 HashSetCommand extends
            com.google.protobuf.GeneratedMessage {
        // optional .com.alachisoft.ncache.common.protobuf.HashSetCommand.Type type = 1;
        public static final int TYPE_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.HashSetAdd hashSetAdd = 2;
        public static final int HASHSETADD_FIELD_NUMBER = 2;
        // optional .com.alachisoft.ncache.common.protobuf.HashSetGetRandom hashSetGetRandom = 3;
        public static final int HASHSETGETRANDOM_FIELD_NUMBER = 3;
        // optional .com.alachisoft.ncache.common.protobuf.HashSetRemove hashSetRemove = 4;
        public static final int HASHSETREMOVE_FIELD_NUMBER = 4;
        // optional .com.alachisoft.ncache.common.protobuf.HashSetContains hashSetContains = 5;
        public static final int HASHSETCONTAINS_FIELD_NUMBER = 5;
        // optional .com.alachisoft.ncache.common.protobuf.HashSetRemoveRandom hashSetRemoveRandom = 6;
        public static final int HASHSETREMOVERANDOM_FIELD_NUMBER = 6;
        // 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 HashSetCommand defaultInstance;

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

        private boolean hasType;
        private com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.Type type_;
        private boolean hasHashSetAdd;
        private com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd hashSetAdd_;
        private boolean hasHashSetGetRandom;
        private com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom hashSetGetRandom_;
        private boolean hasHashSetRemove;
        private com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove hashSetRemove_;
        private boolean hasHashSetContains;
        private com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains hashSetContains_;
        private boolean hasHashSetRemoveRandom;
        private com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom hashSetRemoveRandom_;
        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 HashSetCommand.newBuilder() to construct.
        private HashSetCommand() {
            initFields();
        }

        private HashSetCommand(boolean noInit) {
        }

        public static HashSetCommand getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public HashSetCommand getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasType() {
            return hasType;
        }

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

        public boolean hasHashSetAdd() {
            return hasHashSetAdd;
        }

        public com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd getHashSetAdd() {
            return hashSetAdd_;
        }

        public boolean hasHashSetGetRandom() {
            return hasHashSetGetRandom;
        }

        public com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom getHashSetGetRandom() {
            return hashSetGetRandom_;
        }

        public boolean hasHashSetRemove() {
            return hasHashSetRemove;
        }

        public com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove getHashSetRemove() {
            return hashSetRemove_;
        }

        public boolean hasHashSetContains() {
            return hasHashSetContains;
        }

        public com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains getHashSetContains() {
            return hashSetContains_;
        }

        public boolean hasHashSetRemoveRandom() {
            return hasHashSetRemoveRandom;
        }

        public com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom getHashSetRemoveRandom() {
            return hashSetRemoveRandom_;
        }

        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.HashSetCommandProtocol.HashSetCommand.Type.HASHSET_ADD;
            hashSetAdd_ = com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.getDefaultInstance();
            hashSetGetRandom_ = com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.getDefaultInstance();
            hashSetRemove_ = com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.getDefaultInstance();
            hashSetContains_ = com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.getDefaultInstance();
            hashSetRemoveRandom_ = com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.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 (hasHashSetAdd()) {
                output.writeMessage(2, getHashSetAdd());
            }
            if (hasHashSetGetRandom()) {
                output.writeMessage(3, getHashSetGetRandom());
            }
            if (hasHashSetRemove()) {
                output.writeMessage(4, getHashSetRemove());
            }
            if (hasHashSetContains()) {
                output.writeMessage(5, getHashSetContains());
            }
            if (hasHashSetRemoveRandom()) {
                output.writeMessage(6, getHashSetRemoveRandom());
            }
            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 (hasHashSetAdd()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(2, getHashSetAdd());
            }
            if (hasHashSetGetRandom()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, getHashSetGetRandom());
            }
            if (hasHashSetRemove()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(4, getHashSetRemove());
            }
            if (hasHashSetContains()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(5, getHashSetContains());
            }
            if (hasHashSetRemoveRandom()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(6, getHashSetRemoveRandom());
            }
            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 {
            HASHSET_ADD(0, 1),
            HASHSET_GET_RANDOM(1, 2),
            HASHSET_REMOVE(2, 3),
            HASHSET_CONTAINS(3, 4),
            HASHSET_REMOVE_RANDOM(4, 5),
            ;


            private static final Type[] VALUES = {
                    HASHSET_ADD, HASHSET_GET_RANDOM, HASHSET_REMOVE, HASHSET_CONTAINS, HASHSET_REMOVE_RANDOM,
            };
            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.HashSetCommandProtocol.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 HASHSET_ADD;
                    case 2:
                        return HASHSET_GET_RANDOM;
                    case 3:
                        return HASHSET_REMOVE;
                    case 4:
                        return HASHSET_CONTAINS;
                    case 5:
                        return HASHSET_REMOVE_RANDOM;
                    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.HashSetCommandProtocol.HashSetCommand.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.HashSetCommand.Type)
        }

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

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

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

            protected com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand other) {
                if (other == com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.getDefaultInstance())
                    return this;
                if (other.hasType()) {
                    setType(other.getType());
                }
                if (other.hasHashSetAdd()) {
                    mergeHashSetAdd(other.getHashSetAdd());
                }
                if (other.hasHashSetGetRandom()) {
                    mergeHashSetGetRandom(other.getHashSetGetRandom());
                }
                if (other.hasHashSetRemove()) {
                    mergeHashSetRemove(other.getHashSetRemove());
                }
                if (other.hasHashSetContains()) {
                    mergeHashSetContains(other.getHashSetContains());
                }
                if (other.hasHashSetRemoveRandom()) {
                    mergeHashSetRemoveRandom(other.getHashSetRemoveRandom());
                }
                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.HashSetCommandProtocol.HashSetCommand.Type value = com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.Type.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(1, rawValue);
                            } else {
                                setType(value);
                            }
                            break;
                        }
                        case 18: {
                            com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.Builder subBuilder = com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.newBuilder();
                            if (hasHashSetAdd()) {
                                subBuilder.mergeFrom(getHashSetAdd());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setHashSetAdd(subBuilder.buildPartial());
                            break;
                        }
                        case 26: {
                            com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.Builder subBuilder = com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.newBuilder();
                            if (hasHashSetGetRandom()) {
                                subBuilder.mergeFrom(getHashSetGetRandom());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setHashSetGetRandom(subBuilder.buildPartial());
                            break;
                        }
                        case 34: {
                            com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.Builder subBuilder = com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.newBuilder();
                            if (hasHashSetRemove()) {
                                subBuilder.mergeFrom(getHashSetRemove());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setHashSetRemove(subBuilder.buildPartial());
                            break;
                        }
                        case 42: {
                            com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.Builder subBuilder = com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.newBuilder();
                            if (hasHashSetContains()) {
                                subBuilder.mergeFrom(getHashSetContains());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setHashSetContains(subBuilder.buildPartial());
                            break;
                        }
                        case 50: {
                            com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.Builder subBuilder = com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.newBuilder();
                            if (hasHashSetRemoveRandom()) {
                                subBuilder.mergeFrom(getHashSetRemoveRandom());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setHashSetRemoveRandom(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.HashSetCommand.Type type = 1;
            public boolean hasType() {
                return result.hasType();
            }

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

            public Builder setType(com.alachisoft.ncache.common.protobuf.HashSetCommandProtocol.HashSetCommand.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.HashSetCommandProtocol.HashSetCommand.Type.HASHSET_ADD;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.HashSetAdd hashSetAdd = 2;
            public boolean hasHashSetAdd() {
                return result.hasHashSetAdd();
            }

            public com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd getHashSetAdd() {
                return result.getHashSetAdd();
            }

            public Builder setHashSetAdd(com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasHashSetAdd = true;
                result.hashSetAdd_ = value;
                return this;
            }

            public Builder setHashSetAdd(com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.Builder builderForValue) {
                result.hasHashSetAdd = true;
                result.hashSetAdd_ = builderForValue.build();
                return this;
            }

            public Builder mergeHashSetAdd(com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd value) {
                if (result.hasHashSetAdd() &&
                        result.hashSetAdd_ != com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.getDefaultInstance()) {
                    result.hashSetAdd_ =
                            com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.newBuilder(result.hashSetAdd_).mergeFrom(value).buildPartial();
                } else {
                    result.hashSetAdd_ = value;
                }
                result.hasHashSetAdd = true;
                return this;
            }

            public Builder clearHashSetAdd() {
                result.hasHashSetAdd = false;
                result.hashSetAdd_ = com.alachisoft.ncache.common.protobuf.HashSetAddProtocol.HashSetAdd.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.HashSetGetRandom hashSetGetRandom = 3;
            public boolean hasHashSetGetRandom() {
                return result.hasHashSetGetRandom();
            }

            public com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom getHashSetGetRandom() {
                return result.getHashSetGetRandom();
            }

            public Builder setHashSetGetRandom(com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasHashSetGetRandom = true;
                result.hashSetGetRandom_ = value;
                return this;
            }

            public Builder setHashSetGetRandom(com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.Builder builderForValue) {
                result.hasHashSetGetRandom = true;
                result.hashSetGetRandom_ = builderForValue.build();
                return this;
            }

            public Builder mergeHashSetGetRandom(com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom value) {
                if (result.hasHashSetGetRandom() &&
                        result.hashSetGetRandom_ != com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.getDefaultInstance()) {
                    result.hashSetGetRandom_ =
                            com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.newBuilder(result.hashSetGetRandom_).mergeFrom(value).buildPartial();
                } else {
                    result.hashSetGetRandom_ = value;
                }
                result.hasHashSetGetRandom = true;
                return this;
            }

            public Builder clearHashSetGetRandom() {
                result.hasHashSetGetRandom = false;
                result.hashSetGetRandom_ = com.alachisoft.ncache.common.protobuf.HashSetGetRandomProtocol.HashSetGetRandom.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.HashSetRemove hashSetRemove = 4;
            public boolean hasHashSetRemove() {
                return result.hasHashSetRemove();
            }

            public com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove getHashSetRemove() {
                return result.getHashSetRemove();
            }

            public Builder setHashSetRemove(com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasHashSetRemove = true;
                result.hashSetRemove_ = value;
                return this;
            }

            public Builder setHashSetRemove(com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.Builder builderForValue) {
                result.hasHashSetRemove = true;
                result.hashSetRemove_ = builderForValue.build();
                return this;
            }

            public Builder mergeHashSetRemove(com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove value) {
                if (result.hasHashSetRemove() &&
                        result.hashSetRemove_ != com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.getDefaultInstance()) {
                    result.hashSetRemove_ =
                            com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.newBuilder(result.hashSetRemove_).mergeFrom(value).buildPartial();
                } else {
                    result.hashSetRemove_ = value;
                }
                result.hasHashSetRemove = true;
                return this;
            }

            public Builder clearHashSetRemove() {
                result.hasHashSetRemove = false;
                result.hashSetRemove_ = com.alachisoft.ncache.common.protobuf.HashSetRemoveProtocol.HashSetRemove.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.HashSetContains hashSetContains = 5;
            public boolean hasHashSetContains() {
                return result.hasHashSetContains();
            }

            public com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains getHashSetContains() {
                return result.getHashSetContains();
            }

            public Builder setHashSetContains(com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasHashSetContains = true;
                result.hashSetContains_ = value;
                return this;
            }

            public Builder setHashSetContains(com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.Builder builderForValue) {
                result.hasHashSetContains = true;
                result.hashSetContains_ = builderForValue.build();
                return this;
            }

            public Builder mergeHashSetContains(com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains value) {
                if (result.hasHashSetContains() &&
                        result.hashSetContains_ != com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.getDefaultInstance()) {
                    result.hashSetContains_ =
                            com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.newBuilder(result.hashSetContains_).mergeFrom(value).buildPartial();
                } else {
                    result.hashSetContains_ = value;
                }
                result.hasHashSetContains = true;
                return this;
            }

            public Builder clearHashSetContains() {
                result.hasHashSetContains = false;
                result.hashSetContains_ = com.alachisoft.ncache.common.protobuf.HashSetContiansProtocol.HashSetContains.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.HashSetRemoveRandom hashSetRemoveRandom = 6;
            public boolean hasHashSetRemoveRandom() {
                return result.hasHashSetRemoveRandom();
            }

            public com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom getHashSetRemoveRandom() {
                return result.getHashSetRemoveRandom();
            }

            public Builder setHashSetRemoveRandom(com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasHashSetRemoveRandom = true;
                result.hashSetRemoveRandom_ = value;
                return this;
            }

            public Builder setHashSetRemoveRandom(com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.Builder builderForValue) {
                result.hasHashSetRemoveRandom = true;
                result.hashSetRemoveRandom_ = builderForValue.build();
                return this;
            }

            public Builder mergeHashSetRemoveRandom(com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom value) {
                if (result.hasHashSetRemoveRandom() &&
                        result.hashSetRemoveRandom_ != com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.getDefaultInstance()) {
                    result.hashSetRemoveRandom_ =
                            com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.newBuilder(result.hashSetRemoveRandom_).mergeFrom(value).buildPartial();
                } else {
                    result.hashSetRemoveRandom_ = value;
                }
                result.hasHashSetRemoveRandom = true;
                return this;
            }

            public Builder clearHashSetRemoveRandom() {
                result.hasHashSetRemoveRandom = false;
                result.hashSetRemoveRandom_ = com.alachisoft.ncache.common.protobuf.HashSetRemoveRandomProtocol.HashSetRemoveRandom.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.HashSetCommand)
        }

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy