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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class NCManagementResponseProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_NCManagementResponse_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_NCManagementResponse_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\032NCManagementResponse.proto\022%com.alachi" +
                        "soft.ncache.common.protobuf\032\030StartCacheR" +
                        "esponse.proto\032\017Exception.proto\"\256\002\n\024NCMan" +
                        "agementResponse\022\021\n\trequestId\030\001 \001(\003\022V\n\014re" +
                        "sponseType\030\002 \001(\[email protected]" +
                        ".common.protobuf.NCManagementResponse.Ty" +
                        "pe\022C\n\texception\030\003 \001(\01320.com.alachisoft.n" +
                        "cache.common.protobuf.Exception\022M\n\nstart" +
                        "Cache\030\004 \001(\01329.com.alachisoft.ncache.comm" +
                        "on.protobuf.StartCacheResponse\"\027\n\004Type\022\017",
                "\n\013START_CACHE\020\001B\036B\034NCManagementResponseP" +
                        "rotocol"
        };
        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_NCManagementResponse_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_NCManagementResponse_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_NCManagementResponse_descriptor,
                                new java.lang.String[]{"RequestId", "ResponseType", "Exception", "StartCache",},
                                com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.class,
                                com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.getDescriptor(),
                                com.alachisoft.ncache.common.protobuf.ExceptionProtocol.getDescriptor(),
                        }, assigner);
    }
    private NCManagementResponseProtocol() {
    }

    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 NCManagementResponse extends
            com.google.protobuf.GeneratedMessage {
        // optional int64 requestId = 1;
        public static final int REQUESTID_FIELD_NUMBER = 1;
        // optional .com.alachisoft.ncache.common.protobuf.NCManagementResponse.Type responseType = 2;
        public static final int RESPONSETYPE_FIELD_NUMBER = 2;
        // optional .com.alachisoft.ncache.common.protobuf.Exception exception = 3;
        public static final int EXCEPTION_FIELD_NUMBER = 3;
        // optional .com.alachisoft.ncache.common.protobuf.StartCacheResponse startCache = 4;
        public static final int STARTCACHE_FIELD_NUMBER = 4;
        private static final NCManagementResponse defaultInstance;

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

        private boolean hasRequestId;
        private long requestId_ = 0L;
        private boolean hasResponseType;
        private com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type responseType_;
        private boolean hasException;
        private com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception exception_;
        private boolean hasStartCache;
        private com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse startCache_;
        private int memoizedSerializedSize = -1;
        // Use NCManagementResponse.newBuilder() to construct.
        private NCManagementResponse() {
            initFields();
        }

        private NCManagementResponse(boolean noInit) {
        }

        public static NCManagementResponse getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public NCManagementResponse getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasRequestId() {
            return hasRequestId;
        }

        public long getRequestId() {
            return requestId_;
        }

        public boolean hasResponseType() {
            return hasResponseType;
        }

        public com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type getResponseType() {
            return responseType_;
        }

        public boolean hasException() {
            return hasException;
        }

        public com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception getException() {
            return exception_;
        }

        public boolean hasStartCache() {
            return hasStartCache;
        }

        public com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse getStartCache() {
            return startCache_;
        }

        private void initFields() {
            responseType_ = com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type.START_CACHE;
            exception_ = com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.getDefaultInstance();
            startCache_ = com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.getDefaultInstance();
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasRequestId()) {
                output.writeInt64(1, getRequestId());
            }
            if (hasResponseType()) {
                output.writeEnum(2, getResponseType().getNumber());
            }
            if (hasException()) {
                output.writeMessage(3, getException());
            }
            if (hasStartCache()) {
                output.writeMessage(4, getStartCache());
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasRequestId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt64Size(1, getRequestId());
            }
            if (hasResponseType()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeEnumSize(2, getResponseType().getNumber());
            }
            if (hasException()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, getException());
            }
            if (hasStartCache()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(4, getStartCache());
            }
            size += getUnknownFields().getSerializedSize();
            memoizedSerializedSize = size;
            return size;
        }

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

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

        public enum Type
                implements com.google.protobuf.ProtocolMessageEnum {
            START_CACHE(0, 1),
            ;


            private static final Type[] VALUES = {
                    START_CACHE,
            };
            private static com.google.protobuf.Internal.EnumLiteMap
                    internalValueMap =
                    new com.google.protobuf.Internal.EnumLiteMap() {
                        public Type findValueByNumber(int number) {
                            return Type.valueOf(number)
                                    ;
                        }
                    };

            static {
                com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.getDescriptor();
            }

            private final int index;
            private final int value;

            private Type(int index, int value) {
                this.index = index;
                this.value = value;
            }

            public static Type valueOf(int value) {
                switch (value) {
                    case 1:
                        return START_CACHE;
                    default:
                        return null;
                }
            }

            public static com.google.protobuf.Internal.EnumLiteMap
            internalGetValueMap() {
                return internalValueMap;
            }

            public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
                return com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.getDescriptor().getEnumTypes().get(0);
            }

            public static Type valueOf(
                    com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                if (desc.getType() != getDescriptor()) {
                    throw new java.lang.IllegalArgumentException(
                            "EnumValueDescriptor is not for this type.");
                }
                return VALUES[desc.getIndex()];
            }

            public final int getNumber() {
                return value;
            }

            public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
                return getDescriptor().getValues().get(index);
            }

            public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
                return getDescriptor();
            }

            // @@protoc_insertion_point(enum_scope:com.alachisoft.ncache.common.protobuf.NCManagementResponse.Type)
        }

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

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

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

            protected com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.getDefaultInstance();
            }

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

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

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

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

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse other) {
                if (other == com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.getDefaultInstance())
                    return this;
                if (other.hasRequestId()) {
                    setRequestId(other.getRequestId());
                }
                if (other.hasResponseType()) {
                    setResponseType(other.getResponseType());
                }
                if (other.hasException()) {
                    mergeException(other.getException());
                }
                if (other.hasStartCache()) {
                    mergeStartCache(other.getStartCache());
                }
                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 8: {
                            setRequestId(input.readInt64());
                            break;
                        }
                        case 16: {
                            int rawValue = input.readEnum();
                            com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type value = com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type.valueOf(rawValue);
                            if (value == null) {
                                unknownFields.mergeVarintField(2, rawValue);
                            } else {
                                setResponseType(value);
                            }
                            break;
                        }
                        case 26: {
                            com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.Builder subBuilder = com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.newBuilder();
                            if (hasException()) {
                                subBuilder.mergeFrom(getException());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setException(subBuilder.buildPartial());
                            break;
                        }
                        case 34: {
                            com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.Builder subBuilder = com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.newBuilder();
                            if (hasStartCache()) {
                                subBuilder.mergeFrom(getStartCache());
                            }
                            input.readMessage(subBuilder, extensionRegistry);
                            setStartCache(subBuilder.buildPartial());
                            break;
                        }
                    }
                }
            }


            // optional int64 requestId = 1;
            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;
            }

            // optional .com.alachisoft.ncache.common.protobuf.NCManagementResponse.Type responseType = 2;
            public boolean hasResponseType() {
                return result.hasResponseType();
            }

            public com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type getResponseType() {
                return result.getResponseType();
            }

            public Builder setResponseType(com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasResponseType = true;
                result.responseType_ = value;
                return this;
            }

            public Builder clearResponseType() {
                result.hasResponseType = false;
                result.responseType_ = com.alachisoft.ncache.common.protobuf.NCManagementResponseProtocol.NCManagementResponse.Type.START_CACHE;
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.Exception exception = 3;
            public boolean hasException() {
                return result.hasException();
            }

            public com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception getException() {
                return result.getException();
            }

            public Builder setException(com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasException = true;
                result.exception_ = value;
                return this;
            }

            public Builder setException(com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.Builder builderForValue) {
                result.hasException = true;
                result.exception_ = builderForValue.build();
                return this;
            }

            public Builder mergeException(com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception value) {
                if (result.hasException() &&
                        result.exception_ != com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.getDefaultInstance()) {
                    result.exception_ =
                            com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.newBuilder(result.exception_).mergeFrom(value).buildPartial();
                } else {
                    result.exception_ = value;
                }
                result.hasException = true;
                return this;
            }

            public Builder clearException() {
                result.hasException = false;
                result.exception_ = com.alachisoft.ncache.common.protobuf.ExceptionProtocol.Exception.getDefaultInstance();
                return this;
            }

            // optional .com.alachisoft.ncache.common.protobuf.StartCacheResponse startCache = 4;
            public boolean hasStartCache() {
                return result.hasStartCache();
            }

            public com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse getStartCache() {
                return result.getStartCache();
            }

            public Builder setStartCache(com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.hasStartCache = true;
                result.startCache_ = value;
                return this;
            }

            public Builder setStartCache(com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.Builder builderForValue) {
                result.hasStartCache = true;
                result.startCache_ = builderForValue.build();
                return this;
            }

            public Builder mergeStartCache(com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse value) {
                if (result.hasStartCache() &&
                        result.startCache_ != com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.getDefaultInstance()) {
                    result.startCache_ =
                            com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.newBuilder(result.startCache_).mergeFrom(value).buildPartial();
                } else {
                    result.startCache_ = value;
                }
                result.hasStartCache = true;
                return this;
            }

            public Builder clearStartCache() {
                result.hasStartCache = false;
                result.startCache_ = com.alachisoft.ncache.common.protobuf.StartCacheResponseProtocol.StartCacheResponse.getDefaultInstance();
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy