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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class MessageProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_Message_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_Message_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\rMessage.proto\022%com.alachisoft.ncache.c" +
                        "ommon.protobuf\032\013Value.proto\032\025InternalPay" +
                        "load.proto\032!SubscriptionIdRecepientList." +
                        "proto\"\263\003\n\007Message\022\021\n\tmessageId\030\001 \001(\t\022=\n\007" +
                        "payload\030\002 \001(\0132,.com.alachisoft.ncache.co" +
                        "mmon.protobuf.Value\022\014\n\004flag\030\003 \001(\005\022\024\n\014cre" +
                        "ationTime\030\004 \001(\003\022\026\n\016expirationTime\030\005 \001(\003\022" +
                        "\026\n\016deliveryOption\030\006 \001(\005\022\030\n\020subscriptionT" +
                        "ype\030\007 \001(\005\022\033\n\023messageRemoveReason\030\010 \001(\005\022\025" +
                        "\n\rrecipientList\030\t \003(\t\022O\n\017internalPayload",
                "\030\n \001(\01326.com.alachisoft.ncache.common.pr" +
                        "otobuf.InternalPayload\022c\n\027subscriptionId" +
                        "entifiers\030\013 \003(\0132B.com.alachisoft.ncache." +
                        "common.protobuf.SubscriptionIdRecepientL" +
                        "istB\021B\017MessageProtocol"
        };
        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_Message_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_Message_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_Message_descriptor,
                                new java.lang.String[]{"MessageId", "Payload", "Flag", "CreationTime", "ExpirationTime", "DeliveryOption", "SubscriptionType", "MessageRemoveReason", "RecipientList", "InternalPayload", "SubscriptionIdentifiers",},
                                com.alachisoft.ncache.common.protobuf.MessageProtocol.Message.class,
                                com.alachisoft.ncache.common.protobuf.MessageProtocol.Message.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.ValueProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.getDescriptor(),
                        }, assigner);
    }
    private MessageProtocol() {
    }

    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 Message extends
            com.google.protobuf.GeneratedMessage {
        // optional string messageId = 1;
        public static final int MESSAGEID_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.Value payload = 2;
        public static final int PAYLOAD_FIELD_NUMBER = 2;
        // optional int32 flag = 3;
        public static final int FLAG_FIELD_NUMBER = 3;
        // optional int64 creationTime = 4;
        public static final int CREATIONTIME_FIELD_NUMBER = 4;
        // optional int64 expirationTime = 5;
        public static final int EXPIRATIONTIME_FIELD_NUMBER = 5;
        // optional int32 deliveryOption = 6;
        public static final int DELIVERYOPTION_FIELD_NUMBER = 6;
        // optional int32 subscriptionType = 7;
        public static final int SUBSCRIPTIONTYPE_FIELD_NUMBER = 7;
        // optional int32 messageRemoveReason = 8;
        public static final int MESSAGEREMOVEREASON_FIELD_NUMBER = 8;
        // repeated string recipientList = 9;
        public static final int RECIPIENTLIST_FIELD_NUMBER = 9;
        // optional .com.alachisoft.ncache.common.protobuf.InternalPayload internalPayload = 10;
        public static final int INTERNALPAYLOAD_FIELD_NUMBER = 10;
        // repeated .com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientList subscriptionIdentifiers = 11;
        public static final int SUBSCRIPTIONIDENTIFIERS_FIELD_NUMBER = 11;
        private static final Message defaultInstance;

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

        private boolean hasMessageId;
        private java.lang.String messageId_ = "";
        private boolean hasPayload;
        private com.alachisoft.ncache.common.protobuf.ValueProtocol.Value payload_;
        private boolean hasFlag;
        private int flag_ = 0;
        private boolean hasCreationTime;
        private long creationTime_ = 0L;
        private boolean hasExpirationTime;
        private long expirationTime_ = 0L;
        private boolean hasDeliveryOption;
        private int deliveryOption_ = 0;
        private boolean hasSubscriptionType;
        private int subscriptionType_ = 0;
        private boolean hasMessageRemoveReason;
        private int messageRemoveReason_ = 0;
        private java.util.List recipientList_ =
                java.util.Collections.emptyList();
        private boolean hasInternalPayload;
        private com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload internalPayload_;
        private java.util.List subscriptionIdentifiers_ =
                java.util.Collections.emptyList();
        private int memoizedSerializedSize = -1;
        // Use Message.newBuilder() to construct.
        private Message() {
            initFields();
        }

        private Message(boolean noInit) {
        }

        public static Message getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public Message getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasMessageId() {
            return hasMessageId;
        }

        public java.lang.String getMessageId() {
            return messageId_;
        }

        public boolean hasPayload() {
            return hasPayload;
        }

        public com.alachisoft.ncache.common.protobuf.ValueProtocol.Value getPayload() {
            return payload_;
        }

        public boolean hasFlag() {
            return hasFlag;
        }

        public int getFlag() {
            return flag_;
        }

        public boolean hasCreationTime() {
            return hasCreationTime;
        }

        public long getCreationTime() {
            return creationTime_;
        }

        public boolean hasExpirationTime() {
            return hasExpirationTime;
        }

        public long getExpirationTime() {
            return expirationTime_;
        }

        public boolean hasDeliveryOption() {
            return hasDeliveryOption;
        }

        public int getDeliveryOption() {
            return deliveryOption_;
        }

        public boolean hasSubscriptionType() {
            return hasSubscriptionType;
        }

        public int getSubscriptionType() {
            return subscriptionType_;
        }

        public boolean hasMessageRemoveReason() {
            return hasMessageRemoveReason;
        }

        public int getMessageRemoveReason() {
            return messageRemoveReason_;
        }

        public java.util.List getRecipientListList() {
            return recipientList_;
        }

        public int getRecipientListCount() {
            return recipientList_.size();
        }

        public java.lang.String getRecipientList(int index) {
            return recipientList_.get(index);
        }

        public boolean hasInternalPayload() {
            return hasInternalPayload;
        }

        public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload getInternalPayload() {
            return internalPayload_;
        }

        public java.util.List getSubscriptionIdentifiersList() {
            return subscriptionIdentifiers_;
        }

        public int getSubscriptionIdentifiersCount() {
            return subscriptionIdentifiers_.size();
        }

        public com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList getSubscriptionIdentifiers(int index) {
            return subscriptionIdentifiers_.get(index);
        }

        private void initFields() {
            payload_ = com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.getDefaultInstance();
            internalPayload_ = com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.getDefaultInstance();
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasMessageId()) {
                output.writeString(1, getMessageId());
            }
            if (hasPayload()) {
                output.writeMessage(2, getPayload());
            }
            if (hasFlag()) {
                output.writeInt32(3, getFlag());
            }
            if (hasCreationTime()) {
                output.writeInt64(4, getCreationTime());
            }
            if (hasExpirationTime()) {
                output.writeInt64(5, getExpirationTime());
            }
            if (hasDeliveryOption()) {
                output.writeInt32(6, getDeliveryOption());
            }
            if (hasSubscriptionType()) {
                output.writeInt32(7, getSubscriptionType());
            }
            if (hasMessageRemoveReason()) {
                output.writeInt32(8, getMessageRemoveReason());
            }
            for (java.lang.String element : getRecipientListList()) {
                output.writeString(9, element);
            }
            if (hasInternalPayload()) {
                output.writeMessage(10, getInternalPayload());
            }
            for (com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList element : getSubscriptionIdentifiersList()) {
                output.writeMessage(11, element);
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasMessageId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(1, getMessageId());
            }
            if (hasPayload()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(2, getPayload());
            }
            if (hasFlag()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(3, getFlag());
            }
            if (hasCreationTime()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(4, getCreationTime());
            }
            if (hasExpirationTime()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(5, getExpirationTime());
            }
            if (hasDeliveryOption()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(6, getDeliveryOption());
            }
            if (hasSubscriptionType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(7, getSubscriptionType());
            }
            if (hasMessageRemoveReason()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(8, getMessageRemoveReason());
            }
            {
                int dataSize = 0;
                for (java.lang.String element : getRecipientListList()) {
                    dataSize += com.google.protobuf.CodedOutputStream
                            .computeStringSizeNoTag(element);
                }
                size += dataSize;
                size += 1 * getRecipientListList().size();
            }
            if (hasInternalPayload()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(10, getInternalPayload());
            }
            for (com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList element : getSubscriptionIdentifiersList()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(11, element);
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

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

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

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

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

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

            protected com.alachisoft.ncache.common.protobuf.MessageProtocol.Message internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.MessageProtocol.Message getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.MessageProtocol.Message.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.MessageProtocol.Message other) {
                if (other == com.alachisoft.ncache.common.protobuf.MessageProtocol.Message.getDefaultInstance())
                    return this;
                if (other.hasMessageId()) {
                    setMessageId(other.getMessageId());
                }
                if (other.hasPayload()) {
                    mergePayload(other.getPayload());
                }
                if (other.hasFlag()) {
                    setFlag(other.getFlag());
                }
                if (other.hasCreationTime()) {
                    setCreationTime(other.getCreationTime());
                }
                if (other.hasExpirationTime()) {
                    setExpirationTime(other.getExpirationTime());
                }
                if (other.hasDeliveryOption()) {
                    setDeliveryOption(other.getDeliveryOption());
                }
                if (other.hasSubscriptionType()) {
                    setSubscriptionType(other.getSubscriptionType());
                }
                if (other.hasMessageRemoveReason()) {
                    setMessageRemoveReason(other.getMessageRemoveReason());
                }
                if (!other.recipientList_.isEmpty()) {
                    if (result.recipientList_.isEmpty()) {
                        result.recipientList_ = new java.util.ArrayList();
                    }
                    result.recipientList_.addAll(other.recipientList_);
                }
                if (other.hasInternalPayload()) {
                    mergeInternalPayload(other.getInternalPayload());
                }
                if (!other.subscriptionIdentifiers_.isEmpty()) {
                    if (result.subscriptionIdentifiers_.isEmpty()) {
                        result.subscriptionIdentifiers_ = new java.util.ArrayList();
                    }
                    result.subscriptionIdentifiers_.addAll(other.subscriptionIdentifiers_);
                }
                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: {
                            setMessageId(input.readString());
                            break;
                        }
                        case 18: {
                            com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.Builder subBuilder = com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.newBuilder();
                            if (hasPayload()) {
                                subBuilder.mergeFrom(getPayload());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setPayload(subBuilder.buildPartial());
                            break;
                        }
                        case 24: {
                            setFlag(input.readInt32());
                            break;
                        }
                        case 32: {
                            setCreationTime(input.readInt64());
                            break;
                        }
                        case 40: {
                            setExpirationTime(input.readInt64());
                            break;
                        }
                        case 48: {
                            setDeliveryOption(input.readInt32());
                            break;
                        }
                        case 56: {
                            setSubscriptionType(input.readInt32());
                            break;
                        }
                        case 64: {
                            setMessageRemoveReason(input.readInt32());
                            break;
                        }
                        case 74: {
                            addRecipientList(input.readString());
                            break;
                        }
                        case 82: {
                            com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.Builder subBuilder = com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.newBuilder();
                            if (hasInternalPayload()) {
                                subBuilder.mergeFrom(getInternalPayload());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setInternalPayload(subBuilder.buildPartial());
                            break;
                        }
                        case 90: {
                            com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList.Builder subBuilder = com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList.newBuilder();
                            input.readMessage(subBuilder, extensionRegistry);
                            addSubscriptionIdentifiers(subBuilder.buildPartial());
                            break;
                        }
                    }
                }
            }


            // optional string messageId = 1;
            public boolean hasMessageId() {
                return result.hasMessageId();
            }

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

            public Builder setMessageId(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMessageId = true;
                result.messageId_ = value;
                return this;
            }

            public Builder clearMessageId() {
                result.hasMessageId = false;
                result.messageId_ = getDefaultInstance().getMessageId();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.Value payload = 2;
            public boolean hasPayload() {
                return result.hasPayload();
            }

            public com.alachisoft.ncache.common.protobuf.ValueProtocol.Value getPayload() {
                return result.getPayload();
            }

            public Builder setPayload(com.alachisoft.ncache.common.protobuf.ValueProtocol.Value value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasPayload = true;
                result.payload_ = value;
                return this;
            }

            public Builder setPayload(com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.Builder builderForValue) {
                result.hasPayload = true;
                result.payload_ = builderForValue.build();
                return this;
            }

            public Builder mergePayload(com.alachisoft.ncache.common.protobuf.ValueProtocol.Value value) {
                if (result.hasPayload() &&
                        result.payload_ != com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.getDefaultInstance()) {
                    result.payload_ =
                            com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.newBuilder(result.payload_).mergeFrom(value).buildPartial();
                } else {
                    result.payload_ = value;
                }
                result.hasPayload = true;
                return this;
            }

            public Builder clearPayload() {
                result.hasPayload = false;
                result.payload_ = com.alachisoft.ncache.common.protobuf.ValueProtocol.Value.getDefaultInstance();
                return this;
            }

            // optional int32 flag = 3;
            public boolean hasFlag() {
                return result.hasFlag();
            }

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

            public Builder setFlag(int value) {
                result.hasFlag = true;
                result.flag_ = value;
                return this;
            }

            public Builder clearFlag() {
                result.hasFlag = false;
                result.flag_ = 0;
                return this;
            }

            // optional int64 creationTime = 4;
            public boolean hasCreationTime() {
                return result.hasCreationTime();
            }

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

            public Builder setCreationTime(long value) {
                result.hasCreationTime = true;
                result.creationTime_ = value;
                return this;
            }

            public Builder clearCreationTime() {
                result.hasCreationTime = false;
                result.creationTime_ = 0L;
                return this;
            }

            // optional int64 expirationTime = 5;
            public boolean hasExpirationTime() {
                return result.hasExpirationTime();
            }

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

            public Builder setExpirationTime(long value) {
                result.hasExpirationTime = true;
                result.expirationTime_ = value;
                return this;
            }

            public Builder clearExpirationTime() {
                result.hasExpirationTime = false;
                result.expirationTime_ = 0L;
                return this;
            }

            // optional int32 deliveryOption = 6;
            public boolean hasDeliveryOption() {
                return result.hasDeliveryOption();
            }

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

            public Builder setDeliveryOption(int value) {
                result.hasDeliveryOption = true;
                result.deliveryOption_ = value;
                return this;
            }

            public Builder clearDeliveryOption() {
                result.hasDeliveryOption = false;
                result.deliveryOption_ = 0;
                return this;
            }

            // optional int32 subscriptionType = 7;
            public boolean hasSubscriptionType() {
                return result.hasSubscriptionType();
            }

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

            public Builder setSubscriptionType(int value) {
                result.hasSubscriptionType = true;
                result.subscriptionType_ = value;
                return this;
            }

            public Builder clearSubscriptionType() {
                result.hasSubscriptionType = false;
                result.subscriptionType_ = 0;
                return this;
            }

            // optional int32 messageRemoveReason = 8;
            public boolean hasMessageRemoveReason() {
                return result.hasMessageRemoveReason();
            }

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

            public Builder setMessageRemoveReason(int value) {
                result.hasMessageRemoveReason = true;
                result.messageRemoveReason_ = value;
                return this;
            }

            public Builder clearMessageRemoveReason() {
                result.hasMessageRemoveReason = false;
                result.messageRemoveReason_ = 0;
                return this;
            }

            // repeated string recipientList = 9;
            public java.util.List getRecipientListList() {
                return java.util.Collections.unmodifiableList(result.recipientList_);
            }

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

            public java.lang.String getRecipientList(int index) {
                return result.getRecipientList(index);
            }

            public Builder setRecipientList(int index, java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.recipientList_.set(index, value);
                return this;
            }

            public Builder addRecipientList(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                if (result.recipientList_.isEmpty()) {
                    result.recipientList_ = new java.util.ArrayList();
                }
                result.recipientList_.add(value);
                return this;
            }

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

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

            // optional .com.alachisoft.ncache.common.protobuf.InternalPayload internalPayload = 10;
            public boolean hasInternalPayload() {
                return result.hasInternalPayload();
            }

            public com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload getInternalPayload() {
                return result.getInternalPayload();
            }

            public Builder setInternalPayload(com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasInternalPayload = true;
                result.internalPayload_ = value;
                return this;
            }

            public Builder setInternalPayload(com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.Builder builderForValue) {
                result.hasInternalPayload = true;
                result.internalPayload_ = builderForValue.build();
                return this;
            }

            public Builder mergeInternalPayload(com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload value) {
                if (result.hasInternalPayload() &&
                        result.internalPayload_ != com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.getDefaultInstance()) {
                    result.internalPayload_ =
                            com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.newBuilder(result.internalPayload_).mergeFrom(value).buildPartial();
                } else {
                    result.internalPayload_ = value;
                }
                result.hasInternalPayload = true;
                return this;
            }

            public Builder clearInternalPayload() {
                result.hasInternalPayload = false;
                result.internalPayload_ = com.alachisoft.ncache.common.protobuf.InternalPayloadProtocol.InternalPayload.getDefaultInstance();
                return this;
            }

            // repeated .com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientList subscriptionIdentifiers = 11;
            public java.util.List getSubscriptionIdentifiersList() {
                return java.util.Collections.unmodifiableList(result.subscriptionIdentifiers_);
            }

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

            public com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList getSubscriptionIdentifiers(int index) {
                return result.getSubscriptionIdentifiers(index);
            }

            public Builder setSubscriptionIdentifiers(int index, com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.subscriptionIdentifiers_.set(index, value);
                return this;
            }

            public Builder setSubscriptionIdentifiers(int index, com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList.Builder builderForValue) {
                result.subscriptionIdentifiers_.set(index, builderForValue.build());
                return this;
            }

            public Builder addSubscriptionIdentifiers(com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                if (result.subscriptionIdentifiers_.isEmpty()) {
                    result.subscriptionIdentifiers_ = new java.util.ArrayList();
                }
                result.subscriptionIdentifiers_.add(value);
                return this;
            }

            public Builder addSubscriptionIdentifiers(com.alachisoft.ncache.common.protobuf.SubscriptionIdRecepientListProtocol.SubscriptionIdRecepientList.Builder builderForValue) {
                if (result.subscriptionIdentifiers_.isEmpty()) {
                    result.subscriptionIdentifiers_ = new java.util.ArrayList();
                }
                result.subscriptionIdentifiers_.add(builderForValue.build());
                return this;
            }

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

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

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy