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

package com.ywt.gapi.nfyy;

/**
 * <pre>
 *患者基本信息
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.nfyy.PatientInfo}
 */
public final class PatientInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.PatientInfo)
    PatientInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PatientInfo.newBuilder() to construct.
  private PatientInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PatientInfo() {
    patientId_ = "";
    patientName_ = "";
    birthday_ = "";
    telephoneNo_ = "";
    mobile_ = "";
    documentId_ = "";
    address_ = "";
    idTypeCode_ = "";
    idTypeDesc_ = "";
    idNo_ = "";
    insureCardNo_ = "";
    accInfo_ = "";
    cardNo_ = "";
    cardType_ = "";
    patientType_ = "";
  }

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

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

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

            patientName_ = s;
            break;
          }
          case 24: {

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

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

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

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

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

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

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

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

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

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

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

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

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

            patientType_ = s;
            break;
          }
          case 137: {

            balance_ = input.readDouble();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_PatientInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_PatientInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.nfyy.PatientInfo.class, com.ywt.gapi.nfyy.PatientInfo.Builder.class);
  }

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

  public static final int PATIENTNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 2;</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 = 2;</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 SEX_FIELD_NUMBER = 3;
  private int sex_;
  /**
   * <code>int32 sex = 3;</code>
   * @return The sex.
   */
  @java.lang.Override
  public int getSex() {
    return sex_;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

  public static final int BALANCE_FIELD_NUMBER = 17;
  private double balance_;
  /**
   * <code>double balance = 17;</code>
   * @return The balance.
   */
  @java.lang.Override
  public double getBalance() {
    return balance_;
  }

  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(patientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patientName_);
    }
    if (sex_ != 0) {
      output.writeInt32(3, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthday_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, birthday_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephoneNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, telephoneNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mobile_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, documentId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, idTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeDesc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, idTypeDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, idNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureCardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, insureCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accInfo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, accInfo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, cardType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, patientType_);
    }
    if (java.lang.Double.doubleToRawLongBits(balance_) != 0) {
      output.writeDouble(17, balance_);
    }
    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(patientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patientName_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthday_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, birthday_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephoneNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, telephoneNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mobile_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, documentId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeDesc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, idTypeDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, idNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureCardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, insureCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accInfo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, accInfo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, cardType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, patientType_);
    }
    if (java.lang.Double.doubleToRawLongBits(balance_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(17, balance_);
    }
    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.nfyy.PatientInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nfyy.PatientInfo other = (com.ywt.gapi.nfyy.PatientInfo) obj;

    if (!getPatientId()
        .equals(other.getPatientId())) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (getSex()
        != other.getSex()) return false;
    if (!getBirthday()
        .equals(other.getBirthday())) return false;
    if (!getTelephoneNo()
        .equals(other.getTelephoneNo())) return false;
    if (!getMobile()
        .equals(other.getMobile())) return false;
    if (!getDocumentId()
        .equals(other.getDocumentId())) return false;
    if (!getAddress()
        .equals(other.getAddress())) return false;
    if (!getIdTypeCode()
        .equals(other.getIdTypeCode())) return false;
    if (!getIdTypeDesc()
        .equals(other.getIdTypeDesc())) return false;
    if (!getIdNo()
        .equals(other.getIdNo())) return false;
    if (!getInsureCardNo()
        .equals(other.getInsureCardNo())) return false;
    if (!getAccInfo()
        .equals(other.getAccInfo())) return false;
    if (!getCardNo()
        .equals(other.getCardNo())) return false;
    if (!getCardType()
        .equals(other.getCardType())) return false;
    if (!getPatientType()
        .equals(other.getPatientType())) return false;
    if (java.lang.Double.doubleToLongBits(getBalance())
        != java.lang.Double.doubleToLongBits(
            other.getBalance())) 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) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER;
    hash = (53 * hash) + getBirthday().hashCode();
    hash = (37 * hash) + TELEPHONENO_FIELD_NUMBER;
    hash = (53 * hash) + getTelephoneNo().hashCode();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER;
    hash = (53 * hash) + getDocumentId().hashCode();
    hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + IDTYPECODE_FIELD_NUMBER;
    hash = (53 * hash) + getIdTypeCode().hashCode();
    hash = (37 * hash) + IDTYPEDESC_FIELD_NUMBER;
    hash = (53 * hash) + getIdTypeDesc().hashCode();
    hash = (37 * hash) + IDNO_FIELD_NUMBER;
    hash = (53 * hash) + getIdNo().hashCode();
    hash = (37 * hash) + INSURECARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getInsureCardNo().hashCode();
    hash = (37 * hash) + ACCINFO_FIELD_NUMBER;
    hash = (53 * hash) + getAccInfo().hashCode();
    hash = (37 * hash) + CARDNO_FIELD_NUMBER;
    hash = (53 * hash) + getCardNo().hashCode();
    hash = (37 * hash) + CARDTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getCardType().hashCode();
    hash = (37 * hash) + PATIENTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientType().hashCode();
    hash = (37 * hash) + BALANCE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getBalance()));
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_PatientInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.nfyy.PatientInfo.class, com.ywt.gapi.nfyy.PatientInfo.Builder.class);
    }

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

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

      patientName_ = "";

      sex_ = 0;

      birthday_ = "";

      telephoneNo_ = "";

      mobile_ = "";

      documentId_ = "";

      address_ = "";

      idTypeCode_ = "";

      idTypeDesc_ = "";

      idNo_ = "";

      insureCardNo_ = "";

      accInfo_ = "";

      cardNo_ = "";

      cardType_ = "";

      patientType_ = "";

      balance_ = 0D;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_PatientInfo_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.nfyy.PatientInfo getDefaultInstanceForType() {
      return com.ywt.gapi.nfyy.PatientInfo.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.nfyy.PatientInfo buildPartial() {
      com.ywt.gapi.nfyy.PatientInfo result = new com.ywt.gapi.nfyy.PatientInfo(this);
      result.patientId_ = patientId_;
      result.patientName_ = patientName_;
      result.sex_ = sex_;
      result.birthday_ = birthday_;
      result.telephoneNo_ = telephoneNo_;
      result.mobile_ = mobile_;
      result.documentId_ = documentId_;
      result.address_ = address_;
      result.idTypeCode_ = idTypeCode_;
      result.idTypeDesc_ = idTypeDesc_;
      result.idNo_ = idNo_;
      result.insureCardNo_ = insureCardNo_;
      result.accInfo_ = accInfo_;
      result.cardNo_ = cardNo_;
      result.cardType_ = cardType_;
      result.patientType_ = patientType_;
      result.balance_ = balance_;
      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.nfyy.PatientInfo) {
        return mergeFrom((com.ywt.gapi.nfyy.PatientInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.nfyy.PatientInfo other) {
      if (other == com.ywt.gapi.nfyy.PatientInfo.getDefaultInstance()) return this;
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getBirthday().isEmpty()) {
        birthday_ = other.birthday_;
        onChanged();
      }
      if (!other.getTelephoneNo().isEmpty()) {
        telephoneNo_ = other.telephoneNo_;
        onChanged();
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (!other.getDocumentId().isEmpty()) {
        documentId_ = other.documentId_;
        onChanged();
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (!other.getIdTypeCode().isEmpty()) {
        idTypeCode_ = other.idTypeCode_;
        onChanged();
      }
      if (!other.getIdTypeDesc().isEmpty()) {
        idTypeDesc_ = other.idTypeDesc_;
        onChanged();
      }
      if (!other.getIdNo().isEmpty()) {
        idNo_ = other.idNo_;
        onChanged();
      }
      if (!other.getInsureCardNo().isEmpty()) {
        insureCardNo_ = other.insureCardNo_;
        onChanged();
      }
      if (!other.getAccInfo().isEmpty()) {
        accInfo_ = other.accInfo_;
        onChanged();
      }
      if (!other.getCardNo().isEmpty()) {
        cardNo_ = other.cardNo_;
        onChanged();
      }
      if (!other.getCardType().isEmpty()) {
        cardType_ = other.cardType_;
        onChanged();
      }
      if (!other.getPatientType().isEmpty()) {
        patientType_ = other.patientType_;
        onChanged();
      }
      if (other.getBalance() != 0D) {
        setBalance(other.getBalance());
      }
      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.nfyy.PatientInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.nfyy.PatientInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object patientId_ = "";
    /**
     * <code>string patientId = 1;</code>
     * @return The patientId.
     */
    public java.lang.String getPatientId() {
      java.lang.Object ref = patientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientId = 1;</code>
     * @return The bytes for patientId.
     */
    public com.google.protobuf.ByteString
        getPatientIdBytes() {
      java.lang.Object ref = patientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientId = 1;</code>
     * @param value The patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 1;</code>
     * @param value The bytes for patientId to set.
     * @return This builder for chaining.
     */
    public Builder setPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 2;</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 = 2;</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 = 2;</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 = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 2;</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 sex_ ;
    /**
     * <code>int32 sex = 3;</code>
     * @return The sex.
     */
    @java.lang.Override
    public int getSex() {
      return sex_;
    }
    /**
     * <code>int32 sex = 3;</code>
     * @param value The sex to set.
     * @return This builder for chaining.
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 sex = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

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

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

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 6;</code>
     * @return The mobile.
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string mobile = 6;</code>
     * @return The bytes for mobile.
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string mobile = 6;</code>
     * @param value The mobile to set.
     * @return This builder for chaining.
     */
    public Builder setMobile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 6;</code>
     * @param value The bytes for mobile to set.
     * @return This builder for chaining.
     */
    public Builder setMobileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mobile_ = value;
      onChanged();
      return this;
    }

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

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

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

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

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

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

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

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

    private java.lang.Object cardType_ = "";
    /**
     * <code>string cardType = 15;</code>
     * @return The cardType.
     */
    public java.lang.String getCardType() {
      java.lang.Object ref = cardType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        cardType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string cardType = 15;</code>
     * @return The bytes for cardType.
     */
    public com.google.protobuf.ByteString
        getCardTypeBytes() {
      java.lang.Object ref = cardType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cardType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string cardType = 15;</code>
     * @param value The cardType to set.
     * @return This builder for chaining.
     */
    public Builder setCardType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cardType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string cardType = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardType() {
      
      cardType_ = getDefaultInstance().getCardType();
      onChanged();
      return this;
    }
    /**
     * <code>string cardType = 15;</code>
     * @param value The bytes for cardType to set.
     * @return This builder for chaining.
     */
    public Builder setCardTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cardType_ = value;
      onChanged();
      return this;
    }

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

    private double balance_ ;
    /**
     * <code>double balance = 17;</code>
     * @return The balance.
     */
    @java.lang.Override
    public double getBalance() {
      return balance_;
    }
    /**
     * <code>double balance = 17;</code>
     * @param value The balance to set.
     * @return This builder for chaining.
     */
    public Builder setBalance(double value) {
      
      balance_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>double balance = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearBalance() {
      
      balance_ = 0D;
      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.nfyy.PatientInfo)
  }

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

  public static com.ywt.gapi.nfyy.PatientInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.nfyy.PatientInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

