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

package com.ywt.gapi.order;

/**
 * <pre>
 *订单留言
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.OrderMsg}
 */
public  final class OrderMsg extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.OrderMsg)
    OrderMsgOrBuilder {
  // Use OrderMsg.newBuilder() to construct.
  private OrderMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private OrderMsg() {
    id_ = 0;
    userId_ = 0;
    doctorId_ = 0;
    preId_ = 0;
    content_ = "";
    remark_ = "";
    createTime_ = 0L;
    followupId_ = 0;
    realName_ = "";
    avatar_ = "";
    preOrderId_ = 0;
    preOrderNo_ = "";
    preBizNo_ = "";
    patientId_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private OrderMsg(
      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: {

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

            doctorId_ = input.readInt32();
            break;
          }
          case 32: {

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

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

            remark_ = s;
            break;
          }
          case 56: {

            createTime_ = input.readInt64();
            break;
          }
          case 64: {

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

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

            avatar_ = s;
            break;
          }
          case 88: {

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

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

            preBizNo_ = s;
            break;
          }
          case 112: {

            patientId_ = input.readInt32();
            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.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OrderMsg_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OrderMsg_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.order.OrderMsg.class, com.ywt.gapi.order.OrderMsg.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 USERID_FIELD_NUMBER = 2;
  private int userId_;
  /**
   * <code>int32 userId = 2;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int DOCTORID_FIELD_NUMBER = 3;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 3;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int PREID_FIELD_NUMBER = 4;
  private int preId_;
  /**
   * <pre>
   *处方单ID
   * </pre>
   *
   * <code>int32 preId = 4;</code>
   */
  public int getPreId() {
    return preId_;
  }

  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 REMARK_FIELD_NUMBER = 6;
  private volatile java.lang.Object remark_;
  /**
   * <code>string remark = 6;</code>
   */
  public java.lang.String getRemark() {
    java.lang.Object ref = remark_;
    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();
      remark_ = s;
      return s;
    }
  }
  /**
   * <code>string remark = 6;</code>
   */
  public com.google.protobuf.ByteString
      getRemarkBytes() {
    java.lang.Object ref = remark_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      remark_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATETIME_FIELD_NUMBER = 7;
  private long createTime_;
  /**
   * <code>int64 createTime = 7;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  public static final int FOLLOWUPID_FIELD_NUMBER = 8;
  private int followupId_;
  /**
   * <code>int32 followupId = 8;</code>
   */
  public int getFollowupId() {
    return followupId_;
  }

  public static final int REALNAME_FIELD_NUMBER = 9;
  private volatile java.lang.Object realName_;
  /**
   * <code>string realName = 9;</code>
   */
  public java.lang.String getRealName() {
    java.lang.Object ref = realName_;
    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();
      realName_ = s;
      return s;
    }
  }
  /**
   * <code>string realName = 9;</code>
   */
  public com.google.protobuf.ByteString
      getRealNameBytes() {
    java.lang.Object ref = realName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      realName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AVATAR_FIELD_NUMBER = 10;
  private volatile java.lang.Object avatar_;
  /**
   * <code>string avatar = 10;</code>
   */
  public java.lang.String getAvatar() {
    java.lang.Object ref = avatar_;
    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();
      avatar_ = s;
      return s;
    }
  }
  /**
   * <code>string avatar = 10;</code>
   */
  public com.google.protobuf.ByteString
      getAvatarBytes() {
    java.lang.Object ref = avatar_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      avatar_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PREORDERID_FIELD_NUMBER = 11;
  private int preOrderId_;
  /**
   * <pre>
   *订单ID
   * </pre>
   *
   * <code>int32 preOrderId = 11;</code>
   */
  public int getPreOrderId() {
    return preOrderId_;
  }

  public static final int PREORDERNO_FIELD_NUMBER = 12;
  private volatile java.lang.Object preOrderNo_;
  /**
   * <pre>
   *订单编码
   * </pre>
   *
   * <code>string preOrderNo = 12;</code>
   */
  public java.lang.String getPreOrderNo() {
    java.lang.Object ref = preOrderNo_;
    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();
      preOrderNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *订单编码
   * </pre>
   *
   * <code>string preOrderNo = 12;</code>
   */
  public com.google.protobuf.ByteString
      getPreOrderNoBytes() {
    java.lang.Object ref = preOrderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      preOrderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PREBIZNO_FIELD_NUMBER = 13;
  private volatile java.lang.Object preBizNo_;
  /**
   * <pre>
   *处方单编码
   * </pre>
   *
   * <code>string preBizNo = 13;</code>
   */
  public java.lang.String getPreBizNo() {
    java.lang.Object ref = preBizNo_;
    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();
      preBizNo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *处方单编码
   * </pre>
   *
   * <code>string preBizNo = 13;</code>
   */
  public com.google.protobuf.ByteString
      getPreBizNoBytes() {
    java.lang.Object ref = preBizNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      preBizNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTID_FIELD_NUMBER = 14;
  private int patientId_;
  /**
   * <pre>
   *患者ID
   * </pre>
   *
   * <code>int32 patientId = 14;</code>
   */
  public int getPatientId() {
    return patientId_;
  }

  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 (userId_ != 0) {
      output.writeInt32(2, userId_);
    }
    if (doctorId_ != 0) {
      output.writeInt32(3, doctorId_);
    }
    if (preId_ != 0) {
      output.writeInt32(4, preId_);
    }
    if (!getContentBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, content_);
    }
    if (!getRemarkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, remark_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(7, createTime_);
    }
    if (followupId_ != 0) {
      output.writeInt32(8, followupId_);
    }
    if (!getRealNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, realName_);
    }
    if (!getAvatarBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, avatar_);
    }
    if (preOrderId_ != 0) {
      output.writeInt32(11, preOrderId_);
    }
    if (!getPreOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, preOrderNo_);
    }
    if (!getPreBizNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, preBizNo_);
    }
    if (patientId_ != 0) {
      output.writeInt32(14, patientId_);
    }
  }

  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 (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, userId_);
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, doctorId_);
    }
    if (preId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, preId_);
    }
    if (!getContentBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, content_);
    }
    if (!getRemarkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, remark_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, createTime_);
    }
    if (followupId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, followupId_);
    }
    if (!getRealNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, realName_);
    }
    if (!getAvatarBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, avatar_);
    }
    if (preOrderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, preOrderId_);
    }
    if (!getPreOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, preOrderNo_);
    }
    if (!getPreBizNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, preBizNo_);
    }
    if (patientId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, patientId_);
    }
    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.ywt.gapi.order.OrderMsg)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.OrderMsg other = (com.ywt.gapi.order.OrderMsg) obj;

    boolean result = true;
    result = result && (getId()
        == other.getId());
    result = result && (getUserId()
        == other.getUserId());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getPreId()
        == other.getPreId());
    result = result && getContent()
        .equals(other.getContent());
    result = result && getRemark()
        .equals(other.getRemark());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && (getFollowupId()
        == other.getFollowupId());
    result = result && getRealName()
        .equals(other.getRealName());
    result = result && getAvatar()
        .equals(other.getAvatar());
    result = result && (getPreOrderId()
        == other.getPreOrderId());
    result = result && getPreOrderNo()
        .equals(other.getPreOrderNo());
    result = result && getPreBizNo()
        .equals(other.getPreBizNo());
    result = result && (getPatientId()
        == other.getPatientId());
    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) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + PREID_FIELD_NUMBER;
    hash = (53 * hash) + getPreId();
    hash = (37 * hash) + CONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getContent().hashCode();
    hash = (37 * hash) + REMARK_FIELD_NUMBER;
    hash = (53 * hash) + getRemark().hashCode();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + FOLLOWUPID_FIELD_NUMBER;
    hash = (53 * hash) + getFollowupId();
    hash = (37 * hash) + REALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getRealName().hashCode();
    hash = (37 * hash) + AVATAR_FIELD_NUMBER;
    hash = (53 * hash) + getAvatar().hashCode();
    hash = (37 * hash) + PREORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getPreOrderId();
    hash = (37 * hash) + PREORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getPreOrderNo().hashCode();
    hash = (37 * hash) + PREBIZNO_FIELD_NUMBER;
    hash = (53 * hash) + getPreBizNo().hashCode();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.order.OrderMsg parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.OrderMsg parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.OrderMsg parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.OrderMsg parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.OrderMsg parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.OrderMsg parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.OrderMsg parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.OrderMsg 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.ywt.gapi.order.OrderMsg parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.OrderMsg 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.ywt.gapi.order.OrderMsg parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.OrderMsg 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.ywt.gapi.order.OrderMsg 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;
  }
  /**
   * <pre>
   *订单留言
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.order.OrderMsg}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.OrderMsg)
      com.ywt.gapi.order.OrderMsgOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OrderMsg_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OrderMsg_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.order.OrderMsg.class, com.ywt.gapi.order.OrderMsg.Builder.class);
    }

    // Construct using com.ywt.gapi.order.OrderMsg.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;

      userId_ = 0;

      doctorId_ = 0;

      preId_ = 0;

      content_ = "";

      remark_ = "";

      createTime_ = 0L;

      followupId_ = 0;

      realName_ = "";

      avatar_ = "";

      preOrderId_ = 0;

      preOrderNo_ = "";

      preBizNo_ = "";

      patientId_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OrderMsg_descriptor;
    }

    public com.ywt.gapi.order.OrderMsg getDefaultInstanceForType() {
      return com.ywt.gapi.order.OrderMsg.getDefaultInstance();
    }

    public com.ywt.gapi.order.OrderMsg build() {
      com.ywt.gapi.order.OrderMsg result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ywt.gapi.order.OrderMsg buildPartial() {
      com.ywt.gapi.order.OrderMsg result = new com.ywt.gapi.order.OrderMsg(this);
      result.id_ = id_;
      result.userId_ = userId_;
      result.doctorId_ = doctorId_;
      result.preId_ = preId_;
      result.content_ = content_;
      result.remark_ = remark_;
      result.createTime_ = createTime_;
      result.followupId_ = followupId_;
      result.realName_ = realName_;
      result.avatar_ = avatar_;
      result.preOrderId_ = preOrderId_;
      result.preOrderNo_ = preOrderNo_;
      result.preBizNo_ = preBizNo_;
      result.patientId_ = patientId_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.order.OrderMsg other) {
      if (other == com.ywt.gapi.order.OrderMsg.getDefaultInstance()) return this;
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getPreId() != 0) {
        setPreId(other.getPreId());
      }
      if (!other.getContent().isEmpty()) {
        content_ = other.content_;
        onChanged();
      }
      if (!other.getRemark().isEmpty()) {
        remark_ = other.remark_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getFollowupId() != 0) {
        setFollowupId(other.getFollowupId());
      }
      if (!other.getRealName().isEmpty()) {
        realName_ = other.realName_;
        onChanged();
      }
      if (!other.getAvatar().isEmpty()) {
        avatar_ = other.avatar_;
        onChanged();
      }
      if (other.getPreOrderId() != 0) {
        setPreOrderId(other.getPreOrderId());
      }
      if (!other.getPreOrderNo().isEmpty()) {
        preOrderNo_ = other.preOrderNo_;
        onChanged();
      }
      if (!other.getPreBizNo().isEmpty()) {
        preBizNo_ = other.preBizNo_;
        onChanged();
      }
      if (other.getPatientId() != 0) {
        setPatientId(other.getPatientId());
      }
      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.ywt.gapi.order.OrderMsg parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.order.OrderMsg) 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 userId_ ;
    /**
     * <code>int32 userId = 2;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 2;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 2;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <code>int32 doctorId = 3;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <code>int32 doctorId = 3;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorId = 3;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int preId_ ;
    /**
     * <pre>
     *处方单ID
     * </pre>
     *
     * <code>int32 preId = 4;</code>
     */
    public int getPreId() {
      return preId_;
    }
    /**
     * <pre>
     *处方单ID
     * </pre>
     *
     * <code>int32 preId = 4;</code>
     */
    public Builder setPreId(int value) {
      
      preId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方单ID
     * </pre>
     *
     * <code>int32 preId = 4;</code>
     */
    public Builder clearPreId() {
      
      preId_ = 0;
      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 remark_ = "";
    /**
     * <code>string remark = 6;</code>
     */
    public java.lang.String getRemark() {
      java.lang.Object ref = remark_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        remark_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string remark = 6;</code>
     */
    public com.google.protobuf.ByteString
        getRemarkBytes() {
      java.lang.Object ref = remark_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        remark_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string remark = 6;</code>
     */
    public Builder setRemark(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      remark_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 6;</code>
     */
    public Builder clearRemark() {
      
      remark_ = getDefaultInstance().getRemark();
      onChanged();
      return this;
    }
    /**
     * <code>string remark = 6;</code>
     */
    public Builder setRemarkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      remark_ = value;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 7;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 7;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 7;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private int followupId_ ;
    /**
     * <code>int32 followupId = 8;</code>
     */
    public int getFollowupId() {
      return followupId_;
    }
    /**
     * <code>int32 followupId = 8;</code>
     */
    public Builder setFollowupId(int value) {
      
      followupId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 followupId = 8;</code>
     */
    public Builder clearFollowupId() {
      
      followupId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object realName_ = "";
    /**
     * <code>string realName = 9;</code>
     */
    public java.lang.String getRealName() {
      java.lang.Object ref = realName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        realName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string realName = 9;</code>
     */
    public com.google.protobuf.ByteString
        getRealNameBytes() {
      java.lang.Object ref = realName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        realName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string realName = 9;</code>
     */
    public Builder setRealName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      realName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string realName = 9;</code>
     */
    public Builder clearRealName() {
      
      realName_ = getDefaultInstance().getRealName();
      onChanged();
      return this;
    }
    /**
     * <code>string realName = 9;</code>
     */
    public Builder setRealNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      realName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object avatar_ = "";
    /**
     * <code>string avatar = 10;</code>
     */
    public java.lang.String getAvatar() {
      java.lang.Object ref = avatar_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        avatar_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string avatar = 10;</code>
     */
    public com.google.protobuf.ByteString
        getAvatarBytes() {
      java.lang.Object ref = avatar_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        avatar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string avatar = 10;</code>
     */
    public Builder setAvatar(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      avatar_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string avatar = 10;</code>
     */
    public Builder clearAvatar() {
      
      avatar_ = getDefaultInstance().getAvatar();
      onChanged();
      return this;
    }
    /**
     * <code>string avatar = 10;</code>
     */
    public Builder setAvatarBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      avatar_ = value;
      onChanged();
      return this;
    }

    private int preOrderId_ ;
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 preOrderId = 11;</code>
     */
    public int getPreOrderId() {
      return preOrderId_;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 preOrderId = 11;</code>
     */
    public Builder setPreOrderId(int value) {
      
      preOrderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单ID
     * </pre>
     *
     * <code>int32 preOrderId = 11;</code>
     */
    public Builder clearPreOrderId() {
      
      preOrderId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object preOrderNo_ = "";
    /**
     * <pre>
     *订单编码
     * </pre>
     *
     * <code>string preOrderNo = 12;</code>
     */
    public java.lang.String getPreOrderNo() {
      java.lang.Object ref = preOrderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        preOrderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *订单编码
     * </pre>
     *
     * <code>string preOrderNo = 12;</code>
     */
    public com.google.protobuf.ByteString
        getPreOrderNoBytes() {
      java.lang.Object ref = preOrderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preOrderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *订单编码
     * </pre>
     *
     * <code>string preOrderNo = 12;</code>
     */
    public Builder setPreOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      preOrderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单编码
     * </pre>
     *
     * <code>string preOrderNo = 12;</code>
     */
    public Builder clearPreOrderNo() {
      
      preOrderNo_ = getDefaultInstance().getPreOrderNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单编码
     * </pre>
     *
     * <code>string preOrderNo = 12;</code>
     */
    public Builder setPreOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      preOrderNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object preBizNo_ = "";
    /**
     * <pre>
     *处方单编码
     * </pre>
     *
     * <code>string preBizNo = 13;</code>
     */
    public java.lang.String getPreBizNo() {
      java.lang.Object ref = preBizNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        preBizNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *处方单编码
     * </pre>
     *
     * <code>string preBizNo = 13;</code>
     */
    public com.google.protobuf.ByteString
        getPreBizNoBytes() {
      java.lang.Object ref = preBizNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preBizNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *处方单编码
     * </pre>
     *
     * <code>string preBizNo = 13;</code>
     */
    public Builder setPreBizNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      preBizNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方单编码
     * </pre>
     *
     * <code>string preBizNo = 13;</code>
     */
    public Builder clearPreBizNo() {
      
      preBizNo_ = getDefaultInstance().getPreBizNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方单编码
     * </pre>
     *
     * <code>string preBizNo = 13;</code>
     */
    public Builder setPreBizNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      preBizNo_ = value;
      onChanged();
      return this;
    }

    private int patientId_ ;
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>int32 patientId = 14;</code>
     */
    public int getPatientId() {
      return patientId_;
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>int32 patientId = 14;</code>
     */
    public Builder setPatientId(int value) {
      
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>int32 patientId = 14;</code>
     */
    public Builder clearPatientId() {
      
      patientId_ = 0;
      onChanged();
      return this;
    }
    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:com.ywt.gapi.order.OrderMsg)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.order.OrderMsg)
  private static final com.ywt.gapi.order.OrderMsg DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.order.OrderMsg();
  }

  public static com.ywt.gapi.order.OrderMsg getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.order.OrderMsg getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

