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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class ProductVersionProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_ProductVersion_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_ProductVersion_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\024ProductVersion.proto\022%com.alachisoft.n" +
                        "cache.common.protobuf\"\255\001\n\016ProductVersion" +
                        "\022\023\n\013ProductName\030\001 \001(\t\022\025\n\rMajorVersion1\030\002" +
                        " \001(\014\022\025\n\rMinorVersion1\030\003 \001(\014\022\025\n\rMajorVers" +
                        "ion2\030\004 \001(\014\022\025\n\rMinorVersion2\030\005 \001(\014\022\021\n\tEdi" +
                        "tionID\030\006 \001(\005\022\027\n\017AddiotionalData\030\007 \001(\014B\030B" +
                        "\026ProductVersionProtocol"
        };
        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_ProductVersion_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_ProductVersion_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_ProductVersion_descriptor,
                                new java.lang.String[]{"ProductName", "MajorVersion1", "MinorVersion1", "MajorVersion2", "MinorVersion2", "EditionID", "AddiotionalData",},
                                com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion.class,
                                com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                        }, assigner);
    }
    private ProductVersionProtocol() {
    }

    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 ProductVersion extends
            com.google.protobuf.GeneratedMessage {
        // optional string ProductName = 1;
        public static final int PRODUCTNAME_FIELD_NUMBER = 1;
        // optional bytes MajorVersion1 = 2;
        public static final int MAJORVERSION1_FIELD_NUMBER = 2;
        // optional bytes MinorVersion1 = 3;
        public static final int MINORVERSION1_FIELD_NUMBER = 3;
        // optional bytes MajorVersion2 = 4;
        public static final int MAJORVERSION2_FIELD_NUMBER = 4;
        // optional bytes MinorVersion2 = 5;
        public static final int MINORVERSION2_FIELD_NUMBER = 5;
        // optional int32 EditionID = 6;
        public static final int EDITIONID_FIELD_NUMBER = 6;
        // optional bytes AddiotionalData = 7;
        public static final int ADDIOTIONALDATA_FIELD_NUMBER = 7;
        private static final ProductVersion defaultInstance;

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

        private boolean hasProductName;
        private java.lang.String productName_ = "";
        private boolean hasMajorVersion1;
        private com.google.protobuf.ByteString majorVersion1_ = com.google.protobuf.ByteString.EMPTY;
        private boolean hasMinorVersion1;
        private com.google.protobuf.ByteString minorVersion1_ = com.google.protobuf.ByteString.EMPTY;
        private boolean hasMajorVersion2;
        private com.google.protobuf.ByteString majorVersion2_ = com.google.protobuf.ByteString.EMPTY;
        private boolean hasMinorVersion2;
        private com.google.protobuf.ByteString minorVersion2_ = com.google.protobuf.ByteString.EMPTY;
        private boolean hasEditionID;
        private int editionID_ = 0;
        private boolean hasAddiotionalData;
        private com.google.protobuf.ByteString addiotionalData_ = com.google.protobuf.ByteString.EMPTY;
        private int memoizedSerializedSize = -1;
        // Use ProductVersion.newBuilder() to construct.
        private ProductVersion() {
            initFields();
        }

        private ProductVersion(boolean noInit) {
        }

        public static ProductVersion getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public ProductVersion getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasProductName() {
            return hasProductName;
        }

        public java.lang.String getProductName() {
            return productName_;
        }

        public boolean hasMajorVersion1() {
            return hasMajorVersion1;
        }

        public com.google.protobuf.ByteString getMajorVersion1() {
            return majorVersion1_;
        }

        public boolean hasMinorVersion1() {
            return hasMinorVersion1;
        }

        public com.google.protobuf.ByteString getMinorVersion1() {
            return minorVersion1_;
        }

        public boolean hasMajorVersion2() {
            return hasMajorVersion2;
        }

        public com.google.protobuf.ByteString getMajorVersion2() {
            return majorVersion2_;
        }

        public boolean hasMinorVersion2() {
            return hasMinorVersion2;
        }

        public com.google.protobuf.ByteString getMinorVersion2() {
            return minorVersion2_;
        }

        public boolean hasEditionID() {
            return hasEditionID;
        }

        public int getEditionID() {
            return editionID_;
        }

        public boolean hasAddiotionalData() {
            return hasAddiotionalData;
        }

        public com.google.protobuf.ByteString getAddiotionalData() {
            return addiotionalData_;
        }

        private void initFields() {
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasProductName()) {
                output.writeString(1, getProductName());
            }
            if (hasMajorVersion1()) {
                output.writeBytes(2, getMajorVersion1());
            }
            if (hasMinorVersion1()) {
                output.writeBytes(3, getMinorVersion1());
            }
            if (hasMajorVersion2()) {
                output.writeBytes(4, getMajorVersion2());
            }
            if (hasMinorVersion2()) {
                output.writeBytes(5, getMinorVersion2());
            }
            if (hasEditionID()) {
                output.writeInt32(6, getEditionID());
            }
            if (hasAddiotionalData()) {
                output.writeBytes(7, getAddiotionalData());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasProductName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(1, getProductName());
            }
            if (hasMajorVersion1()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(2, getMajorVersion1());
            }
            if (hasMinorVersion1()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(3, getMinorVersion1());
            }
            if (hasMajorVersion2()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(4, getMajorVersion2());
            }
            if (hasMinorVersion2()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(5, getMinorVersion2());
            }
            if (hasEditionID()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(6, getEditionID());
            }
            if (hasAddiotionalData()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeBytesSize(7, getAddiotionalData());
            }
            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.ProductVersionProtocol.ProductVersion result;

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

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

            protected com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion other) {
                if (other == com.alachisoft.ncache.common.protobuf.ProductVersionProtocol.ProductVersion.getDefaultInstance())
                    return this;
                if (other.hasProductName()) {
                    setProductName(other.getProductName());
                }
                if (other.hasMajorVersion1()) {
                    setMajorVersion1(other.getMajorVersion1());
                }
                if (other.hasMinorVersion1()) {
                    setMinorVersion1(other.getMinorVersion1());
                }
                if (other.hasMajorVersion2()) {
                    setMajorVersion2(other.getMajorVersion2());
                }
                if (other.hasMinorVersion2()) {
                    setMinorVersion2(other.getMinorVersion2());
                }
                if (other.hasEditionID()) {
                    setEditionID(other.getEditionID());
                }
                if (other.hasAddiotionalData()) {
                    setAddiotionalData(other.getAddiotionalData());
                }
                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: {
                            setProductName(input.readString());
                            break;
                        }
                        case 18: {
                            setMajorVersion1(input.readBytes());
                            break;
                        }
                        case 26: {
                            setMinorVersion1(input.readBytes());
                            break;
                        }
                        case 34: {
                            setMajorVersion2(input.readBytes());
                            break;
                        }
                        case 42: {
                            setMinorVersion2(input.readBytes());
                            break;
                        }
                        case 48: {
                            setEditionID(input.readInt32());
                            break;
                        }
                        case 58: {
                            setAddiotionalData(input.readBytes());
                            break;
                        }
                    }
                }
            }


            // optional string ProductName = 1;
            public boolean hasProductName() {
                return result.hasProductName();
            }

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

            public Builder setProductName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasProductName = true;
                result.productName_ = value;
                return this;
            }

            public Builder clearProductName() {
                result.hasProductName = false;
                result.productName_ = getDefaultInstance().getProductName();
                return this;
            }

            // optional bytes MajorVersion1 = 2;
            public boolean hasMajorVersion1() {
                return result.hasMajorVersion1();
            }

            public com.google.protobuf.ByteString getMajorVersion1() {
                return result.getMajorVersion1();
            }

            public Builder setMajorVersion1(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMajorVersion1 = true;
                result.majorVersion1_ = value;
                return this;
            }

            public Builder clearMajorVersion1() {
                result.hasMajorVersion1 = false;
                result.majorVersion1_ = getDefaultInstance().getMajorVersion1();
                return this;
            }

            // optional bytes MinorVersion1 = 3;
            public boolean hasMinorVersion1() {
                return result.hasMinorVersion1();
            }

            public com.google.protobuf.ByteString getMinorVersion1() {
                return result.getMinorVersion1();
            }

            public Builder setMinorVersion1(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMinorVersion1 = true;
                result.minorVersion1_ = value;
                return this;
            }

            public Builder clearMinorVersion1() {
                result.hasMinorVersion1 = false;
                result.minorVersion1_ = getDefaultInstance().getMinorVersion1();
                return this;
            }

            // optional bytes MajorVersion2 = 4;
            public boolean hasMajorVersion2() {
                return result.hasMajorVersion2();
            }

            public com.google.protobuf.ByteString getMajorVersion2() {
                return result.getMajorVersion2();
            }

            public Builder setMajorVersion2(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMajorVersion2 = true;
                result.majorVersion2_ = value;
                return this;
            }

            public Builder clearMajorVersion2() {
                result.hasMajorVersion2 = false;
                result.majorVersion2_ = getDefaultInstance().getMajorVersion2();
                return this;
            }

            // optional bytes MinorVersion2 = 5;
            public boolean hasMinorVersion2() {
                return result.hasMinorVersion2();
            }

            public com.google.protobuf.ByteString getMinorVersion2() {
                return result.getMinorVersion2();
            }

            public Builder setMinorVersion2(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMinorVersion2 = true;
                result.minorVersion2_ = value;
                return this;
            }

            public Builder clearMinorVersion2() {
                result.hasMinorVersion2 = false;
                result.minorVersion2_ = getDefaultInstance().getMinorVersion2();
                return this;
            }

            // optional int32 EditionID = 6;
            public boolean hasEditionID() {
                return result.hasEditionID();
            }

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

            public Builder setEditionID(int value) {
                result.hasEditionID = true;
                result.editionID_ = value;
                return this;
            }

            public Builder clearEditionID() {
                result.hasEditionID = false;
                result.editionID_ = 0;
                return this;
            }

            // optional bytes AddiotionalData = 7;
            public boolean hasAddiotionalData() {
                return result.hasAddiotionalData();
            }

            public com.google.protobuf.ByteString getAddiotionalData() {
                return result.getAddiotionalData();
            }

            public Builder setAddiotionalData(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasAddiotionalData = true;
                result.addiotionalData_ = value;
                return this;
            }

            public Builder clearAddiotionalData() {
                result.hasAddiotionalData = false;
                result.addiotionalData_ = getDefaultInstance().getAddiotionalData();
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy