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

package com.ywt.gapi.drug;

/**
 * <pre>
 * 耗材订单发票信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.drug.MedInvoice}
 */
public  final class MedInvoice extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.drug.MedInvoice)
    MedInvoiceOrBuilder {
  // Use MedInvoice.newBuilder() to construct.
  private MedInvoice(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MedInvoice() {
    invoiceType_ = 0;
    titleType_ = 0;
    companyName_ = "";
    taxPayerId_ = "";
    regAddr_ = "";
    depositBank_ = "";
    bankAccount_ = "";
    tel_ = "";
    content_ = "";
    receiverName_ = "";
    receiverPhone_ = "";
    receiverArea_ = "";
    receiverAddr_ = "";
  }

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

            invoiceType_ = input.readInt32();
            break;
          }
          case 16: {

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

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

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

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

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

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

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

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

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

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

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

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

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_MedInvoice_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.drug.MedInvoice.class, com.ywt.gapi.drug.MedInvoice.Builder.class);
  }

  public static final int INVOICETYPE_FIELD_NUMBER = 1;
  private int invoiceType_;
  /**
   * <pre>
   * 发票类型：1-普通纸质发票
   * </pre>
   *
   * <code>int32 invoiceType = 1;</code>
   */
  public int getInvoiceType() {
    return invoiceType_;
  }

  public static final int TITLETYPE_FIELD_NUMBER = 2;
  private int titleType_;
  /**
   * <pre>
   * 发票抬头类型：1-个人，2-公司
   * </pre>
   *
   * <code>int32 titleType = 2;</code>
   */
  public int getTitleType() {
    return titleType_;
  }

  public static final int COMPANYNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object companyName_;
  /**
   * <pre>
   * 公司全称（公司抬头必填）
   * </pre>
   *
   * <code>string companyName = 3;</code>
   */
  public java.lang.String getCompanyName() {
    java.lang.Object ref = companyName_;
    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();
      companyName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 公司全称（公司抬头必填）
   * </pre>
   *
   * <code>string companyName = 3;</code>
   */
  public com.google.protobuf.ByteString
      getCompanyNameBytes() {
    java.lang.Object ref = companyName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      companyName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TAXPAYERID_FIELD_NUMBER = 4;
  private volatile java.lang.Object taxPayerId_;
  /**
   * <pre>
   * 纳税人识别号（公司抬头必填）
   * </pre>
   *
   * <code>string taxPayerId = 4;</code>
   */
  public java.lang.String getTaxPayerId() {
    java.lang.Object ref = taxPayerId_;
    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();
      taxPayerId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 纳税人识别号（公司抬头必填）
   * </pre>
   *
   * <code>string taxPayerId = 4;</code>
   */
  public com.google.protobuf.ByteString
      getTaxPayerIdBytes() {
    java.lang.Object ref = taxPayerId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      taxPayerId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGADDR_FIELD_NUMBER = 5;
  private volatile java.lang.Object regAddr_;
  /**
   * <pre>
   * 注册地址
   * </pre>
   *
   * <code>string regAddr = 5;</code>
   */
  public java.lang.String getRegAddr() {
    java.lang.Object ref = regAddr_;
    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();
      regAddr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 注册地址
   * </pre>
   *
   * <code>string regAddr = 5;</code>
   */
  public com.google.protobuf.ByteString
      getRegAddrBytes() {
    java.lang.Object ref = regAddr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      regAddr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPOSITBANK_FIELD_NUMBER = 6;
  private volatile java.lang.Object depositBank_;
  /**
   * <pre>
   * 开户银行
   * </pre>
   *
   * <code>string depositBank = 6;</code>
   */
  public java.lang.String getDepositBank() {
    java.lang.Object ref = depositBank_;
    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();
      depositBank_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 开户银行
   * </pre>
   *
   * <code>string depositBank = 6;</code>
   */
  public com.google.protobuf.ByteString
      getDepositBankBytes() {
    java.lang.Object ref = depositBank_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      depositBank_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BANKACCOUNT_FIELD_NUMBER = 7;
  private volatile java.lang.Object bankAccount_;
  /**
   * <pre>
   * 银行账号
   * </pre>
   *
   * <code>string bankAccount = 7;</code>
   */
  public java.lang.String getBankAccount() {
    java.lang.Object ref = bankAccount_;
    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();
      bankAccount_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 银行账号
   * </pre>
   *
   * <code>string bankAccount = 7;</code>
   */
  public com.google.protobuf.ByteString
      getBankAccountBytes() {
    java.lang.Object ref = bankAccount_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      bankAccount_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEL_FIELD_NUMBER = 8;
  private volatile java.lang.Object tel_;
  /**
   * <pre>
   *电话
   * </pre>
   *
   * <code>string tel = 8;</code>
   */
  public java.lang.String getTel() {
    java.lang.Object ref = tel_;
    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();
      tel_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *电话
   * </pre>
   *
   * <code>string tel = 8;</code>
   */
  public com.google.protobuf.ByteString
      getTelBytes() {
    java.lang.Object ref = tel_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      tel_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTENT_FIELD_NUMBER = 9;
  private volatile java.lang.Object content_;
  /**
   * <pre>
   * 发票内容
   * </pre>
   *
   * <code>string content = 9;</code>
   */
  public java.lang.String getContent() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      content_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 发票内容
   * </pre>
   *
   * <code>string content = 9;</code>
   */
  public com.google.protobuf.ByteString
      getContentBytes() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      content_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RECEIVERNAME_FIELD_NUMBER = 10;
  private volatile java.lang.Object receiverName_;
  /**
   * <pre>
   * 收货人姓名
   * </pre>
   *
   * <code>string receiverName = 10;</code>
   */
  public java.lang.String getReceiverName() {
    java.lang.Object ref = receiverName_;
    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();
      receiverName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 收货人姓名
   * </pre>
   *
   * <code>string receiverName = 10;</code>
   */
  public com.google.protobuf.ByteString
      getReceiverNameBytes() {
    java.lang.Object ref = receiverName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      receiverName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RECEIVERPHONE_FIELD_NUMBER = 11;
  private volatile java.lang.Object receiverPhone_;
  /**
   * <pre>
   * 收货人手机号
   * </pre>
   *
   * <code>string receiverPhone = 11;</code>
   */
  public java.lang.String getReceiverPhone() {
    java.lang.Object ref = receiverPhone_;
    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();
      receiverPhone_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 收货人手机号
   * </pre>
   *
   * <code>string receiverPhone = 11;</code>
   */
  public com.google.protobuf.ByteString
      getReceiverPhoneBytes() {
    java.lang.Object ref = receiverPhone_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      receiverPhone_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RECEIVERAREA_FIELD_NUMBER = 12;
  private volatile java.lang.Object receiverArea_;
  /**
   * <pre>
   * 收货人地区
   * </pre>
   *
   * <code>string receiverArea = 12;</code>
   */
  public java.lang.String getReceiverArea() {
    java.lang.Object ref = receiverArea_;
    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();
      receiverArea_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 收货人地区
   * </pre>
   *
   * <code>string receiverArea = 12;</code>
   */
  public com.google.protobuf.ByteString
      getReceiverAreaBytes() {
    java.lang.Object ref = receiverArea_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      receiverArea_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RECEIVERADDR_FIELD_NUMBER = 13;
  private volatile java.lang.Object receiverAddr_;
  /**
   * <pre>
   * 收货人详细地址
   * </pre>
   *
   * <code>string receiverAddr = 13;</code>
   */
  public java.lang.String getReceiverAddr() {
    java.lang.Object ref = receiverAddr_;
    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();
      receiverAddr_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * 收货人详细地址
   * </pre>
   *
   * <code>string receiverAddr = 13;</code>
   */
  public com.google.protobuf.ByteString
      getReceiverAddrBytes() {
    java.lang.Object ref = receiverAddr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      receiverAddr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (invoiceType_ != 0) {
      output.writeInt32(1, invoiceType_);
    }
    if (titleType_ != 0) {
      output.writeInt32(2, titleType_);
    }
    if (!getCompanyNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, companyName_);
    }
    if (!getTaxPayerIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, taxPayerId_);
    }
    if (!getRegAddrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regAddr_);
    }
    if (!getDepositBankBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, depositBank_);
    }
    if (!getBankAccountBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, bankAccount_);
    }
    if (!getTelBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tel_);
    }
    if (!getContentBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, content_);
    }
    if (!getReceiverNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, receiverName_);
    }
    if (!getReceiverPhoneBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, receiverPhone_);
    }
    if (!getReceiverAreaBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, receiverArea_);
    }
    if (!getReceiverAddrBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, receiverAddr_);
    }
  }

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

    size = 0;
    if (invoiceType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, invoiceType_);
    }
    if (titleType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, titleType_);
    }
    if (!getCompanyNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, companyName_);
    }
    if (!getTaxPayerIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, taxPayerId_);
    }
    if (!getRegAddrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regAddr_);
    }
    if (!getDepositBankBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, depositBank_);
    }
    if (!getBankAccountBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, bankAccount_);
    }
    if (!getTelBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, tel_);
    }
    if (!getContentBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, content_);
    }
    if (!getReceiverNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, receiverName_);
    }
    if (!getReceiverPhoneBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, receiverPhone_);
    }
    if (!getReceiverAreaBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, receiverArea_);
    }
    if (!getReceiverAddrBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, receiverAddr_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (getInvoiceType()
        == other.getInvoiceType());
    result = result && (getTitleType()
        == other.getTitleType());
    result = result && getCompanyName()
        .equals(other.getCompanyName());
    result = result && getTaxPayerId()
        .equals(other.getTaxPayerId());
    result = result && getRegAddr()
        .equals(other.getRegAddr());
    result = result && getDepositBank()
        .equals(other.getDepositBank());
    result = result && getBankAccount()
        .equals(other.getBankAccount());
    result = result && getTel()
        .equals(other.getTel());
    result = result && getContent()
        .equals(other.getContent());
    result = result && getReceiverName()
        .equals(other.getReceiverName());
    result = result && getReceiverPhone()
        .equals(other.getReceiverPhone());
    result = result && getReceiverArea()
        .equals(other.getReceiverArea());
    result = result && getReceiverAddr()
        .equals(other.getReceiverAddr());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + INVOICETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInvoiceType();
    hash = (37 * hash) + TITLETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getTitleType();
    hash = (37 * hash) + COMPANYNAME_FIELD_NUMBER;
    hash = (53 * hash) + getCompanyName().hashCode();
    hash = (37 * hash) + TAXPAYERID_FIELD_NUMBER;
    hash = (53 * hash) + getTaxPayerId().hashCode();
    hash = (37 * hash) + REGADDR_FIELD_NUMBER;
    hash = (53 * hash) + getRegAddr().hashCode();
    hash = (37 * hash) + DEPOSITBANK_FIELD_NUMBER;
    hash = (53 * hash) + getDepositBank().hashCode();
    hash = (37 * hash) + BANKACCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getBankAccount().hashCode();
    hash = (37 * hash) + TEL_FIELD_NUMBER;
    hash = (53 * hash) + getTel().hashCode();
    hash = (37 * hash) + CONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getContent().hashCode();
    hash = (37 * hash) + RECEIVERNAME_FIELD_NUMBER;
    hash = (53 * hash) + getReceiverName().hashCode();
    hash = (37 * hash) + RECEIVERPHONE_FIELD_NUMBER;
    hash = (53 * hash) + getReceiverPhone().hashCode();
    hash = (37 * hash) + RECEIVERAREA_FIELD_NUMBER;
    hash = (53 * hash) + getReceiverArea().hashCode();
    hash = (37 * hash) + RECEIVERADDR_FIELD_NUMBER;
    hash = (53 * hash) + getReceiverAddr().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * 耗材订单发票信息
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.drug.MedInvoice}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.drug.MedInvoice)
      com.ywt.gapi.drug.MedInvoiceOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_MedInvoice_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_MedInvoice_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.drug.MedInvoice.class, com.ywt.gapi.drug.MedInvoice.Builder.class);
    }

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

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

      titleType_ = 0;

      companyName_ = "";

      taxPayerId_ = "";

      regAddr_ = "";

      depositBank_ = "";

      bankAccount_ = "";

      tel_ = "";

      content_ = "";

      receiverName_ = "";

      receiverPhone_ = "";

      receiverArea_ = "";

      receiverAddr_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.drug.DrugOuterClass.internal_static_com_ywt_gapi_drug_MedInvoice_descriptor;
    }

    public com.ywt.gapi.drug.MedInvoice getDefaultInstanceForType() {
      return com.ywt.gapi.drug.MedInvoice.getDefaultInstance();
    }

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

    public com.ywt.gapi.drug.MedInvoice buildPartial() {
      com.ywt.gapi.drug.MedInvoice result = new com.ywt.gapi.drug.MedInvoice(this);
      result.invoiceType_ = invoiceType_;
      result.titleType_ = titleType_;
      result.companyName_ = companyName_;
      result.taxPayerId_ = taxPayerId_;
      result.regAddr_ = regAddr_;
      result.depositBank_ = depositBank_;
      result.bankAccount_ = bankAccount_;
      result.tel_ = tel_;
      result.content_ = content_;
      result.receiverName_ = receiverName_;
      result.receiverPhone_ = receiverPhone_;
      result.receiverArea_ = receiverArea_;
      result.receiverAddr_ = receiverAddr_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.drug.MedInvoice other) {
      if (other == com.ywt.gapi.drug.MedInvoice.getDefaultInstance()) return this;
      if (other.getInvoiceType() != 0) {
        setInvoiceType(other.getInvoiceType());
      }
      if (other.getTitleType() != 0) {
        setTitleType(other.getTitleType());
      }
      if (!other.getCompanyName().isEmpty()) {
        companyName_ = other.companyName_;
        onChanged();
      }
      if (!other.getTaxPayerId().isEmpty()) {
        taxPayerId_ = other.taxPayerId_;
        onChanged();
      }
      if (!other.getRegAddr().isEmpty()) {
        regAddr_ = other.regAddr_;
        onChanged();
      }
      if (!other.getDepositBank().isEmpty()) {
        depositBank_ = other.depositBank_;
        onChanged();
      }
      if (!other.getBankAccount().isEmpty()) {
        bankAccount_ = other.bankAccount_;
        onChanged();
      }
      if (!other.getTel().isEmpty()) {
        tel_ = other.tel_;
        onChanged();
      }
      if (!other.getContent().isEmpty()) {
        content_ = other.content_;
        onChanged();
      }
      if (!other.getReceiverName().isEmpty()) {
        receiverName_ = other.receiverName_;
        onChanged();
      }
      if (!other.getReceiverPhone().isEmpty()) {
        receiverPhone_ = other.receiverPhone_;
        onChanged();
      }
      if (!other.getReceiverArea().isEmpty()) {
        receiverArea_ = other.receiverArea_;
        onChanged();
      }
      if (!other.getReceiverAddr().isEmpty()) {
        receiverAddr_ = other.receiverAddr_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private int invoiceType_ ;
    /**
     * <pre>
     * 发票类型：1-普通纸质发票
     * </pre>
     *
     * <code>int32 invoiceType = 1;</code>
     */
    public int getInvoiceType() {
      return invoiceType_;
    }
    /**
     * <pre>
     * 发票类型：1-普通纸质发票
     * </pre>
     *
     * <code>int32 invoiceType = 1;</code>
     */
    public Builder setInvoiceType(int value) {
      
      invoiceType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票类型：1-普通纸质发票
     * </pre>
     *
     * <code>int32 invoiceType = 1;</code>
     */
    public Builder clearInvoiceType() {
      
      invoiceType_ = 0;
      onChanged();
      return this;
    }

    private int titleType_ ;
    /**
     * <pre>
     * 发票抬头类型：1-个人，2-公司
     * </pre>
     *
     * <code>int32 titleType = 2;</code>
     */
    public int getTitleType() {
      return titleType_;
    }
    /**
     * <pre>
     * 发票抬头类型：1-个人，2-公司
     * </pre>
     *
     * <code>int32 titleType = 2;</code>
     */
    public Builder setTitleType(int value) {
      
      titleType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票抬头类型：1-个人，2-公司
     * </pre>
     *
     * <code>int32 titleType = 2;</code>
     */
    public Builder clearTitleType() {
      
      titleType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object companyName_ = "";
    /**
     * <pre>
     * 公司全称（公司抬头必填）
     * </pre>
     *
     * <code>string companyName = 3;</code>
     */
    public java.lang.String getCompanyName() {
      java.lang.Object ref = companyName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        companyName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 公司全称（公司抬头必填）
     * </pre>
     *
     * <code>string companyName = 3;</code>
     */
    public com.google.protobuf.ByteString
        getCompanyNameBytes() {
      java.lang.Object ref = companyName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        companyName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 公司全称（公司抬头必填）
     * </pre>
     *
     * <code>string companyName = 3;</code>
     */
    public Builder setCompanyName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      companyName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 公司全称（公司抬头必填）
     * </pre>
     *
     * <code>string companyName = 3;</code>
     */
    public Builder clearCompanyName() {
      
      companyName_ = getDefaultInstance().getCompanyName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 公司全称（公司抬头必填）
     * </pre>
     *
     * <code>string companyName = 3;</code>
     */
    public Builder setCompanyNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      companyName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object taxPayerId_ = "";
    /**
     * <pre>
     * 纳税人识别号（公司抬头必填）
     * </pre>
     *
     * <code>string taxPayerId = 4;</code>
     */
    public java.lang.String getTaxPayerId() {
      java.lang.Object ref = taxPayerId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        taxPayerId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 纳税人识别号（公司抬头必填）
     * </pre>
     *
     * <code>string taxPayerId = 4;</code>
     */
    public com.google.protobuf.ByteString
        getTaxPayerIdBytes() {
      java.lang.Object ref = taxPayerId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        taxPayerId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 纳税人识别号（公司抬头必填）
     * </pre>
     *
     * <code>string taxPayerId = 4;</code>
     */
    public Builder setTaxPayerId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      taxPayerId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 纳税人识别号（公司抬头必填）
     * </pre>
     *
     * <code>string taxPayerId = 4;</code>
     */
    public Builder clearTaxPayerId() {
      
      taxPayerId_ = getDefaultInstance().getTaxPayerId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 纳税人识别号（公司抬头必填）
     * </pre>
     *
     * <code>string taxPayerId = 4;</code>
     */
    public Builder setTaxPayerIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      taxPayerId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object regAddr_ = "";
    /**
     * <pre>
     * 注册地址
     * </pre>
     *
     * <code>string regAddr = 5;</code>
     */
    public java.lang.String getRegAddr() {
      java.lang.Object ref = regAddr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        regAddr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 注册地址
     * </pre>
     *
     * <code>string regAddr = 5;</code>
     */
    public com.google.protobuf.ByteString
        getRegAddrBytes() {
      java.lang.Object ref = regAddr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        regAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 注册地址
     * </pre>
     *
     * <code>string regAddr = 5;</code>
     */
    public Builder setRegAddr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      regAddr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 注册地址
     * </pre>
     *
     * <code>string regAddr = 5;</code>
     */
    public Builder clearRegAddr() {
      
      regAddr_ = getDefaultInstance().getRegAddr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 注册地址
     * </pre>
     *
     * <code>string regAddr = 5;</code>
     */
    public Builder setRegAddrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      regAddr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object depositBank_ = "";
    /**
     * <pre>
     * 开户银行
     * </pre>
     *
     * <code>string depositBank = 6;</code>
     */
    public java.lang.String getDepositBank() {
      java.lang.Object ref = depositBank_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        depositBank_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 开户银行
     * </pre>
     *
     * <code>string depositBank = 6;</code>
     */
    public com.google.protobuf.ByteString
        getDepositBankBytes() {
      java.lang.Object ref = depositBank_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        depositBank_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 开户银行
     * </pre>
     *
     * <code>string depositBank = 6;</code>
     */
    public Builder setDepositBank(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      depositBank_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 开户银行
     * </pre>
     *
     * <code>string depositBank = 6;</code>
     */
    public Builder clearDepositBank() {
      
      depositBank_ = getDefaultInstance().getDepositBank();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 开户银行
     * </pre>
     *
     * <code>string depositBank = 6;</code>
     */
    public Builder setDepositBankBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      depositBank_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object bankAccount_ = "";
    /**
     * <pre>
     * 银行账号
     * </pre>
     *
     * <code>string bankAccount = 7;</code>
     */
    public java.lang.String getBankAccount() {
      java.lang.Object ref = bankAccount_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bankAccount_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 银行账号
     * </pre>
     *
     * <code>string bankAccount = 7;</code>
     */
    public com.google.protobuf.ByteString
        getBankAccountBytes() {
      java.lang.Object ref = bankAccount_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        bankAccount_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 银行账号
     * </pre>
     *
     * <code>string bankAccount = 7;</code>
     */
    public Builder setBankAccount(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      bankAccount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 银行账号
     * </pre>
     *
     * <code>string bankAccount = 7;</code>
     */
    public Builder clearBankAccount() {
      
      bankAccount_ = getDefaultInstance().getBankAccount();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 银行账号
     * </pre>
     *
     * <code>string bankAccount = 7;</code>
     */
    public Builder setBankAccountBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      bankAccount_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object tel_ = "";
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string tel = 8;</code>
     */
    public java.lang.String getTel() {
      java.lang.Object ref = tel_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        tel_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string tel = 8;</code>
     */
    public com.google.protobuf.ByteString
        getTelBytes() {
      java.lang.Object ref = tel_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        tel_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string tel = 8;</code>
     */
    public Builder setTel(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      tel_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string tel = 8;</code>
     */
    public Builder clearTel() {
      
      tel_ = getDefaultInstance().getTel();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *电话
     * </pre>
     *
     * <code>string tel = 8;</code>
     */
    public Builder setTelBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      tel_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object content_ = "";
    /**
     * <pre>
     * 发票内容
     * </pre>
     *
     * <code>string content = 9;</code>
     */
    public java.lang.String getContent() {
      java.lang.Object ref = content_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        content_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 发票内容
     * </pre>
     *
     * <code>string content = 9;</code>
     */
    public com.google.protobuf.ByteString
        getContentBytes() {
      java.lang.Object ref = content_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        content_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 发票内容
     * </pre>
     *
     * <code>string content = 9;</code>
     */
    public Builder setContent(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      content_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票内容
     * </pre>
     *
     * <code>string content = 9;</code>
     */
    public Builder clearContent() {
      
      content_ = getDefaultInstance().getContent();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 发票内容
     * </pre>
     *
     * <code>string content = 9;</code>
     */
    public Builder setContentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      content_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object receiverName_ = "";
    /**
     * <pre>
     * 收货人姓名
     * </pre>
     *
     * <code>string receiverName = 10;</code>
     */
    public java.lang.String getReceiverName() {
      java.lang.Object ref = receiverName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        receiverName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 收货人姓名
     * </pre>
     *
     * <code>string receiverName = 10;</code>
     */
    public com.google.protobuf.ByteString
        getReceiverNameBytes() {
      java.lang.Object ref = receiverName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        receiverName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 收货人姓名
     * </pre>
     *
     * <code>string receiverName = 10;</code>
     */
    public Builder setReceiverName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      receiverName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人姓名
     * </pre>
     *
     * <code>string receiverName = 10;</code>
     */
    public Builder clearReceiverName() {
      
      receiverName_ = getDefaultInstance().getReceiverName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人姓名
     * </pre>
     *
     * <code>string receiverName = 10;</code>
     */
    public Builder setReceiverNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      receiverName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object receiverPhone_ = "";
    /**
     * <pre>
     * 收货人手机号
     * </pre>
     *
     * <code>string receiverPhone = 11;</code>
     */
    public java.lang.String getReceiverPhone() {
      java.lang.Object ref = receiverPhone_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        receiverPhone_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 收货人手机号
     * </pre>
     *
     * <code>string receiverPhone = 11;</code>
     */
    public com.google.protobuf.ByteString
        getReceiverPhoneBytes() {
      java.lang.Object ref = receiverPhone_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        receiverPhone_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 收货人手机号
     * </pre>
     *
     * <code>string receiverPhone = 11;</code>
     */
    public Builder setReceiverPhone(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      receiverPhone_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人手机号
     * </pre>
     *
     * <code>string receiverPhone = 11;</code>
     */
    public Builder clearReceiverPhone() {
      
      receiverPhone_ = getDefaultInstance().getReceiverPhone();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人手机号
     * </pre>
     *
     * <code>string receiverPhone = 11;</code>
     */
    public Builder setReceiverPhoneBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      receiverPhone_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object receiverArea_ = "";
    /**
     * <pre>
     * 收货人地区
     * </pre>
     *
     * <code>string receiverArea = 12;</code>
     */
    public java.lang.String getReceiverArea() {
      java.lang.Object ref = receiverArea_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        receiverArea_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 收货人地区
     * </pre>
     *
     * <code>string receiverArea = 12;</code>
     */
    public com.google.protobuf.ByteString
        getReceiverAreaBytes() {
      java.lang.Object ref = receiverArea_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        receiverArea_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 收货人地区
     * </pre>
     *
     * <code>string receiverArea = 12;</code>
     */
    public Builder setReceiverArea(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      receiverArea_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人地区
     * </pre>
     *
     * <code>string receiverArea = 12;</code>
     */
    public Builder clearReceiverArea() {
      
      receiverArea_ = getDefaultInstance().getReceiverArea();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人地区
     * </pre>
     *
     * <code>string receiverArea = 12;</code>
     */
    public Builder setReceiverAreaBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      receiverArea_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object receiverAddr_ = "";
    /**
     * <pre>
     * 收货人详细地址
     * </pre>
     *
     * <code>string receiverAddr = 13;</code>
     */
    public java.lang.String getReceiverAddr() {
      java.lang.Object ref = receiverAddr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        receiverAddr_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * 收货人详细地址
     * </pre>
     *
     * <code>string receiverAddr = 13;</code>
     */
    public com.google.protobuf.ByteString
        getReceiverAddrBytes() {
      java.lang.Object ref = receiverAddr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        receiverAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * 收货人详细地址
     * </pre>
     *
     * <code>string receiverAddr = 13;</code>
     */
    public Builder setReceiverAddr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      receiverAddr_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人详细地址
     * </pre>
     *
     * <code>string receiverAddr = 13;</code>
     */
    public Builder clearReceiverAddr() {
      
      receiverAddr_ = getDefaultInstance().getReceiverAddr();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 收货人详细地址
     * </pre>
     *
     * <code>string receiverAddr = 13;</code>
     */
    public Builder setReceiverAddrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      receiverAddr_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.drug.MedInvoice)
  }

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

  public static com.ywt.gapi.drug.MedInvoice getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.drug.MedInvoice getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

