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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: CollectionNotifRegCommand.proto

package com.alachisoft.ncache.common.protobuf;

public final class CollectionNotifRegCoomandProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotifRegCommand_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotifRegCommand_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\037CollectionNotifRegCommand.proto\022%com.a" +
                        "lachisoft.ncache.common.protobuf\032\023CacheI" +
                        "temType.proto\"\244\003\n\031CollectionNotifRegComm" +
                        "and\022\021\n\trequestId\030\001 \001(\003\022b\n\007regType\030\002 \001(\0162" +
                        "Q.com.alachisoft.ncache.common.protobuf." +
                        "CollectionNotifRegCommand.RegistrationTy" +
                        "pe\022\025\n\ndatafilter\030\003 \001(\005:\0010\022 \n\022notifyOnExp" +
                        "iration\030\004 \001(\010:\004true\022Z\n\010itemType\030\005 \001(\0162=." +
                        "com.alachisoft.ncache.common.protobuf.Ca" +
                        "cheItemType.ItemType:\tCACHEITEM\022\025\n\raddCa",
                "llbackId\030\006 \001(\021\022\030\n\020updateCallbackId\030\007 \001(\021" +
                        "\022\030\n\020removeCallbackId\030\010 \001(\021\"0\n\020Registrati" +
                        "onType\022\014\n\010REGISTER\020\001\022\016\n\nUNREGISTER\020\002B#B!" +
                        "CollectionNotifRegCoomandProtocol"
        };
        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_CollectionNotifRegCommand_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotifRegCommand_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_CollectionNotifRegCommand_descriptor,
                                new java.lang.String[]{"RequestId", "RegType", "Datafilter", "NotifyOnExpiration", "ItemType", "AddCallbackId", "UpdateCallbackId", "RemoveCallbackId",},
                                com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.class,
                                com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.getDescriptor(),
                        }, assigner);
    }
    private CollectionNotifRegCoomandProtocol() {
    }

    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 CollectionNotifRegCommand extends
            com.google.protobuf.GeneratedMessage {
        // optional int64 requestId = 1;
        public static final int REQUESTID_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionNotifRegCommand.RegistrationType regType = 2;
        public static final int REGTYPE_FIELD_NUMBER = 2;
        // optional int32 datafilter = 3 [default = 0];
        public static final int DATAFILTER_FIELD_NUMBER = 3;
        // optional bool notifyOnExpiration = 4 [default = true];
        public static final int NOTIFYONEXPIRATION_FIELD_NUMBER = 4;
        // optional .com.alachisoft.ncache.common.protobuf.CacheItemType.ItemType itemType = 5 [default = CACHEITEM];
        public static final int ITEMTYPE_FIELD_NUMBER = 5;
        // optional sint32 addCallbackId = 6;
        public static final int ADDCALLBACKID_FIELD_NUMBER = 6;
        // optional sint32 updateCallbackId = 7;
        public static final int UPDATECALLBACKID_FIELD_NUMBER = 7;
        // optional sint32 removeCallbackId = 8;
        public static final int REMOVECALLBACKID_FIELD_NUMBER = 8;
        private static final CollectionNotifRegCommand defaultInstance;

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

        private boolean hasRequestId;
        private long requestId_ = 0L;
        private boolean hasRegType;
        private com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType regType_;
        private boolean hasDatafilter;
        private int datafilter_ = 0;
        private boolean hasNotifyOnExpiration;
        private boolean notifyOnExpiration_ = true;
        private boolean hasItemType;
        private com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType itemType_;
        private boolean hasAddCallbackId;
        private int addCallbackId_ = 0;
        private boolean hasUpdateCallbackId;
        private int updateCallbackId_ = 0;
        private boolean hasRemoveCallbackId;
        private int removeCallbackId_ = 0;
        private int memoizedSerializedSize = -1;

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

        private CollectionNotifRegCommand(boolean noInit) {
        }

        public static CollectionNotifRegCommand getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public CollectionNotifRegCommand getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasRequestId() {
            return hasRequestId;
        }

        public long getRequestId() {
            return requestId_;
        }

        public boolean hasRegType() {
            return hasRegType;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType getRegType() {
            return regType_;
        }

        public boolean hasDatafilter() {
            return hasDatafilter;
        }

        public int getDatafilter() {
            return datafilter_;
        }

        public boolean hasNotifyOnExpiration() {
            return hasNotifyOnExpiration;
        }

        public boolean getNotifyOnExpiration() {
            return notifyOnExpiration_;
        }

        public boolean hasItemType() {
            return hasItemType;
        }

        public com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType getItemType() {
            return itemType_;
        }

        public boolean hasAddCallbackId() {
            return hasAddCallbackId;
        }

        public int getAddCallbackId() {
            return addCallbackId_;
        }

        public boolean hasUpdateCallbackId() {
            return hasUpdateCallbackId;
        }

        public int getUpdateCallbackId() {
            return updateCallbackId_;
        }

        public boolean hasRemoveCallbackId() {
            return hasRemoveCallbackId;
        }

        public int getRemoveCallbackId() {
            return removeCallbackId_;
        }

        private void initFields() {
            regType_ = com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType.REGISTER;
            itemType_ = com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType.CACHEITEM;
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasRequestId()) {
                output.writeInt64(1, getRequestId());
            }
            if (hasRegType()) {
                output.writeEnum(2, getRegType().getNumber());
            }
            if (hasDatafilter()) {
                output.writeInt32(3, getDatafilter());
            }
            if (hasNotifyOnExpiration()) {
                output.writeBool(4, getNotifyOnExpiration());
            }
            if (hasItemType()) {
                output.writeEnum(5, getItemType().getNumber());
            }
            if (hasAddCallbackId()) {
                output.writeSInt32(6, getAddCallbackId());
            }
            if (hasUpdateCallbackId()) {
                output.writeSInt32(7, getUpdateCallbackId());
            }
            if (hasRemoveCallbackId()) {
                output.writeSInt32(8, getRemoveCallbackId());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasRequestId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(1, getRequestId());
            }
            if (hasRegType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(2, getRegType().getNumber());
            }
            if (hasDatafilter()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(3, getDatafilter());
            }
            if (hasNotifyOnExpiration()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBoolSize(4, getNotifyOnExpiration());
            }
            if (hasItemType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(5, getItemType().getNumber());
            }
            if (hasAddCallbackId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeSInt32Size(6, getAddCallbackId());
            }
            if (hasUpdateCallbackId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeSInt32Size(7, getUpdateCallbackId());
            }
            if (hasRemoveCallbackId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeSInt32Size(8, getRemoveCallbackId());
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

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

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

        public enum RegistrationType
                implements com.google.protobuf.ProtocolMessageEnum {
            REGISTER(0, 1),
            UNREGISTER(1, 2),
            ;


            private static final RegistrationType[] VALUES = {
                    REGISTER, UNREGISTER,
            };
            private static com.google.protobuf.Internal.EnumLiteMap
                    internalValueMap =
                    new com.google.protobuf.Internal.EnumLiteMap() {
                        public RegistrationType findValueByNumber(int number) {
                            return RegistrationType.valueOf(number)
                                    ;
                        }
                    };

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

            private final int index;
            private final int value;

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

            public static RegistrationType valueOf(int value) {
                switch (value) {
                    case 1:
                        return REGISTER;
                    case 2:
                        return UNREGISTER;
                    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.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.getDescriptor().getEnumTypes().get(0);
            }

            public static RegistrationType 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.CollectionNotifRegCommand.RegistrationType)
        }

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

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

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

            protected com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand other) {
                if (other == com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.getDefaultInstance())
                    return this;
                if (other.hasRequestId()) {
                    setRequestId(other.getRequestId());
                }
                if (other.hasRegType()) {
                    setRegType(other.getRegType());
                }
                if (other.hasDatafilter()) {
                    setDatafilter(other.getDatafilter());
                }
                if (other.hasNotifyOnExpiration()) {
                    setNotifyOnExpiration(other.getNotifyOnExpiration());
                }
                if (other.hasItemType()) {
                    setItemType(other.getItemType());
                }
                if (other.hasAddCallbackId()) {
                    setAddCallbackId(other.getAddCallbackId());
                }
                if (other.hasUpdateCallbackId()) {
                    setUpdateCallbackId(other.getUpdateCallbackId());
                }
                if (other.hasRemoveCallbackId()) {
                    setRemoveCallbackId(other.getRemoveCallbackId());
                }
                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: {
                            setRequestId(input.readInt64());
                            break;
                        }
                        case 16: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType value = com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(2, rawValue);
                            } else {
                                setRegType(value);
                            }
                            break;
                        }
                        case 24: {
                            setDatafilter(input.readInt32());
                            break;
                        }
                        case 32: {
                            setNotifyOnExpiration(input.readBool());
                            break;
                        }
                        case 40: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType value = com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(5, rawValue);
                            } else {
                                setItemType(value);
                            }
                            break;
                        }
                        case 48: {
                            setAddCallbackId(input.readSInt32());
                            break;
                        }
                        case 56: {
                            setUpdateCallbackId(input.readSInt32());
                            break;
                        }
                        case 64: {
                            setRemoveCallbackId(input.readSInt32());
                            break;
                        }
                    }
                }
            }


            // optional int64 requestId = 1;
            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 .com.alachisoft.ncache.common.protobuf.CollectionNotifRegCommand.RegistrationType regType = 2;
            public boolean hasRegType() {
                return result.hasRegType();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType getRegType() {
                return result.getRegType();
            }

            public Builder setRegType(com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasRegType = true;
                result.regType_ = value;
                return this;
            }

            public Builder clearRegType() {
                result.hasRegType = false;
                result.regType_ = com.alachisoft.ncache.common.protobuf.CollectionNotifRegCoomandProtocol.CollectionNotifRegCommand.RegistrationType.REGISTER;
                return this;
            }

            // optional int32 datafilter = 3 [default = 0];
            public boolean hasDatafilter() {
                return result.hasDatafilter();
            }

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

            public Builder setDatafilter(int value) {
                result.hasDatafilter = true;
                result.datafilter_ = value;
                return this;
            }

            public Builder clearDatafilter() {
                result.hasDatafilter = false;
                result.datafilter_ = 0;
                return this;
            }

            // optional bool notifyOnExpiration = 4 [default = true];
            public boolean hasNotifyOnExpiration() {
                return result.hasNotifyOnExpiration();
            }

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

            public Builder setNotifyOnExpiration(boolean value) {
                result.hasNotifyOnExpiration = true;
                result.notifyOnExpiration_ = value;
                return this;
            }

            public Builder clearNotifyOnExpiration() {
                result.hasNotifyOnExpiration = false;
                result.notifyOnExpiration_ = true;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CacheItemType.ItemType itemType = 5 [default = CACHEITEM];
            public boolean hasItemType() {
                return result.hasItemType();
            }

            public com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType getItemType() {
                return result.getItemType();
            }

            public Builder setItemType(com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasItemType = true;
                result.itemType_ = value;
                return this;
            }

            public Builder clearItemType() {
                result.hasItemType = false;
                result.itemType_ = com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType.CACHEITEM;
                return this;
            }

            // optional sint32 addCallbackId = 6;
            public boolean hasAddCallbackId() {
                return result.hasAddCallbackId();
            }

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

            public Builder setAddCallbackId(int value) {
                result.hasAddCallbackId = true;
                result.addCallbackId_ = value;
                return this;
            }

            public Builder clearAddCallbackId() {
                result.hasAddCallbackId = false;
                result.addCallbackId_ = 0;
                return this;
            }

            // optional sint32 updateCallbackId = 7;
            public boolean hasUpdateCallbackId() {
                return result.hasUpdateCallbackId();
            }

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

            public Builder setUpdateCallbackId(int value) {
                result.hasUpdateCallbackId = true;
                result.updateCallbackId_ = value;
                return this;
            }

            public Builder clearUpdateCallbackId() {
                result.hasUpdateCallbackId = false;
                result.updateCallbackId_ = 0;
                return this;
            }

            // optional sint32 removeCallbackId = 8;
            public boolean hasRemoveCallbackId() {
                return result.hasRemoveCallbackId();
            }

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

            public Builder setRemoveCallbackId(int value) {
                result.hasRemoveCallbackId = true;
                result.removeCallbackId_ = value;
                return this;
            }

            public Builder clearRemoveCallbackId() {
                result.hasRemoveCallbackId = false;
                result.removeCallbackId_ = 0;
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy