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

package com.ywt.gapi.third.taihe;

/**
 * <pre>
 *缴费项目
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.third.taihe.PaymentItem}
 */
public  final class PaymentItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.PaymentItem)
    PaymentItemOrBuilder {
  // Use PaymentItem.newBuilder() to construct.
  private PaymentItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PaymentItem() {
    hisOrdNum_ = "";
    payName_ = "";
    deptName_ = "";
    doctorName_ = "";
    totalFee_ = 0;
    medInsFee_ = 0;
    selfFee_ = 0;
    payMode_ = "";
    prescriptionDate_ = "";
    patientName_ = "";
    patientAge_ = 0;
    patientSex_ = 0;
    clinicCode_ = "";
    orderInsuFlag_ = "";
    orderInsType_ = "";
    itemList_ = java.util.Collections.emptyList();
    doctorCode_ = "";
    invDate_ = "";
    invTime_ = "";
    invoiceNo_ = "";
    invoiceType_ = "";
    invoiceTypeName_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private PaymentItem(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

            doctorName_ = s;
            break;
          }
          case 40: {

            totalFee_ = input.readInt32();
            break;
          }
          case 48: {

            medInsFee_ = input.readInt32();
            break;
          }
          case 56: {

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

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

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

            patientName_ = s;
            break;
          }
          case 88: {

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

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

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

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

            orderInsType_ = s;
            break;
          }
          case 130: {
            if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
              itemList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.PayDetailItem>();
              mutable_bitField0_ |= 0x00008000;
            }
            itemList_.add(
                input.readMessage(com.ywt.gapi.third.taihe.PayDetailItem.parser(), extensionRegistry));
            break;
          }
          case 138: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

            invoiceTypeName_ = 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 {
      if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
        itemList_ = java.util.Collections.unmodifiableList(itemList_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PaymentItem_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PaymentItem_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.PaymentItem.class, com.ywt.gapi.third.taihe.PaymentItem.Builder.class);
  }

  private int bitField0_;
  public static final int HISORDNUM_FIELD_NUMBER = 1;
  private volatile java.lang.Object hisOrdNum_;
  /**
   * <pre>
   *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
   * </pre>
   *
   * <code>string hisOrdNum = 1;</code>
   */
  public java.lang.String getHisOrdNum() {
    java.lang.Object ref = hisOrdNum_;
    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();
      hisOrdNum_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
   * </pre>
   *
   * <code>string hisOrdNum = 1;</code>
   */
  public com.google.protobuf.ByteString
      getHisOrdNumBytes() {
    java.lang.Object ref = hisOrdNum_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisOrdNum_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAYNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object payName_;
  /**
   * <pre>
   *缴费项名称
   * </pre>
   *
   * <code>string payName = 2;</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;
    }
  }
  /**
   * <pre>
   *缴费项名称
   * </pre>
   *
   * <code>string payName = 2;</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 DEPTNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object deptName_;
  /**
   * <pre>
   *接诊科室名称
   * </pre>
   *
   * <code>string deptName = 3;</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;
    }
  }
  /**
   * <pre>
   *接诊科室名称
   * </pre>
   *
   * <code>string deptName = 3;</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 DOCTORNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *接诊医生姓名
   * </pre>
   *
   * <code>string doctorName = 4;</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;
    }
  }
  /**
   * <pre>
   *接诊医生姓名
   * </pre>
   *
   * <code>string doctorName = 4;</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 TOTALFEE_FIELD_NUMBER = 5;
  private int totalFee_;
  /**
   * <pre>
   *缴费总额（单位：分）
   * </pre>
   *
   * <code>int32 totalFee = 5;</code>
   */
  public int getTotalFee() {
    return totalFee_;
  }

  public static final int MEDINSFEE_FIELD_NUMBER = 6;
  private int medInsFee_;
  /**
   * <pre>
   *医保部分金额（单位：分）
   * </pre>
   *
   * <code>int32 medInsFee = 6;</code>
   */
  public int getMedInsFee() {
    return medInsFee_;
  }

  public static final int SELFFEE_FIELD_NUMBER = 7;
  private int selfFee_;
  /**
   * <pre>
   *自费部分金额（单位：分）
   * </pre>
   *
   * <code>int32 selfFee = 7;</code>
   */
  public int getSelfFee() {
    return selfFee_;
  }

  public static final int PAYMODE_FIELD_NUMBER = 8;
  private volatile java.lang.Object payMode_;
  /**
   * <pre>
   *支付方式
   * </pre>
   *
   * <code>string payMode = 8;</code>
   */
  public java.lang.String getPayMode() {
    java.lang.Object ref = payMode_;
    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();
      payMode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *支付方式
   * </pre>
   *
   * <code>string payMode = 8;</code>
   */
  public com.google.protobuf.ByteString
      getPayModeBytes() {
    java.lang.Object ref = payMode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      payMode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRESCRIPTIONDATE_FIELD_NUMBER = 9;
  private volatile java.lang.Object prescriptionDate_;
  /**
   * <pre>
   *处方日期，格式：yyyy-MM-dd HH:mm:ss
   * </pre>
   *
   * <code>string prescriptionDate = 9;</code>
   */
  public java.lang.String getPrescriptionDate() {
    java.lang.Object ref = prescriptionDate_;
    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();
      prescriptionDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *处方日期，格式：yyyy-MM-dd HH:mm:ss
   * </pre>
   *
   * <code>string prescriptionDate = 9;</code>
   */
  public com.google.protobuf.ByteString
      getPrescriptionDateBytes() {
    java.lang.Object ref = prescriptionDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      prescriptionDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

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

  public static final int CLINICCODE_FIELD_NUMBER = 13;
  private volatile java.lang.Object clinicCode_;
  /**
   * <code>string clinicCode = 13;</code>
   */
  public java.lang.String getClinicCode() {
    java.lang.Object ref = clinicCode_;
    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();
      clinicCode_ = s;
      return s;
    }
  }
  /**
   * <code>string clinicCode = 13;</code>
   */
  public com.google.protobuf.ByteString
      getClinicCodeBytes() {
    java.lang.Object ref = clinicCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERINSUFLAG_FIELD_NUMBER = 14;
  private volatile java.lang.Object orderInsuFlag_;
  /**
   * <code>string orderInsuFlag = 14;</code>
   */
  public java.lang.String getOrderInsuFlag() {
    java.lang.Object ref = orderInsuFlag_;
    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();
      orderInsuFlag_ = s;
      return s;
    }
  }
  /**
   * <code>string orderInsuFlag = 14;</code>
   */
  public com.google.protobuf.ByteString
      getOrderInsuFlagBytes() {
    java.lang.Object ref = orderInsuFlag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderInsuFlag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDERINSTYPE_FIELD_NUMBER = 15;
  private volatile java.lang.Object orderInsType_;
  /**
   * <code>string orderInsType = 15;</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 = 15;</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 ITEMLIST_FIELD_NUMBER = 16;
  private java.util.List<com.ywt.gapi.third.taihe.PayDetailItem> itemList_;
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  public java.util.List<com.ywt.gapi.third.taihe.PayDetailItem> getItemListList() {
    return itemList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  public java.util.List<? extends com.ywt.gapi.third.taihe.PayDetailItemOrBuilder> 
      getItemListOrBuilderList() {
    return itemList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  public int getItemListCount() {
    return itemList_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  public com.ywt.gapi.third.taihe.PayDetailItem getItemList(int index) {
    return itemList_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  public com.ywt.gapi.third.taihe.PayDetailItemOrBuilder getItemListOrBuilder(
      int index) {
    return itemList_.get(index);
  }

  public static final int DOCTORCODE_FIELD_NUMBER = 17;
  private volatile java.lang.Object doctorCode_;
  /**
   * <code>string doctorCode = 17;</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 = 17;</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 INVDATE_FIELD_NUMBER = 18;
  private volatile java.lang.Object invDate_;
  /**
   * <code>string invDate = 18;</code>
   */
  public java.lang.String getInvDate() {
    java.lang.Object ref = invDate_;
    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();
      invDate_ = s;
      return s;
    }
  }
  /**
   * <code>string invDate = 18;</code>
   */
  public com.google.protobuf.ByteString
      getInvDateBytes() {
    java.lang.Object ref = invDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVTIME_FIELD_NUMBER = 19;
  private volatile java.lang.Object invTime_;
  /**
   * <code>string invTime = 19;</code>
   */
  public java.lang.String getInvTime() {
    java.lang.Object ref = invTime_;
    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();
      invTime_ = s;
      return s;
    }
  }
  /**
   * <code>string invTime = 19;</code>
   */
  public com.google.protobuf.ByteString
      getInvTimeBytes() {
    java.lang.Object ref = invTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICENO_FIELD_NUMBER = 20;
  private volatile java.lang.Object invoiceNo_;
  /**
   * <code>string invoiceNo = 20;</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 = 20;</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;
    }
  }

  public static final int INVOICETYPE_FIELD_NUMBER = 21;
  private volatile java.lang.Object invoiceType_;
  /**
   * <pre>
   *发票类型
   * </pre>
   *
   * <code>string invoiceType = 21;</code>
   */
  public java.lang.String getInvoiceType() {
    java.lang.Object ref = invoiceType_;
    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();
      invoiceType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *发票类型
   * </pre>
   *
   * <code>string invoiceType = 21;</code>
   */
  public com.google.protobuf.ByteString
      getInvoiceTypeBytes() {
    java.lang.Object ref = invoiceType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INVOICETYPENAME_FIELD_NUMBER = 22;
  private volatile java.lang.Object invoiceTypeName_;
  /**
   * <pre>
   *发票类型名称
   * </pre>
   *
   * <code>string invoiceTypeName = 22;</code>
   */
  public java.lang.String getInvoiceTypeName() {
    java.lang.Object ref = invoiceTypeName_;
    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();
      invoiceTypeName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *发票类型名称
   * </pre>
   *
   * <code>string invoiceTypeName = 22;</code>
   */
  public com.google.protobuf.ByteString
      getInvoiceTypeNameBytes() {
    java.lang.Object ref = invoiceTypeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      invoiceTypeName_ = 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 (!getHisOrdNumBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hisOrdNum_);
    }
    if (!getPayNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptName_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorName_);
    }
    if (totalFee_ != 0) {
      output.writeInt32(5, totalFee_);
    }
    if (medInsFee_ != 0) {
      output.writeInt32(6, medInsFee_);
    }
    if (selfFee_ != 0) {
      output.writeInt32(7, selfFee_);
    }
    if (!getPayModeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, payMode_);
    }
    if (!getPrescriptionDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, prescriptionDate_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, patientName_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(11, patientAge_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(12, patientSex_);
    }
    if (!getClinicCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, clinicCode_);
    }
    if (!getOrderInsuFlagBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, orderInsuFlag_);
    }
    if (!getOrderInsTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, orderInsType_);
    }
    for (int i = 0; i < itemList_.size(); i++) {
      output.writeMessage(16, itemList_.get(i));
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, doctorCode_);
    }
    if (!getInvDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, invDate_);
    }
    if (!getInvTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, invTime_);
    }
    if (!getInvoiceNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, invoiceNo_);
    }
    if (!getInvoiceTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, invoiceType_);
    }
    if (!getInvoiceTypeNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, invoiceTypeName_);
    }
  }

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

    size = 0;
    if (!getHisOrdNumBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hisOrdNum_);
    }
    if (!getPayNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payName_);
    }
    if (!getDeptNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptName_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorName_);
    }
    if (totalFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, totalFee_);
    }
    if (medInsFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, medInsFee_);
    }
    if (selfFee_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, selfFee_);
    }
    if (!getPayModeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, payMode_);
    }
    if (!getPrescriptionDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, prescriptionDate_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, patientName_);
    }
    if (patientAge_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, patientAge_);
    }
    if (patientSex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, patientSex_);
    }
    if (!getClinicCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clinicCode_);
    }
    if (!getOrderInsuFlagBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, orderInsuFlag_);
    }
    if (!getOrderInsTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, orderInsType_);
    }
    for (int i = 0; i < itemList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(16, itemList_.get(i));
    }
    if (!getDoctorCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, doctorCode_);
    }
    if (!getInvDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, invDate_);
    }
    if (!getInvTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, invTime_);
    }
    if (!getInvoiceNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, invoiceNo_);
    }
    if (!getInvoiceTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, invoiceType_);
    }
    if (!getInvoiceTypeNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, invoiceTypeName_);
    }
    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.third.taihe.PaymentItem)) {
      return super.equals(obj);
    }
    com.ywt.gapi.third.taihe.PaymentItem other = (com.ywt.gapi.third.taihe.PaymentItem) obj;

    boolean result = true;
    result = result && getHisOrdNum()
        .equals(other.getHisOrdNum());
    result = result && getPayName()
        .equals(other.getPayName());
    result = result && getDeptName()
        .equals(other.getDeptName());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && (getTotalFee()
        == other.getTotalFee());
    result = result && (getMedInsFee()
        == other.getMedInsFee());
    result = result && (getSelfFee()
        == other.getSelfFee());
    result = result && getPayMode()
        .equals(other.getPayMode());
    result = result && getPrescriptionDate()
        .equals(other.getPrescriptionDate());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getPatientAge()
        == other.getPatientAge());
    result = result && (getPatientSex()
        == other.getPatientSex());
    result = result && getClinicCode()
        .equals(other.getClinicCode());
    result = result && getOrderInsuFlag()
        .equals(other.getOrderInsuFlag());
    result = result && getOrderInsType()
        .equals(other.getOrderInsType());
    result = result && getItemListList()
        .equals(other.getItemListList());
    result = result && getDoctorCode()
        .equals(other.getDoctorCode());
    result = result && getInvDate()
        .equals(other.getInvDate());
    result = result && getInvTime()
        .equals(other.getInvTime());
    result = result && getInvoiceNo()
        .equals(other.getInvoiceNo());
    result = result && getInvoiceType()
        .equals(other.getInvoiceType());
    result = result && getInvoiceTypeName()
        .equals(other.getInvoiceTypeName());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + HISORDNUM_FIELD_NUMBER;
    hash = (53 * hash) + getHisOrdNum().hashCode();
    hash = (37 * hash) + PAYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPayName().hashCode();
    hash = (37 * hash) + DEPTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDeptName().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + TOTALFEE_FIELD_NUMBER;
    hash = (53 * hash) + getTotalFee();
    hash = (37 * hash) + MEDINSFEE_FIELD_NUMBER;
    hash = (53 * hash) + getMedInsFee();
    hash = (37 * hash) + SELFFEE_FIELD_NUMBER;
    hash = (53 * hash) + getSelfFee();
    hash = (37 * hash) + PAYMODE_FIELD_NUMBER;
    hash = (53 * hash) + getPayMode().hashCode();
    hash = (37 * hash) + PRESCRIPTIONDATE_FIELD_NUMBER;
    hash = (53 * hash) + getPrescriptionDate().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) + CLINICCODE_FIELD_NUMBER;
    hash = (53 * hash) + getClinicCode().hashCode();
    hash = (37 * hash) + ORDERINSUFLAG_FIELD_NUMBER;
    hash = (53 * hash) + getOrderInsuFlag().hashCode();
    hash = (37 * hash) + ORDERINSTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getOrderInsType().hashCode();
    if (getItemListCount() > 0) {
      hash = (37 * hash) + ITEMLIST_FIELD_NUMBER;
      hash = (53 * hash) + getItemListList().hashCode();
    }
    hash = (37 * hash) + DOCTORCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorCode().hashCode();
    hash = (37 * hash) + INVDATE_FIELD_NUMBER;
    hash = (53 * hash) + getInvDate().hashCode();
    hash = (37 * hash) + INVTIME_FIELD_NUMBER;
    hash = (53 * hash) + getInvTime().hashCode();
    hash = (37 * hash) + INVOICENO_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceNo().hashCode();
    hash = (37 * hash) + INVOICETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceType().hashCode();
    hash = (37 * hash) + INVOICETYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceTypeName().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.PaymentItem parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem 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.third.taihe.PaymentItem parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem 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.third.taihe.PaymentItem parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem 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.third.taihe.PaymentItem parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem 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.third.taihe.PaymentItem parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.PaymentItem 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.third.taihe.PaymentItem 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.third.taihe.PaymentItem}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.PaymentItem)
      com.ywt.gapi.third.taihe.PaymentItemOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PaymentItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PaymentItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.PaymentItem.class, com.ywt.gapi.third.taihe.PaymentItem.Builder.class);
    }

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

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

      payName_ = "";

      deptName_ = "";

      doctorName_ = "";

      totalFee_ = 0;

      medInsFee_ = 0;

      selfFee_ = 0;

      payMode_ = "";

      prescriptionDate_ = "";

      patientName_ = "";

      patientAge_ = 0;

      patientSex_ = 0;

      clinicCode_ = "";

      orderInsuFlag_ = "";

      orderInsType_ = "";

      if (itemListBuilder_ == null) {
        itemList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00008000);
      } else {
        itemListBuilder_.clear();
      }
      doctorCode_ = "";

      invDate_ = "";

      invTime_ = "";

      invoiceNo_ = "";

      invoiceType_ = "";

      invoiceTypeName_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_PaymentItem_descriptor;
    }

    public com.ywt.gapi.third.taihe.PaymentItem getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.PaymentItem.getDefaultInstance();
    }

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

    public com.ywt.gapi.third.taihe.PaymentItem buildPartial() {
      com.ywt.gapi.third.taihe.PaymentItem result = new com.ywt.gapi.third.taihe.PaymentItem(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.hisOrdNum_ = hisOrdNum_;
      result.payName_ = payName_;
      result.deptName_ = deptName_;
      result.doctorName_ = doctorName_;
      result.totalFee_ = totalFee_;
      result.medInsFee_ = medInsFee_;
      result.selfFee_ = selfFee_;
      result.payMode_ = payMode_;
      result.prescriptionDate_ = prescriptionDate_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.patientSex_ = patientSex_;
      result.clinicCode_ = clinicCode_;
      result.orderInsuFlag_ = orderInsuFlag_;
      result.orderInsType_ = orderInsType_;
      if (itemListBuilder_ == null) {
        if (((bitField0_ & 0x00008000) == 0x00008000)) {
          itemList_ = java.util.Collections.unmodifiableList(itemList_);
          bitField0_ = (bitField0_ & ~0x00008000);
        }
        result.itemList_ = itemList_;
      } else {
        result.itemList_ = itemListBuilder_.build();
      }
      result.doctorCode_ = doctorCode_;
      result.invDate_ = invDate_;
      result.invTime_ = invTime_;
      result.invoiceNo_ = invoiceNo_;
      result.invoiceType_ = invoiceType_;
      result.invoiceTypeName_ = invoiceTypeName_;
      result.bitField0_ = to_bitField0_;
      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.third.taihe.PaymentItem) {
        return mergeFrom((com.ywt.gapi.third.taihe.PaymentItem)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.third.taihe.PaymentItem other) {
      if (other == com.ywt.gapi.third.taihe.PaymentItem.getDefaultInstance()) return this;
      if (!other.getHisOrdNum().isEmpty()) {
        hisOrdNum_ = other.hisOrdNum_;
        onChanged();
      }
      if (!other.getPayName().isEmpty()) {
        payName_ = other.payName_;
        onChanged();
      }
      if (!other.getDeptName().isEmpty()) {
        deptName_ = other.deptName_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (other.getTotalFee() != 0) {
        setTotalFee(other.getTotalFee());
      }
      if (other.getMedInsFee() != 0) {
        setMedInsFee(other.getMedInsFee());
      }
      if (other.getSelfFee() != 0) {
        setSelfFee(other.getSelfFee());
      }
      if (!other.getPayMode().isEmpty()) {
        payMode_ = other.payMode_;
        onChanged();
      }
      if (!other.getPrescriptionDate().isEmpty()) {
        prescriptionDate_ = other.prescriptionDate_;
        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.getClinicCode().isEmpty()) {
        clinicCode_ = other.clinicCode_;
        onChanged();
      }
      if (!other.getOrderInsuFlag().isEmpty()) {
        orderInsuFlag_ = other.orderInsuFlag_;
        onChanged();
      }
      if (!other.getOrderInsType().isEmpty()) {
        orderInsType_ = other.orderInsType_;
        onChanged();
      }
      if (itemListBuilder_ == null) {
        if (!other.itemList_.isEmpty()) {
          if (itemList_.isEmpty()) {
            itemList_ = other.itemList_;
            bitField0_ = (bitField0_ & ~0x00008000);
          } else {
            ensureItemListIsMutable();
            itemList_.addAll(other.itemList_);
          }
          onChanged();
        }
      } else {
        if (!other.itemList_.isEmpty()) {
          if (itemListBuilder_.isEmpty()) {
            itemListBuilder_.dispose();
            itemListBuilder_ = null;
            itemList_ = other.itemList_;
            bitField0_ = (bitField0_ & ~0x00008000);
            itemListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getItemListFieldBuilder() : null;
          } else {
            itemListBuilder_.addAllMessages(other.itemList_);
          }
        }
      }
      if (!other.getDoctorCode().isEmpty()) {
        doctorCode_ = other.doctorCode_;
        onChanged();
      }
      if (!other.getInvDate().isEmpty()) {
        invDate_ = other.invDate_;
        onChanged();
      }
      if (!other.getInvTime().isEmpty()) {
        invTime_ = other.invTime_;
        onChanged();
      }
      if (!other.getInvoiceNo().isEmpty()) {
        invoiceNo_ = other.invoiceNo_;
        onChanged();
      }
      if (!other.getInvoiceType().isEmpty()) {
        invoiceType_ = other.invoiceType_;
        onChanged();
      }
      if (!other.getInvoiceTypeName().isEmpty()) {
        invoiceTypeName_ = other.invoiceTypeName_;
        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.third.taihe.PaymentItem parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.PaymentItem) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object hisOrdNum_ = "";
    /**
     * <pre>
     *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
     * </pre>
     *
     * <code>string hisOrdNum = 1;</code>
     */
    public java.lang.String getHisOrdNum() {
      java.lang.Object ref = hisOrdNum_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisOrdNum_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
     * </pre>
     *
     * <code>string hisOrdNum = 1;</code>
     */
    public com.google.protobuf.ByteString
        getHisOrdNumBytes() {
      java.lang.Object ref = hisOrdNum_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisOrdNum_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
     * </pre>
     *
     * <code>string hisOrdNum = 1;</code>
     */
    public Builder setHisOrdNum(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisOrdNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
     * </pre>
     *
     * <code>string hisOrdNum = 1;</code>
     */
    public Builder clearHisOrdNum() {
      
      hisOrdNum_ = getDefaultInstance().getHisOrdNum();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
     * </pre>
     *
     * <code>string hisOrdNum = 1;</code>
     */
    public Builder setHisOrdNumBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisOrdNum_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object payName_ = "";
    /**
     * <pre>
     *缴费项名称
     * </pre>
     *
     * <code>string payName = 2;</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;
      }
    }
    /**
     * <pre>
     *缴费项名称
     * </pre>
     *
     * <code>string payName = 2;</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;
      }
    }
    /**
     * <pre>
     *缴费项名称
     * </pre>
     *
     * <code>string payName = 2;</code>
     */
    public Builder setPayName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *缴费项名称
     * </pre>
     *
     * <code>string payName = 2;</code>
     */
    public Builder clearPayName() {
      
      payName_ = getDefaultInstance().getPayName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *缴费项名称
     * </pre>
     *
     * <code>string payName = 2;</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 deptName_ = "";
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</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;
      }
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</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;
      }
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</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 doctorName_ = "";
    /**
     * <pre>
     *接诊医生姓名
     * </pre>
     *
     * <code>string doctorName = 4;</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;
      }
    }
    /**
     * <pre>
     *接诊医生姓名
     * </pre>
     *
     * <code>string doctorName = 4;</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;
      }
    }
    /**
     * <pre>
     *接诊医生姓名
     * </pre>
     *
     * <code>string doctorName = 4;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接诊医生姓名
     * </pre>
     *
     * <code>string doctorName = 4;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接诊医生姓名
     * </pre>
     *
     * <code>string doctorName = 4;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private int totalFee_ ;
    /**
     * <pre>
     *缴费总额（单位：分）
     * </pre>
     *
     * <code>int32 totalFee = 5;</code>
     */
    public int getTotalFee() {
      return totalFee_;
    }
    /**
     * <pre>
     *缴费总额（单位：分）
     * </pre>
     *
     * <code>int32 totalFee = 5;</code>
     */
    public Builder setTotalFee(int value) {
      
      totalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *缴费总额（单位：分）
     * </pre>
     *
     * <code>int32 totalFee = 5;</code>
     */
    public Builder clearTotalFee() {
      
      totalFee_ = 0;
      onChanged();
      return this;
    }

    private int medInsFee_ ;
    /**
     * <pre>
     *医保部分金额（单位：分）
     * </pre>
     *
     * <code>int32 medInsFee = 6;</code>
     */
    public int getMedInsFee() {
      return medInsFee_;
    }
    /**
     * <pre>
     *医保部分金额（单位：分）
     * </pre>
     *
     * <code>int32 medInsFee = 6;</code>
     */
    public Builder setMedInsFee(int value) {
      
      medInsFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医保部分金额（单位：分）
     * </pre>
     *
     * <code>int32 medInsFee = 6;</code>
     */
    public Builder clearMedInsFee() {
      
      medInsFee_ = 0;
      onChanged();
      return this;
    }

    private int selfFee_ ;
    /**
     * <pre>
     *自费部分金额（单位：分）
     * </pre>
     *
     * <code>int32 selfFee = 7;</code>
     */
    public int getSelfFee() {
      return selfFee_;
    }
    /**
     * <pre>
     *自费部分金额（单位：分）
     * </pre>
     *
     * <code>int32 selfFee = 7;</code>
     */
    public Builder setSelfFee(int value) {
      
      selfFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *自费部分金额（单位：分）
     * </pre>
     *
     * <code>int32 selfFee = 7;</code>
     */
    public Builder clearSelfFee() {
      
      selfFee_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object payMode_ = "";
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     */
    public java.lang.String getPayMode() {
      java.lang.Object ref = payMode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        payMode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     */
    public com.google.protobuf.ByteString
        getPayModeBytes() {
      java.lang.Object ref = payMode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        payMode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     */
    public Builder setPayMode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      payMode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     */
    public Builder clearPayMode() {
      
      payMode_ = getDefaultInstance().getPayMode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     */
    public Builder setPayModeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      payMode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object prescriptionDate_ = "";
    /**
     * <pre>
     *处方日期，格式：yyyy-MM-dd HH:mm:ss
     * </pre>
     *
     * <code>string prescriptionDate = 9;</code>
     */
    public java.lang.String getPrescriptionDate() {
      java.lang.Object ref = prescriptionDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        prescriptionDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *处方日期，格式：yyyy-MM-dd HH:mm:ss
     * </pre>
     *
     * <code>string prescriptionDate = 9;</code>
     */
    public com.google.protobuf.ByteString
        getPrescriptionDateBytes() {
      java.lang.Object ref = prescriptionDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        prescriptionDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *处方日期，格式：yyyy-MM-dd HH:mm:ss
     * </pre>
     *
     * <code>string prescriptionDate = 9;</code>
     */
    public Builder setPrescriptionDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      prescriptionDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方日期，格式：yyyy-MM-dd HH:mm:ss
     * </pre>
     *
     * <code>string prescriptionDate = 9;</code>
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = getDefaultInstance().getPrescriptionDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方日期，格式：yyyy-MM-dd HH:mm:ss
     * </pre>
     *
     * <code>string prescriptionDate = 9;</code>
     */
    public Builder setPrescriptionDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      prescriptionDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 10;</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 = 10;</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 = 10;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 10;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 10;</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 = 11;</code>
     */
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 11;</code>
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 11;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object clinicCode_ = "";
    /**
     * <code>string clinicCode = 13;</code>
     */
    public java.lang.String getClinicCode() {
      java.lang.Object ref = clinicCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string clinicCode = 13;</code>
     */
    public com.google.protobuf.ByteString
        getClinicCodeBytes() {
      java.lang.Object ref = clinicCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string clinicCode = 13;</code>
     */
    public Builder setClinicCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string clinicCode = 13;</code>
     */
    public Builder clearClinicCode() {
      
      clinicCode_ = getDefaultInstance().getClinicCode();
      onChanged();
      return this;
    }
    /**
     * <code>string clinicCode = 13;</code>
     */
    public Builder setClinicCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderInsuFlag_ = "";
    /**
     * <code>string orderInsuFlag = 14;</code>
     */
    public java.lang.String getOrderInsuFlag() {
      java.lang.Object ref = orderInsuFlag_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderInsuFlag_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string orderInsuFlag = 14;</code>
     */
    public com.google.protobuf.ByteString
        getOrderInsuFlagBytes() {
      java.lang.Object ref = orderInsuFlag_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderInsuFlag_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string orderInsuFlag = 14;</code>
     */
    public Builder setOrderInsuFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderInsuFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsuFlag = 14;</code>
     */
    public Builder clearOrderInsuFlag() {
      
      orderInsuFlag_ = getDefaultInstance().getOrderInsuFlag();
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsuFlag = 14;</code>
     */
    public Builder setOrderInsuFlagBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderInsuFlag_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderInsType_ = "";
    /**
     * <code>string orderInsType = 15;</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 = 15;</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 = 15;</code>
     */
    public Builder setOrderInsType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderInsType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 15;</code>
     */
    public Builder clearOrderInsType() {
      
      orderInsType_ = getDefaultInstance().getOrderInsType();
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 15;</code>
     */
    public Builder setOrderInsTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderInsType_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.third.taihe.PayDetailItem> itemList_ =
      java.util.Collections.emptyList();
    private void ensureItemListIsMutable() {
      if (!((bitField0_ & 0x00008000) == 0x00008000)) {
        itemList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.PayDetailItem>(itemList_);
        bitField0_ |= 0x00008000;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.PayDetailItem, com.ywt.gapi.third.taihe.PayDetailItem.Builder, com.ywt.gapi.third.taihe.PayDetailItemOrBuilder> itemListBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.PayDetailItem> getItemListList() {
      if (itemListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(itemList_);
      } else {
        return itemListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public int getItemListCount() {
      if (itemListBuilder_ == null) {
        return itemList_.size();
      } else {
        return itemListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public com.ywt.gapi.third.taihe.PayDetailItem getItemList(int index) {
      if (itemListBuilder_ == null) {
        return itemList_.get(index);
      } else {
        return itemListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder setItemList(
        int index, com.ywt.gapi.third.taihe.PayDetailItem value) {
      if (itemListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemListIsMutable();
        itemList_.set(index, value);
        onChanged();
      } else {
        itemListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder setItemList(
        int index, com.ywt.gapi.third.taihe.PayDetailItem.Builder builderForValue) {
      if (itemListBuilder_ == null) {
        ensureItemListIsMutable();
        itemList_.set(index, builderForValue.build());
        onChanged();
      } else {
        itemListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder addItemList(com.ywt.gapi.third.taihe.PayDetailItem value) {
      if (itemListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemListIsMutable();
        itemList_.add(value);
        onChanged();
      } else {
        itemListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder addItemList(
        int index, com.ywt.gapi.third.taihe.PayDetailItem value) {
      if (itemListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemListIsMutable();
        itemList_.add(index, value);
        onChanged();
      } else {
        itemListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder addItemList(
        com.ywt.gapi.third.taihe.PayDetailItem.Builder builderForValue) {
      if (itemListBuilder_ == null) {
        ensureItemListIsMutable();
        itemList_.add(builderForValue.build());
        onChanged();
      } else {
        itemListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder addItemList(
        int index, com.ywt.gapi.third.taihe.PayDetailItem.Builder builderForValue) {
      if (itemListBuilder_ == null) {
        ensureItemListIsMutable();
        itemList_.add(index, builderForValue.build());
        onChanged();
      } else {
        itemListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder addAllItemList(
        java.lang.Iterable<? extends com.ywt.gapi.third.taihe.PayDetailItem> values) {
      if (itemListBuilder_ == null) {
        ensureItemListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, itemList_);
        onChanged();
      } else {
        itemListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder clearItemList() {
      if (itemListBuilder_ == null) {
        itemList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00008000);
        onChanged();
      } else {
        itemListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public Builder removeItemList(int index) {
      if (itemListBuilder_ == null) {
        ensureItemListIsMutable();
        itemList_.remove(index);
        onChanged();
      } else {
        itemListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public com.ywt.gapi.third.taihe.PayDetailItem.Builder getItemListBuilder(
        int index) {
      return getItemListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public com.ywt.gapi.third.taihe.PayDetailItemOrBuilder getItemListOrBuilder(
        int index) {
      if (itemListBuilder_ == null) {
        return itemList_.get(index);  } else {
        return itemListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public java.util.List<? extends com.ywt.gapi.third.taihe.PayDetailItemOrBuilder> 
         getItemListOrBuilderList() {
      if (itemListBuilder_ != null) {
        return itemListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(itemList_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public com.ywt.gapi.third.taihe.PayDetailItem.Builder addItemListBuilder() {
      return getItemListFieldBuilder().addBuilder(
          com.ywt.gapi.third.taihe.PayDetailItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public com.ywt.gapi.third.taihe.PayDetailItem.Builder addItemListBuilder(
        int index) {
      return getItemListFieldBuilder().addBuilder(
          index, com.ywt.gapi.third.taihe.PayDetailItem.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
     */
    public java.util.List<com.ywt.gapi.third.taihe.PayDetailItem.Builder> 
         getItemListBuilderList() {
      return getItemListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.third.taihe.PayDetailItem, com.ywt.gapi.third.taihe.PayDetailItem.Builder, com.ywt.gapi.third.taihe.PayDetailItemOrBuilder> 
        getItemListFieldBuilder() {
      if (itemListBuilder_ == null) {
        itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.third.taihe.PayDetailItem, com.ywt.gapi.third.taihe.PayDetailItem.Builder, com.ywt.gapi.third.taihe.PayDetailItemOrBuilder>(
                itemList_,
                ((bitField0_ & 0x00008000) == 0x00008000),
                getParentForChildren(),
                isClean());
        itemList_ = null;
      }
      return itemListBuilder_;
    }

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 17;</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 = 17;</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 = 17;</code>
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 17;</code>
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 17;</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 invDate_ = "";
    /**
     * <code>string invDate = 18;</code>
     */
    public java.lang.String getInvDate() {
      java.lang.Object ref = invDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string invDate = 18;</code>
     */
    public com.google.protobuf.ByteString
        getInvDateBytes() {
      java.lang.Object ref = invDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string invDate = 18;</code>
     */
    public Builder setInvDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invDate = 18;</code>
     */
    public Builder clearInvDate() {
      
      invDate_ = getDefaultInstance().getInvDate();
      onChanged();
      return this;
    }
    /**
     * <code>string invDate = 18;</code>
     */
    public Builder setInvDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invTime_ = "";
    /**
     * <code>string invTime = 19;</code>
     */
    public java.lang.String getInvTime() {
      java.lang.Object ref = invTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string invTime = 19;</code>
     */
    public com.google.protobuf.ByteString
        getInvTimeBytes() {
      java.lang.Object ref = invTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string invTime = 19;</code>
     */
    public Builder setInvTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invTime = 19;</code>
     */
    public Builder clearInvTime() {
      
      invTime_ = getDefaultInstance().getInvTime();
      onChanged();
      return this;
    }
    /**
     * <code>string invTime = 19;</code>
     */
    public Builder setInvTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceNo_ = "";
    /**
     * <code>string invoiceNo = 20;</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 = 20;</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 = 20;</code>
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 20;</code>
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 20;</code>
     */
    public Builder setInvoiceNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceType_ = "";
    /**
     * <pre>
     *发票类型
     * </pre>
     *
     * <code>string invoiceType = 21;</code>
     */
    public java.lang.String getInvoiceType() {
      java.lang.Object ref = invoiceType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *发票类型
     * </pre>
     *
     * <code>string invoiceType = 21;</code>
     */
    public com.google.protobuf.ByteString
        getInvoiceTypeBytes() {
      java.lang.Object ref = invoiceType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *发票类型
     * </pre>
     *
     * <code>string invoiceType = 21;</code>
     */
    public Builder setInvoiceType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票类型
     * </pre>
     *
     * <code>string invoiceType = 21;</code>
     */
    public Builder clearInvoiceType() {
      
      invoiceType_ = getDefaultInstance().getInvoiceType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票类型
     * </pre>
     *
     * <code>string invoiceType = 21;</code>
     */
    public Builder setInvoiceTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object invoiceTypeName_ = "";
    /**
     * <pre>
     *发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 22;</code>
     */
    public java.lang.String getInvoiceTypeName() {
      java.lang.Object ref = invoiceTypeName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        invoiceTypeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 22;</code>
     */
    public com.google.protobuf.ByteString
        getInvoiceTypeNameBytes() {
      java.lang.Object ref = invoiceTypeName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invoiceTypeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 22;</code>
     */
    public Builder setInvoiceTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceTypeName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 22;</code>
     */
    public Builder clearInvoiceTypeName() {
      
      invoiceTypeName_ = getDefaultInstance().getInvoiceTypeName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 22;</code>
     */
    public Builder setInvoiceTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceTypeName_ = 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.third.taihe.PaymentItem)
  }

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

  public static com.ywt.gapi.third.taihe.PaymentItem getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.third.taihe.PaymentItem getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

