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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class CollectionEventMessageProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_CollectionEventMessage_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_CollectionEventMessage_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\034CollectionEventMessage.proto\022%com.alac" +
                        "hisoft.ncache.common.protobuf\032\rEventId.p" +
                        "roto\032\023CacheItemType.proto\032\024CollectionIte" +
                        "m.proto\"\364\004\n\026CollectionEventMessage\022?\n\007ev" +
                        "entId\030\001 \001(\0132..com.alachisoft.ncache.comm" +
                        "on.protobuf.EventId\022\023\n\013callbackIds\030\002 \003(\021" +
                        "\022\026\n\016collectionName\030\003 \001(\t\022M\n\016collectionIt" +
                        "em\030\004 \001(\01325.com.alachisoft.ncache.common." +
                        "protobuf.CollectionItem\022P\n\021oldCollection" +
                        "Item\030\005 \001(\01325.com.alachisoft.ncache.commo",
                "n.protobuf.CollectionItem\022\"\n\032collectionE" +
                        "ventDataFilters\030\006 \003(\021\022o\n\teventType\030\007 \001(\016" +
                        "2G.com.alachisoft.ncache.common.protobuf" +
                        ".CollectionEventMessage.EventType:\023ITEM_" +
                        "ADDED_CALLBACK\022Z\n\010itemType\030\010 \001(\0162=.com.a" +
                        "lachisoft.ncache.common.protobuf.CacheIt" +
                        "emType.ItemType:\tCACHEITEM\"Z\n\tEventType\022" +
                        "\027\n\023ITEM_ADDED_CALLBACK\020\001\022\031\n\025ITEM_UPDATED" +
                        "_CALLBACK\020\002\022\031\n\025ITEM_REMOVED_CALLBACK\020\003B " +
                        "B\036CollectionEventMessageProtocol"
        };
        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_CollectionEventMessage_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_CollectionEventMessage_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_CollectionEventMessage_descriptor,
                                new java.lang.String[]{"EventId", "CallbackIds", "CollectionName", "CollectionItem", "OldCollectionItem", "CollectionEventDataFilters", "EventType", "ItemType",},
                                com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.class,
                                com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.EventIdProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.getDescriptor(),
                        }, assigner);
    }
    private CollectionEventMessageProtocol() {
    }

    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 CollectionEventMessage extends
            com.google.protobuf.GeneratedMessage {
        // optional .com.alachisoft.ncache.common.protobuf.EventId eventId = 1;
        public static final int EVENTID_FIELD_NUMBER = 1;
        // repeated sint32 callbackIds = 2;
        public static final int CALLBACKIDS_FIELD_NUMBER = 2;
        // optional string collectionName = 3;
        public static final int COLLECTIONNAME_FIELD_NUMBER = 3;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionItem collectionItem = 4;
        public static final int COLLECTIONITEM_FIELD_NUMBER = 4;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionItem oldCollectionItem = 5;
        public static final int OLDCOLLECTIONITEM_FIELD_NUMBER = 5;
        // repeated sint32 collectionEventDataFilters = 6;
        public static final int COLLECTIONEVENTDATAFILTERS_FIELD_NUMBER = 6;
        // optional .com.alachisoft.ncache.common.protobuf.CollectionEventMessage.EventType eventType = 7 [default = ITEM_ADDED_CALLBACK];
        public static final int EVENTTYPE_FIELD_NUMBER = 7;
        // optional .com.alachisoft.ncache.common.protobuf.CacheItemType.ItemType itemType = 8 [default = CACHEITEM];
        public static final int ITEMTYPE_FIELD_NUMBER = 8;
        private static final CollectionEventMessage defaultInstance;

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

        private boolean hasEventId;
        private com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId eventId_;
        private java.util.List callbackIds_ =
                java.util.Collections.emptyList();
        private boolean hasCollectionName;
        private java.lang.String collectionName_ = "";
        private boolean hasCollectionItem;
        private com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem collectionItem_;
        private boolean hasOldCollectionItem;
        private com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem oldCollectionItem_;
        private java.util.List collectionEventDataFilters_ =
                java.util.Collections.emptyList();
        private boolean hasEventType;
        private com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType eventType_;
        private boolean hasItemType;
        private com.alachisoft.ncache.common.protobuf.CacheItemTypeProtocol.CacheItemType.ItemType itemType_;
        private int memoizedSerializedSize = -1;
        // Use CollectionEventMessage.newBuilder() to construct.
        private CollectionEventMessage() {
            initFields();
        }

        private CollectionEventMessage(boolean noInit) {
        }

        public static CollectionEventMessage getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public CollectionEventMessage getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasEventId() {
            return hasEventId;
        }

        public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEventId() {
            return eventId_;
        }

        public java.util.List getCallbackIdsList() {
            return callbackIds_;
        }

        public int getCallbackIdsCount() {
            return callbackIds_.size();
        }

        public int getCallbackIds(int index) {
            return callbackIds_.get(index);
        }

        public boolean hasCollectionName() {
            return hasCollectionName;
        }

        public java.lang.String getCollectionName() {
            return collectionName_;
        }

        public boolean hasCollectionItem() {
            return hasCollectionItem;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem getCollectionItem() {
            return collectionItem_;
        }

        public boolean hasOldCollectionItem() {
            return hasOldCollectionItem;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem getOldCollectionItem() {
            return oldCollectionItem_;
        }

        public java.util.List getCollectionEventDataFiltersList() {
            return collectionEventDataFilters_;
        }

        public int getCollectionEventDataFiltersCount() {
            return collectionEventDataFilters_.size();
        }

        public int getCollectionEventDataFilters(int index) {
            return collectionEventDataFilters_.get(index);
        }

        public boolean hasEventType() {
            return hasEventType;
        }

        public com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType getEventType() {
            return eventType_;
        }

        public boolean hasItemType() {
            return hasItemType;
        }

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

        private void initFields() {
            eventId_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
            collectionItem_ = com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.getDefaultInstance();
            oldCollectionItem_ = com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.getDefaultInstance();
            eventType_ = com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType.ITEM_ADDED_CALLBACK;
            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 (hasEventId()) {
                output.writeMessage(1, getEventId());
            }
            for (int element : getCallbackIdsList()) {
                output.writeSInt32(2, element);
            }
            if (hasCollectionName()) {
                output.writeString(3, getCollectionName());
            }
            if (hasCollectionItem()) {
                output.writeMessage(4, getCollectionItem());
            }
            if (hasOldCollectionItem()) {
                output.writeMessage(5, getOldCollectionItem());
            }
            for (int element : getCollectionEventDataFiltersList()) {
                output.writeSInt32(6, element);
            }
            if (hasEventType()) {
                output.writeEnum(7, getEventType().getNumber());
            }
            if (hasItemType()) {
                output.writeEnum(8, getItemType().getNumber());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasEventId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(1, getEventId());
            }
            {
                int dataSize = 0;
                for (int element : getCallbackIdsList()) {
                    dataSize += com.google.protobuf.CodedOutputStream
                            .computeSInt32SizeNoTag(element);
                }
                size += dataSize;
                size += 1 * getCallbackIdsList().size();
            }
            if (hasCollectionName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(3, getCollectionName());
            }
            if (hasCollectionItem()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(4, getCollectionItem());
            }
            if (hasOldCollectionItem()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(5, getOldCollectionItem());
            }
            {
                int dataSize = 0;
                for (int element : getCollectionEventDataFiltersList()) {
                    dataSize += com.google.protobuf.CodedOutputStream
                            .computeSInt32SizeNoTag(element);
                }
                size += dataSize;
                size += 1 * getCollectionEventDataFiltersList().size();
            }
            if (hasEventType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(7, getEventType().getNumber());
            }
            if (hasItemType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(8, getItemType().getNumber());
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

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

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

        public enum EventType
                implements com.google.protobuf.ProtocolMessageEnum {
            ITEM_ADDED_CALLBACK(0, 1),
            ITEM_UPDATED_CALLBACK(1, 2),
            ITEM_REMOVED_CALLBACK(2, 3),
            ;


            private static final EventType[] VALUES = {
                    ITEM_ADDED_CALLBACK, ITEM_UPDATED_CALLBACK, ITEM_REMOVED_CALLBACK,
            };
            private static com.google.protobuf.Internal.EnumLiteMap
                    internalValueMap =
                    new com.google.protobuf.Internal.EnumLiteMap() {
                        public EventType findValueByNumber(int number) {
                            return EventType.valueOf(number)
                                    ;
                        }
                    };

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

            private final int index;
            private final int value;

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

            public static EventType valueOf(int value) {
                switch (value) {
                    case 1:
                        return ITEM_ADDED_CALLBACK;
                    case 2:
                        return ITEM_UPDATED_CALLBACK;
                    case 3:
                        return ITEM_REMOVED_CALLBACK;
                    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.CollectionEventMessageProtocol.CollectionEventMessage.getDescriptor().getEnumTypes().get(0);
            }

            public static EventType 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.CollectionEventMessage.EventType)
        }

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

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

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

            protected com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.getDefaultInstance();
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage buildPartial() {
                if (result == null) {
                    throw new IllegalStateException(
                            "build() has already been called on this Builder.");
                }
                if (result.callbackIds_ != java.util.Collections.EMPTY_LIST) {
                    result.callbackIds_ =
                            java.util.Collections.unmodifiableList(result.callbackIds_);
                }
                if (result.collectionEventDataFilters_ != java.util.Collections.EMPTY_LIST) {
                    result.collectionEventDataFilters_ =
                            java.util.Collections.unmodifiableList(result.collectionEventDataFilters_);
                }
                com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage returnMe = result;
                result = null;
                return returnMe;
            }

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage other) {
                if (other == com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.getDefaultInstance())
                    return this;
                if (other.hasEventId()) {
                    mergeEventId(other.getEventId());
                }
                if (!other.callbackIds_.isEmpty()) {
                    if (result.callbackIds_.isEmpty()) {
                        result.callbackIds_ = new java.util.ArrayList();
                    }
                    result.callbackIds_.addAll(other.callbackIds_);
                }
                if (other.hasCollectionName()) {
                    setCollectionName(other.getCollectionName());
                }
                if (other.hasCollectionItem()) {
                    mergeCollectionItem(other.getCollectionItem());
                }
                if (other.hasOldCollectionItem()) {
                    mergeOldCollectionItem(other.getOldCollectionItem());
                }
                if (!other.collectionEventDataFilters_.isEmpty()) {
                    if (result.collectionEventDataFilters_.isEmpty()) {
                        result.collectionEventDataFilters_ = new java.util.ArrayList();
                    }
                    result.collectionEventDataFilters_.addAll(other.collectionEventDataFilters_);
                }
                if (other.hasEventType()) {
                    setEventType(other.getEventType());
                }
                if (other.hasItemType()) {
                    setItemType(other.getItemType());
                }
                this.mergeUnknownFields(other.getUnknownFields());
                return this;
            }

            public Builder mergeFrom(
                    com.google.protobuf.CodedInputStream input,
                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws java.io.IOException {
                com.google.protobuf.UnknownFieldSet.Builder unknownFields =
                        com.google.protobuf.UnknownFieldSet.newBuilder(
                                this.getUnknownFields());
                while (true) {
                    int tag = input.readTag();
                    switch (tag) {
                        case 0:
                            this.setUnknownFields(unknownFields.build());
                            return this;
                        default: {
                            if (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                this.setUnknownFields(unknownFields.build());
                                return this;
                            }
                            break;
                        }
                        case 10: {
                            com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder subBuilder = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder();
                            if (hasEventId()) {
                                subBuilder.mergeFrom(getEventId());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setEventId(subBuilder.buildPartial());
                            break;
                        }
                        case 16: {
                            addCallbackIds(input.readSInt32());
                            break;
                        }
                        case 18: {
                            int length = input.readRawVarint32();
                            int limit = input.pushLimit(length);
                            while (input.getBytesUntilLimit() > 0) {
                                addCallbackIds(input.readSInt32());
                            }
                            input.popLimit(limit);
                            break;
                        }
                        case 26: {
                            setCollectionName(input.readString());
                            break;
                        }
                        case 34: {
                            com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.newBuilder();
                            if (hasCollectionItem()) {
                                subBuilder.mergeFrom(getCollectionItem());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setCollectionItem(subBuilder.buildPartial());
                            break;
                        }
                        case 42: {
                            com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.Builder subBuilder = com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.newBuilder();
                            if (hasOldCollectionItem()) {
                                subBuilder.mergeFrom(getOldCollectionItem());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setOldCollectionItem(subBuilder.buildPartial());
                            break;
                        }
                        case 48: {
                            addCollectionEventDataFilters(input.readSInt32());
                            break;
                        }
                        case 50: {
                            int length = input.readRawVarint32();
                            int limit = input.pushLimit(length);
                            while (input.getBytesUntilLimit() > 0) {
                                addCollectionEventDataFilters(input.readSInt32());
                            }
                            input.popLimit(limit);
                            break;
                        }
                        case 56: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType value = com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(7, rawValue);
                            } else {
                                setEventType(value);
                            }
                            break;
                        }
                        case 64: {
                            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(8, rawValue);
                            } else {
                                setItemType(value);
                            }
                            break;
                        }
                    }
                }
            }


            // optional .com.alachisoft.ncache.common.protobuf.EventId eventId = 1;
            public boolean hasEventId() {
                return result.hasEventId();
            }

            public com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId getEventId() {
                return result.getEventId();
            }

            public Builder setEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasEventId = true;
                result.eventId_ = value;
                return this;
            }

            public Builder setEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.Builder builderForValue) {
                result.hasEventId = true;
                result.eventId_ = builderForValue.build();
                return this;
            }

            public Builder mergeEventId(com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId value) {
                if (result.hasEventId() &&
                        result.eventId_ != com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance()) {
                    result.eventId_ =
                            com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.newBuilder(result.eventId_).mergeFrom(value).buildPartial();
                } else {
                    result.eventId_ = value;
                }
                result.hasEventId = true;
                return this;
            }

            public Builder clearEventId() {
                result.hasEventId = false;
                result.eventId_ = com.alachisoft.ncache.common.protobuf.EventIdProtocol.EventId.getDefaultInstance();
                return this;
            }

            // repeated sint32 callbackIds = 2;
            public java.util.List getCallbackIdsList() {
                return java.util.Collections.unmodifiableList(result.callbackIds_);
            }

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

            public int getCallbackIds(int index) {
                return result.getCallbackIds(index);
            }

            public Builder setCallbackIds(int index, int value) {
                result.callbackIds_.set(index, value);
                return this;
            }

            public Builder addCallbackIds(int value) {
                if (result.callbackIds_.isEmpty()) {
                    result.callbackIds_ = new java.util.ArrayList();
                }
                result.callbackIds_.add(value);
                return this;
            }

            public Builder addAllCallbackIds(
                    java.lang.Iterable values) {
                if (result.callbackIds_.isEmpty()) {
                    result.callbackIds_ = new java.util.ArrayList();
                }
                super.addAll(values, result.callbackIds_);
                return this;
            }

            public Builder clearCallbackIds() {
                result.callbackIds_ = java.util.Collections.emptyList();
                return this;
            }

            // optional string collectionName = 3;
            public boolean hasCollectionName() {
                return result.hasCollectionName();
            }

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

            public Builder setCollectionName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCollectionName = true;
                result.collectionName_ = value;
                return this;
            }

            public Builder clearCollectionName() {
                result.hasCollectionName = false;
                result.collectionName_ = getDefaultInstance().getCollectionName();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CollectionItem collectionItem = 4;
            public boolean hasCollectionItem() {
                return result.hasCollectionItem();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem getCollectionItem() {
                return result.getCollectionItem();
            }

            public Builder setCollectionItem(com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasCollectionItem = true;
                result.collectionItem_ = value;
                return this;
            }

            public Builder setCollectionItem(com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.Builder builderForValue) {
                result.hasCollectionItem = true;
                result.collectionItem_ = builderForValue.build();
                return this;
            }

            public Builder mergeCollectionItem(com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem value) {
                if (result.hasCollectionItem() &&
                        result.collectionItem_ != com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.getDefaultInstance()) {
                    result.collectionItem_ =
                            com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.newBuilder(result.collectionItem_).mergeFrom(value).buildPartial();
                } else {
                    result.collectionItem_ = value;
                }
                result.hasCollectionItem = true;
                return this;
            }

            public Builder clearCollectionItem() {
                result.hasCollectionItem = false;
                result.collectionItem_ = com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CollectionItem oldCollectionItem = 5;
            public boolean hasOldCollectionItem() {
                return result.hasOldCollectionItem();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem getOldCollectionItem() {
                return result.getOldCollectionItem();
            }

            public Builder setOldCollectionItem(com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasOldCollectionItem = true;
                result.oldCollectionItem_ = value;
                return this;
            }

            public Builder setOldCollectionItem(com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.Builder builderForValue) {
                result.hasOldCollectionItem = true;
                result.oldCollectionItem_ = builderForValue.build();
                return this;
            }

            public Builder mergeOldCollectionItem(com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem value) {
                if (result.hasOldCollectionItem() &&
                        result.oldCollectionItem_ != com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.getDefaultInstance()) {
                    result.oldCollectionItem_ =
                            com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.newBuilder(result.oldCollectionItem_).mergeFrom(value).buildPartial();
                } else {
                    result.oldCollectionItem_ = value;
                }
                result.hasOldCollectionItem = true;
                return this;
            }

            public Builder clearOldCollectionItem() {
                result.hasOldCollectionItem = false;
                result.oldCollectionItem_ = com.alachisoft.ncache.common.protobuf.CollectionItemProtocol.CollectionItem.getDefaultInstance();
                return this;
            }

            // repeated sint32 collectionEventDataFilters = 6;
            public java.util.List getCollectionEventDataFiltersList() {
                return java.util.Collections.unmodifiableList(result.collectionEventDataFilters_);
            }

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

            public int getCollectionEventDataFilters(int index) {
                return result.getCollectionEventDataFilters(index);
            }

            public Builder setCollectionEventDataFilters(int index, int value) {
                result.collectionEventDataFilters_.set(index, value);
                return this;
            }

            public Builder addCollectionEventDataFilters(int value) {
                if (result.collectionEventDataFilters_.isEmpty()) {
                    result.collectionEventDataFilters_ = new java.util.ArrayList();
                }
                result.collectionEventDataFilters_.add(value);
                return this;
            }

            public Builder addAllCollectionEventDataFilters(
                    java.lang.Iterable values) {
                if (result.collectionEventDataFilters_.isEmpty()) {
                    result.collectionEventDataFilters_ = new java.util.ArrayList();
                }
                super.addAll(values, result.collectionEventDataFilters_);
                return this;
            }

            public Builder clearCollectionEventDataFilters() {
                result.collectionEventDataFilters_ = java.util.Collections.emptyList();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CollectionEventMessage.EventType eventType = 7 [default = ITEM_ADDED_CALLBACK];
            public boolean hasEventType() {
                return result.hasEventType();
            }

            public com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType getEventType() {
                return result.getEventType();
            }

            public Builder setEventType(com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasEventType = true;
                result.eventType_ = value;
                return this;
            }

            public Builder clearEventType() {
                result.hasEventType = false;
                result.eventType_ = com.alachisoft.ncache.common.protobuf.CollectionEventMessageProtocol.CollectionEventMessage.EventType.ITEM_ADDED_CALLBACK;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.CacheItemType.ItemType itemType = 8 [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;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy