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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class ClientInfoProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_ClientInfo_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_ClientInfo_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\020ClientInfo.proto\022%com.alachisoft.ncach" +
                        "e.common.protobuf\"\215\001\n\nClientInfo\022\017\n\007appN" +
                        "ame\030\001 \001(\t\022\020\n\010clientId\030\002 \001(\t\022\021\n\tipAddress" +
                        "\030\003 \001(\t\022\021\n\tprocessId\030\004 \001(\005\022\023\n\013machineName" +
                        "\030\005 \001(\t\022\022\n\nmacAddress\030\006 \001(\t\022\r\n\005cores\030\007 \001(" +
                        "\005B\024B\022ClientInfoProtocol"
        };
        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_ClientInfo_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_ClientInfo_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_ClientInfo_descriptor,
                                new java.lang.String[]{"AppName", "ClientId", "IpAddress", "ProcessId", "MachineName", "MacAddress", "Cores",},
                                com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo.class,
                                com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                        }, assigner);
    }
    private ClientInfoProtocol() {
    }

    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 ClientInfo extends
            com.google.protobuf.GeneratedMessage {
        // optional string appName = 1;
        public static final int APPNAME_FIELD_NUMBER = 1;
        // optional string clientId = 2;
        public static final int CLIENTID_FIELD_NUMBER = 2;
        // optional string ipAddress = 3;
        public static final int IPADDRESS_FIELD_NUMBER = 3;
        // optional int32 processId = 4;
        public static final int PROCESSID_FIELD_NUMBER = 4;
        // optional string machineName = 5;
        public static final int MACHINENAME_FIELD_NUMBER = 5;
        // optional string macAddress = 6;
        public static final int MACADDRESS_FIELD_NUMBER = 6;
        // optional int32 cores = 7;
        public static final int CORES_FIELD_NUMBER = 7;
        private static final ClientInfo defaultInstance;

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

        private boolean hasAppName;
        private java.lang.String appName_ = "";
        private boolean hasClientId;
        private java.lang.String clientId_ = "";
        private boolean hasIpAddress;
        private java.lang.String ipAddress_ = "";
        private boolean hasProcessId;
        private int processId_ = 0;
        private boolean hasMachineName;
        private java.lang.String machineName_ = "";
        private boolean hasMacAddress;
        private java.lang.String macAddress_ = "";
        private boolean hasCores;
        private int cores_ = 0;
        private int memoizedSerializedSize = -1;
        // Use ClientInfo.newBuilder() to construct.
        private ClientInfo() {
            initFields();
        }

        private ClientInfo(boolean noInit) {
        }

        public static ClientInfo getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public ClientInfo getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasAppName() {
            return hasAppName;
        }

        public java.lang.String getAppName() {
            return appName_;
        }

        public boolean hasClientId() {
            return hasClientId;
        }

        public java.lang.String getClientId() {
            return clientId_;
        }

        public boolean hasIpAddress() {
            return hasIpAddress;
        }

        public java.lang.String getIpAddress() {
            return ipAddress_;
        }

        public boolean hasProcessId() {
            return hasProcessId;
        }

        public int getProcessId() {
            return processId_;
        }

        public boolean hasMachineName() {
            return hasMachineName;
        }

        public java.lang.String getMachineName() {
            return machineName_;
        }

        public boolean hasMacAddress() {
            return hasMacAddress;
        }

        public java.lang.String getMacAddress() {
            return macAddress_;
        }

        public boolean hasCores() {
            return hasCores;
        }

        public int getCores() {
            return cores_;
        }

        private void initFields() {
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasAppName()) {
                output.writeString(1, getAppName());
            }
            if (hasClientId()) {
                output.writeString(2, getClientId());
            }
            if (hasIpAddress()) {
                output.writeString(3, getIpAddress());
            }
            if (hasProcessId()) {
                output.writeInt32(4, getProcessId());
            }
            if (hasMachineName()) {
                output.writeString(5, getMachineName());
            }
            if (hasMacAddress()) {
                output.writeString(6, getMacAddress());
            }
            if (hasCores()) {
                output.writeInt32(7, getCores());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasAppName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(1, getAppName());
            }
            if (hasClientId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(2, getClientId());
            }
            if (hasIpAddress()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(3, getIpAddress());
            }
            if (hasProcessId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(4, getProcessId());
            }
            if (hasMachineName()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(5, getMachineName());
            }
            if (hasMacAddress()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(6, getMacAddress());
            }
            if (hasCores()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(7, getCores());
            }
            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.ClientInfoProtocol.ClientInfo result;

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

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

            protected com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo other) {
                if (other == com.alachisoft.ncache.common.protobuf.ClientInfoProtocol.ClientInfo.getDefaultInstance())
                    return this;
                if (other.hasAppName()) {
                    setAppName(other.getAppName());
                }
                if (other.hasClientId()) {
                    setClientId(other.getClientId());
                }
                if (other.hasIpAddress()) {
                    setIpAddress(other.getIpAddress());
                }
                if (other.hasProcessId()) {
                    setProcessId(other.getProcessId());
                }
                if (other.hasMachineName()) {
                    setMachineName(other.getMachineName());
                }
                if (other.hasMacAddress()) {
                    setMacAddress(other.getMacAddress());
                }
                if (other.hasCores()) {
                    setCores(other.getCores());
                }
                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: {
                            setAppName(input.readString());
                            break;
                        }
                        case 18: {
                            setClientId(input.readString());
                            break;
                        }
                        case 26: {
                            setIpAddress(input.readString());
                            break;
                        }
                        case 32: {
                            setProcessId(input.readInt32());
                            break;
                        }
                        case 42: {
                            setMachineName(input.readString());
                            break;
                        }
                        case 50: {
                            setMacAddress(input.readString());
                            break;
                        }
                        case 56: {
                            setCores(input.readInt32());
                            break;
                        }
                    }
                }
            }


            // optional string appName = 1;
            public boolean hasAppName() {
                return result.hasAppName();
            }

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

            public Builder setAppName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasAppName = true;
                result.appName_ = value;
                return this;
            }

            public Builder clearAppName() {
                result.hasAppName = false;
                result.appName_ = getDefaultInstance().getAppName();
                return this;
            }

            // optional string clientId = 2;
            public boolean hasClientId() {
                return result.hasClientId();
            }

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

            public Builder setClientId(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasClientId = true;
                result.clientId_ = value;
                return this;
            }

            public Builder clearClientId() {
                result.hasClientId = false;
                result.clientId_ = getDefaultInstance().getClientId();
                return this;
            }

            // optional string ipAddress = 3;
            public boolean hasIpAddress() {
                return result.hasIpAddress();
            }

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

            public Builder setIpAddress(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasIpAddress = true;
                result.ipAddress_ = value;
                return this;
            }

            public Builder clearIpAddress() {
                result.hasIpAddress = false;
                result.ipAddress_ = getDefaultInstance().getIpAddress();
                return this;
            }

            // optional int32 processId = 4;
            public boolean hasProcessId() {
                return result.hasProcessId();
            }

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

            public Builder setProcessId(int value) {
                result.hasProcessId = true;
                result.processId_ = value;
                return this;
            }

            public Builder clearProcessId() {
                result.hasProcessId = false;
                result.processId_ = 0;
                return this;
            }

            // optional string machineName = 5;
            public boolean hasMachineName() {
                return result.hasMachineName();
            }

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

            public Builder setMachineName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMachineName = true;
                result.machineName_ = value;
                return this;
            }

            public Builder clearMachineName() {
                result.hasMachineName = false;
                result.machineName_ = getDefaultInstance().getMachineName();
                return this;
            }

            // optional string macAddress = 6;
            public boolean hasMacAddress() {
                return result.hasMacAddress();
            }

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

            public Builder setMacAddress(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasMacAddress = true;
                result.macAddress_ = value;
                return this;
            }

            public Builder clearMacAddress() {
                result.hasMacAddress = false;
                result.macAddress_ = getDefaultInstance().getMacAddress();
                return this;
            }

            // optional int32 cores = 7;
            public boolean hasCores() {
                return result.hasCores();
            }

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

            public Builder setCores(int value) {
                result.hasCores = true;
                result.cores_ = value;
                return this;
            }

            public Builder clearCores() {
                result.hasCores = false;
                result.cores_ = 0;
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy