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

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

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

package com.alachisoft.ncache.common.protobuf;

public final class DSUpdatedCallbackResponseProtocol {
    private static com.google.protobuf.Descriptors.Descriptor
            internal_static_com_alachisoft_ncache_common_protobuf_DSUpdatedCallbackResponse_descriptor;
    private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internal_static_com_alachisoft_ncache_common_protobuf_DSUpdatedCallbackResponse_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.FileDescriptor
            descriptor;

    static {
        java.lang.String[] descriptorData = {
                "\n\037DSUpdatedCallbackResponse.proto\022%com.a" +
                        "lachisoft.ncache.common.protobuf\032\035DSUpda" +
                        "tedCallbackResult.proto\"\217\001\n\031DSUpdatedCal" +
                        "lbackResponse\022\022\n\ncallbackId\030\001 \001(\021\022\016\n\006opC" +
                        "ode\030\002 \001(\005\022N\n\006result\030\003 \003(\0132>.com.alachiso" +
                        "ft.ncache.common.protobuf.DSUpdatedCallb" +
                        "ackResultB#B!DSUpdatedCallbackResponsePr" +
                        "otocol"
        };
        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_DSUpdatedCallbackResponse_descriptor =
                                getDescriptor().getMessageTypes().get(0);
                        internal_static_com_alachisoft_ncache_common_protobuf_DSUpdatedCallbackResponse_fieldAccessorTable = new
                                com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                                internal_static_com_alachisoft_ncache_common_protobuf_DSUpdatedCallbackResponse_descriptor,
                                new java.lang.String[]{"CallbackId", "OpCode", "Result",},
                                com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse.class,
                                com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse.Builder.class);
                        return null;
                    }
                };
        com.google.protobuf.Descriptors.FileDescriptor
                .internalBuildGeneratedFileFrom(descriptorData,
                        new com.google.protobuf.Descriptors.FileDescriptor[]{
                                com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.getDescriptor(),
                        }, assigner);
    }
    private DSUpdatedCallbackResponseProtocol() {
    }

    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 DSUpdatedCallbackResponse extends
            com.google.protobuf.GeneratedMessage {
        // optional sint32 callbackId = 1;
        public static final int CALLBACKID_FIELD_NUMBER = 1;
        // optional int32 opCode = 2;
        public static final int OPCODE_FIELD_NUMBER = 2;
        // repeated .com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResult result = 3;
        public static final int RESULT_FIELD_NUMBER = 3;
        private static final DSUpdatedCallbackResponse defaultInstance;

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

        private boolean hasCallbackId;
        private int callbackId_ = 0;
        private boolean hasOpCode;
        private int opCode_ = 0;
        private java.util.List result_ =
                java.util.Collections.emptyList();
        private int memoizedSerializedSize = -1;

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

        private DSUpdatedCallbackResponse(boolean noInit) {
        }

        public static DSUpdatedCallbackResponse getDefaultInstance() {
            return defaultInstance;
        }

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

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

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

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

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

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

        public DSUpdatedCallbackResponse getDefaultInstanceForType() {
            return defaultInstance;
        }

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

        public boolean hasCallbackId() {
            return hasCallbackId;
        }

        public int getCallbackId() {
            return callbackId_;
        }

        public boolean hasOpCode() {
            return hasOpCode;
        }

        public int getOpCode() {
            return opCode_;
        }

        public java.util.List getResultList() {
            return result_;
        }

        public int getResultCount() {
            return result_.size();
        }

        public com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult getResult(int index) {
            return result_.get(index);
        }

        private void initFields() {
        }

        public final boolean isInitialized() {
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            getSerializedSize();
            if (hasCallbackId()) {
                output.writeSInt32(1, getCallbackId());
            }
            if (hasOpCode()) {
                output.writeInt32(2, getOpCode());
            }
            for (com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult element : getResultList()) {
                output.writeMessage(3, element);
            }
            getUnknownFields().writeTo(output);
        }

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

            size = 0;
            if (hasCallbackId()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeSInt32Size(1, getCallbackId());
            }
            if (hasOpCode()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(2, getOpCode());
            }
            for (com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult element : getResultList()) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(3, element);
            }
            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.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse result;

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

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

            protected com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse internalGetResult() {
                return result;
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse getDefaultInstanceForType() {
                return com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse.getDefaultInstance();
            }

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

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

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

            public com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse buildPartial() {
                if (result == null) {
                    throw new IllegalStateException(
                            "build() has already been called on this Builder.");
                }
                if (result.result_ != java.util.Collections.EMPTY_LIST) {
                    result.result_ =
                            java.util.Collections.unmodifiableList(result.result_);
                }
                com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse returnMe = result;
                result = null;
                return returnMe;
            }

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

            public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse other) {
                if (other == com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResponseProtocol.DSUpdatedCallbackResponse.getDefaultInstance())
                    return this;
                if (other.hasCallbackId()) {
                    setCallbackId(other.getCallbackId());
                }
                if (other.hasOpCode()) {
                    setOpCode(other.getOpCode());
                }
                if (!other.result_.isEmpty()) {
                    if (result.result_.isEmpty()) {
                        result.result_ = new java.util.ArrayList();
                    }
                    result.result_.addAll(other.result_);
                }
                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: {
                            setCallbackId(input.readSInt32());
                            break;
                        }
                        case 16: {
                            setOpCode(input.readInt32());
                            break;
                        }
                        case 26: {
                            com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult.Builder subBuilder = com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult.newBuilder();
                            input.readMessage(subBuilder, extensionRegistry);
                            addResult(subBuilder.buildPartial());
                            break;
                        }
                    }
                }
            }


            // optional sint32 callbackId = 1;
            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 int32 opCode = 2;
            public boolean hasOpCode() {
                return result.hasOpCode();
            }

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

            public Builder setOpCode(int value) {
                result.hasOpCode = true;
                result.opCode_ = value;
                return this;
            }

            public Builder clearOpCode() {
                result.hasOpCode = false;
                result.opCode_ = 0;
                return this;
            }

            // repeated .com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResult result = 3;
            public java.util.List getResultList() {
                return java.util.Collections.unmodifiableList(result.result_);
            }

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

            public com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult getResult(int index) {
                return result.getResult(index);
            }

            public Builder setResult(int index, com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                result.result_.set(index, value);
                return this;
            }

            public Builder setResult(int index, com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult.Builder builderForValue) {
                result.result_.set(index, builderForValue.build());
                return this;
            }

            public Builder addResult(com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                if (result.result_.isEmpty()) {
                    result.result_ = new java.util.ArrayList();
                }
                result.result_.add(value);
                return this;
            }

            public Builder addResult(com.alachisoft.ncache.common.protobuf.DSUpdatedCallbackResultProtocol.DSUpdatedCallbackResult.Builder builderForValue) {
                if (result.result_.isEmpty()) {
                    result.result_ = new java.util.ArrayList();
                }
                result.result_.add(builderForValue.build());
                return this;
            }

            public Builder addAllResult(
                    java.lang.Iterable values) {
                if (result.result_.isEmpty()) {
                    result.result_ = new java.util.ArrayList();
                }
                super.addAll(values, result.result_);
                return this;
            }

            public Builder clearResult() {
                result.result_ = java.util.Collections.emptyList();
                return this;
            }

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

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

    // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy