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

package com.ywt.gapi.order;

/**
 * <pre>
 *门诊缴费单
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.order.OutpatientOrder}
 */
public  final class OutpatientOrder extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.order.OutpatientOrder)
    OutpatientOrderOrBuilder {
  // Use OutpatientOrder.newBuilder() to construct.
  private OutpatientOrder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private OutpatientOrder() {
    orderId_ = 0;
    orderNo_ = "";
    createTime_ = 0L;
    hospitalId_ = 0;
    hospitalName_ = "";
    deptCode_ = "";
    deptName_ = "";
    doctorCode_ = "";
    doctorName_ = "";
    total_ = 0;
    reimbursement_ = 0;
    individual_ = 0;
    paymentStatus_ = 0;
    outpatientStatus_ = 0;
    userId_ = 0;
    hisPatientId_ = "";
    payName_ = "";
    patientName_ = "";
    patientAge_ = 0;
    patientSex_ = 0;
    prescriptionDate_ = 0L;
    hisOrderNo_ = "";
    orderInsType_ = "";
    invoiceNo_ = "";
  }

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

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

            orderNo_ = s;
            break;
          }
          case 24: {

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

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

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

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

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

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

            doctorName_ = s;
            break;
          }
          case 80: {

            total_ = input.readInt32();
            break;
          }
          case 88: {

            reimbursement_ = input.readInt32();
            break;
          }
          case 96: {

            individual_ = input.readInt32();
            break;
          }
          case 104: {

            paymentStatus_ = input.readInt32();
            break;
          }
          case 112: {

            outpatientStatus_ = input.readInt32();
            break;
          }
          case 120: {

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

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

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

            patientName_ = s;
            break;
          }
          case 152: {

            patientAge_ = input.readInt32();
            break;
          }
          case 160: {

            patientSex_ = input.readInt32();
            break;
          }
          case 168: {

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

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

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

            invoiceNo_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OutpatientOrder_descriptor;
  }

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

  public static final int ORDERID_FIELD_NUMBER = 1;
  private int orderId_;
  /**
   * <code>int32 orderId = 1;</code>
   */
  public int getOrderId() {
    return orderId_;
  }

  public static final int ORDERNO_FIELD_NUMBER = 2;
  private volatile java.lang.Object orderNo_;
  /**
   * <code>string orderNo = 2;</code>
   */
  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>
   */
  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 CREATETIME_FIELD_NUMBER = 3;
  private long createTime_;
  /**
   * <code>int64 createTime = 3;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 4;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int HOSPITALNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object hospitalName_;
  /**
   * <code>string hospitalName = 5;</code>
   */
  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 = 5;</code>
   */
  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 DEPTCODE_FIELD_NUMBER = 6;
  private volatile java.lang.Object deptCode_;
  /**
   * <code>string deptCode = 6;</code>
   */
  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 = 6;</code>
   */
  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 DEPTNAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object deptName_;
  /**
   * <code>string deptName = 7;</code>
   */
  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 = 7;</code>
   */
  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 DOCTORCODE_FIELD_NUMBER = 8;
  private volatile java.lang.Object doctorCode_;
  /**
   * <code>string doctorCode = 8;</code>
   */
  public java.lang.String getDoctorCode() {
    java.lang.Object ref = doctorCode_;
    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();
      doctorCode_ = s;
      return s;
    }
  }
  /**
   * <code>string doctorCode = 8;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorCodeBytes() {
    java.lang.Object ref = doctorCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 9;
  private volatile java.lang.Object doctorName_;
  /**
   * <code>string doctorName = 9;</code>
   */
  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 = 9;</code>
   */
  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 TOTAL_FIELD_NUMBER = 10;
  private int total_;
  /**
   * <code>int32 total = 10;</code>
   */
  public int getTotal() {
    return total_;
  }

  public static final int REIMBURSEMENT_FIELD_NUMBER = 11;
  private int reimbursement_;
  /**
   * <code>int32 reimbursement = 11;</code>
   */
  public int getReimbursement() {
    return reimbursement_;
  }

  public static final int INDIVIDUAL_FIELD_NUMBER = 12;
  private int individual_;
  /**
   * <code>int32 individual = 12;</code>
   */
  public int getIndividual() {
    return individual_;
  }

  public static final int PAYMENTSTATUS_FIELD_NUMBER = 13;
  private int paymentStatus_;
  /**
   * <code>int32 paymentStatus = 13;</code>
   */
  public int getPaymentStatus() {
    return paymentStatus_;
  }

  public static final int OUTPATIENTSTATUS_FIELD_NUMBER = 14;
  private int outpatientStatus_;
  /**
   * <code>int32 outpatientStatus = 14;</code>
   */
  public int getOutpatientStatus() {
    return outpatientStatus_;
  }

  public static final int USERID_FIELD_NUMBER = 15;
  private int userId_;
  /**
   * <code>int32 userId = 15;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int HISPATIENTID_FIELD_NUMBER = 16;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 16;</code>
   */
  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 = 16;</code>
   */
  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 PAYNAME_FIELD_NUMBER = 17;
  private volatile java.lang.Object payName_;
  /**
   * <code>string payName = 17;</code>
   */
  public java.lang.String getPayName() {
    java.lang.Object ref = payName_;
    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();
      payName_ = s;
      return s;
    }
  }
  /**
   * <code>string payName = 17;</code>
   */
  public com.google.protobuf.ByteString
      getPayNameBytes() {
    java.lang.Object ref = payName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 18;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 18;</code>
   */
  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 = 18;</code>
   */
  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 PATIENTAGE_FIELD_NUMBER = 19;
  private int patientAge_;
  /**
   * <code>int32 patientAge = 19;</code>
   */
  public int getPatientAge() {
    return patientAge_;
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 20;
  private int patientSex_;
  /**
   * <code>int32 patientSex = 20;</code>
   */
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int PRESCRIPTIONDATE_FIELD_NUMBER = 21;
  private long prescriptionDate_;
  /**
   * <code>int64 prescriptionDate = 21;</code>
   */
  public long getPrescriptionDate() {
    return prescriptionDate_;
  }

  public static final int HISORDERNO_FIELD_NUMBER = 22;
  private volatile java.lang.Object hisOrderNo_;
  /**
   * <code>string hisOrderNo = 22;</code>
   */
  public java.lang.String getHisOrderNo() {
    java.lang.Object ref = hisOrderNo_;
    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();
      hisOrderNo_ = s;
      return s;
    }
  }
  /**
   * <code>string hisOrderNo = 22;</code>
   */
  public com.google.protobuf.ByteString
      getHisOrderNoBytes() {
    java.lang.Object ref = hisOrderNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrderNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERINSTYPE_FIELD_NUMBER = 23;
  private volatile java.lang.Object orderInsType_;
  /**
   * <code>string orderInsType = 23;</code>
   */
  public java.lang.String getOrderInsType() {
    java.lang.Object ref = orderInsType_;
    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();
      orderInsType_ = s;
      return s;
    }
  }
  /**
   * <code>string orderInsType = 23;</code>
   */
  public com.google.protobuf.ByteString
      getOrderInsTypeBytes() {
    java.lang.Object ref = orderInsType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderInsType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICENO_FIELD_NUMBER = 24;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <code>string invoiceNo = 24;</code>
   */
  public java.lang.String getInvoiceNo() {
    java.lang.Object ref = invoiceNo_;
    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();
      invoiceNo_ = s;
      return s;
    }
  }
  /**
   * <code>string invoiceNo = 24;</code>
   */
  public com.google.protobuf.ByteString
      getInvoiceNoBytes() {
    java.lang.Object ref = invoiceNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (orderId_ != 0) {
      output.writeInt32(1, orderId_);
    }
    if (!getOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderNo_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(3, createTime_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hospitalName_);
    }
    if (!getDeptCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, doctorName_);
    }
    if (total_ != 0) {
      output.writeInt32(10, total_);
    }
    if (reimbursement_ != 0) {
      output.writeInt32(11, reimbursement_);
    }
    if (individual_ != 0) {
      output.writeInt32(12, individual_);
    }
    if (paymentStatus_ != 0) {
      output.writeInt32(13, paymentStatus_);
    }
    if (outpatientStatus_ != 0) {
      output.writeInt32(14, outpatientStatus_);
    }
    if (userId_ != 0) {
      output.writeInt32(15, userId_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, hisPatientId_);
    }
    if (!getPayNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, payName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, patientName_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(19, patientAge_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(20, patientSex_);
    }
    if (prescriptionDate_ != 0L) {
      output.writeInt64(21, prescriptionDate_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, hisOrderNo_);
    }
    if (!getOrderInsTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, orderInsType_);
    }
    if (!getInvoiceNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 24, invoiceNo_);
    }
  }

  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 (!getOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderNo_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, createTime_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, hospitalId_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hospitalName_);
    }
    if (!getDeptCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, deptCode_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deptName_);
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, doctorCode_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, doctorName_);
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, total_);
    }
    if (reimbursement_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, reimbursement_);
    }
    if (individual_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, individual_);
    }
    if (paymentStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, paymentStatus_);
    }
    if (outpatientStatus_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, outpatientStatus_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(15, userId_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, hisPatientId_);
    }
    if (!getPayNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, payName_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, patientName_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(19, patientAge_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(20, patientSex_);
    }
    if (prescriptionDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(21, prescriptionDate_);
    }
    if (!getHisOrderNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, hisOrderNo_);
    }
    if (!getOrderInsTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, orderInsType_);
    }
    if (!getInvoiceNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, invoiceNo_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.order.OutpatientOrder)) {
      return super.equals(obj);
    }
    com.ywt.gapi.order.OutpatientOrder other = (com.ywt.gapi.order.OutpatientOrder) obj;

    boolean result = true;
    result = result && (getOrderId()
        == other.getOrderId());
    result = result && getOrderNo()
        .equals(other.getOrderNo());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getHospitalName()
        .equals(other.getHospitalName());
    result = result && getDeptCode()
        .equals(other.getDeptCode());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getDoctorCode()
        .equals(other.getDoctorCode());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && (getTotal()
        == other.getTotal());
    result = result && (getReimbursement()
        == other.getReimbursement());
    result = result && (getIndividual()
        == other.getIndividual());
    result = result && (getPaymentStatus()
        == other.getPaymentStatus());
    result = result && (getOutpatientStatus()
        == other.getOutpatientStatus());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getHisPatientId()
        .equals(other.getHisPatientId());
    result = result && getPayName()
        .equals(other.getPayName());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getPatientAge()
        == other.getPatientAge());
    result = result && (getPatientSex()
        == other.getPatientSex());
    result = result && (getPrescriptionDate()
        == other.getPrescriptionDate());
    result = result && getHisOrderNo()
        .equals(other.getHisOrderNo());
    result = result && getOrderInsType()
        .equals(other.getOrderInsType());
    result = result && getInvoiceNo()
        .equals(other.getInvoiceNo());
    return result;
  }

  @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) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DEPTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDeptCode().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (37 * hash) + REIMBURSEMENT_FIELD_NUMBER;
    hash = (53 * hash) + getReimbursement();
    hash = (37 * hash) + INDIVIDUAL_FIELD_NUMBER;
    hash = (53 * hash) + getIndividual();
    hash = (37 * hash) + PAYMENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getPaymentStatus();
    hash = (37 * hash) + OUTPATIENTSTATUS_FIELD_NUMBER;
    hash = (53 * hash) + getOutpatientStatus();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + PAYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPayName().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge();
    hash = (37 * hash) + PATIENTSEX_FIELD_NUMBER;
    hash = (53 * hash) + getPatientSex();
    hash = (37 * hash) + PRESCRIPTIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getPrescriptionDate());
    hash = (37 * hash) + HISORDERNO_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrderNo().hashCode();
    hash = (37 * hash) + ORDERINSTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderInsType().hashCode();
    hash = (37 * hash) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.order.OutpatientOrder parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.order.OutpatientOrder prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *门诊缴费单
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.order.OutpatientOrder}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.order.OutpatientOrder)
      com.ywt.gapi.order.OutpatientOrderOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.order.OrderOuterClass.internal_static_com_ywt_gapi_order_OutpatientOrder_descriptor;
    }

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

    // Construct using com.ywt.gapi.order.OutpatientOrder.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      orderNo_ = "";

      createTime_ = 0L;

      hospitalId_ = 0;

      hospitalName_ = "";

      deptCode_ = "";

      deptName_ = "";

      doctorCode_ = "";

      doctorName_ = "";

      total_ = 0;

      reimbursement_ = 0;

      individual_ = 0;

      paymentStatus_ = 0;

      outpatientStatus_ = 0;

      userId_ = 0;

      hisPatientId_ = "";

      payName_ = "";

      patientName_ = "";

      patientAge_ = 0;

      patientSex_ = 0;

      prescriptionDate_ = 0L;

      hisOrderNo_ = "";

      orderInsType_ = "";

      invoiceNo_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.order.OutpatientOrder buildPartial() {
      com.ywt.gapi.order.OutpatientOrder result = new com.ywt.gapi.order.OutpatientOrder(this);
      result.orderId_ = orderId_;
      result.orderNo_ = orderNo_;
      result.createTime_ = createTime_;
      result.hospitalId_ = hospitalId_;
      result.hospitalName_ = hospitalName_;
      result.deptCode_ = deptCode_;
      result.deptName_ = deptName_;
      result.doctorCode_ = doctorCode_;
      result.doctorName_ = doctorName_;
      result.total_ = total_;
      result.reimbursement_ = reimbursement_;
      result.individual_ = individual_;
      result.paymentStatus_ = paymentStatus_;
      result.outpatientStatus_ = outpatientStatus_;
      result.userId_ = userId_;
      result.hisPatientId_ = hisPatientId_;
      result.payName_ = payName_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.prescriptionDate_ = prescriptionDate_;
      result.hisOrderNo_ = hisOrderNo_;
      result.orderInsType_ = orderInsType_;
      result.invoiceNo_ = invoiceNo_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.order.OutpatientOrder other) {
      if (other == com.ywt.gapi.order.OutpatientOrder.getDefaultInstance()) return this;
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      if (!other.getOrderNo().isEmpty()) {
        orderNo_ = other.orderNo_;
        onChanged();
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDeptCode().isEmpty()) {
        deptCode_ = other.deptCode_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      if (other.getReimbursement() != 0) {
        setReimbursement(other.getReimbursement());
      }
      if (other.getIndividual() != 0) {
        setIndividual(other.getIndividual());
      }
      if (other.getPaymentStatus() != 0) {
        setPaymentStatus(other.getPaymentStatus());
      }
      if (other.getOutpatientStatus() != 0) {
        setOutpatientStatus(other.getOutpatientStatus());
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getPayName().isEmpty()) {
        payName_ = other.payName_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getPatientAge() != 0) {
        setPatientAge(other.getPatientAge());
      }
      if (other.getPatientSex() != 0) {
        setPatientSex(other.getPatientSex());
      }
      if (other.getPrescriptionDate() != 0L) {
        setPrescriptionDate(other.getPrescriptionDate());
      }
      if (!other.getHisOrderNo().isEmpty()) {
        hisOrderNo_ = other.hisOrderNo_;
        onChanged();
      }
      if (!other.getOrderInsType().isEmpty()) {
        orderInsType_ = other.orderInsType_;
        onChanged();
      }
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private int orderId_ ;
    /**
     * <code>int32 orderId = 1;</code>
     */
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 1;</code>
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 1;</code>
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object orderNo_ = "";
    /**
     * <code>string orderNo = 2;</code>
     */
    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>
     */
    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>
     */
    public Builder setOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     */
    public Builder clearOrderNo() {
      
      orderNo_ = getDefaultInstance().getOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string orderNo = 2;</code>
     */
    public Builder setOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderNo_ = value;
      onChanged();
      return this;
    }

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

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 4;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <code>string hospitalName = 5;</code>
     */
    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 = 5;</code>
     */
    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 = 5;</code>
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 5;</code>
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <code>string hospitalName = 5;</code>
     */
    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 deptCode_ = "";
    /**
     * <code>string deptCode = 6;</code>
     */
    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 = 6;</code>
     */
    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 = 6;</code>
     */
    public Builder setDeptCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 6;</code>
     */
    public Builder clearDeptCode() {
      
      deptCode_ = getDefaultInstance().getDeptCode();
      onChanged();
      return this;
    }
    /**
     * <code>string deptCode = 6;</code>
     */
    public Builder setDeptCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object deptName_ = "";
    /**
     * <code>string deptName = 7;</code>
     */
    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 = 7;</code>
     */
    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 = 7;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 7;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <code>string deptName = 7;</code>
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 8;</code>
     */
    public java.lang.String getDoctorCode() {
      java.lang.Object ref = doctorCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string doctorCode = 8;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorCodeBytes() {
      java.lang.Object ref = doctorCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string doctorCode = 8;</code>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 8;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 8;</code>
     */
    public Builder setDoctorCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <code>string doctorName = 9;</code>
     */
    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 = 9;</code>
     */
    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 = 9;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 9;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorName = 9;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private int total_ ;
    /**
     * <code>int32 total = 10;</code>
     */
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 10;</code>
     */
    public Builder setTotal(int value) {
      
      total_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 10;</code>
     */
    public Builder clearTotal() {
      
      total_ = 0;
      onChanged();
      return this;
    }

    private int reimbursement_ ;
    /**
     * <code>int32 reimbursement = 11;</code>
     */
    public int getReimbursement() {
      return reimbursement_;
    }
    /**
     * <code>int32 reimbursement = 11;</code>
     */
    public Builder setReimbursement(int value) {
      
      reimbursement_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 reimbursement = 11;</code>
     */
    public Builder clearReimbursement() {
      
      reimbursement_ = 0;
      onChanged();
      return this;
    }

    private int individual_ ;
    /**
     * <code>int32 individual = 12;</code>
     */
    public int getIndividual() {
      return individual_;
    }
    /**
     * <code>int32 individual = 12;</code>
     */
    public Builder setIndividual(int value) {
      
      individual_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 individual = 12;</code>
     */
    public Builder clearIndividual() {
      
      individual_ = 0;
      onChanged();
      return this;
    }

    private int paymentStatus_ ;
    /**
     * <code>int32 paymentStatus = 13;</code>
     */
    public int getPaymentStatus() {
      return paymentStatus_;
    }
    /**
     * <code>int32 paymentStatus = 13;</code>
     */
    public Builder setPaymentStatus(int value) {
      
      paymentStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 paymentStatus = 13;</code>
     */
    public Builder clearPaymentStatus() {
      
      paymentStatus_ = 0;
      onChanged();
      return this;
    }

    private int outpatientStatus_ ;
    /**
     * <code>int32 outpatientStatus = 14;</code>
     */
    public int getOutpatientStatus() {
      return outpatientStatus_;
    }
    /**
     * <code>int32 outpatientStatus = 14;</code>
     */
    public Builder setOutpatientStatus(int value) {
      
      outpatientStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 outpatientStatus = 14;</code>
     */
    public Builder clearOutpatientStatus() {
      
      outpatientStatus_ = 0;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 15;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 15;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 15;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 16;</code>
     */
    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 = 16;</code>
     */
    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 = 16;</code>
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 16;</code>
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 16;</code>
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object payName_ = "";
    /**
     * <code>string payName = 17;</code>
     */
    public java.lang.String getPayName() {
      java.lang.Object ref = payName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string payName = 17;</code>
     */
    public com.google.protobuf.ByteString
        getPayNameBytes() {
      java.lang.Object ref = payName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string payName = 17;</code>
     */
    public Builder setPayName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string payName = 17;</code>
     */
    public Builder clearPayName() {
      
      payName_ = getDefaultInstance().getPayName();
      onChanged();
      return this;
    }
    /**
     * <code>string payName = 17;</code>
     */
    public Builder setPayNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 18;</code>
     */
    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 = 18;</code>
     */
    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 = 18;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 18;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 18;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private int patientAge_ ;
    /**
     * <code>int32 patientAge = 19;</code>
     */
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 19;</code>
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 19;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

    private int patientSex_ ;
    /**
     * <code>int32 patientSex = 20;</code>
     */
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <code>int32 patientSex = 20;</code>
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSex = 20;</code>
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private long prescriptionDate_ ;
    /**
     * <code>int64 prescriptionDate = 21;</code>
     */
    public long getPrescriptionDate() {
      return prescriptionDate_;
    }
    /**
     * <code>int64 prescriptionDate = 21;</code>
     */
    public Builder setPrescriptionDate(long value) {
      
      prescriptionDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 prescriptionDate = 21;</code>
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object hisOrderNo_ = "";
    /**
     * <code>string hisOrderNo = 22;</code>
     */
    public java.lang.String getHisOrderNo() {
      java.lang.Object ref = hisOrderNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOrderNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     */
    public com.google.protobuf.ByteString
        getHisOrderNoBytes() {
      java.lang.Object ref = hisOrderNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOrderNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     */
    public Builder setHisOrderNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrderNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     */
    public Builder clearHisOrderNo() {
      
      hisOrderNo_ = getDefaultInstance().getHisOrderNo();
      onChanged();
      return this;
    }
    /**
     * <code>string hisOrderNo = 22;</code>
     */
    public Builder setHisOrderNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrderNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderInsType_ = "";
    /**
     * <code>string orderInsType = 23;</code>
     */
    public java.lang.String getOrderInsType() {
      java.lang.Object ref = orderInsType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderInsType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderInsType = 23;</code>
     */
    public com.google.protobuf.ByteString
        getOrderInsTypeBytes() {
      java.lang.Object ref = orderInsType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderInsType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderInsType = 23;</code>
     */
    public Builder setOrderInsType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderInsType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 23;</code>
     */
    public Builder clearOrderInsType() {
      
      orderInsType_ = getDefaultInstance().getOrderInsType();
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 23;</code>
     */
    public Builder setOrderInsTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderInsType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <code>string invoiceNo = 24;</code>
     */
    public java.lang.String getInvoiceNo() {
      java.lang.Object ref = invoiceNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string invoiceNo = 24;</code>
     */
    public com.google.protobuf.ByteString
        getInvoiceNoBytes() {
      java.lang.Object ref = invoiceNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string invoiceNo = 24;</code>
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 24;</code>
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 24;</code>
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.order.OutpatientOrder)
  }

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

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

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

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

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

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

}

