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

package com.ywt.gapi.taihe.outpaitent;

/**
 * Protobuf type {@code com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse}
 */
public final class GetMedicalCardInfoByPatientIdResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse)
    GetMedicalCardInfoByPatientIdResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetMedicalCardInfoByPatientIdResponse.newBuilder() to construct.
  private GetMedicalCardInfoByPatientIdResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetMedicalCardInfoByPatientIdResponse() {
    msg_ = "";
    cardNo_ = "";
    cardType_ = "";
    patientName_ = "";
    mobile_ = "";
    birthday_ = "";
    address_ = "";
    telephoneNo_ = "";
    documentId_ = "";
    idTypeCode_ = "";
    idTypeDesc_ = "";
    idNo_ = "";
    insureCardNo_ = "";
    accInfo_ = "";
    patientType_ = "";
    hisPatientId_ = "";
    guardian_ = "";
    selfPay_ = "";
    insurance_ = "";
    insDetail_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GetMedicalCardInfoByPatientIdResponse(
      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 8: {

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

            msg_ = s;
            break;
          }
          case 24: {

            userId_ = input.readInt32();
            break;
          }
          case 32: {

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

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

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

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

            mobile_ = s;
            break;
          }
          case 72: {

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

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

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

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

            documentId_ = s;
            break;
          }
          case 112: {

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

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

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

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

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

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

            patientType_ = s;
            break;
          }
          case 168: {

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

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

            guardian_ = s;
            break;
          }
          case 192: {

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

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

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

            insDetail_ = s;
            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.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse.class, com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse.Builder.class);
  }

  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   * @return The code.
   */
  @java.lang.Override
  public int getCode() {
    return code_;
  }

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

  public static final int USERID_FIELD_NUMBER = 3;
  private int userId_;
  /**
   * <code>int32 userId = 3;</code>
   * @return The userId.
   */
  @java.lang.Override
  public int getUserId() {
    return userId_;
  }

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 4;</code>
   * @return The hospitalId.
   */
  @java.lang.Override
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int CARDNO_FIELD_NUMBER = 5;
  private volatile java.lang.Object cardNo_;
  /**
   * <code>string cardNo = 5;</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 = 5;</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 = 6;
  private volatile java.lang.Object cardType_;
  /**
   * <code>string cardType = 6;</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 = 6;</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 PATIENTNAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 7;</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 = 7;</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 MOBILE_FIELD_NUMBER = 8;
  private volatile java.lang.Object mobile_;
  /**
   * <code>string mobile = 8;</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 = 8;</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 SEX_FIELD_NUMBER = 9;
  private int sex_;
  /**
   * <code>int32 sex = 9;</code>
   * @return The sex.
   */
  @java.lang.Override
  public int getSex() {
    return sex_;
  }

  public static final int BIRTHDAY_FIELD_NUMBER = 10;
  private volatile java.lang.Object birthday_;
  /**
   * <code>string birthday = 10;</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 = 10;</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 ADDRESS_FIELD_NUMBER = 11;
  private volatile java.lang.Object address_;
  /**
   * <code>string address = 11;</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 = 11;</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 TELEPHONENO_FIELD_NUMBER = 12;
  private volatile java.lang.Object telephoneNo_;
  /**
   * <code>string telephoneNo = 12;</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 = 12;</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 DOCUMENTID_FIELD_NUMBER = 13;
  private volatile java.lang.Object documentId_;
  /**
   * <code>string documentId = 13;</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 = 13;</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 BALANCE_FIELD_NUMBER = 14;
  private int balance_;
  /**
   * <code>int32 balance = 14;</code>
   * @return The balance.
   */
  @java.lang.Override
  public int getBalance() {
    return balance_;
  }

  public static final int IDTYPECODE_FIELD_NUMBER = 15;
  private volatile java.lang.Object idTypeCode_;
  /**
   * <code>string idTypeCode = 15;</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 = 15;</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 = 16;
  private volatile java.lang.Object idTypeDesc_;
  /**
   * <code>string idTypeDesc = 16;</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 = 16;</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 = 17;
  private volatile java.lang.Object idNo_;
  /**
   * <code>string idNo = 17;</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 = 17;</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 = 18;
  private volatile java.lang.Object insureCardNo_;
  /**
   * <code>string insureCardNo = 18;</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 = 18;</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 = 19;
  private volatile java.lang.Object accInfo_;
  /**
   * <code>string accInfo = 19;</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 = 19;</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 PATIENTTYPE_FIELD_NUMBER = 20;
  private volatile java.lang.Object patientType_;
  /**
   * <code>string patientType = 20;</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 = 20;</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 STATUS_FIELD_NUMBER = 21;
  private int status_;
  /**
   * <code>int32 status = 21;</code>
   * @return The status.
   */
  @java.lang.Override
  public int getStatus() {
    return status_;
  }

  public static final int HISPATIENTID_FIELD_NUMBER = 22;
  private volatile java.lang.Object hisPatientId_;
  /**
   * <code>string hisPatientId = 22;</code>
   * @return The hisPatientId.
   */
  @java.lang.Override
  public java.lang.String getHisPatientId() {
    java.lang.Object ref = hisPatientId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      hisPatientId_ = s;
      return s;
    }
  }
  /**
   * <code>string hisPatientId = 22;</code>
   * @return The bytes for hisPatientId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHisPatientIdBytes() {
    java.lang.Object ref = hisPatientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hisPatientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int CARDID_FIELD_NUMBER = 24;
  private int cardId_;
  /**
   * <code>int32 cardId = 24;</code>
   * @return The cardId.
   */
  @java.lang.Override
  public int getCardId() {
    return cardId_;
  }

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

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

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

  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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
    }
    if (userId_ != 0) {
      output.writeInt32(3, userId_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cardType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mobile_);
    }
    if (sex_ != 0) {
      output.writeInt32(9, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthday_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, birthday_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephoneNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, telephoneNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, documentId_);
    }
    if (balance_ != 0) {
      output.writeInt32(14, balance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, idTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeDesc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, idTypeDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, idNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureCardNo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, insureCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accInfo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, accInfo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, patientType_);
    }
    if (status_ != 0) {
      output.writeInt32(21, status_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, hisPatientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guardian_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, guardian_);
    }
    if (cardId_ != 0) {
      output.writeInt32(24, cardId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfPay_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 25, selfPay_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insurance_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 26, insurance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insDetail_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 27, insDetail_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, userId_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, hospitalId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cardType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cardType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patientName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mobile_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mobile_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, sex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthday_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, birthday_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, address_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephoneNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, telephoneNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, documentId_);
    }
    if (balance_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, balance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, idTypeCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idTypeDesc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, idTypeDesc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, idNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insureCardNo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, insureCardNo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accInfo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, accInfo_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patientType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, patientType_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(21, status_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hisPatientId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, hisPatientId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guardian_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, guardian_);
    }
    if (cardId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(24, cardId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfPay_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, selfPay_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insurance_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, insurance_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(insDetail_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, insDetail_);
    }
    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.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse other = (com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse) obj;

    if (getCode()
        != other.getCode()) return false;
    if (!getMsg()
        .equals(other.getMsg())) return false;
    if (getUserId()
        != other.getUserId()) return false;
    if (getHospitalId()
        != other.getHospitalId()) return false;
    if (!getCardNo()
        .equals(other.getCardNo())) return false;
    if (!getCardType()
        .equals(other.getCardType())) return false;
    if (!getPatientName()
        .equals(other.getPatientName())) return false;
    if (!getMobile()
        .equals(other.getMobile())) return false;
    if (getSex()
        != other.getSex()) return false;
    if (!getBirthday()
        .equals(other.getBirthday())) return false;
    if (!getAddress()
        .equals(other.getAddress())) return false;
    if (!getTelephoneNo()
        .equals(other.getTelephoneNo())) return false;
    if (!getDocumentId()
        .equals(other.getDocumentId())) return false;
    if (getBalance()
        != other.getBalance()) 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 (!getPatientType()
        .equals(other.getPatientType())) return false;
    if (getStatus()
        != other.getStatus()) return false;
    if (!getHisPatientId()
        .equals(other.getHisPatientId())) return false;
    if (!getGuardian()
        .equals(other.getGuardian())) return false;
    if (getCardId()
        != other.getCardId()) return false;
    if (!getSelfPay()
        .equals(other.getSelfPay())) return false;
    if (!getInsurance()
        .equals(other.getInsurance())) return false;
    if (!getInsDetail()
        .equals(other.getInsDetail())) 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) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    hash = (37 * hash) + MSG_FIELD_NUMBER;
    hash = (53 * hash) + getMsg().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    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) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().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) + ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getAddress().hashCode();
    hash = (37 * hash) + TELEPHONENO_FIELD_NUMBER;
    hash = (53 * hash) + getTelephoneNo().hashCode();
    hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER;
    hash = (53 * hash) + getDocumentId().hashCode();
    hash = (37 * hash) + BALANCE_FIELD_NUMBER;
    hash = (53 * hash) + getBalance();
    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) + PATIENTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientType().hashCode();
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + HISPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getHisPatientId().hashCode();
    hash = (37 * hash) + GUARDIAN_FIELD_NUMBER;
    hash = (53 * hash) + getGuardian().hashCode();
    hash = (37 * hash) + CARDID_FIELD_NUMBER;
    hash = (53 * hash) + getCardId();
    hash = (37 * hash) + SELFPAY_FIELD_NUMBER;
    hash = (53 * hash) + getSelfPay().hashCode();
    hash = (37 * hash) + INSURANCE_FIELD_NUMBER;
    hash = (53 * hash) + getInsurance().hashCode();
    hash = (37 * hash) + INSDETAIL_FIELD_NUMBER;
    hash = (53 * hash) + getInsDetail().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse.class, com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse.Builder.class);
    }

    // Construct using com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse.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();
      code_ = 0;

      msg_ = "";

      userId_ = 0;

      hospitalId_ = 0;

      cardNo_ = "";

      cardType_ = "";

      patientName_ = "";

      mobile_ = "";

      sex_ = 0;

      birthday_ = "";

      address_ = "";

      telephoneNo_ = "";

      documentId_ = "";

      balance_ = 0;

      idTypeCode_ = "";

      idTypeDesc_ = "";

      idNo_ = "";

      insureCardNo_ = "";

      accInfo_ = "";

      patientType_ = "";

      status_ = 0;

      hisPatientId_ = "";

      guardian_ = "";

      cardId_ = 0;

      selfPay_ = "";

      insurance_ = "";

      insDetail_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.taihe.outpaitent.TaiheOutpaitentProto.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse buildPartial() {
      com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse result = new com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse(this);
      result.code_ = code_;
      result.msg_ = msg_;
      result.userId_ = userId_;
      result.hospitalId_ = hospitalId_;
      result.cardNo_ = cardNo_;
      result.cardType_ = cardType_;
      result.patientName_ = patientName_;
      result.mobile_ = mobile_;
      result.sex_ = sex_;
      result.birthday_ = birthday_;
      result.address_ = address_;
      result.telephoneNo_ = telephoneNo_;
      result.documentId_ = documentId_;
      result.balance_ = balance_;
      result.idTypeCode_ = idTypeCode_;
      result.idTypeDesc_ = idTypeDesc_;
      result.idNo_ = idNo_;
      result.insureCardNo_ = insureCardNo_;
      result.accInfo_ = accInfo_;
      result.patientType_ = patientType_;
      result.status_ = status_;
      result.hisPatientId_ = hisPatientId_;
      result.guardian_ = guardian_;
      result.cardId_ = cardId_;
      result.selfPay_ = selfPay_;
      result.insurance_ = insurance_;
      result.insDetail_ = insDetail_;
      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.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse) {
        return mergeFrom((com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse other) {
      if (other == com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getMsg().isEmpty()) {
        msg_ = other.msg_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getCardNo().isEmpty()) {
        cardNo_ = other.cardNo_;
        onChanged();
      }
      if (!other.getCardType().isEmpty()) {
        cardType_ = other.cardType_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getBirthday().isEmpty()) {
        birthday_ = other.birthday_;
        onChanged();
      }
      if (!other.getAddress().isEmpty()) {
        address_ = other.address_;
        onChanged();
      }
      if (!other.getTelephoneNo().isEmpty()) {
        telephoneNo_ = other.telephoneNo_;
        onChanged();
      }
      if (!other.getDocumentId().isEmpty()) {
        documentId_ = other.documentId_;
        onChanged();
      }
      if (other.getBalance() != 0) {
        setBalance(other.getBalance());
      }
      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.getPatientType().isEmpty()) {
        patientType_ = other.patientType_;
        onChanged();
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (!other.getHisPatientId().isEmpty()) {
        hisPatientId_ = other.hisPatientId_;
        onChanged();
      }
      if (!other.getGuardian().isEmpty()) {
        guardian_ = other.guardian_;
        onChanged();
      }
      if (other.getCardId() != 0) {
        setCardId(other.getCardId());
      }
      if (!other.getSelfPay().isEmpty()) {
        selfPay_ = other.selfPay_;
        onChanged();
      }
      if (!other.getInsurance().isEmpty()) {
        insurance_ = other.insurance_;
        onChanged();
      }
      if (!other.getInsDetail().isEmpty()) {
        insDetail_ = other.insDetail_;
        onChanged();
      }
      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.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     * @return The code.
     */
    @java.lang.Override
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     * @param value The code to set.
     * @return This builder for chaining.
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object msg_ = "";
    /**
     * <code>string msg = 2;</code>
     * @return The msg.
     */
    public java.lang.String getMsg() {
      java.lang.Object ref = msg_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        msg_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     * @return The bytes for msg.
     */
    public com.google.protobuf.ByteString
        getMsgBytes() {
      java.lang.Object ref = msg_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        msg_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     * @param value The msg to set.
     * @return This builder for chaining.
     */
    public Builder setMsg(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      msg_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearMsg() {
      
      msg_ = getDefaultInstance().getMsg();
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     * @param value The bytes for msg to set.
     * @return This builder for chaining.
     */
    public Builder setMsgBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      msg_ = value;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 3;</code>
     * @return The userId.
     */
    @java.lang.Override
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 3;</code>
     * @param value The userId to set.
     * @return This builder for chaining.
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return The hospitalId.
     */
    @java.lang.Override
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @param value The hospitalId to set.
     * @return This builder for chaining.
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object cardNo_ = "";
    /**
     * <code>string cardNo = 5;</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 = 5;</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 = 5;</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 = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardNo() {
      
      cardNo_ = getDefaultInstance().getCardNo();
      onChanged();
      return this;
    }
    /**
     * <code>string cardNo = 5;</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 = 6;</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 = 6;</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 = 6;</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 = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardType() {
      
      cardType_ = getDefaultInstance().getCardType();
      onChanged();
      return this;
    }
    /**
     * <code>string cardType = 6;</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 patientName_ = "";
    /**
     * <code>string patientName = 7;</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 = 7;</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 = 7;</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 = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 7;</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 java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 8;</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 = 8;</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 = 8;</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 = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 8;</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 int sex_ ;
    /**
     * <code>int32 sex = 9;</code>
     * @return The sex.
     */
    @java.lang.Override
    public int getSex() {
      return sex_;
    }
    /**
     * <code>int32 sex = 9;</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 = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object birthday_ = "";
    /**
     * <code>string birthday = 10;</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 = 10;</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 = 10;</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 = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearBirthday() {
      
      birthday_ = getDefaultInstance().getBirthday();
      onChanged();
      return this;
    }
    /**
     * <code>string birthday = 10;</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 address_ = "";
    /**
     * <code>string address = 11;</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 = 11;</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 = 11;</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 = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <code>string address = 11;</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 telephoneNo_ = "";
    /**
     * <code>string telephoneNo = 12;</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 = 12;</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 = 12;</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 = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearTelephoneNo() {
      
      telephoneNo_ = getDefaultInstance().getTelephoneNo();
      onChanged();
      return this;
    }
    /**
     * <code>string telephoneNo = 12;</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 documentId_ = "";
    /**
     * <code>string documentId = 13;</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 = 13;</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 = 13;</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 = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearDocumentId() {
      
      documentId_ = getDefaultInstance().getDocumentId();
      onChanged();
      return this;
    }
    /**
     * <code>string documentId = 13;</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 int balance_ ;
    /**
     * <code>int32 balance = 14;</code>
     * @return The balance.
     */
    @java.lang.Override
    public int getBalance() {
      return balance_;
    }
    /**
     * <code>int32 balance = 14;</code>
     * @param value The balance to set.
     * @return This builder for chaining.
     */
    public Builder setBalance(int value) {
      
      balance_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 balance = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearBalance() {
      
      balance_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object idTypeCode_ = "";
    /**
     * <code>string idTypeCode = 15;</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 = 15;</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 = 15;</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 = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdTypeCode() {
      
      idTypeCode_ = getDefaultInstance().getIdTypeCode();
      onChanged();
      return this;
    }
    /**
     * <code>string idTypeCode = 15;</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 = 16;</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 = 16;</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 = 16;</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 = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdTypeDesc() {
      
      idTypeDesc_ = getDefaultInstance().getIdTypeDesc();
      onChanged();
      return this;
    }
    /**
     * <code>string idTypeDesc = 16;</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 = 17;</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 = 17;</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 = 17;</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 = 17;</code>
     * @return This builder for chaining.
     */
    public Builder clearIdNo() {
      
      idNo_ = getDefaultInstance().getIdNo();
      onChanged();
      return this;
    }
    /**
     * <code>string idNo = 17;</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 = 18;</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 = 18;</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 = 18;</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 = 18;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsureCardNo() {
      
      insureCardNo_ = getDefaultInstance().getInsureCardNo();
      onChanged();
      return this;
    }
    /**
     * <code>string insureCardNo = 18;</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 = 19;</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 = 19;</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 = 19;</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 = 19;</code>
     * @return This builder for chaining.
     */
    public Builder clearAccInfo() {
      
      accInfo_ = getDefaultInstance().getAccInfo();
      onChanged();
      return this;
    }
    /**
     * <code>string accInfo = 19;</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 patientType_ = "";
    /**
     * <code>string patientType = 20;</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 = 20;</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 = 20;</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 = 20;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientType() {
      
      patientType_ = getDefaultInstance().getPatientType();
      onChanged();
      return this;
    }
    /**
     * <code>string patientType = 20;</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 int status_ ;
    /**
     * <code>int32 status = 21;</code>
     * @return The status.
     */
    @java.lang.Override
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 21;</code>
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 21;</code>
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object hisPatientId_ = "";
    /**
     * <code>string hisPatientId = 22;</code>
     * @return The hisPatientId.
     */
    public java.lang.String getHisPatientId() {
      java.lang.Object ref = hisPatientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hisPatientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @return The bytes for hisPatientId.
     */
    public com.google.protobuf.ByteString
        getHisPatientIdBytes() {
      java.lang.Object ref = hisPatientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hisPatientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @param value The hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hisPatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @return This builder for chaining.
     */
    public Builder clearHisPatientId() {
      
      hisPatientId_ = getDefaultInstance().getHisPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string hisPatientId = 22;</code>
     * @param value The bytes for hisPatientId to set.
     * @return This builder for chaining.
     */
    public Builder setHisPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hisPatientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object guardian_ = "";
    /**
     * <code>string guardian = 23;</code>
     * @return The guardian.
     */
    public java.lang.String getGuardian() {
      java.lang.Object ref = guardian_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        guardian_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string guardian = 23;</code>
     * @return The bytes for guardian.
     */
    public com.google.protobuf.ByteString
        getGuardianBytes() {
      java.lang.Object ref = guardian_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        guardian_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string guardian = 23;</code>
     * @param value The guardian to set.
     * @return This builder for chaining.
     */
    public Builder setGuardian(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      guardian_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string guardian = 23;</code>
     * @return This builder for chaining.
     */
    public Builder clearGuardian() {
      
      guardian_ = getDefaultInstance().getGuardian();
      onChanged();
      return this;
    }
    /**
     * <code>string guardian = 23;</code>
     * @param value The bytes for guardian to set.
     * @return This builder for chaining.
     */
    public Builder setGuardianBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      guardian_ = value;
      onChanged();
      return this;
    }

    private int cardId_ ;
    /**
     * <code>int32 cardId = 24;</code>
     * @return The cardId.
     */
    @java.lang.Override
    public int getCardId() {
      return cardId_;
    }
    /**
     * <code>int32 cardId = 24;</code>
     * @param value The cardId to set.
     * @return This builder for chaining.
     */
    public Builder setCardId(int value) {
      
      cardId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 cardId = 24;</code>
     * @return This builder for chaining.
     */
    public Builder clearCardId() {
      
      cardId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object selfPay_ = "";
    /**
     * <code>string selfPay = 25;</code>
     * @return The selfPay.
     */
    public java.lang.String getSelfPay() {
      java.lang.Object ref = selfPay_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        selfPay_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string selfPay = 25;</code>
     * @return The bytes for selfPay.
     */
    public com.google.protobuf.ByteString
        getSelfPayBytes() {
      java.lang.Object ref = selfPay_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selfPay_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string selfPay = 25;</code>
     * @param value The selfPay to set.
     * @return This builder for chaining.
     */
    public Builder setSelfPay(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      selfPay_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string selfPay = 25;</code>
     * @return This builder for chaining.
     */
    public Builder clearSelfPay() {
      
      selfPay_ = getDefaultInstance().getSelfPay();
      onChanged();
      return this;
    }
    /**
     * <code>string selfPay = 25;</code>
     * @param value The bytes for selfPay to set.
     * @return This builder for chaining.
     */
    public Builder setSelfPayBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      selfPay_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insurance_ = "";
    /**
     * <code>string insurance = 26;</code>
     * @return The insurance.
     */
    public java.lang.String getInsurance() {
      java.lang.Object ref = insurance_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insurance_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insurance = 26;</code>
     * @return The bytes for insurance.
     */
    public com.google.protobuf.ByteString
        getInsuranceBytes() {
      java.lang.Object ref = insurance_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insurance_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insurance = 26;</code>
     * @param value The insurance to set.
     * @return This builder for chaining.
     */
    public Builder setInsurance(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insurance_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insurance = 26;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsurance() {
      
      insurance_ = getDefaultInstance().getInsurance();
      onChanged();
      return this;
    }
    /**
     * <code>string insurance = 26;</code>
     * @param value The bytes for insurance to set.
     * @return This builder for chaining.
     */
    public Builder setInsuranceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insurance_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object insDetail_ = "";
    /**
     * <code>string insDetail = 27;</code>
     * @return The insDetail.
     */
    public java.lang.String getInsDetail() {
      java.lang.Object ref = insDetail_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        insDetail_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string insDetail = 27;</code>
     * @return The bytes for insDetail.
     */
    public com.google.protobuf.ByteString
        getInsDetailBytes() {
      java.lang.Object ref = insDetail_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        insDetail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insDetail = 27;</code>
     * @param value The insDetail to set.
     * @return This builder for chaining.
     */
    public Builder setInsDetail(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insDetail_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insDetail = 27;</code>
     * @return This builder for chaining.
     */
    public Builder clearInsDetail() {
      
      insDetail_ = getDefaultInstance().getInsDetail();
      onChanged();
      return this;
    }
    /**
     * <code>string insDetail = 27;</code>
     * @param value The bytes for insDetail to set.
     * @return This builder for chaining.
     */
    public Builder setInsDetailBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insDetail_ = value;
      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.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse)
  }

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

  public static com.ywt.gapi.taihe.outpaitent.GetMedicalCardInfoByPatientIdResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

