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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class TaskEnumeratorCommandProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_TaskEnumeratorCommand_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_TaskEnumeratorCommand_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\033TaskEnumeratorCommand.proto\022%com.alach" +
                        "isoft.ncache.common.protobuf\"\314\001\n\025TaskEnu" +
                        "meratorCommand\022\020\n\010ClientId\030\001 \001(\t\022\020\n\010Clie" +
                        "ntIp\030\002 \001(\t\022\022\n\nClientPort\030\003 \001(\005\022\021\n\tCluste" +
                        "rIp\030\004 \001(\t\022\023\n\013ClusterPort\030\005 \001(\005\022\022\n\nCallba" +
                        "ckId\030\006 \001(\005\022\016\n\006TaskId\030\007 \001(\t\022\034\n\020clientLast" +
                        "ViewId\030\010 \001(\003:\002-1\022\021\n\trequestId\030\t \001(\003B\037B\035T" +
                        "askEnumeratorCommandProtocol"
        };
        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_TaskEnumeratorCommand_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_TaskEnumeratorCommand_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_TaskEnumeratorCommand_descriptor,
                                new java.lang.String[]{"ClientId", "ClientIp", "ClientPort", "ClusterIp", "ClusterPort", "CallbackId", "TaskId", "ClientLastViewId", "RequestId",},
                                com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand.class,
                                com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                        }, assigner);
    }
    private TaskEnumeratorCommandProtocol() {
    }

    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 TaskEnumeratorCommand extends
            com.google.protobuf.GeneratedMessage {
        // optional string ClientId = 1;
        public static final int CLIENTID_FIELD_NUMBER = 1;
        // optional string ClientIp = 2;
        public static final int CLIENTIP_FIELD_NUMBER = 2;
        // optional int32 ClientPort = 3;
        public static final int CLIENTPORT_FIELD_NUMBER = 3;
        // optional string ClusterIp = 4;
        public static final int CLUSTERIP_FIELD_NUMBER = 4;
        // optional int32 ClusterPort = 5;
        public static final int CLUSTERPORT_FIELD_NUMBER = 5;
        // optional int32 CallbackId = 6;
        public static final int CALLBACKID_FIELD_NUMBER = 6;
        // optional string TaskId = 7;
        public static final int TASKID_FIELD_NUMBER = 7;
        // optional int64 clientLastViewId = 8 [default = -1];
        public static final int CLIENTLASTVIEWID_FIELD_NUMBER = 8;
        // optional int64 requestId = 9;
        public static final int REQUESTID_FIELD_NUMBER = 9;
        private static final TaskEnumeratorCommand defaultInstance;

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

        private boolean hasClientId;
        private java.lang.String clientId_ = "";
        private boolean hasClientIp;
        private java.lang.String clientIp_ = "";
        private boolean hasClientPort;
        private int clientPort_ = 0;
        private boolean hasClusterIp;
        private java.lang.String clusterIp_ = "";
        private boolean hasClusterPort;
        private int clusterPort_ = 0;
        private boolean hasCallbackId;
        private int callbackId_ = 0;
        private boolean hasTaskId;
        private java.lang.String taskId_ = "";
        private boolean hasClientLastViewId;
        private long clientLastViewId_ = -1L;
        private boolean hasRequestId;
        private long requestId_ = 0L;
        private int memoizedSerializedSize = -1;

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

        private TaskEnumeratorCommand(boolean noInit) {
        }

        public static TaskEnumeratorCommand getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public TaskEnumeratorCommand getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasClientId() {
            return hasClientId;
        }

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

        public boolean hasClientIp() {
            return hasClientIp;
        }

        public java.lang.String getClientIp() {
            return clientIp_;
        }

        public boolean hasClientPort() {
            return hasClientPort;
        }

        public int getClientPort() {
            return clientPort_;
        }

        public boolean hasClusterIp() {
            return hasClusterIp;
        }

        public java.lang.String getClusterIp() {
            return clusterIp_;
        }

        public boolean hasClusterPort() {
            return hasClusterPort;
        }

        public int getClusterPort() {
            return clusterPort_;
        }

        public boolean hasCallbackId() {
            return hasCallbackId;
        }

        public int getCallbackId() {
            return callbackId_;
        }

        public boolean hasTaskId() {
            return hasTaskId;
        }

        public java.lang.String getTaskId() {
            return taskId_;
        }

        public boolean hasClientLastViewId() {
            return hasClientLastViewId;
        }

        public long getClientLastViewId() {
            return clientLastViewId_;
        }

        public boolean hasRequestId() {
            return hasRequestId;
        }

        public long getRequestId() {
            return requestId_;
        }

        private void initFields() {
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasClientId()) {
                output.writeString(1, getClientId());
            }
            if (hasClientIp()) {
                output.writeString(2, getClientIp());
            }
            if (hasClientPort()) {
                output.writeInt32(3, getClientPort());
            }
            if (hasClusterIp()) {
                output.writeString(4, getClusterIp());
            }
            if (hasClusterPort()) {
                output.writeInt32(5, getClusterPort());
            }
            if (hasCallbackId()) {
                output.writeInt32(6, getCallbackId());
            }
            if (hasTaskId()) {
                output.writeString(7, getTaskId());
            }
            if (hasClientLastViewId()) {
                output.writeInt64(8, getClientLastViewId());
            }
            if (hasRequestId()) {
                output.writeInt64(9, getRequestId());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasClientId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(1, getClientId());
            }
            if (hasClientIp()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(2, getClientIp());
            }
            if (hasClientPort()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(3, getClientPort());
            }
            if (hasClusterIp()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(4, getClusterIp());
            }
            if (hasClusterPort()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(5, getClusterPort());
            }
            if (hasCallbackId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(6, getCallbackId());
            }
            if (hasTaskId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeStringSize(7, getTaskId());
            }
            if (hasClientLastViewId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(8, getClientLastViewId());
            }
            if (hasRequestId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(9, getRequestId());
            }
            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.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand result;

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

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

            protected com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand other) {
                if (other == com.alachisoft.ncache.common.protobuf.TaskEnumeratorCommandProtocol.TaskEnumeratorCommand.getDefaultInstance())
                    return this;
                if (other.hasClientId()) {
                    setClientId(other.getClientId());
                }
                if (other.hasClientIp()) {
                    setClientIp(other.getClientIp());
                }
                if (other.hasClientPort()) {
                    setClientPort(other.getClientPort());
                }
                if (other.hasClusterIp()) {
                    setClusterIp(other.getClusterIp());
                }
                if (other.hasClusterPort()) {
                    setClusterPort(other.getClusterPort());
                }
                if (other.hasCallbackId()) {
                    setCallbackId(other.getCallbackId());
                }
                if (other.hasTaskId()) {
                    setTaskId(other.getTaskId());
                }
                if (other.hasClientLastViewId()) {
                    setClientLastViewId(other.getClientLastViewId());
                }
                if (other.hasRequestId()) {
                    setRequestId(other.getRequestId());
                }
                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: {
                            setClientId(input.readString());
                            break;
                        }
                        case 18: {
                            setClientIp(input.readString());
                            break;
                        }
                        case 24: {
                            setClientPort(input.readInt32());
                            break;
                        }
                        case 34: {
                            setClusterIp(input.readString());
                            break;
                        }
                        case 40: {
                            setClusterPort(input.readInt32());
                            break;
                        }
                        case 48: {
                            setCallbackId(input.readInt32());
                            break;
                        }
                        case 58: {
                            setTaskId(input.readString());
                            break;
                        }
                        case 64: {
                            setClientLastViewId(input.readInt64());
                            break;
                        }
                        case 72: {
                            setRequestId(input.readInt64());
                            break;
                        }
                    }
                }
            }


            // optional string ClientId = 1;
            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 ClientIp = 2;
            public boolean hasClientIp() {
                return result.hasClientIp();
            }

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

            public Builder setClientIp(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasClientIp = true;
                result.clientIp_ = value;
                return this;
            }

            public Builder clearClientIp() {
                result.hasClientIp = false;
                result.clientIp_ = getDefaultInstance().getClientIp();
                return this;
            }

            // optional int32 ClientPort = 3;
            public boolean hasClientPort() {
                return result.hasClientPort();
            }

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

            public Builder setClientPort(int value) {
                result.hasClientPort = true;
                result.clientPort_ = value;
                return this;
            }

            public Builder clearClientPort() {
                result.hasClientPort = false;
                result.clientPort_ = 0;
                return this;
            }

            // optional string ClusterIp = 4;
            public boolean hasClusterIp() {
                return result.hasClusterIp();
            }

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

            public Builder setClusterIp(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasClusterIp = true;
                result.clusterIp_ = value;
                return this;
            }

            public Builder clearClusterIp() {
                result.hasClusterIp = false;
                result.clusterIp_ = getDefaultInstance().getClusterIp();
                return this;
            }

            // optional int32 ClusterPort = 5;
            public boolean hasClusterPort() {
                return result.hasClusterPort();
            }

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

            public Builder setClusterPort(int value) {
                result.hasClusterPort = true;
                result.clusterPort_ = value;
                return this;
            }

            public Builder clearClusterPort() {
                result.hasClusterPort = false;
                result.clusterPort_ = 0;
                return this;
            }

            // optional int32 CallbackId = 6;
            public boolean hasCallbackId() {
                return result.hasCallbackId();
            }

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

            public Builder setCallbackId(int value) {
                result.hasCallbackId = true;
                result.callbackId_ = value;
                return this;
            }

            public Builder clearCallbackId() {
                result.hasCallbackId = false;
                result.callbackId_ = 0;
                return this;
            }

            // optional string TaskId = 7;
            public boolean hasTaskId() {
                return result.hasTaskId();
            }

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

            public Builder setTaskId(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasTaskId = true;
                result.taskId_ = value;
                return this;
            }

            public Builder clearTaskId() {
                result.hasTaskId = false;
                result.taskId_ = getDefaultInstance().getTaskId();
                return this;
            }

            // optional int64 clientLastViewId = 8 [default = -1];
            public boolean hasClientLastViewId() {
                return result.hasClientLastViewId();
            }

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

            public Builder setClientLastViewId(long value) {
                result.hasClientLastViewId = true;
                result.clientLastViewId_ = value;
                return this;
            }

            public Builder clearClientLastViewId() {
                result.hasClientLastViewId = false;
                result.clientLastViewId_ = -1L;
                return this;
            }

            // optional int64 requestId = 9;
            public boolean hasRequestId() {
                return result.hasRequestId();
            }

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

            public Builder setRequestId(long value) {
                result.hasRequestId = true;
                result.requestId_ = value;
                return this;
            }

            public Builder clearRequestId() {
                result.hasRequestId = false;
                result.requestId_ = 0L;
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy