// 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 {
private static final long serialVersionUID = 0L;
  // Use PaymentItem.newBuilder() to construct.
  private PaymentItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PaymentItem() {
    hisOrdNum_ = "";
    payName_ = "";
    deptName_ = "";
    doctorName_ = "";
    payMode_ = "";
    prescriptionDate_ = "";
    patientName_ = "";
    clinicCode_ = "";
    orderInsuFlag_ = "";
    orderInsType_ = "";
    itemList_ = java.util.Collections.emptyList();
    doctorCode_ = "";
    invDate_ = "";
    invTime_ = "";
    invoiceNo_ = "";
    invoiceType_ = "";
    invoiceTypeName_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PaymentItem(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 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_ & 0x00000001) != 0)) {
              itemList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.PayDetailItem>();
              mutable_bitField0_ |= 0x00000001;
            }
            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;
          }
          case 184: {

            orderId_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        itemList_ = java.util.Collections.unmodifiableList(itemList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PaymentItem_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.TaiheProto.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);
  }

  public static final int HISORDNUM_FIELD_NUMBER = 1;
  private volatile java.lang.Object hisOrdNum_;
  /**
   * <pre>
   *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
   * </pre>
   *
   * <code>string hisOrdNum = 1;</code>
   * @return The hisOrdNum.
   */
  @java.lang.Override
  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>
   * @return The bytes for hisOrdNum.
   */
  @java.lang.Override
  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>
   * @return The payName.
   */
  @java.lang.Override
  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>
   * @return The bytes for payName.
   */
  @java.lang.Override
  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>
   * @return The deptName.
   */
  @java.lang.Override
  public java.lang.String getDeptName() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      deptName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *接诊科室名称
   * </pre>
   *
   * <code>string deptName = 3;</code>
   * @return The bytes for deptName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDeptNameBytes() {
    java.lang.Object ref = deptName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      deptName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *接诊医生姓名
   * </pre>
   *
   * <code>string doctorName = 4;</code>
   * @return The doctorName.
   */
  @java.lang.Override
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *接诊医生姓名
   * </pre>
   *
   * <code>string doctorName = 4;</code>
   * @return The bytes for doctorName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTALFEE_FIELD_NUMBER = 5;
  private int totalFee_;
  /**
   * <pre>
   *缴费总额（单位：分）
   * </pre>
   *
   * <code>int32 totalFee = 5;</code>
   * @return The totalFee.
   */
  @java.lang.Override
  public int getTotalFee() {
    return totalFee_;
  }

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

  public static final int SELFFEE_FIELD_NUMBER = 7;
  private int selfFee_;
  /**
   * <pre>
   *自费部分金额（单位：分）
   * </pre>
   *
   * <code>int32 selfFee = 7;</code>
   * @return The selfFee.
   */
  @java.lang.Override
  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>
   * @return The payMode.
   */
  @java.lang.Override
  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>
   * @return The bytes for payMode.
   */
  @java.lang.Override
  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>
   * @return The prescriptionDate.
   */
  @java.lang.Override
  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>
   * @return The bytes for prescriptionDate.
   */
  @java.lang.Override
  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>
   * @return The patientName.
   */
  @java.lang.Override
  public java.lang.String getPatientName() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 10;</code>
   * @return The bytes for patientName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTAGE_FIELD_NUMBER = 11;
  private int patientAge_;
  /**
   * <code>int32 patientAge = 11;</code>
   * @return The patientAge.
   */
  @java.lang.Override
  public int getPatientAge() {
    return patientAge_;
  }

  public static final int PATIENTSEX_FIELD_NUMBER = 12;
  private int patientSex_;
  /**
   * <code>int32 patientSex = 12;</code>
   * @return The patientSex.
   */
  @java.lang.Override
  public int getPatientSex() {
    return patientSex_;
  }

  public static final int CLINICCODE_FIELD_NUMBER = 13;
  private volatile java.lang.Object clinicCode_;
  /**
   * <code>string clinicCode = 13;</code>
   * @return The clinicCode.
   */
  @java.lang.Override
  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>
   * @return The bytes for clinicCode.
   */
  @java.lang.Override
  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>
   * @return The orderInsuFlag.
   */
  @java.lang.Override
  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>
   * @return The bytes for orderInsuFlag.
   */
  @java.lang.Override
  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>
   * @return The orderInsType.
   */
  @java.lang.Override
  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>
   * @return The bytes for orderInsType.
   */
  @java.lang.Override
  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>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.third.taihe.PayDetailItem> getItemListList() {
    return itemList_;
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  @java.lang.Override
  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>
   */
  @java.lang.Override
  public int getItemListCount() {
    return itemList_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.third.taihe.PayDetailItem itemList = 16;</code>
   */
  @java.lang.Override
  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>
   */
  @java.lang.Override
  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>
   * @return The doctorCode.
   */
  @java.lang.Override
  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>
   * @return The bytes for doctorCode.
   */
  @java.lang.Override
  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>
   * @return The invDate.
   */
  @java.lang.Override
  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>
   * @return The bytes for invDate.
   */
  @java.lang.Override
  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>
   * @return The invTime.
   */
  @java.lang.Override
  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>
   * @return The bytes for invTime.
   */
  @java.lang.Override
  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>
   * @return The invoiceNo.
   */
  @java.lang.Override
  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>
   * @return The bytes for invoiceNo.
   */
  @java.lang.Override
  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>
   * @return The invoiceType.
   */
  @java.lang.Override
  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>
   * @return The bytes for invoiceType.
   */
  @java.lang.Override
  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>
   * @return The invoiceTypeName.
   */
  @java.lang.Override
  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>
   * @return The bytes for invoiceTypeName.
   */
  @java.lang.Override
  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;
    }
  }

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

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrdNum_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hisOrdNum_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payMode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, payMode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prescriptionDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, prescriptionDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, patientName_);
    }
    if (patientAge_ != 0) {
      output.writeInt32(11, patientAge_);
    }
    if (patientSex_ != 0) {
      output.writeInt32(12, patientSex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderInsuFlag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, orderInsuFlag_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderInsType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, orderInsType_);
    }
    for (int i = 0; i < itemList_.size(); i++) {
      output.writeMessage(16, itemList_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, invDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, invTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 21, invoiceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceTypeName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, invoiceTypeName_);
    }
    if (orderId_ != 0) {
      output.writeInt32(23, orderId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisOrdNum_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hisOrdNum_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deptName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deptName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payMode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, payMode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prescriptionDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, prescriptionDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clinicCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderInsuFlag_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, orderInsuFlag_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderInsType_)) {
      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, doctorCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, invDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, invTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, invoiceNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, invoiceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(invoiceTypeName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, invoiceTypeName_);
    }
    if (orderId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(23, orderId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

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

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + 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 = (37 * hash) + ORDERID_FIELD_NUMBER;
    hash = (53 * hash) + getOrderId();
    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);
  }

  @java.lang.Override
  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);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *缴费项目
   * </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.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PaymentItem_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.TaiheProto.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();
      }
    }
    @java.lang.Override
    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_ & ~0x00000001);
      } else {
        itemListBuilder_.clear();
      }
      doctorCode_ = "";

      invDate_ = "";

      invTime_ = "";

      invoiceNo_ = "";

      invoiceType_ = "";

      invoiceTypeName_ = "";

      orderId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.TaiheProto.internal_static_com_ywt_gapi_third_taihe_PaymentItem_descriptor;
    }

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

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

    @java.lang.Override
    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_;
      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_ & 0x00000001) != 0)) {
          itemList_ = java.util.Collections.unmodifiableList(itemList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        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.orderId_ = orderId_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ywt.gapi.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_ & ~0x00000001);
          } else {
            ensureItemListIsMutable();
            itemList_.addAll(other.itemList_);
          }
          onChanged();
        }
      } else {
        if (!other.itemList_.isEmpty()) {
          if (itemListBuilder_.isEmpty()) {
            itemListBuilder_.dispose();
            itemListBuilder_ = null;
            itemList_ = other.itemList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            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();
      }
      if (other.getOrderId() != 0) {
        setOrderId(other.getOrderId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.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>
     * @return The hisOrdNum.
     */
    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>
     * @return The bytes for hisOrdNum.
     */
    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>
     * @param value The hisOrdNum to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearHisOrdNum() {
      
      hisOrdNum_ = getDefaultInstance().getHisOrdNum();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院订单号，可以是就诊登记号等，用来唯一标识一笔缴费
     * </pre>
     *
     * <code>string hisOrdNum = 1;</code>
     * @param value The bytes for hisOrdNum to set.
     * @return This builder for chaining.
     */
    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>
     * @return The payName.
     */
    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>
     * @return The bytes for payName.
     */
    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>
     * @param value The payName to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearPayName() {
      
      payName_ = getDefaultInstance().getPayName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *缴费项名称
     * </pre>
     *
     * <code>string payName = 2;</code>
     * @param value The bytes for payName to set.
     * @return This builder for chaining.
     */
    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>
     * @return The deptName.
     */
    public java.lang.String getDeptName() {
      java.lang.Object ref = deptName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        deptName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     * @return The bytes for deptName.
     */
    public com.google.protobuf.ByteString
        getDeptNameBytes() {
      java.lang.Object ref = deptName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        deptName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     * @param value The deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      deptName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeptName() {
      
      deptName_ = getDefaultInstance().getDeptName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接诊科室名称
     * </pre>
     *
     * <code>string deptName = 3;</code>
     * @param value The bytes for deptName to set.
     * @return This builder for chaining.
     */
    public Builder setDeptNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      deptName_ = value;
      onChanged();
      return this;
    }

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

    private int totalFee_ ;
    /**
     * <pre>
     *缴费总额（单位：分）
     * </pre>
     *
     * <code>int32 totalFee = 5;</code>
     * @return The totalFee.
     */
    @java.lang.Override
    public int getTotalFee() {
      return totalFee_;
    }
    /**
     * <pre>
     *缴费总额（单位：分）
     * </pre>
     *
     * <code>int32 totalFee = 5;</code>
     * @param value The totalFee to set.
     * @return This builder for chaining.
     */
    public Builder setTotalFee(int value) {
      
      totalFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *缴费总额（单位：分）
     * </pre>
     *
     * <code>int32 totalFee = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotalFee() {
      
      totalFee_ = 0;
      onChanged();
      return this;
    }

    private int medInsFee_ ;
    /**
     * <pre>
     *医保部分金额（单位：分）
     * </pre>
     *
     * <code>int32 medInsFee = 6;</code>
     * @return The medInsFee.
     */
    @java.lang.Override
    public int getMedInsFee() {
      return medInsFee_;
    }
    /**
     * <pre>
     *医保部分金额（单位：分）
     * </pre>
     *
     * <code>int32 medInsFee = 6;</code>
     * @param value The medInsFee to set.
     * @return This builder for chaining.
     */
    public Builder setMedInsFee(int value) {
      
      medInsFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医保部分金额（单位：分）
     * </pre>
     *
     * <code>int32 medInsFee = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearMedInsFee() {
      
      medInsFee_ = 0;
      onChanged();
      return this;
    }

    private int selfFee_ ;
    /**
     * <pre>
     *自费部分金额（单位：分）
     * </pre>
     *
     * <code>int32 selfFee = 7;</code>
     * @return The selfFee.
     */
    @java.lang.Override
    public int getSelfFee() {
      return selfFee_;
    }
    /**
     * <pre>
     *自费部分金额（单位：分）
     * </pre>
     *
     * <code>int32 selfFee = 7;</code>
     * @param value The selfFee to set.
     * @return This builder for chaining.
     */
    public Builder setSelfFee(int value) {
      
      selfFee_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *自费部分金额（单位：分）
     * </pre>
     *
     * <code>int32 selfFee = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearSelfFee() {
      
      selfFee_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object payMode_ = "";
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     * @return The payMode.
     */
    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>
     * @return The bytes for payMode.
     */
    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>
     * @param value The payMode to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearPayMode() {
      
      payMode_ = getDefaultInstance().getPayMode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *支付方式
     * </pre>
     *
     * <code>string payMode = 8;</code>
     * @param value The bytes for payMode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The prescriptionDate.
     */
    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>
     * @return The bytes for prescriptionDate.
     */
    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>
     * @param value The prescriptionDate to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearPrescriptionDate() {
      
      prescriptionDate_ = getDefaultInstance().getPrescriptionDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *处方日期，格式：yyyy-MM-dd HH:mm:ss
     * </pre>
     *
     * <code>string prescriptionDate = 9;</code>
     * @param value The bytes for prescriptionDate to set.
     * @return This builder for chaining.
     */
    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>
     * @return The patientName.
     */
    public java.lang.String getPatientName() {
      java.lang.Object ref = patientName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientName = 10;</code>
     * @return The bytes for patientName.
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      java.lang.Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 10;</code>
     * @param value The patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 10;</code>
     * @param value The bytes for patientName to set.
     * @return This builder for chaining.
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private int patientAge_ ;
    /**
     * <code>int32 patientAge = 11;</code>
     * @return The patientAge.
     */
    @java.lang.Override
    public int getPatientAge() {
      return patientAge_;
    }
    /**
     * <code>int32 patientAge = 11;</code>
     * @param value The patientAge to set.
     * @return This builder for chaining.
     */
    public Builder setPatientAge(int value) {
      
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientAge = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientAge() {
      
      patientAge_ = 0;
      onChanged();
      return this;
    }

    private int patientSex_ ;
    /**
     * <code>int32 patientSex = 12;</code>
     * @return The patientSex.
     */
    @java.lang.Override
    public int getPatientSex() {
      return patientSex_;
    }
    /**
     * <code>int32 patientSex = 12;</code>
     * @param value The patientSex to set.
     * @return This builder for chaining.
     */
    public Builder setPatientSex(int value) {
      
      patientSex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientSex = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientSex() {
      
      patientSex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object clinicCode_ = "";
    /**
     * <code>string clinicCode = 13;</code>
     * @return The clinicCode.
     */
    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>
     * @return The bytes for clinicCode.
     */
    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>
     * @param value The clinicCode to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string clinicCode = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearClinicCode() {
      
      clinicCode_ = getDefaultInstance().getClinicCode();
      onChanged();
      return this;
    }
    /**
     * <code>string clinicCode = 13;</code>
     * @param value The bytes for clinicCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The orderInsuFlag.
     */
    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>
     * @return The bytes for orderInsuFlag.
     */
    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>
     * @param value The orderInsuFlag to set.
     * @return This builder for chaining.
     */
    public Builder setOrderInsuFlag(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderInsuFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsuFlag = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderInsuFlag() {
      
      orderInsuFlag_ = getDefaultInstance().getOrderInsuFlag();
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsuFlag = 14;</code>
     * @param value The bytes for orderInsuFlag to set.
     * @return This builder for chaining.
     */
    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>
     * @return The orderInsType.
     */
    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>
     * @return The bytes for orderInsType.
     */
    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>
     * @param value The orderInsType to set.
     * @return This builder for chaining.
     */
    public Builder setOrderInsType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderInsType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderInsType() {
      
      orderInsType_ = getDefaultInstance().getOrderInsType();
      onChanged();
      return this;
    }
    /**
     * <code>string orderInsType = 15;</code>
     * @param value The bytes for orderInsType to set.
     * @return This builder for chaining.
     */
    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_ & 0x00000001) != 0)) {
        itemList_ = new java.util.ArrayList<com.ywt.gapi.third.taihe.PayDetailItem>(itemList_);
        bitField0_ |= 0x00000001;
       }
    }

    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_ & ~0x00000001);
        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_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        itemList_ = null;
      }
      return itemListBuilder_;
    }

    private java.lang.Object doctorCode_ = "";
    /**
     * <code>string doctorCode = 17;</code>
     * @return The doctorCode.
     */
    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>
     * @return The bytes for doctorCode.
     */
    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>
     * @param value The doctorCode to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorCode() {
      
      doctorCode_ = getDefaultInstance().getDoctorCode();
      onChanged();
      return this;
    }
    /**
     * <code>string doctorCode = 17;</code>
     * @param value The bytes for doctorCode to set.
     * @return This builder for chaining.
     */
    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>
     * @return The invDate.
     */
    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>
     * @return The bytes for invDate.
     */
    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>
     * @param value The invDate to set.
     * @return This builder for chaining.
     */
    public Builder setInvDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invDate = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvDate() {
      
      invDate_ = getDefaultInstance().getInvDate();
      onChanged();
      return this;
    }
    /**
     * <code>string invDate = 18;</code>
     * @param value The bytes for invDate to set.
     * @return This builder for chaining.
     */
    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>
     * @return The invTime.
     */
    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>
     * @return The bytes for invTime.
     */
    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>
     * @param value The invTime to set.
     * @return This builder for chaining.
     */
    public Builder setInvTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invTime = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvTime() {
      
      invTime_ = getDefaultInstance().getInvTime();
      onChanged();
      return this;
    }
    /**
     * <code>string invTime = 19;</code>
     * @param value The bytes for invTime to set.
     * @return This builder for chaining.
     */
    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>
     * @return The invoiceNo.
     */
    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>
     * @return The bytes for invoiceNo.
     */
    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>
     * @param value The invoiceNo to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      invoiceNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceNo() {
      
      invoiceNo_ = getDefaultInstance().getInvoiceNo();
      onChanged();
      return this;
    }
    /**
     * <code>string invoiceNo = 20;</code>
     * @param value The bytes for invoiceNo to set.
     * @return This builder for chaining.
     */
    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>
     * @return The invoiceType.
     */
    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>
     * @return The bytes for invoiceType.
     */
    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>
     * @param value The invoiceType to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceType() {
      
      invoiceType_ = getDefaultInstance().getInvoiceType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票类型
     * </pre>
     *
     * <code>string invoiceType = 21;</code>
     * @param value The bytes for invoiceType to set.
     * @return This builder for chaining.
     */
    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>
     * @return The invoiceTypeName.
     */
    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>
     * @return The bytes for invoiceTypeName.
     */
    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>
     * @param value The invoiceTypeName to set.
     * @return This builder for chaining.
     */
    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>
     * @return This builder for chaining.
     */
    public Builder clearInvoiceTypeName() {
      
      invoiceTypeName_ = getDefaultInstance().getInvoiceTypeName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *发票类型名称
     * </pre>
     *
     * <code>string invoiceTypeName = 22;</code>
     * @param value The bytes for invoiceTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setInvoiceTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      invoiceTypeName_ = value;
      onChanged();
      return this;
    }

    private int orderId_ ;
    /**
     * <code>int32 orderId = 23;</code>
     * @return The orderId.
     */
    @java.lang.Override
    public int getOrderId() {
      return orderId_;
    }
    /**
     * <code>int32 orderId = 23;</code>
     * @param value The orderId to set.
     * @return This builder for chaining.
     */
    public Builder setOrderId(int value) {
      
      orderId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 orderId = 23;</code>
     * @return This builder for chaining.
     */
    public Builder clearOrderId() {
      
      orderId_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.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>() {
    @java.lang.Override
    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;
  }

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

}

