silentbalanceyh/vertx-zero

View on GitHub
vertx-semper/aeon-eternal/aeon-inlet/src/main/java/io/vertx/mod/ipc/eon/IpcEnvelop.java

Summary

Maintainability
F
4 days
Test Coverage
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: zero.envelop.proto

package io.vertx.mod.ipc.eon;

/**
 * Protobuf type {@code io.vertx.mod.ipc.eon.IpcEnvelop}
 */
public final class IpcEnvelop extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:io.vertx.mod.ipc.eon.IpcEnvelop)
    IpcEnvelopOrBuilder {
    public static final int TYPE_FIELD_NUMBER = 1;
    public static final int BODY_FIELD_NUMBER = 2;
    public static final int STREAM_FIELD_NUMBER = 3;
    public static final int NAME_FIELD_NUMBER = 4;
    private static final long serialVersionUID = 0L;
    // @@protoc_insertion_point(class_scope:io.vertx.mod.ipc.eon.IpcEnvelop)
    private static final io.vertx.mod.ipc.eon.IpcEnvelop DEFAULT_INSTANCE;
    private static final com.google.protobuf.Parser<IpcEnvelop>
        PARSER = new com.google.protobuf.AbstractParser<IpcEnvelop>() {
        @Override
        public IpcEnvelop parsePartialFrom(
            final com.google.protobuf.CodedInputStream input,
            final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
            return new IpcEnvelop(input, extensionRegistry);
        }
    };

    static {
        DEFAULT_INSTANCE = new io.vertx.mod.ipc.eon.IpcEnvelop();
    }

    private int type_;
    private volatile java.lang.Object body_;
    private com.google.protobuf.ByteString stream_;
    private volatile java.lang.Object name_;
    private byte memoizedIsInitialized = -1;

    // Use IpcEnvelop.newBuilder() to construct.
    private IpcEnvelop(final com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
    }

    private IpcEnvelop() {
        this.type_ = 0;
        this.body_ = "";
        this.stream_ = com.google.protobuf.ByteString.EMPTY;
        this.name_ = "";
    }
    private IpcEnvelop(
        final com.google.protobuf.CodedInputStream input,
        final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        final int mutable_bitField0_ = 0;
        try {
            boolean done = false;
            while (!done) {
                final int tag = input.readTag();
                switch (tag) {
                    case 0:
                        done = true;
                        break;
                    default: {
                        if (!input.skipField(tag)) {
                            done = true;
                        }
                        break;
                    }
                    case 8: {
                        final int rawValue = input.readEnum();

                        this.type_ = rawValue;
                        break;
                    }
                    case 18: {
                        final java.lang.String s = input.readStringRequireUtf8();

                        this.body_ = s;
                        break;
                    }
                    case 26: {

                        this.stream_ = input.readBytes();
                        break;
                    }
                    case 34: {
                        final java.lang.String s = input.readStringRequireUtf8();

                        this.name_ = s;
                        break;
                    }
                }
            }
        } catch (final com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
        } catch (final java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(
                e).setUnfinishedMessage(this);
        } finally {
            this.makeExtensionsImmutable();
        }
    }

    public static final com.google.protobuf.Descriptors.Descriptor
    getDescriptor() {
        return io.vertx.mod.ipc.eon.UpEnvelop.internal_static_io_vertx_tp_ipc_eon_IpcEnvelop_descriptor;
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(
        final com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(
        final com.google.protobuf.ByteString data,
        final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(final byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(
        final byte[] data,
        final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(final java.io.InputStream input)
        throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(
        final java.io.InputStream input,
        final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseDelimitedFrom(final java.io.InputStream input)
        throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseDelimitedFrom(
        final java.io.InputStream input,
        final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(
        final com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop parseFrom(
        final com.google.protobuf.CodedInputStream input,
        final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(final io.vertx.mod.ipc.eon.IpcEnvelop prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    public static io.vertx.mod.ipc.eon.IpcEnvelop getDefaultInstance() {
        return DEFAULT_INSTANCE;
    }

    public static com.google.protobuf.Parser<IpcEnvelop> parser() {
        return PARSER;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
        return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }

    @Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    internalGetFieldAccessorTable() {
        return io.vertx.mod.ipc.eon.UpEnvelop.internal_static_io_vertx_tp_ipc_eon_IpcEnvelop_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.vertx.mod.ipc.eon.IpcEnvelop.class, io.vertx.mod.ipc.eon.IpcEnvelop.Builder.class);
    }

    /**
     * <pre>
     * Envelop data format
     * </pre>
     *
     * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
     */
    @Override
    public int getTypeValue() {
        return this.type_;
    }

    /**
     * <pre>
     * Envelop data format
     * </pre>
     *
     * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
     */
    @Override
    public io.vertx.mod.ipc.eon.em.Format getType() {
        final io.vertx.mod.ipc.eon.em.Format result = io.vertx.mod.ipc.eon.em.Format.valueOf(this.type_);
        return result == null ? io.vertx.mod.ipc.eon.em.Format.UNRECOGNIZED : result;
    }

    /**
     * <pre>
     * Body content
     * </pre>
     *
     * <code>string body = 2;</code>
     */
    @Override
    public java.lang.String getBody() {
        final java.lang.Object ref = this.body_;
        if (ref instanceof java.lang.String) {
            return (java.lang.String) ref;
        } else {
            final com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            final java.lang.String s = bs.toStringUtf8();
            this.body_ = s;
            return s;
        }
    }

    /**
     * <pre>
     * Body content
     * </pre>
     *
     * <code>string body = 2;</code>
     */
    @Override
    public com.google.protobuf.ByteString
    getBodyBytes() {
        final java.lang.Object ref = this.body_;
        if (ref instanceof java.lang.String) {
            final com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            this.body_ = b;
            return b;
        } else {
            return (com.google.protobuf.ByteString) ref;
        }
    }

    /**
     * <pre>
     * Stream content
     * </pre>
     *
     * <code>bytes stream = 3;</code>
     */
    @Override
    public com.google.protobuf.ByteString getStream() {
        return this.stream_;
    }

    /**
     * <pre>
     * Service name for method calling, connect to method
     * </pre>
     *
     * <code>string name = 4;</code>
     */
    @Override
    public java.lang.String getName() {
        final java.lang.Object ref = this.name_;
        if (ref instanceof java.lang.String) {
            return (java.lang.String) ref;
        } else {
            final com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            final java.lang.String s = bs.toStringUtf8();
            this.name_ = s;
            return s;
        }
    }

    /**
     * <pre>
     * Service name for method calling, connect to method
     * </pre>
     *
     * <code>string name = 4;</code>
     */
    @Override
    public com.google.protobuf.ByteString
    getNameBytes() {
        final java.lang.Object ref = this.name_;
        if (ref instanceof java.lang.String) {
            final com.google.protobuf.ByteString b =
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            this.name_ = b;
            return b;
        } else {
            return (com.google.protobuf.ByteString) ref;
        }
    }

    @Override
    public final boolean isInitialized() {
        final byte isInitialized = this.memoizedIsInitialized;
        if (isInitialized == 1) {
            return true;
        }
        if (isInitialized == 0) {
            return false;
        }

        this.memoizedIsInitialized = 1;
        return true;
    }

    @Override
    public void writeTo(final com.google.protobuf.CodedOutputStream output)
        throws java.io.IOException {
        if (this.type_ != io.vertx.mod.ipc.eon.em.Format.BINARY.getNumber()) {
            output.writeEnum(1, this.type_);
        }
        if (!this.getBodyBytes().isEmpty()) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, this.body_);
        }
        if (!this.stream_.isEmpty()) {
            output.writeBytes(3, this.stream_);
        }
        if (!this.getNameBytes().isEmpty()) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 4, this.name_);
        }
    }

    @Override
    public int getSerializedSize() {
        int size = this.memoizedSize;
        if (size != -1) {
            return size;
        }

        size = 0;
        if (this.type_ != io.vertx.mod.ipc.eon.em.Format.BINARY.getNumber()) {
            size += com.google.protobuf.CodedOutputStream
                .computeEnumSize(1, this.type_);
        }
        if (!this.getBodyBytes().isEmpty()) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, this.body_);
        }
        if (!this.stream_.isEmpty()) {
            size += com.google.protobuf.CodedOutputStream
                .computeBytesSize(3, this.stream_);
        }
        if (!this.getNameBytes().isEmpty()) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, this.name_);
        }
        this.memoizedSize = size;
        return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof io.vertx.mod.ipc.eon.IpcEnvelop)) {
            return super.equals(obj);
        }
        final io.vertx.mod.ipc.eon.IpcEnvelop other = (io.vertx.mod.ipc.eon.IpcEnvelop) obj;

        boolean result = true;
        result = result && this.type_ == other.type_;
        result = result && this.getBody()
            .equals(other.getBody());
        result = result && this.getStream()
            .equals(other.getStream());
        result = result && this.getName()
            .equals(other.getName());
        return result;
    }

    @java.lang.Override
    public int hashCode() {
        if (this.memoizedHashCode != 0) {
            return this.memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + this.type_;
        hash = (37 * hash) + BODY_FIELD_NUMBER;
        hash = (53 * hash) + this.getBody().hashCode();
        hash = (37 * hash) + STREAM_FIELD_NUMBER;
        hash = (53 * hash) + this.getStream().hashCode();
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + this.getName().hashCode();
        hash = (29 * hash) + this.unknownFields.hashCode();
        this.memoizedHashCode = hash;
        return hash;
    }

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

    @Override
    public Builder toBuilder() {
        return this == DEFAULT_INSTANCE
            ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        final com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        final Builder builder = new Builder(parent);
        return builder;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<IpcEnvelop> getParserForType() {
        return PARSER;
    }

    @Override
    public io.vertx.mod.ipc.eon.IpcEnvelop getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
    }

    /**
     * Protobuf type {@code io.vertx.mod.ipc.eon.IpcEnvelop}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:io.vertx.mod.ipc.eon.IpcEnvelop)
        io.vertx.mod.ipc.eon.IpcEnvelopOrBuilder {
        private int type_ = 0;
        private java.lang.Object body_ = "";
        private com.google.protobuf.ByteString stream_ = com.google.protobuf.ByteString.EMPTY;
        private java.lang.Object name_ = "";

        // Construct using io.vertx.mod.ipc.eon.IpcEnvelop.newBuilder()
        private Builder() {
            this.maybeForceBuilderInitialization();
        }

        private Builder(
            final com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            super(parent);
            this.maybeForceBuilderInitialization();
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return io.vertx.mod.ipc.eon.UpEnvelop.internal_static_io_vertx_tp_ipc_eon_IpcEnvelop_descriptor;
        }

        @Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return io.vertx.mod.ipc.eon.UpEnvelop.internal_static_io_vertx_tp_ipc_eon_IpcEnvelop_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                    io.vertx.mod.ipc.eon.IpcEnvelop.class, io.vertx.mod.ipc.eon.IpcEnvelop.Builder.class);
        }

        private void maybeForceBuilderInitialization() {
            if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
            }
        }

        @Override
        public Builder clear() {
            super.clear();
            this.type_ = 0;

            this.body_ = "";

            this.stream_ = com.google.protobuf.ByteString.EMPTY;

            this.name_ = "";

            return this;
        }

        @Override
        public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
            return io.vertx.mod.ipc.eon.UpEnvelop.internal_static_io_vertx_tp_ipc_eon_IpcEnvelop_descriptor;
        }

        @Override
        public io.vertx.mod.ipc.eon.IpcEnvelop getDefaultInstanceForType() {
            return io.vertx.mod.ipc.eon.IpcEnvelop.getDefaultInstance();
        }

        @Override
        public io.vertx.mod.ipc.eon.IpcEnvelop build() {
            final io.vertx.mod.ipc.eon.IpcEnvelop result = this.buildPartial();
            if (!result.isInitialized()) {
                throw newUninitializedMessageException(result);
            }
            return result;
        }

        @Override
        public io.vertx.mod.ipc.eon.IpcEnvelop buildPartial() {
            final io.vertx.mod.ipc.eon.IpcEnvelop result = new io.vertx.mod.ipc.eon.IpcEnvelop(this);
            result.type_ = this.type_;
            result.body_ = this.body_;
            result.stream_ = this.stream_;
            result.name_ = this.name_;
            this.onBuilt();
            return result;
        }

        @Override
        public Builder clone() {
            return (Builder) super.clone();
        }

        @Override
        public Builder setField(
            final com.google.protobuf.Descriptors.FieldDescriptor field,
            final Object value) {
            return (Builder) super.setField(field, value);
        }

        @Override
        public Builder clearField(
            final com.google.protobuf.Descriptors.FieldDescriptor field) {
            return (Builder) super.clearField(field);
        }

        @Override
        public Builder clearOneof(
            final com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            return (Builder) super.clearOneof(oneof);
        }

        @Override
        public Builder setRepeatedField(
            final com.google.protobuf.Descriptors.FieldDescriptor field,
            final int index, final Object value) {
            return (Builder) super.setRepeatedField(field, index, value);
        }

        @Override
        public Builder addRepeatedField(
            final com.google.protobuf.Descriptors.FieldDescriptor field,
            final Object value) {
            return (Builder) super.addRepeatedField(field, value);
        }

        @Override
        public Builder mergeFrom(final com.google.protobuf.Message other) {
            if (other instanceof io.vertx.mod.ipc.eon.IpcEnvelop) {
                return this.mergeFrom((io.vertx.mod.ipc.eon.IpcEnvelop) other);
            } else {
                super.mergeFrom(other);
                return this;
            }
        }

        public Builder mergeFrom(final io.vertx.mod.ipc.eon.IpcEnvelop other) {
            if (other == io.vertx.mod.ipc.eon.IpcEnvelop.getDefaultInstance()) {
                return this;
            }
            if (other.type_ != 0) {
                this.setTypeValue(other.getTypeValue());
            }
            if (!other.getBody().isEmpty()) {
                this.body_ = other.body_;
                this.onChanged();
            }
            if (other.getStream() != com.google.protobuf.ByteString.EMPTY) {
                this.setStream(other.getStream());
            }
            if (!other.getName().isEmpty()) {
                this.name_ = other.name_;
                this.onChanged();
            }
            this.onChanged();
            return this;
        }

        @Override
        public final boolean isInitialized() {
            return true;
        }

        @Override
        public Builder mergeFrom(
            final com.google.protobuf.CodedInputStream input,
            final com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
            io.vertx.mod.ipc.eon.IpcEnvelop parsedMessage = null;
            try {
                parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
            } catch (final com.google.protobuf.InvalidProtocolBufferException e) {
                parsedMessage = (io.vertx.mod.ipc.eon.IpcEnvelop) e.getUnfinishedMessage();
                throw e.unwrapIOException();
            } finally {
                if (parsedMessage != null) {
                    this.mergeFrom(parsedMessage);
                }
            }
            return this;
        }

        /**
         * <pre>
         * Envelop data format
         * </pre>
         *
         * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
         */
        @Override
        public int getTypeValue() {
            return this.type_;
        }

        /**
         * <pre>
         * Envelop data format
         * </pre>
         *
         * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
         */
        public Builder setTypeValue(final int value) {
            this.type_ = value;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Envelop data format
         * </pre>
         *
         * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
         */
        @Override
        public io.vertx.mod.ipc.eon.em.Format getType() {
            final io.vertx.mod.ipc.eon.em.Format result = io.vertx.mod.ipc.eon.em.Format.valueOf(this.type_);
            return result == null ? io.vertx.mod.ipc.eon.em.Format.UNRECOGNIZED : result;
        }

        /**
         * <pre>
         * Envelop data format
         * </pre>
         *
         * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
         */
        public Builder setType(final io.vertx.mod.ipc.eon.em.Format value) {
            if (value == null) {
                throw new NullPointerException();
            }

            this.type_ = value.getNumber();
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Envelop data format
         * </pre>
         *
         * <code>.io.vertx.mod.ipc.eon.em.Format type = 1;</code>
         */
        public Builder clearType() {

            this.type_ = 0;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Body content
         * </pre>
         *
         * <code>string body = 2;</code>
         */
        @Override
        public java.lang.String getBody() {
            final java.lang.Object ref = this.body_;
            if (!(ref instanceof java.lang.String)) {
                final com.google.protobuf.ByteString bs =
                    (com.google.protobuf.ByteString) ref;
                final java.lang.String s = bs.toStringUtf8();
                this.body_ = s;
                return s;
            } else {
                return (java.lang.String) ref;
            }
        }

        /**
         * <pre>
         * Body content
         * </pre>
         *
         * <code>string body = 2;</code>
         */
        public Builder setBody(
            final java.lang.String value) {
            if (value == null) {
                throw new NullPointerException();
            }

            this.body_ = value;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Body content
         * </pre>
         *
         * <code>string body = 2;</code>
         */
        @Override
        public com.google.protobuf.ByteString
        getBodyBytes() {
            final java.lang.Object ref = this.body_;
            if (ref instanceof String) {
                final com.google.protobuf.ByteString b =
                    com.google.protobuf.ByteString.copyFromUtf8(
                        (java.lang.String) ref);
                this.body_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        /**
         * <pre>
         * Body content
         * </pre>
         *
         * <code>string body = 2;</code>
         */
        public Builder setBodyBytes(
            final com.google.protobuf.ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);

            this.body_ = value;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Body content
         * </pre>
         *
         * <code>string body = 2;</code>
         */
        public Builder clearBody() {

            this.body_ = getDefaultInstance().getBody();
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Stream content
         * </pre>
         *
         * <code>bytes stream = 3;</code>
         */
        @Override
        public com.google.protobuf.ByteString getStream() {
            return this.stream_;
        }

        /**
         * <pre>
         * Stream content
         * </pre>
         *
         * <code>bytes stream = 3;</code>
         */
        public Builder setStream(final com.google.protobuf.ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }

            this.stream_ = value;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Stream content
         * </pre>
         *
         * <code>bytes stream = 3;</code>
         */
        public Builder clearStream() {

            this.stream_ = getDefaultInstance().getStream();
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Service name for method calling, connect to method
         * </pre>
         *
         * <code>string name = 4;</code>
         */
        @Override
        public java.lang.String getName() {
            final java.lang.Object ref = this.name_;
            if (!(ref instanceof java.lang.String)) {
                final com.google.protobuf.ByteString bs =
                    (com.google.protobuf.ByteString) ref;
                final java.lang.String s = bs.toStringUtf8();
                this.name_ = s;
                return s;
            } else {
                return (java.lang.String) ref;
            }
        }

        /**
         * <pre>
         * Service name for method calling, connect to method
         * </pre>
         *
         * <code>string name = 4;</code>
         */
        public Builder setName(
            final java.lang.String value) {
            if (value == null) {
                throw new NullPointerException();
            }

            this.name_ = value;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Service name for method calling, connect to method
         * </pre>
         *
         * <code>string name = 4;</code>
         */
        @Override
        public com.google.protobuf.ByteString
        getNameBytes() {
            final java.lang.Object ref = this.name_;
            if (ref instanceof String) {
                final com.google.protobuf.ByteString b =
                    com.google.protobuf.ByteString.copyFromUtf8(
                        (java.lang.String) ref);
                this.name_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        /**
         * <pre>
         * Service name for method calling, connect to method
         * </pre>
         *
         * <code>string name = 4;</code>
         */
        public Builder setNameBytes(
            final com.google.protobuf.ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);

            this.name_ = value;
            this.onChanged();
            return this;
        }

        /**
         * <pre>
         * Service name for method calling, connect to method
         * </pre>
         *
         * <code>string name = 4;</code>
         */
        public Builder clearName() {

            this.name_ = getDefaultInstance().getName();
            this.onChanged();
            return this;
        }

        @Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
            return this;
        }

        @Override
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
            return this;
        }


        // @@protoc_insertion_point(builder_scope:io.vertx.mod.ipc.eon.IpcEnvelop)
    }

}