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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class ServerMappingProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_ServerMapping_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_ServerMapping_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\023ServerMapping.proto\022%com.alachisoft.nc" +
                        "ache.common.protobuf\"]\n\rServerMapping\022\020\n" +
                        "\010publicIp\030\001 \001(\t\022\022\n\npublicPort\030\002 \001(\005\022\021\n\tp" +
                        "rivateIp\030\003 \001(\t\022\023\n\013privatePort\030\004 \001(\005B\027B\025S" +
                        "erverMappingProtocol"
        };
        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_ServerMapping_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_ServerMapping_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_ServerMapping_descriptor,
                                new java.lang.String[]{"PublicIp", "PublicPort", "PrivateIp", "PrivatePort",},
                                com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping.class,
                                com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                        }, assigner);
    }
    private ServerMappingProtocol() {
    }

    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 ServerMapping extends
            com.google.protobuf.GeneratedMessage {
        // optional string publicIp = 1;
        public static final int PUBLICIP_FIELD_NUMBER = 1;
        // optional int32 publicPort = 2;
        public static final int PUBLICPORT_FIELD_NUMBER = 2;
        // optional string privateIp = 3;
        public static final int PRIVATEIP_FIELD_NUMBER = 3;
        // optional int32 privatePort = 4;
        public static final int PRIVATEPORT_FIELD_NUMBER = 4;
        private static final ServerMapping defaultInstance;

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

        private boolean hasPublicIp;
        private java.lang.String publicIp_ = "";
        private boolean hasPublicPort;
        private int publicPort_ = 0;
        private boolean hasPrivateIp;
        private java.lang.String privateIp_ = "";
        private boolean hasPrivatePort;
        private int privatePort_ = 0;
        private int memoizedSerializedSize = -1;

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

        private ServerMapping(boolean noInit) {
        }

        public static ServerMapping getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public ServerMapping getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasPublicIp() {
            return hasPublicIp;
        }

        public java.lang.String getPublicIp() {
            return publicIp_;
        }

        public boolean hasPublicPort() {
            return hasPublicPort;
        }

        public int getPublicPort() {
            return publicPort_;
        }

        public boolean hasPrivateIp() {
            return hasPrivateIp;
        }

        public java.lang.String getPrivateIp() {
            return privateIp_;
        }

        public boolean hasPrivatePort() {
            return hasPrivatePort;
        }

        public int getPrivatePort() {
            return privatePort_;
        }

        private void initFields() {
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasPublicIp()) {
                output.writeString(1, getPublicIp());
            }
            if (hasPublicPort()) {
                output.writeInt32(2, getPublicPort());
            }
            if (hasPrivateIp()) {
                output.writeString(3, getPrivateIp());
            }
            if (hasPrivatePort()) {
                output.writeInt32(4, getPrivatePort());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasPublicIp()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(1, getPublicIp());
            }
            if (hasPublicPort()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(2, getPublicPort());
            }
            if (hasPrivateIp()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(3, getPrivateIp());
            }
            if (hasPrivatePort()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(4, getPrivatePort());
            }
            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.ServerMappingProtocol.ServerMapping result;

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

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

            protected com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping other) {
                if (other == com.alachisoft.ncache.common.protobuf.ServerMappingProtocol.ServerMapping.getDefaultInstance())
                    return this;
                if (other.hasPublicIp()) {
                    setPublicIp(other.getPublicIp());
                }
                if (other.hasPublicPort()) {
                    setPublicPort(other.getPublicPort());
                }
                if (other.hasPrivateIp()) {
                    setPrivateIp(other.getPrivateIp());
                }
                if (other.hasPrivatePort()) {
                    setPrivatePort(other.getPrivatePort());
                }
                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: {
                            setPublicIp(input.readString());
                            break;
                        }
                        case 16: {
                            setPublicPort(input.readInt32());
                            break;
                        }
                        case 26: {
                            setPrivateIp(input.readString());
                            break;
                        }
                        case 32: {
                            setPrivatePort(input.readInt32());
                            break;
                        }
                    }
                }
            }


            // optional string publicIp = 1;
            public boolean hasPublicIp() {
                return result.hasPublicIp();
            }

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

            public Builder setPublicIp(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasPublicIp = true;
                result.publicIp_ = value;
                return this;
            }

            public Builder clearPublicIp() {
                result.hasPublicIp = false;
                result.publicIp_ = getDefaultInstance().getPublicIp();
                return this;
            }

            // optional int32 publicPort = 2;
            public boolean hasPublicPort() {
                return result.hasPublicPort();
            }

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

            public Builder setPublicPort(int value) {
                result.hasPublicPort = true;
                result.publicPort_ = value;
                return this;
            }

            public Builder clearPublicPort() {
                result.hasPublicPort = false;
                result.publicPort_ = 0;
                return this;
            }

            // optional string privateIp = 3;
            public boolean hasPrivateIp() {
                return result.hasPrivateIp();
            }

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

            public Builder setPrivateIp(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasPrivateIp = true;
                result.privateIp_ = value;
                return this;
            }

            public Builder clearPrivateIp() {
                result.hasPrivateIp = false;
                result.privateIp_ = getDefaultInstance().getPrivateIp();
                return this;
            }

            // optional int32 privatePort = 4;
            public boolean hasPrivatePort() {
                return result.hasPrivatePort();
            }

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

            public Builder setPrivatePort(int value) {
                result.hasPrivatePort = true;
                result.privatePort_ = value;
                return this;
            }

            public Builder clearPrivatePort() {
                result.hasPrivatePort = false;
                result.privatePort_ = 0;
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy