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

package com.kfzs.duanduan.proto;

public final class MessageOuterClass {
  private MessageOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface MessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protobuf.Message)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 Id = 1;</code>
     */
    int getId();

    /**
     * <code>int32 UserIdTo = 2;</code>
     */
    int getUserIdTo();

    /**
     * <code>int32 UserIdFrom = 3;</code>
     */
    int getUserIdFrom();

    /**
     * <code>string From = 4;</code>
     */
    java.lang.String getFrom();
    /**
     * <code>string From = 4;</code>
     */
    com.google.protobuf.ByteString
        getFromBytes();

    /**
     * <code>string Content = 5;</code>
     */
    java.lang.String getContent();
    /**
     * <code>string Content = 5;</code>
     */
    com.google.protobuf.ByteString
        getContentBytes();

    /**
     * <code>string Extend = 6;</code>
     */
    java.lang.String getExtend();
    /**
     * <code>string Extend = 6;</code>
     */
    com.google.protobuf.ByteString
        getExtendBytes();

    /**
     * <code>int64 CreatedTime = 7;</code>
     */
    long getCreatedTime();

    /**
     * <code>.protobuf.User UserFrom = 10;</code>
     */
    boolean hasUserFrom();
    /**
     * <code>.protobuf.User UserFrom = 10;</code>
     */
    com.kfzs.duanduan.proto.UserOuterClass.User getUserFrom();
    /**
     * <code>.protobuf.User UserFrom = 10;</code>
     */
    com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder getUserFromOrBuilder();

    /**
     * <code>.protobuf.User UserTo = 11;</code>
     */
    boolean hasUserTo();
    /**
     * <code>.protobuf.User UserTo = 11;</code>
     */
    com.kfzs.duanduan.proto.UserOuterClass.User getUserTo();
    /**
     * <code>.protobuf.User UserTo = 11;</code>
     */
    com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder getUserToOrBuilder();
  }
  /**
   * Protobuf type {@code protobuf.Message}
   */
  public  static final class Message extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.Message)
      MessageOrBuilder {
    // Use Message.newBuilder() to construct.
    private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Message() {
      id_ = 0;
      userIdTo_ = 0;
      userIdFrom_ = 0;
      from_ = "";
      content_ = "";
      extend_ = "";
      createdTime_ = 0L;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private Message(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 8: {

              id_ = input.readInt32();
              break;
            }
            case 16: {

              userIdTo_ = input.readInt32();
              break;
            }
            case 24: {

              userIdFrom_ = input.readInt32();
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              from_ = s;
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();

              content_ = s;
              break;
            }
            case 50: {
              java.lang.String s = input.readStringRequireUtf8();

              extend_ = s;
              break;
            }
            case 56: {

              createdTime_ = input.readInt64();
              break;
            }
            case 82: {
              com.kfzs.duanduan.proto.UserOuterClass.User.Builder subBuilder = null;
              if (userFrom_ != null) {
                subBuilder = userFrom_.toBuilder();
              }
              userFrom_ = input.readMessage(com.kfzs.duanduan.proto.UserOuterClass.User.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(userFrom_);
                userFrom_ = subBuilder.buildPartial();
              }

              break;
            }
            case 90: {
              com.kfzs.duanduan.proto.UserOuterClass.User.Builder subBuilder = null;
              if (userTo_ != null) {
                subBuilder = userTo_.toBuilder();
              }
              userTo_ = input.readMessage(com.kfzs.duanduan.proto.UserOuterClass.User.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(userTo_);
                userTo_ = subBuilder.buildPartial();
              }

              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.kfzs.duanduan.proto.MessageOuterClass.internal_static_protobuf_Message_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.MessageOuterClass.internal_static_protobuf_Message_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.MessageOuterClass.Message.class, com.kfzs.duanduan.proto.MessageOuterClass.Message.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private int id_;
    /**
     * <code>int32 Id = 1;</code>
     */
    public int getId() {
      return id_;
    }

    public static final int USERIDTO_FIELD_NUMBER = 2;
    private int userIdTo_;
    /**
     * <code>int32 UserIdTo = 2;</code>
     */
    public int getUserIdTo() {
      return userIdTo_;
    }

    public static final int USERIDFROM_FIELD_NUMBER = 3;
    private int userIdFrom_;
    /**
     * <code>int32 UserIdFrom = 3;</code>
     */
    public int getUserIdFrom() {
      return userIdFrom_;
    }

    public static final int FROM_FIELD_NUMBER = 4;
    private volatile java.lang.Object from_;
    /**
     * <code>string From = 4;</code>
     */
    public java.lang.String getFrom() {
      java.lang.Object ref = from_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        from_ = s;
        return s;
      }
    }
    /**
     * <code>string From = 4;</code>
     */
    public com.google.protobuf.ByteString
        getFromBytes() {
      java.lang.Object ref = from_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        from_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CONTENT_FIELD_NUMBER = 5;
    private volatile java.lang.Object content_;
    /**
     * <code>string Content = 5;</code>
     */
    public java.lang.String getContent() {
      java.lang.Object ref = content_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        content_ = s;
        return s;
      }
    }
    /**
     * <code>string Content = 5;</code>
     */
    public com.google.protobuf.ByteString
        getContentBytes() {
      java.lang.Object ref = content_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        content_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EXTEND_FIELD_NUMBER = 6;
    private volatile java.lang.Object extend_;
    /**
     * <code>string Extend = 6;</code>
     */
    public java.lang.String getExtend() {
      java.lang.Object ref = extend_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        extend_ = s;
        return s;
      }
    }
    /**
     * <code>string Extend = 6;</code>
     */
    public com.google.protobuf.ByteString
        getExtendBytes() {
      java.lang.Object ref = extend_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        extend_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CREATEDTIME_FIELD_NUMBER = 7;
    private long createdTime_;
    /**
     * <code>int64 CreatedTime = 7;</code>
     */
    public long getCreatedTime() {
      return createdTime_;
    }

    public static final int USERFROM_FIELD_NUMBER = 10;
    private com.kfzs.duanduan.proto.UserOuterClass.User userFrom_;
    /**
     * <code>.protobuf.User UserFrom = 10;</code>
     */
    public boolean hasUserFrom() {
      return userFrom_ != null;
    }
    /**
     * <code>.protobuf.User UserFrom = 10;</code>
     */
    public com.kfzs.duanduan.proto.UserOuterClass.User getUserFrom() {
      return userFrom_ == null ? com.kfzs.duanduan.proto.UserOuterClass.User.getDefaultInstance() : userFrom_;
    }
    /**
     * <code>.protobuf.User UserFrom = 10;</code>
     */
    public com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder getUserFromOrBuilder() {
      return getUserFrom();
    }

    public static final int USERTO_FIELD_NUMBER = 11;
    private com.kfzs.duanduan.proto.UserOuterClass.User userTo_;
    /**
     * <code>.protobuf.User UserTo = 11;</code>
     */
    public boolean hasUserTo() {
      return userTo_ != null;
    }
    /**
     * <code>.protobuf.User UserTo = 11;</code>
     */
    public com.kfzs.duanduan.proto.UserOuterClass.User getUserTo() {
      return userTo_ == null ? com.kfzs.duanduan.proto.UserOuterClass.User.getDefaultInstance() : userTo_;
    }
    /**
     * <code>.protobuf.User UserTo = 11;</code>
     */
    public com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder getUserToOrBuilder() {
      return getUserTo();
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (id_ != 0) {
        output.writeInt32(1, id_);
      }
      if (userIdTo_ != 0) {
        output.writeInt32(2, userIdTo_);
      }
      if (userIdFrom_ != 0) {
        output.writeInt32(3, userIdFrom_);
      }
      if (!getFromBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, from_);
      }
      if (!getContentBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, content_);
      }
      if (!getExtendBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, extend_);
      }
      if (createdTime_ != 0L) {
        output.writeInt64(7, createdTime_);
      }
      if (userFrom_ != null) {
        output.writeMessage(10, getUserFrom());
      }
      if (userTo_ != null) {
        output.writeMessage(11, getUserTo());
      }
    }

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

      size = 0;
      if (id_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, id_);
      }
      if (userIdTo_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, userIdTo_);
      }
      if (userIdFrom_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, userIdFrom_);
      }
      if (!getFromBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, from_);
      }
      if (!getContentBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, content_);
      }
      if (!getExtendBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, extend_);
      }
      if (createdTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, createdTime_);
      }
      if (userFrom_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(10, getUserFrom());
      }
      if (userTo_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(11, getUserTo());
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.kfzs.duanduan.proto.MessageOuterClass.Message)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.MessageOuterClass.Message other = (com.kfzs.duanduan.proto.MessageOuterClass.Message) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && (getUserIdTo()
          == other.getUserIdTo());
      result = result && (getUserIdFrom()
          == other.getUserIdFrom());
      result = result && getFrom()
          .equals(other.getFrom());
      result = result && getContent()
          .equals(other.getContent());
      result = result && getExtend()
          .equals(other.getExtend());
      result = result && (getCreatedTime()
          == other.getCreatedTime());
      result = result && (hasUserFrom() == other.hasUserFrom());
      if (hasUserFrom()) {
        result = result && getUserFrom()
            .equals(other.getUserFrom());
      }
      result = result && (hasUserTo() == other.hasUserTo());
      if (hasUserTo()) {
        result = result && getUserTo()
            .equals(other.getUserTo());
      }
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId();
      hash = (37 * hash) + USERIDTO_FIELD_NUMBER;
      hash = (53 * hash) + getUserIdTo();
      hash = (37 * hash) + USERIDFROM_FIELD_NUMBER;
      hash = (53 * hash) + getUserIdFrom();
      hash = (37 * hash) + FROM_FIELD_NUMBER;
      hash = (53 * hash) + getFrom().hashCode();
      hash = (37 * hash) + CONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getContent().hashCode();
      hash = (37 * hash) + EXTEND_FIELD_NUMBER;
      hash = (53 * hash) + getExtend().hashCode();
      hash = (37 * hash) + CREATEDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCreatedTime());
      if (hasUserFrom()) {
        hash = (37 * hash) + USERFROM_FIELD_NUMBER;
        hash = (53 * hash) + getUserFrom().hashCode();
      }
      if (hasUserTo()) {
        hash = (37 * hash) + USERTO_FIELD_NUMBER;
        hash = (53 * hash) + getUserTo().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.MessageOuterClass.Message parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.kfzs.duanduan.proto.MessageOuterClass.Message prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code protobuf.Message}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:protobuf.Message)
        com.kfzs.duanduan.proto.MessageOuterClass.MessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.kfzs.duanduan.proto.MessageOuterClass.internal_static_protobuf_Message_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.MessageOuterClass.internal_static_protobuf_Message_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.MessageOuterClass.Message.class, com.kfzs.duanduan.proto.MessageOuterClass.Message.Builder.class);
      }

      // Construct using com.kfzs.duanduan.proto.MessageOuterClass.Message.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        id_ = 0;

        userIdTo_ = 0;

        userIdFrom_ = 0;

        from_ = "";

        content_ = "";

        extend_ = "";

        createdTime_ = 0L;

        if (userFromBuilder_ == null) {
          userFrom_ = null;
        } else {
          userFrom_ = null;
          userFromBuilder_ = null;
        }
        if (userToBuilder_ == null) {
          userTo_ = null;
        } else {
          userTo_ = null;
          userToBuilder_ = null;
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.kfzs.duanduan.proto.MessageOuterClass.internal_static_protobuf_Message_descriptor;
      }

      public com.kfzs.duanduan.proto.MessageOuterClass.Message getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.MessageOuterClass.Message.getDefaultInstance();
      }

      public com.kfzs.duanduan.proto.MessageOuterClass.Message build() {
        com.kfzs.duanduan.proto.MessageOuterClass.Message result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.kfzs.duanduan.proto.MessageOuterClass.Message buildPartial() {
        com.kfzs.duanduan.proto.MessageOuterClass.Message result = new com.kfzs.duanduan.proto.MessageOuterClass.Message(this);
        result.id_ = id_;
        result.userIdTo_ = userIdTo_;
        result.userIdFrom_ = userIdFrom_;
        result.from_ = from_;
        result.content_ = content_;
        result.extend_ = extend_;
        result.createdTime_ = createdTime_;
        if (userFromBuilder_ == null) {
          result.userFrom_ = userFrom_;
        } else {
          result.userFrom_ = userFromBuilder_.build();
        }
        if (userToBuilder_ == null) {
          result.userTo_ = userTo_;
        } else {
          result.userTo_ = userToBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder clone() {
        return super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.kfzs.duanduan.proto.MessageOuterClass.Message) {
          return mergeFrom((com.kfzs.duanduan.proto.MessageOuterClass.Message)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.MessageOuterClass.Message other) {
        if (other == com.kfzs.duanduan.proto.MessageOuterClass.Message.getDefaultInstance()) return this;
        if (other.getId() != 0) {
          setId(other.getId());
        }
        if (other.getUserIdTo() != 0) {
          setUserIdTo(other.getUserIdTo());
        }
        if (other.getUserIdFrom() != 0) {
          setUserIdFrom(other.getUserIdFrom());
        }
        if (!other.getFrom().isEmpty()) {
          from_ = other.from_;
          onChanged();
        }
        if (!other.getContent().isEmpty()) {
          content_ = other.content_;
          onChanged();
        }
        if (!other.getExtend().isEmpty()) {
          extend_ = other.extend_;
          onChanged();
        }
        if (other.getCreatedTime() != 0L) {
          setCreatedTime(other.getCreatedTime());
        }
        if (other.hasUserFrom()) {
          mergeUserFrom(other.getUserFrom());
        }
        if (other.hasUserTo()) {
          mergeUserTo(other.getUserTo());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.kfzs.duanduan.proto.MessageOuterClass.Message parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.MessageOuterClass.Message) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int id_ ;
      /**
       * <code>int32 Id = 1;</code>
       */
      public int getId() {
        return id_;
      }
      /**
       * <code>int32 Id = 1;</code>
       */
      public Builder setId(int value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 Id = 1;</code>
       */
      public Builder clearId() {
        
        id_ = 0;
        onChanged();
        return this;
      }

      private int userIdTo_ ;
      /**
       * <code>int32 UserIdTo = 2;</code>
       */
      public int getUserIdTo() {
        return userIdTo_;
      }
      /**
       * <code>int32 UserIdTo = 2;</code>
       */
      public Builder setUserIdTo(int value) {
        
        userIdTo_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 UserIdTo = 2;</code>
       */
      public Builder clearUserIdTo() {
        
        userIdTo_ = 0;
        onChanged();
        return this;
      }

      private int userIdFrom_ ;
      /**
       * <code>int32 UserIdFrom = 3;</code>
       */
      public int getUserIdFrom() {
        return userIdFrom_;
      }
      /**
       * <code>int32 UserIdFrom = 3;</code>
       */
      public Builder setUserIdFrom(int value) {
        
        userIdFrom_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 UserIdFrom = 3;</code>
       */
      public Builder clearUserIdFrom() {
        
        userIdFrom_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object from_ = "";
      /**
       * <code>string From = 4;</code>
       */
      public java.lang.String getFrom() {
        java.lang.Object ref = from_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          from_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string From = 4;</code>
       */
      public com.google.protobuf.ByteString
          getFromBytes() {
        java.lang.Object ref = from_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          from_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string From = 4;</code>
       */
      public Builder setFrom(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        from_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string From = 4;</code>
       */
      public Builder clearFrom() {
        
        from_ = getDefaultInstance().getFrom();
        onChanged();
        return this;
      }
      /**
       * <code>string From = 4;</code>
       */
      public Builder setFromBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        from_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object content_ = "";
      /**
       * <code>string Content = 5;</code>
       */
      public java.lang.String getContent() {
        java.lang.Object ref = content_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          content_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string Content = 5;</code>
       */
      public com.google.protobuf.ByteString
          getContentBytes() {
        java.lang.Object ref = content_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          content_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string Content = 5;</code>
       */
      public Builder setContent(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        content_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Content = 5;</code>
       */
      public Builder clearContent() {
        
        content_ = getDefaultInstance().getContent();
        onChanged();
        return this;
      }
      /**
       * <code>string Content = 5;</code>
       */
      public Builder setContentBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        content_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object extend_ = "";
      /**
       * <code>string Extend = 6;</code>
       */
      public java.lang.String getExtend() {
        java.lang.Object ref = extend_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          extend_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string Extend = 6;</code>
       */
      public com.google.protobuf.ByteString
          getExtendBytes() {
        java.lang.Object ref = extend_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          extend_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string Extend = 6;</code>
       */
      public Builder setExtend(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        extend_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string Extend = 6;</code>
       */
      public Builder clearExtend() {
        
        extend_ = getDefaultInstance().getExtend();
        onChanged();
        return this;
      }
      /**
       * <code>string Extend = 6;</code>
       */
      public Builder setExtendBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        extend_ = value;
        onChanged();
        return this;
      }

      private long createdTime_ ;
      /**
       * <code>int64 CreatedTime = 7;</code>
       */
      public long getCreatedTime() {
        return createdTime_;
      }
      /**
       * <code>int64 CreatedTime = 7;</code>
       */
      public Builder setCreatedTime(long value) {
        
        createdTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 CreatedTime = 7;</code>
       */
      public Builder clearCreatedTime() {
        
        createdTime_ = 0L;
        onChanged();
        return this;
      }

      private com.kfzs.duanduan.proto.UserOuterClass.User userFrom_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.UserOuterClass.User, com.kfzs.duanduan.proto.UserOuterClass.User.Builder, com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder> userFromBuilder_;
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public boolean hasUserFrom() {
        return userFromBuilder_ != null || userFrom_ != null;
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public com.kfzs.duanduan.proto.UserOuterClass.User getUserFrom() {
        if (userFromBuilder_ == null) {
          return userFrom_ == null ? com.kfzs.duanduan.proto.UserOuterClass.User.getDefaultInstance() : userFrom_;
        } else {
          return userFromBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public Builder setUserFrom(com.kfzs.duanduan.proto.UserOuterClass.User value) {
        if (userFromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          userFrom_ = value;
          onChanged();
        } else {
          userFromBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public Builder setUserFrom(
          com.kfzs.duanduan.proto.UserOuterClass.User.Builder builderForValue) {
        if (userFromBuilder_ == null) {
          userFrom_ = builderForValue.build();
          onChanged();
        } else {
          userFromBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public Builder mergeUserFrom(com.kfzs.duanduan.proto.UserOuterClass.User value) {
        if (userFromBuilder_ == null) {
          if (userFrom_ != null) {
            userFrom_ =
              com.kfzs.duanduan.proto.UserOuterClass.User.newBuilder(userFrom_).mergeFrom(value).buildPartial();
          } else {
            userFrom_ = value;
          }
          onChanged();
        } else {
          userFromBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public Builder clearUserFrom() {
        if (userFromBuilder_ == null) {
          userFrom_ = null;
          onChanged();
        } else {
          userFrom_ = null;
          userFromBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public com.kfzs.duanduan.proto.UserOuterClass.User.Builder getUserFromBuilder() {
        
        onChanged();
        return getUserFromFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      public com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder getUserFromOrBuilder() {
        if (userFromBuilder_ != null) {
          return userFromBuilder_.getMessageOrBuilder();
        } else {
          return userFrom_ == null ?
              com.kfzs.duanduan.proto.UserOuterClass.User.getDefaultInstance() : userFrom_;
        }
      }
      /**
       * <code>.protobuf.User UserFrom = 10;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.UserOuterClass.User, com.kfzs.duanduan.proto.UserOuterClass.User.Builder, com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder> 
          getUserFromFieldBuilder() {
        if (userFromBuilder_ == null) {
          userFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.UserOuterClass.User, com.kfzs.duanduan.proto.UserOuterClass.User.Builder, com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder>(
                  getUserFrom(),
                  getParentForChildren(),
                  isClean());
          userFrom_ = null;
        }
        return userFromBuilder_;
      }

      private com.kfzs.duanduan.proto.UserOuterClass.User userTo_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.UserOuterClass.User, com.kfzs.duanduan.proto.UserOuterClass.User.Builder, com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder> userToBuilder_;
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public boolean hasUserTo() {
        return userToBuilder_ != null || userTo_ != null;
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public com.kfzs.duanduan.proto.UserOuterClass.User getUserTo() {
        if (userToBuilder_ == null) {
          return userTo_ == null ? com.kfzs.duanduan.proto.UserOuterClass.User.getDefaultInstance() : userTo_;
        } else {
          return userToBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public Builder setUserTo(com.kfzs.duanduan.proto.UserOuterClass.User value) {
        if (userToBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          userTo_ = value;
          onChanged();
        } else {
          userToBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public Builder setUserTo(
          com.kfzs.duanduan.proto.UserOuterClass.User.Builder builderForValue) {
        if (userToBuilder_ == null) {
          userTo_ = builderForValue.build();
          onChanged();
        } else {
          userToBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public Builder mergeUserTo(com.kfzs.duanduan.proto.UserOuterClass.User value) {
        if (userToBuilder_ == null) {
          if (userTo_ != null) {
            userTo_ =
              com.kfzs.duanduan.proto.UserOuterClass.User.newBuilder(userTo_).mergeFrom(value).buildPartial();
          } else {
            userTo_ = value;
          }
          onChanged();
        } else {
          userToBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public Builder clearUserTo() {
        if (userToBuilder_ == null) {
          userTo_ = null;
          onChanged();
        } else {
          userTo_ = null;
          userToBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public com.kfzs.duanduan.proto.UserOuterClass.User.Builder getUserToBuilder() {
        
        onChanged();
        return getUserToFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      public com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder getUserToOrBuilder() {
        if (userToBuilder_ != null) {
          return userToBuilder_.getMessageOrBuilder();
        } else {
          return userTo_ == null ?
              com.kfzs.duanduan.proto.UserOuterClass.User.getDefaultInstance() : userTo_;
        }
      }
      /**
       * <code>.protobuf.User UserTo = 11;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.UserOuterClass.User, com.kfzs.duanduan.proto.UserOuterClass.User.Builder, com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder> 
          getUserToFieldBuilder() {
        if (userToBuilder_ == null) {
          userToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.UserOuterClass.User, com.kfzs.duanduan.proto.UserOuterClass.User.Builder, com.kfzs.duanduan.proto.UserOuterClass.UserOrBuilder>(
                  getUserTo(),
                  getParentForChildren(),
                  isClean());
          userTo_ = null;
        }
        return userToBuilder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

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


      // @@protoc_insertion_point(builder_scope:protobuf.Message)
    }

    // @@protoc_insertion_point(class_scope:protobuf.Message)
    private static final com.kfzs.duanduan.proto.MessageOuterClass.Message DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.kfzs.duanduan.proto.MessageOuterClass.Message();
    }

    public static com.kfzs.duanduan.proto.MessageOuterClass.Message getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Message>
        PARSER = new com.google.protobuf.AbstractParser<Message>() {
      public Message parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
          return new Message(input, extensionRegistry);
      }
    };

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

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

    public com.kfzs.duanduan.proto.MessageOuterClass.Message getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_Message_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_Message_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\rmessage.proto\022\010protobuf\032\nuser.proto\"\301\001" +
      "\n\007Message\022\n\n\002Id\030\001 \001(\005\022\020\n\010UserIdTo\030\002 \001(\005\022" +
      "\022\n\nUserIdFrom\030\003 \001(\005\022\014\n\004From\030\004 \001(\t\022\017\n\007Con" +
      "tent\030\005 \001(\t\022\016\n\006Extend\030\006 \001(\t\022\023\n\013CreatedTim" +
      "e\030\007 \001(\003\022 \n\010UserFrom\030\n \001(\0132\016.protobuf.Use" +
      "r\022\036\n\006UserTo\030\013 \001(\0132\016.protobuf.UserB\031\n\027com" +
      ".kfzs.duanduan.protob\006proto3"
    };
    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;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.kfzs.duanduan.proto.UserOuterClass.getDescriptor(),
        }, assigner);
    internal_static_protobuf_Message_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_protobuf_Message_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_Message_descriptor,
        new java.lang.String[] { "Id", "UserIdTo", "UserIdFrom", "From", "Content", "Extend", "CreatedTime", "UserFrom", "UserTo", });
    com.kfzs.duanduan.proto.UserOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
