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

package com.ywt.gapi.taihe.register;

/**
 * <pre>
 *订单公共Model
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.taihe.register.CommonOrder}
 */
public final class CommonOrder extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.register.CommonOrder)
    CommonOrderOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CommonOrder.newBuilder() to construct.
  private CommonOrder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CommonOrder() {
    orderNo_ = "";
    hospitalName_ = "";
    deptName_ = "";
    doctorName_ = "";
    patientName_ = "";
    doctorTitle_ = "";
    statusName_ = "";
    patientSex_ = "";
    registeredDate_ = "";
    startTime_ = "";
    endTime_ = "";
    orderTitle_ = "";
    deptCode_ = "";
    hisAdmAddr_ = "";
    hisPatientId_ = "";
    seqCode_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new CommonOrder();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CommonOrder(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

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

            orderNo_ = s;
            break;
          }
          case 24: {

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

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

            deptName_ = s;
            break;
          }
          case 48: {

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

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

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

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

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

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

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

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

            endTime_ = s;
            break;
          }
          case 120: {

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

            orderTitle_ = s;
            break;
          }
          case 136: {

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

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

            deptCode_ = s;
            break;
          }
          case 160: {

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

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

            hisPatientId_ = s;
            break;
          }
          case 184: {

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

            seqCode_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CommonOrder_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CommonOrder_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.register.CommonOrder.class, com.ywt.gapi.taihe.register.CommonOrder.Builder.class);
  }

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <code>int32 orderId = 1;</code>
   * @return The orderId.
   */
  @java.lang.Override
  public int getOrderId() {
    return orderId_;
  }

  public static final int ORDERNO_FIELD_NUMBER = 2;
  private volatile java.lang.Object orderNo_;
  /**
   * <code>string orderNo = 2;</code>
   * @return The orderNo.
   */
  @java.lang.Override
  public java.lang.String getOrderNo() {
    java.lang.Object ref = orderNo_;
    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();
      orderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string orderNo = 2;</code>
   * @return The bytes for orderNo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOrderNoBytes() {
    java.lang.Object ref = orderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPITALID_FIELD_NUMBER = 3;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 3;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int HOSPITALNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object hospitalName_;
  /**
   * <code>string hospitalName = 4;</code>
   * @return The hospitalName.
   */
  @java.lang.Override
  public java.lang.String getHospitalName() {
    java.lang.Object ref = hospitalName_;
    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();
      hospitalName_ = s;
      return s;
    }
  }
  /**
   * <code>string hospitalName = 4;</code>
   * @return The bytes for hospitalName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHospitalNameBytes() {
    java.lang.Object ref = hospitalName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hospitalName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPTNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 5;</code>
   * @return The deptName.
   */
  @java.lang.Override
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    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();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <code>string deptName = 5;</code>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AMOUNT_FIELD_NUMBER = 6;
  private int amount_;
  /**
   * <pre>
   *单位：分
   * </pre>
   *
   * <code>int32 amount = 6;</code>
   * @return The amount.
   */
  @java.lang.Override
  public int getAmount() {
    return amount_;
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 7;</code>
   * @return The doctorName.
   */
  @java.lang.Override
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    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();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorName = 7;</code>
   * @return The bytes for doctorName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 8;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 8;</code>
   * @return The patientName.
   */
  @java.lang.Override
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    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();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 8;</code>
   * @return The bytes for patientName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORTITLE_FIELD_NUMBER = 9;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <code>string doctorTitle = 9;</code>
   * @return The doctorTitle.
   */
  @java.lang.Override
  public java.lang.String getDoctorTitle() {
    java.lang.Object ref = doctorTitle_;
    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();
      doctorTitle_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorTitle = 9;</code>
   * @return The bytes for doctorTitle.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorTitleBytes() {
    java.lang.Object ref = doctorTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUSNAME_FIELD_NUMBER = 10;
  private volatile java.lang.Object statusName_;
  /**
   * <code>string statusName = 10;</code>
   * @return The statusName.
   */
  @java.lang.Override
  public java.lang.String getStatusName() {
    java.lang.Object ref = statusName_;
    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();
      statusName_ = s;
      return s;
    }
  }
  /**
   * <code>string statusName = 10;</code>
   * @return The bytes for statusName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStatusNameBytes() {
    java.lang.Object ref = statusName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 11;
  private volatile java.lang.Object patientSex_;
  /**
   * <code>string patientSex = 11;</code>
   * @return The patientSex.
   */
  @java.lang.Override
  public java.lang.String getPatientSex() {
    java.lang.Object ref = patientSex_;
    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();
      patientSex_ = s;
      return s;
    }
  }
  /**
   * <code>string patientSex = 11;</code>
   * @return The bytes for patientSex.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientSexBytes() {
    java.lang.Object ref = patientSex_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientSex_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTEREDDATE_FIELD_NUMBER = 12;
  private volatile java.lang.Object registeredDate_;
  /**
   * <code>string registeredDate = 12;</code>
   * @return The registeredDate.
   */
  @java.lang.Override
  public java.lang.String getRegisteredDate() {
    java.lang.Object ref = registeredDate_;
    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();
      registeredDate_ = s;
      return s;
    }
  }
  /**
   * <code>string registeredDate = 12;</code>
   * @return The bytes for registeredDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRegisteredDateBytes() {
    java.lang.Object ref = registeredDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      registeredDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STARTTIME_FIELD_NUMBER = 13;
  private volatile java.lang.Object startTime_;
  /**
   * <code>string startTime = 13;</code>
   * @return The startTime.
   */
  @java.lang.Override
  public java.lang.String getStartTime() {
    java.lang.Object ref = startTime_;
    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();
      startTime_ = s;
      return s;
    }
  }
  /**
   * <code>string startTime = 13;</code>
   * @return The bytes for startTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStartTimeBytes() {
    java.lang.Object ref = startTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      startTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENDTIME_FIELD_NUMBER = 14;
  private volatile java.lang.Object endTime_;
  /**
   * <code>string endTime = 14;</code>
   * @return The endTime.
   */
  @java.lang.Override
  public java.lang.String getEndTime() {
    java.lang.Object ref = endTime_;
    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();
      endTime_ = s;
      return s;
    }
  }
  /**
   * <code>string endTime = 14;</code>
   * @return The bytes for endTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEndTimeBytes() {
    java.lang.Object ref = endTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      endTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERTYPE_FIELD_NUMBER = 15;
  private int orderType_;
  /**
   * <code>int32 orderType = 15;</code>
   * @return The orderType.
   */
  @java.lang.Override
  public int getOrderType() {
    return orderType_;
  }

  public static final int ORDERTITLE_FIELD_NUMBER = 16;
  private volatile java.lang.Object orderTitle_;
  /**
   * <code>string orderTitle = 16;</code>
   * @return The orderTitle.
   */
  @java.lang.Override
  public java.lang.String getOrderTitle() {
    java.lang.Object ref = orderTitle_;
    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();
      orderTitle_ = s;
      return s;
    }
  }
  /**
   * <code>string orderTitle = 16;</code>
   * @return The bytes for orderTitle.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOrderTitleBytes() {
    java.lang.Object ref = orderTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREATETIME_FIELD_NUMBER = 17;
  private long createTime_;
  /**
   * <code>int64 createTime = 17;</code>
   * @return The createTime.
   */
  @java.lang.Override
  public long getCreateTime() {
    return createTime_;
  }

  public static final int CANCEL_FIELD_NUMBER = 18;
  private int cancel_;
  /**
   * <pre>
   *订单是否可以取消，1-是，0-否
   * </pre>
   *
   * <code>int32 cancel = 18;</code>
   * @return The cancel.
   */
  @java.lang.Override
  public int getCancel() {
    return cancel_;
  }

  public static final int DEPTCODE_FIELD_NUMBER = 19;
  private volatile java.lang.Object deptCode_;
  /**
   * <code>string deptCode = 19;</code>
   * @return The deptCode.
   */
  @java.lang.Override
  public java.lang.String getDeptCode() {
    java.lang.Object ref = deptCode_;
    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();
      deptCode_ = s;
      return s;
    }
  }
  /**
   * <code>string deptCode = 19;</code>
   * @return The bytes for deptCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptCodeBytes() {
    java.lang.Object ref = deptCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGISTEREDTYPE_FIELD_NUMBER = 20;
  private int registeredType_;
  /**
   * <code>int32 registeredType = 20;</code>
   * @return The registeredType.
   */
  @java.lang.Override
  public int getRegisteredType() {
    return registeredType_;
  }

  public static final int HISADMADDR_FIELD_NUMBER = 21;
  private volatile java.lang.Object hisAdmAddr_;
  /**
   * <pre>
   * HIS 就诊地点
   * </pre>
   *
   * <code>string hisAdmAddr = 21;</code>
   * @return The hisAdmAddr.
   */
  @java.lang.Override
  public java.lang.String getHisAdmAddr() {
    java.lang.Object ref = hisAdmAddr_;
    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();
      hisAdmAddr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * HIS 就诊地点
   * </pre>
   *
   * <code>string hisAdmAddr = 21;</code>
   * @return The bytes for hisAdmAddr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisAdmAddrBytes() {
    java.lang.Object ref = hisAdmAddr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisAdmAddr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HISPATIENTID_FIELD_NUMBER = 22;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 22;</code>
   * @return The hisPatientId.
   */
  @java.lang.Override
  public java.lang.String getHisPatientId() {
    java.lang.Object ref = hisPatientId_;
    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();
      hisPatientId_ = s;
      return s;
    }
  }
  /**
   * <code>string hisPatientId = 22;</code>
   * @return The bytes for hisPatientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisPatientIdBytes() {
    java.lang.Object ref = hisPatientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisPatientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SUBHOSPITALID_FIELD_NUMBER = 23;
  private int subHospitalId_;
  /**
   * <code>int32 subHospitalId = 23;</code>
   * @return The subHospitalId.
   */
  @java.lang.Override
  public int getSubHospitalId() {
    return subHospitalId_;
  }

  public static final int SEQCODE_FIELD_NUMBER = 24;
  private volatile java.lang.Object seqCode_;
  /**
   * <code>string seqCode = 24;</code>
   * @return The seqCode.
   */
  @java.lang.Override
  public java.lang.String getSeqCode() {
    java.lang.Object ref = seqCode_;
    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();
      seqCode_ = s;
      return s;
    }
  }
  /**
   * <code>string seqCode = 24;</code>
   * @return The bytes for seqCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSeqCodeBytes() {
    java.lang.Object ref = seqCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      seqCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (orderId_ != 0) {
      output.writeInt32(1, orderId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderNo_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(3, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deptName_);
    }
    if (amount_ != 0) {
      output.writeInt32(6, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, statusName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientSex_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, patientSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, registeredDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, endTime_);
    }
    if (orderType_ != 0) {
      output.writeInt32(15, orderType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderTitle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, orderTitle_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(17, createTime_);
    }
    if (cancel_ != 0) {
      output.writeInt32(18, cancel_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, deptCode_);
    }
    if (registeredType_ != 0) {
      output.writeInt32(20, registeredType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisAdmAddr_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, hisAdmAddr_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, hisPatientId_);
    }
    if (subHospitalId_ != 0) {
      output.writeInt32(23, subHospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, seqCode_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, orderId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderNo_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hospitalName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hospitalName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deptName_);
    }
    if (amount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, amount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, statusName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientSex_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, patientSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, registeredDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, startTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, endTime_);
    }
    if (orderType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, orderType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderTitle_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, orderTitle_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(17, createTime_);
    }
    if (cancel_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, cancel_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, deptCode_);
    }
    if (registeredType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(20, registeredType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisAdmAddr_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, hisAdmAddr_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, hisPatientId_);
    }
    if (subHospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(23, subHospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, seqCode_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.taihe.register.CommonOrder)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.register.CommonOrder other = (com.ywt.gapi.taihe.register.CommonOrder) obj;

    if (getOrderId()
        != other.getOrderId()) return false;
    if (!getOrderNo()
        .equals(other.getOrderNo())) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getHospitalName()
        .equals(other.getHospitalName())) return false;
    if (!getDeptName()
        .equals(other.getDeptName())) return false;
    if (getAmount()
        != other.getAmount()) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (!getDoctorTitle()
        .equals(other.getDoctorTitle())) return false;
    if (!getStatusName()
        .equals(other.getStatusName())) return false;
    if (!getPatientSex()
        .equals(other.getPatientSex())) return false;
    if (!getRegisteredDate()
        .equals(other.getRegisteredDate())) return false;
    if (!getStartTime()
        .equals(other.getStartTime())) return false;
    if (!getEndTime()
        .equals(other.getEndTime())) return false;
    if (getOrderType()
        != other.getOrderType()) return false;
    if (!getOrderTitle()
        .equals(other.getOrderTitle())) return false;
    if (getCreateTime()
        != other.getCreateTime()) return false;
    if (getCancel()
        != other.getCancel()) return false;
    if (!getDeptCode()
        .equals(other.getDeptCode())) return false;
    if (getRegisteredType()
        != other.getRegisteredType()) return false;
    if (!getHisAdmAddr()
        .equals(other.getHisAdmAddr())) return false;
    if (!getHisPatientId()
        .equals(other.getHisPatientId())) return false;
    if (getSubHospitalId()
        != other.getSubHospitalId()) return false;
    if (!getSeqCode()
        .equals(other.getSeqCode())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    hash = (37 * hash) + ORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getOrderNo().hashCode();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getAmount();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + DOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorTitle().hashCode();
    hash = (37 * hash) + STATUSNAME_FIELD_NUMBER;
    hash = (53 * hash) + getStatusName().hashCode();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex().hashCode();
    hash = (37 * hash) + REGISTEREDDATE_FIELD_NUMBER;
    hash = (53 * hash) + getRegisteredDate().hashCode();
    hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime().hashCode();
    hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime().hashCode();
    hash = (37 * hash) + ORDERTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderType();
    hash = (37 * hash) + ORDERTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderTitle().hashCode();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + CANCEL_FIELD_NUMBER;
    hash = (53 * hash) + getCancel();
    hash = (37 * hash) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + REGISTEREDTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getRegisteredType();
    hash = (37 * hash) + HISADMADDR_FIELD_NUMBER;
    hash = (53 * hash) + getHisAdmAddr().hashCode();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + SUBHOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getSubHospitalId();
    hash = (37 * hash) + SEQCODE_FIELD_NUMBER;
    hash = (53 * hash) + getSeqCode().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.taihe.register.CommonOrder parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder 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.taihe.register.CommonOrder parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder 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.taihe.register.CommonOrder parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder 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.taihe.register.CommonOrder parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder 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.taihe.register.CommonOrder parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.taihe.register.CommonOrder parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.taihe.register.CommonOrder prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  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>
   *订单公共Model
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.taihe.register.CommonOrder}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.register.CommonOrder)
      com.ywt.gapi.taihe.register.CommonOrderOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CommonOrder_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CommonOrder_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.register.CommonOrder.class, com.ywt.gapi.taihe.register.CommonOrder.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.register.CommonOrder.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      orderId_ = 0;

      orderNo_ = "";

      hospitalId_ = 0;

      hospitalName_ = "";

      deptName_ = "";

      amount_ = 0;

      doctorName_ = "";

      patientName_ = "";

      doctorTitle_ = "";

      statusName_ = "";

      patientSex_ = "";

      registeredDate_ = "";

      startTime_ = "";

      endTime_ = "";

      orderType_ = 0;

      orderTitle_ = "";

      createTime_ = 0L;

      cancel_ = 0;

      deptCode_ = "";

      registeredType_ = 0;

      hisAdmAddr_ = "";

      hisPatientId_ = "";

      subHospitalId_ = 0;

      seqCode_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.register.TaiheRegisterProto.internal_static_com_ywt_gapi_taihe_register_CommonOrder_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CommonOrder getDefaultInstanceForType() {
      return com.ywt.gapi.taihe.register.CommonOrder.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CommonOrder build() {
      com.ywt.gapi.taihe.register.CommonOrder result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.taihe.register.CommonOrder buildPartial() {
      com.ywt.gapi.taihe.register.CommonOrder result = new com.ywt.gapi.taihe.register.CommonOrder(this);
      result.orderId_ = orderId_;
      result.orderNo_ = orderNo_;
      result.hospitalId_ = hospitalId_;
      result.hospitalName_ = hospitalName_;
      result.deptName_ = deptName_;
      result.amount_ = amount_;
      result.doctorName_ = doctorName_;
      result.patientName_ = patientName_;
      result.doctorTitle_ = doctorTitle_;
      result.statusName_ = statusName_;
      result.patientSex_ = patientSex_;
      result.registeredDate_ = registeredDate_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.orderType_ = orderType_;
      result.orderTitle_ = orderTitle_;
      result.createTime_ = createTime_;
      result.cancel_ = cancel_;
      result.deptCode_ = deptCode_;
      result.registeredType_ = registeredType_;
      result.hisAdmAddr_ = hisAdmAddr_;
      result.hisPatientId_ = hisPatientId_;
      result.subHospitalId_ = subHospitalId_;
      result.seqCode_ = seqCode_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.taihe.register.CommonOrder other) {
      if (other == com.ywt.gapi.taihe.register.CommonOrder.getDefaultInstance()) return this;
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (other.getAmount() != 0) {
        setAmount(other.getAmount());
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getDoctorTitle().isEmpty()) {
        doctorTitle_ = other.doctorTitle_;
        onChanged();
      }
      if (!other.getStatusName().isEmpty()) {
        statusName_ = other.statusName_;
        onChanged();
      }
      if (!other.getPatientSex().isEmpty()) {
        patientSex_ = other.patientSex_;
        onChanged();
      }
      if (!other.getRegisteredDate().isEmpty()) {
        registeredDate_ = other.registeredDate_;
        onChanged();
      }
      if (!other.getStartTime().isEmpty()) {
        startTime_ = other.startTime_;
        onChanged();
      }
      if (!other.getEndTime().isEmpty()) {
        endTime_ = other.endTime_;
        onChanged();
      }
      if (other.getOrderType() != 0) {
        setOrderType(other.getOrderType());
      }
      if (!other.getOrderTitle().isEmpty()) {
        orderTitle_ = other.orderTitle_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getCancel() != 0) {
        setCancel(other.getCancel());
      }
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (other.getRegisteredType() != 0) {
        setRegisteredType(other.getRegisteredType());
      }
      if (!other.getHisAdmAddr().isEmpty()) {
        hisAdmAddr_ = other.hisAdmAddr_;
        onChanged();
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (other.getSubHospitalId() != 0) {
        setSubHospitalId(other.getSubHospitalId());
      }
      if (!other.getSeqCode().isEmpty()) {
        seqCode_ = other.seqCode_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.taihe.register.CommonOrder parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.register.CommonOrder) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int orderId_ ;
    /**
     * <code>int32 orderId = 1;</code>
     * @return The orderId.
     */
    @java.lang.Override
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 1;</code>
     * @param value The orderId to set.
     * @return This builder for chaining.
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orderNo_ = "";
    /**
     * <code>string orderNo = 2;</code>
     * @return The orderNo.
     */
    public java.lang.String getOrderNo() {
      java.lang.Object ref = orderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderNo = 2;</code>
     * @return The bytes for orderNo.
     */
    public com.google.protobuf.ByteString
        getOrderNoBytes() {
      java.lang.Object ref = orderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderNo = 2;</code>
     * @param value The orderNo to set.
     * @return This builder for chaining.
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     * @param value The bytes for orderNo to set.
     * @return This builder for chaining.
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 3;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 3;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <code>string hospitalName = 4;</code>
     * @return The hospitalName.
     */
    public java.lang.String getHospitalName() {
      java.lang.Object ref = hospitalName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hospitalName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hospitalName = 4;</code>
     * @return The bytes for hospitalName.
     */
    public com.google.protobuf.ByteString
        getHospitalNameBytes() {
      java.lang.Object ref = hospitalName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hospitalName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hospitalName = 4;</code>
     * @param value The hospitalName to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 4;</code>
     * @param value The bytes for hospitalName to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hospitalName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 5;</code>
     * @return The deptName.
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptName = 5;</code>
     * @return The bytes for deptName.
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptName = 5;</code>
     * @param value The deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 5;</code>
     * @param value The bytes for deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private int amount_ ;
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 6;</code>
     * @return The amount.
     */
    @java.lang.Override
    public int getAmount() {
      return amount_;
    }
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 6;</code>
     * @param value The amount to set.
     * @return This builder for chaining.
     */
    public Builder setAmount(int value) {
      
      amount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *单位：分
     * </pre>
     *
     * <code>int32 amount = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearAmount() {
      
      amount_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 7;</code>
     * @return The doctorName.
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorName = 7;</code>
     * @return The bytes for doctorName.
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorName = 7;</code>
     * @param value The doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 7;</code>
     * @param value The bytes for doctorName to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 8;</code>
     * @return The patientName.
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientName = 8;</code>
     * @return The bytes for patientName.
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 8;</code>
     * @param value The patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 8;</code>
     * @param value The bytes for patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorTitle_ = "";
    /**
     * <code>string doctorTitle = 9;</code>
     * @return The doctorTitle.
     */
    public java.lang.String getDoctorTitle() {
      java.lang.Object ref = doctorTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorTitle = 9;</code>
     * @return The bytes for doctorTitle.
     */
    public com.google.protobuf.ByteString
        getDoctorTitleBytes() {
      java.lang.Object ref = doctorTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorTitle = 9;</code>
     * @param value The doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorTitle = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorTitle() {
      
      doctorTitle_ = getDefaultInstance().getDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorTitle = 9;</code>
     * @param value The bytes for doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorTitle_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object statusName_ = "";
    /**
     * <code>string statusName = 10;</code>
     * @return The statusName.
     */
    public java.lang.String getStatusName() {
      java.lang.Object ref = statusName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string statusName = 10;</code>
     * @return The bytes for statusName.
     */
    public com.google.protobuf.ByteString
        getStatusNameBytes() {
      java.lang.Object ref = statusName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string statusName = 10;</code>
     * @param value The statusName to set.
     * @return This builder for chaining.
     */
    public Builder setStatusName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string statusName = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatusName() {
      
      statusName_ = getDefaultInstance().getStatusName();
      onChanged();
      return this;
    }
    /**
     * <code>string statusName = 10;</code>
     * @param value The bytes for statusName to set.
     * @return This builder for chaining.
     */
    public Builder setStatusNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientSex_ = "";
    /**
     * <code>string patientSex = 11;</code>
     * @return The patientSex.
     */
    public java.lang.String getPatientSex() {
      java.lang.Object ref = patientSex_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientSex_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientSex = 11;</code>
     * @return The bytes for patientSex.
     */
    public com.google.protobuf.ByteString
        getPatientSexBytes() {
      java.lang.Object ref = patientSex_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientSex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientSex = 11;</code>
     * @param value The patientSex to set.
     * @return This builder for chaining.
     */
    public Builder setPatientSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientSex() {
      
      patientSex_ = getDefaultInstance().getPatientSex();
      onChanged();
      return this;
    }
    /**
     * <code>string patientSex = 11;</code>
     * @param value The bytes for patientSex to set.
     * @return This builder for chaining.
     */
    public Builder setPatientSexBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientSex_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object registeredDate_ = "";
    /**
     * <code>string registeredDate = 12;</code>
     * @return The registeredDate.
     */
    public java.lang.String getRegisteredDate() {
      java.lang.Object ref = registeredDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        registeredDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string registeredDate = 12;</code>
     * @return The bytes for registeredDate.
     */
    public com.google.protobuf.ByteString
        getRegisteredDateBytes() {
      java.lang.Object ref = registeredDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        registeredDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string registeredDate = 12;</code>
     * @param value The registeredDate to set.
     * @return This builder for chaining.
     */
    public Builder setRegisteredDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      registeredDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string registeredDate = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegisteredDate() {
      
      registeredDate_ = getDefaultInstance().getRegisteredDate();
      onChanged();
      return this;
    }
    /**
     * <code>string registeredDate = 12;</code>
     * @param value The bytes for registeredDate to set.
     * @return This builder for chaining.
     */
    public Builder setRegisteredDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      registeredDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object startTime_ = "";
    /**
     * <code>string startTime = 13;</code>
     * @return The startTime.
     */
    public java.lang.String getStartTime() {
      java.lang.Object ref = startTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        startTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string startTime = 13;</code>
     * @return The bytes for startTime.
     */
    public com.google.protobuf.ByteString
        getStartTimeBytes() {
      java.lang.Object ref = startTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        startTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string startTime = 13;</code>
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string startTime = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <code>string startTime = 13;</code>
     * @param value The bytes for startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      startTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object endTime_ = "";
    /**
     * <code>string endTime = 14;</code>
     * @return The endTime.
     */
    public java.lang.String getEndTime() {
      java.lang.Object ref = endTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        endTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string endTime = 14;</code>
     * @return The bytes for endTime.
     */
    public com.google.protobuf.ByteString
        getEndTimeBytes() {
      java.lang.Object ref = endTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        endTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string endTime = 14;</code>
     * @param value The endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string endTime = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <code>string endTime = 14;</code>
     * @param value The bytes for endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endTime_ = value;
      onChanged();
      return this;
    }

    private int orderType_ ;
    /**
     * <code>int32 orderType = 15;</code>
     * @return The orderType.
     */
    @java.lang.Override
    public int getOrderType() {
      return orderType_;
    }
    /**
     * <code>int32 orderType = 15;</code>
     * @param value The orderType to set.
     * @return This builder for chaining.
     */
    public Builder setOrderType(int value) {
      
      orderType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderType = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderType() {
      
      orderType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orderTitle_ = "";
    /**
     * <code>string orderTitle = 16;</code>
     * @return The orderTitle.
     */
    public java.lang.String getOrderTitle() {
      java.lang.Object ref = orderTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderTitle = 16;</code>
     * @return The bytes for orderTitle.
     */
    public com.google.protobuf.ByteString
        getOrderTitleBytes() {
      java.lang.Object ref = orderTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderTitle = 16;</code>
     * @param value The orderTitle to set.
     * @return This builder for chaining.
     */
    public Builder setOrderTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderTitle = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderTitle() {
      
      orderTitle_ = getDefaultInstance().getOrderTitle();
      onChanged();
      return this;
    }
    /**
     * <code>string orderTitle = 16;</code>
     * @param value The bytes for orderTitle to set.
     * @return This builder for chaining.
     */
    public Builder setOrderTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderTitle_ = value;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 17;</code>
     * @return The createTime.
     */
    @java.lang.Override
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 17;</code>
     * @param value The createTime to set.
     * @return This builder for chaining.
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private int cancel_ ;
    /**
     * <pre>
     *订单是否可以取消，1-是，0-否
     * </pre>
     *
     * <code>int32 cancel = 18;</code>
     * @return The cancel.
     */
    @java.lang.Override
    public int getCancel() {
      return cancel_;
    }
    /**
     * <pre>
     *订单是否可以取消，1-是，0-否
     * </pre>
     *
     * <code>int32 cancel = 18;</code>
     * @param value The cancel to set.
     * @return This builder for chaining.
     */
    public Builder setCancel(int value) {
      
      cancel_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *订单是否可以取消，1-是，0-否
     * </pre>
     *
     * <code>int32 cancel = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearCancel() {
      
      cancel_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object deptCode_ = "";
    /**
     * <code>string deptCode = 19;</code>
     * @return The deptCode.
     */
    public java.lang.String getDeptCode() {
      java.lang.Object ref = deptCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string deptCode = 19;</code>
     * @return The bytes for deptCode.
     */
    public com.google.protobuf.ByteString
        getDeptCodeBytes() {
      java.lang.Object ref = deptCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string deptCode = 19;</code>
     * @param value The deptCode to set.
     * @return This builder for chaining.
     */
    public Builder setDeptCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 19;</code>
     * @param value The bytes for deptCode to set.
     * @return This builder for chaining.
     */
    public Builder setDeptCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptCode_ = value;
      onChanged();
      return this;
    }

    private int registeredType_ ;
    /**
     * <code>int32 registeredType = 20;</code>
     * @return The registeredType.
     */
    @java.lang.Override
    public int getRegisteredType() {
      return registeredType_;
    }
    /**
     * <code>int32 registeredType = 20;</code>
     * @param value The registeredType to set.
     * @return This builder for chaining.
     */
    public Builder setRegisteredType(int value) {
      
      registeredType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 registeredType = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearRegisteredType() {
      
      registeredType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisAdmAddr_ = "";
    /**
     * <pre>
     * HIS 就诊地点
     * </pre>
     *
     * <code>string hisAdmAddr = 21;</code>
     * @return The hisAdmAddr.
     */
    public java.lang.String getHisAdmAddr() {
      java.lang.Object ref = hisAdmAddr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisAdmAddr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * HIS 就诊地点
     * </pre>
     *
     * <code>string hisAdmAddr = 21;</code>
     * @return The bytes for hisAdmAddr.
     */
    public com.google.protobuf.ByteString
        getHisAdmAddrBytes() {
      java.lang.Object ref = hisAdmAddr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisAdmAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * HIS 就诊地点
     * </pre>
     *
     * <code>string hisAdmAddr = 21;</code>
     * @param value The hisAdmAddr to set.
     * @return This builder for chaining.
     */
    public Builder setHisAdmAddr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisAdmAddr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 就诊地点
     * </pre>
     *
     * <code>string hisAdmAddr = 21;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisAdmAddr() {
      
      hisAdmAddr_ = getDefaultInstance().getHisAdmAddr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * HIS 就诊地点
     * </pre>
     *
     * <code>string hisAdmAddr = 21;</code>
     * @param value The bytes for hisAdmAddr to set.
     * @return This builder for chaining.
     */
    public Builder setHisAdmAddrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisAdmAddr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 22;</code>
     * @return The hisPatientId.
     */
    public java.lang.String getHisPatientId() {
      java.lang.Object ref = hisPatientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisPatientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @return The bytes for hisPatientId.
     */
    public com.google.protobuf.ByteString
        getHisPatientIdBytes() {
      java.lang.Object ref = hisPatientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisPatientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @param value The hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @param value The bytes for hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = value;
      onChanged();
      return this;
    }

    private int subHospitalId_ ;
    /**
     * <code>int32 subHospitalId = 23;</code>
     * @return The subHospitalId.
     */
    @java.lang.Override
    public int getSubHospitalId() {
      return subHospitalId_;
    }
    /**
     * <code>int32 subHospitalId = 23;</code>
     * @param value The subHospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setSubHospitalId(int value) {
      
      subHospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 subHospitalId = 23;</code>
     * @return This builder for chaining.
     */
    public Builder clearSubHospitalId() {
      
      subHospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object seqCode_ = "";
    /**
     * <code>string seqCode = 24;</code>
     * @return The seqCode.
     */
    public java.lang.String getSeqCode() {
      java.lang.Object ref = seqCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        seqCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string seqCode = 24;</code>
     * @return The bytes for seqCode.
     */
    public com.google.protobuf.ByteString
        getSeqCodeBytes() {
      java.lang.Object ref = seqCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        seqCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string seqCode = 24;</code>
     * @param value The seqCode to set.
     * @return This builder for chaining.
     */
    public Builder setSeqCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      seqCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string seqCode = 24;</code>
     * @return This builder for chaining.
     */
    public Builder clearSeqCode() {
      
      seqCode_ = getDefaultInstance().getSeqCode();
      onChanged();
      return this;
    }
    /**
     * <code>string seqCode = 24;</code>
     * @param value The bytes for seqCode to set.
     * @return This builder for chaining.
     */
    public Builder setSeqCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      seqCode_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.register.CommonOrder)
  }

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

  public static com.ywt.gapi.taihe.register.CommonOrder getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.taihe.register.CommonOrder getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

