// 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() {
    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;
  }

  @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 NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 8: {

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

            msg_ = s;
            break;
          }
          case 24: {

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

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

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

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

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

            mobile_ = s;
            break;
          }
          case 72: {

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

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

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

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

            documentId_ = s;
            break;
          }
          case 112: {

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

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

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

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

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

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

            patientType_ = s;
            break;
          }
          case 168: {

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

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

            guardian_ = s;
            break;
          }
          case 192: {

            cardId_ = input.readInt32();
            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 TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            GetMedicalCardInfoByPatientIdResponse.class, Builder.class);
  }

  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   */
  public int getCode() {
    return code_;
  }

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

  public static final int HOSPITALID_FIELD_NUMBER = 4;
  private int hospitalId_;
  /**
   * <code>int32 hospitalId = 4;</code>
   */
  public int getHospitalId() {
    return hospitalId_;
  }

  public static final int CARDNO_FIELD_NUMBER = 5;
  private volatile Object cardNo_;
  /**
   * <code>string cardNo = 5;</code>
   */
  public String getCardNo() {
    Object ref = cardNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      cardNo_ = s;
      return s;
    }
  }
  /**
   * <code>string cardNo = 5;</code>
   */
  public com.google.protobuf.ByteString
      getCardNoBytes() {
    Object ref = cardNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      cardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CARDTYPE_FIELD_NUMBER = 6;
  private volatile Object cardType_;
  /**
   * <code>string cardType = 6;</code>
   */
  public String getCardType() {
    Object ref = cardType_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      cardType_ = s;
      return s;
    }
  }
  /**
   * <code>string cardType = 6;</code>
   */
  public com.google.protobuf.ByteString
      getCardTypeBytes() {
    Object ref = cardType_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      cardType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 7;
  private volatile Object patientName_;
  /**
   * <code>string patientName = 7;</code>
   */
  public String getPatientName() {
    Object ref = patientName_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      patientName_ = s;
      return s;
    }
  }
  /**
   * <code>string patientName = 7;</code>
   */
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    Object ref = patientName_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MOBILE_FIELD_NUMBER = 8;
  private volatile Object mobile_;
  /**
   * <code>string mobile = 8;</code>
   */
  public String getMobile() {
    Object ref = mobile_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      mobile_ = s;
      return s;
    }
  }
  /**
   * <code>string mobile = 8;</code>
   */
  public com.google.protobuf.ByteString
      getMobileBytes() {
    Object ref = mobile_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (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>
   */
  public int getSex() {
    return sex_;
  }

  public static final int BIRTHDAY_FIELD_NUMBER = 10;
  private volatile Object birthday_;
  /**
   * <code>string birthday = 10;</code>
   */
  public String getBirthday() {
    Object ref = birthday_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      birthday_ = s;
      return s;
    }
  }
  /**
   * <code>string birthday = 10;</code>
   */
  public com.google.protobuf.ByteString
      getBirthdayBytes() {
    Object ref = birthday_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      birthday_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADDRESS_FIELD_NUMBER = 11;
  private volatile Object address_;
  /**
   * <code>string address = 11;</code>
   */
  public String getAddress() {
    Object ref = address_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      address_ = s;
      return s;
    }
  }
  /**
   * <code>string address = 11;</code>
   */
  public com.google.protobuf.ByteString
      getAddressBytes() {
    Object ref = address_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      address_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TELEPHONENO_FIELD_NUMBER = 12;
  private volatile Object telephoneNo_;
  /**
   * <code>string telephoneNo = 12;</code>
   */
  public String getTelephoneNo() {
    Object ref = telephoneNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      telephoneNo_ = s;
      return s;
    }
  }
  /**
   * <code>string telephoneNo = 12;</code>
   */
  public com.google.protobuf.ByteString
      getTelephoneNoBytes() {
    Object ref = telephoneNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      telephoneNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCUMENTID_FIELD_NUMBER = 13;
  private volatile Object documentId_;
  /**
   * <code>string documentId = 13;</code>
   */
  public String getDocumentId() {
    Object ref = documentId_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      documentId_ = s;
      return s;
    }
  }
  /**
   * <code>string documentId = 13;</code>
   */
  public com.google.protobuf.ByteString
      getDocumentIdBytes() {
    Object ref = documentId_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (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>
   */
  public int getBalance() {
    return balance_;
  }

  public static final int IDTYPECODE_FIELD_NUMBER = 15;
  private volatile Object idTypeCode_;
  /**
   * <code>string idTypeCode = 15;</code>
   */
  public String getIdTypeCode() {
    Object ref = idTypeCode_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      idTypeCode_ = s;
      return s;
    }
  }
  /**
   * <code>string idTypeCode = 15;</code>
   */
  public com.google.protobuf.ByteString
      getIdTypeCodeBytes() {
    Object ref = idTypeCode_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      idTypeCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDTYPEDESC_FIELD_NUMBER = 16;
  private volatile Object idTypeDesc_;
  /**
   * <code>string idTypeDesc = 16;</code>
   */
  public String getIdTypeDesc() {
    Object ref = idTypeDesc_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      idTypeDesc_ = s;
      return s;
    }
  }
  /**
   * <code>string idTypeDesc = 16;</code>
   */
  public com.google.protobuf.ByteString
      getIdTypeDescBytes() {
    Object ref = idTypeDesc_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      idTypeDesc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IDNO_FIELD_NUMBER = 17;
  private volatile Object idNo_;
  /**
   * <code>string idNo = 17;</code>
   */
  public String getIdNo() {
    Object ref = idNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      idNo_ = s;
      return s;
    }
  }
  /**
   * <code>string idNo = 17;</code>
   */
  public com.google.protobuf.ByteString
      getIdNoBytes() {
    Object ref = idNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      idNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INSURECARDNO_FIELD_NUMBER = 18;
  private volatile Object insureCardNo_;
  /**
   * <code>string insureCardNo = 18;</code>
   */
  public String getInsureCardNo() {
    Object ref = insureCardNo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      insureCardNo_ = s;
      return s;
    }
  }
  /**
   * <code>string insureCardNo = 18;</code>
   */
  public com.google.protobuf.ByteString
      getInsureCardNoBytes() {
    Object ref = insureCardNo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      insureCardNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACCINFO_FIELD_NUMBER = 19;
  private volatile Object accInfo_;
  /**
   * <code>string accInfo = 19;</code>
   */
  public String getAccInfo() {
    Object ref = accInfo_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      accInfo_ = s;
      return s;
    }
  }
  /**
   * <code>string accInfo = 19;</code>
   */
  public com.google.protobuf.ByteString
      getAccInfoBytes() {
    Object ref = accInfo_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      accInfo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTTYPE_FIELD_NUMBER = 20;
  private volatile Object patientType_;
  /**
   * <code>string patientType = 20;</code>
   */
  public String getPatientType() {
    Object ref = patientType_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      patientType_ = s;
      return s;
    }
  }
  /**
   * <code>string patientType = 20;</code>
   */
  public com.google.protobuf.ByteString
      getPatientTypeBytes() {
    Object ref = patientType_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (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>
   */
  public int getStatus() {
    return status_;
  }

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

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

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (code_ != 0) {
      output.writeInt32(1, code_);
    }
    if (!getMsgBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
    }
    if (userId_ != 0) {
      output.writeInt32(3, userId_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(4, hospitalId_);
    }
    if (!getCardNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cardNo_);
    }
    if (!getCardTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cardType_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patientName_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mobile_);
    }
    if (sex_ != 0) {
      output.writeInt32(9, sex_);
    }
    if (!getBirthdayBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, birthday_);
    }
    if (!getAddressBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, address_);
    }
    if (!getTelephoneNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, telephoneNo_);
    }
    if (!getDocumentIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, documentId_);
    }
    if (balance_ != 0) {
      output.writeInt32(14, balance_);
    }
    if (!getIdTypeCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, idTypeCode_);
    }
    if (!getIdTypeDescBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, idTypeDesc_);
    }
    if (!getIdNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, idNo_);
    }
    if (!getInsureCardNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, insureCardNo_);
    }
    if (!getAccInfoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, accInfo_);
    }
    if (!getPatientTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, patientType_);
    }
    if (status_ != 0) {
      output.writeInt32(21, status_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 22, hisPatientId_);
    }
    if (!getGuardianBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, guardian_);
    }
    if (cardId_ != 0) {
      output.writeInt32(24, cardId_);
    }
    unknownFields.writeTo(output);
  }

  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 (!getMsgBytes().isEmpty()) {
      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 (!getCardNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cardNo_);
    }
    if (!getCardTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cardType_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patientName_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mobile_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, sex_);
    }
    if (!getBirthdayBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, birthday_);
    }
    if (!getAddressBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, address_);
    }
    if (!getTelephoneNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, telephoneNo_);
    }
    if (!getDocumentIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, documentId_);
    }
    if (balance_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(14, balance_);
    }
    if (!getIdTypeCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, idTypeCode_);
    }
    if (!getIdTypeDescBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, idTypeDesc_);
    }
    if (!getIdNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, idNo_);
    }
    if (!getInsureCardNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, insureCardNo_);
    }
    if (!getAccInfoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, accInfo_);
    }
    if (!getPatientTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, patientType_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(21, status_);
    }
    if (!getHisPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, hisPatientId_);
    }
    if (!getGuardianBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, guardian_);
    }
    if (cardId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(24, cardId_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof GetMedicalCardInfoByPatientIdResponse)) {
      return super.equals(obj);
    }
    GetMedicalCardInfoByPatientIdResponse other = (GetMedicalCardInfoByPatientIdResponse) obj;

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getMsg()
        .equals(other.getMsg());
    result = result && (getUserId()
        == other.getUserId());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getCardNo()
        .equals(other.getCardNo());
    result = result && getCardType()
        .equals(other.getCardType());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && (getSex()
        == other.getSex());
    result = result && getBirthday()
        .equals(other.getBirthday());
    result = result && getAddress()
        .equals(other.getAddress());
    result = result && getTelephoneNo()
        .equals(other.getTelephoneNo());
    result = result && getDocumentId()
        .equals(other.getDocumentId());
    result = result && (getBalance()
        == other.getBalance());
    result = result && getIdTypeCode()
        .equals(other.getIdTypeCode());
    result = result && getIdTypeDesc()
        .equals(other.getIdTypeDesc());
    result = result && getIdNo()
        .equals(other.getIdNo());
    result = result && getInsureCardNo()
        .equals(other.getInsureCardNo());
    result = result && getAccInfo()
        .equals(other.getAccInfo());
    result = result && getPatientType()
        .equals(other.getPatientType());
    result = result && (getStatus()
        == other.getStatus());
    result = result && getHisPatientId()
        .equals(other.getHisPatientId());
    result = result && getGuardian()
        .equals(other.getGuardian());
    result = result && (getCardId()
        == other.getCardId());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @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 = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(GetMedicalCardInfoByPatientIdResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      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)
      GetMedicalCardInfoByPatientIdResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              GetMedicalCardInfoByPatientIdResponse.class, Builder.class);
    }

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

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    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;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return TaiheOutpatient.internal_static_com_ywt_gapi_taihe_outpaitent_GetMedicalCardInfoByPatientIdResponse_descriptor;
    }

    public GetMedicalCardInfoByPatientIdResponse getDefaultInstanceForType() {
      return GetMedicalCardInfoByPatientIdResponse.getDefaultInstance();
    }

    public GetMedicalCardInfoByPatientIdResponse build() {
      GetMedicalCardInfoByPatientIdResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public GetMedicalCardInfoByPatientIdResponse buildPartial() {
      GetMedicalCardInfoByPatientIdResponse result = new 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_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(GetMedicalCardInfoByPatientIdResponse other) {
      if (other == 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());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     */
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private Object msg_ = "";
    /**
     * <code>string msg = 2;</code>
     */
    public String getMsg() {
      Object ref = msg_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        msg_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     */
    public com.google.protobuf.ByteString
        getMsgBytes() {
      Object ref = msg_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        msg_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder setMsg(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      msg_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     */
    public Builder clearMsg() {
      
      msg_ = getDefaultInstance().getMsg();
      onChanged();
      return this;
    }
    /**
     * <code>string msg = 2;</code>
     */
    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>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 3;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 3;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private int hospitalId_ ;
    /**
     * <code>int32 hospitalId = 4;</code>
     */
    public int getHospitalId() {
      return hospitalId_;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     */
    public Builder setHospitalId(int value) {
      
      hospitalId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 hospitalId = 4;</code>
     */
    public Builder clearHospitalId() {
      
      hospitalId_ = 0;
      onChanged();
      return this;
    }

    private Object cardNo_ = "";
    /**
     * <code>string cardNo = 5;</code>
     */
    public String getCardNo() {
      Object ref = cardNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        cardNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string cardNo = 5;</code>
     */
    public com.google.protobuf.ByteString
        getCardNoBytes() {
      Object ref = cardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        cardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string cardNo = 5;</code>
     */
    public Builder setCardNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string cardNo = 5;</code>
     */
    public Builder clearCardNo() {
      
      cardNo_ = getDefaultInstance().getCardNo();
      onChanged();
      return this;
    }
    /**
     * <code>string cardNo = 5;</code>
     */
    public Builder setCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cardNo_ = value;
      onChanged();
      return this;
    }

    private Object cardType_ = "";
    /**
     * <code>string cardType = 6;</code>
     */
    public String getCardType() {
      Object ref = cardType_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        cardType_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string cardType = 6;</code>
     */
    public com.google.protobuf.ByteString
        getCardTypeBytes() {
      Object ref = cardType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        cardType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string cardType = 6;</code>
     */
    public Builder setCardType(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      cardType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string cardType = 6;</code>
     */
    public Builder clearCardType() {
      
      cardType_ = getDefaultInstance().getCardType();
      onChanged();
      return this;
    }
    /**
     * <code>string cardType = 6;</code>
     */
    public Builder setCardTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      cardType_ = value;
      onChanged();
      return this;
    }

    private Object patientName_ = "";
    /**
     * <code>string patientName = 7;</code>
     */
    public String getPatientName() {
      Object ref = patientName_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        patientName_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string patientName = 7;</code>
     */
    public com.google.protobuf.ByteString
        getPatientNameBytes() {
      Object ref = patientName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        patientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientName = 7;</code>
     */
    public Builder setPatientName(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 7;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 7;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private Object mobile_ = "";
    /**
     * <code>string mobile = 8;</code>
     */
    public String getMobile() {
      Object ref = mobile_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string mobile = 8;</code>
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string mobile = 8;</code>
     */
    public Builder setMobile(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mobile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 8;</code>
     */
    public Builder clearMobile() {
      
      mobile_ = getDefaultInstance().getMobile();
      onChanged();
      return this;
    }
    /**
     * <code>string mobile = 8;</code>
     */
    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>
     */
    public int getSex() {
      return sex_;
    }
    /**
     * <code>int32 sex = 9;</code>
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 sex = 9;</code>
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private Object birthday_ = "";
    /**
     * <code>string birthday = 10;</code>
     */
    public String getBirthday() {
      Object ref = birthday_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        birthday_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string birthday = 10;</code>
     */
    public com.google.protobuf.ByteString
        getBirthdayBytes() {
      Object ref = birthday_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        birthday_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string birthday = 10;</code>
     */
    public Builder setBirthday(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      birthday_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string birthday = 10;</code>
     */
    public Builder clearBirthday() {
      
      birthday_ = getDefaultInstance().getBirthday();
      onChanged();
      return this;
    }
    /**
     * <code>string birthday = 10;</code>
     */
    public Builder setBirthdayBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      birthday_ = value;
      onChanged();
      return this;
    }

    private Object address_ = "";
    /**
     * <code>string address = 11;</code>
     */
    public String getAddress() {
      Object ref = address_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        address_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string address = 11;</code>
     */
    public com.google.protobuf.ByteString
        getAddressBytes() {
      Object ref = address_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        address_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string address = 11;</code>
     */
    public Builder setAddress(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      address_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string address = 11;</code>
     */
    public Builder clearAddress() {
      
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * <code>string address = 11;</code>
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      address_ = value;
      onChanged();
      return this;
    }

    private Object telephoneNo_ = "";
    /**
     * <code>string telephoneNo = 12;</code>
     */
    public String getTelephoneNo() {
      Object ref = telephoneNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        telephoneNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string telephoneNo = 12;</code>
     */
    public com.google.protobuf.ByteString
        getTelephoneNoBytes() {
      Object ref = telephoneNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        telephoneNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string telephoneNo = 12;</code>
     */
    public Builder setTelephoneNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      telephoneNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string telephoneNo = 12;</code>
     */
    public Builder clearTelephoneNo() {
      
      telephoneNo_ = getDefaultInstance().getTelephoneNo();
      onChanged();
      return this;
    }
    /**
     * <code>string telephoneNo = 12;</code>
     */
    public Builder setTelephoneNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      telephoneNo_ = value;
      onChanged();
      return this;
    }

    private Object documentId_ = "";
    /**
     * <code>string documentId = 13;</code>
     */
    public String getDocumentId() {
      Object ref = documentId_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        documentId_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string documentId = 13;</code>
     */
    public com.google.protobuf.ByteString
        getDocumentIdBytes() {
      Object ref = documentId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        documentId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string documentId = 13;</code>
     */
    public Builder setDocumentId(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      documentId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string documentId = 13;</code>
     */
    public Builder clearDocumentId() {
      
      documentId_ = getDefaultInstance().getDocumentId();
      onChanged();
      return this;
    }
    /**
     * <code>string documentId = 13;</code>
     */
    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>
     */
    public int getBalance() {
      return balance_;
    }
    /**
     * <code>int32 balance = 14;</code>
     */
    public Builder setBalance(int value) {
      
      balance_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 balance = 14;</code>
     */
    public Builder clearBalance() {
      
      balance_ = 0;
      onChanged();
      return this;
    }

    private Object idTypeCode_ = "";
    /**
     * <code>string idTypeCode = 15;</code>
     */
    public String getIdTypeCode() {
      Object ref = idTypeCode_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        idTypeCode_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string idTypeCode = 15;</code>
     */
    public com.google.protobuf.ByteString
        getIdTypeCodeBytes() {
      Object ref = idTypeCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        idTypeCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string idTypeCode = 15;</code>
     */
    public Builder setIdTypeCode(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idTypeCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string idTypeCode = 15;</code>
     */
    public Builder clearIdTypeCode() {
      
      idTypeCode_ = getDefaultInstance().getIdTypeCode();
      onChanged();
      return this;
    }
    /**
     * <code>string idTypeCode = 15;</code>
     */
    public Builder setIdTypeCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idTypeCode_ = value;
      onChanged();
      return this;
    }

    private Object idTypeDesc_ = "";
    /**
     * <code>string idTypeDesc = 16;</code>
     */
    public String getIdTypeDesc() {
      Object ref = idTypeDesc_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        idTypeDesc_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string idTypeDesc = 16;</code>
     */
    public com.google.protobuf.ByteString
        getIdTypeDescBytes() {
      Object ref = idTypeDesc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        idTypeDesc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string idTypeDesc = 16;</code>
     */
    public Builder setIdTypeDesc(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idTypeDesc_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string idTypeDesc = 16;</code>
     */
    public Builder clearIdTypeDesc() {
      
      idTypeDesc_ = getDefaultInstance().getIdTypeDesc();
      onChanged();
      return this;
    }
    /**
     * <code>string idTypeDesc = 16;</code>
     */
    public Builder setIdTypeDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idTypeDesc_ = value;
      onChanged();
      return this;
    }

    private Object idNo_ = "";
    /**
     * <code>string idNo = 17;</code>
     */
    public String getIdNo() {
      Object ref = idNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        idNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string idNo = 17;</code>
     */
    public com.google.protobuf.ByteString
        getIdNoBytes() {
      Object ref = idNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        idNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string idNo = 17;</code>
     */
    public Builder setIdNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string idNo = 17;</code>
     */
    public Builder clearIdNo() {
      
      idNo_ = getDefaultInstance().getIdNo();
      onChanged();
      return this;
    }
    /**
     * <code>string idNo = 17;</code>
     */
    public Builder setIdNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idNo_ = value;
      onChanged();
      return this;
    }

    private Object insureCardNo_ = "";
    /**
     * <code>string insureCardNo = 18;</code>
     */
    public String getInsureCardNo() {
      Object ref = insureCardNo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        insureCardNo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string insureCardNo = 18;</code>
     */
    public com.google.protobuf.ByteString
        getInsureCardNoBytes() {
      Object ref = insureCardNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        insureCardNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string insureCardNo = 18;</code>
     */
    public Builder setInsureCardNo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      insureCardNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string insureCardNo = 18;</code>
     */
    public Builder clearInsureCardNo() {
      
      insureCardNo_ = getDefaultInstance().getInsureCardNo();
      onChanged();
      return this;
    }
    /**
     * <code>string insureCardNo = 18;</code>
     */
    public Builder setInsureCardNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      insureCardNo_ = value;
      onChanged();
      return this;
    }

    private Object accInfo_ = "";
    /**
     * <code>string accInfo = 19;</code>
     */
    public String getAccInfo() {
      Object ref = accInfo_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        accInfo_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string accInfo = 19;</code>
     */
    public com.google.protobuf.ByteString
        getAccInfoBytes() {
      Object ref = accInfo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        accInfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string accInfo = 19;</code>
     */
    public Builder setAccInfo(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      accInfo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string accInfo = 19;</code>
     */
    public Builder clearAccInfo() {
      
      accInfo_ = getDefaultInstance().getAccInfo();
      onChanged();
      return this;
    }
    /**
     * <code>string accInfo = 19;</code>
     */
    public Builder setAccInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      accInfo_ = value;
      onChanged();
      return this;
    }

    private Object patientType_ = "";
    /**
     * <code>string patientType = 20;</code>
     */
    public String getPatientType() {
      Object ref = patientType_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        patientType_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string patientType = 20;</code>
     */
    public com.google.protobuf.ByteString
        getPatientTypeBytes() {
      Object ref = patientType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        patientType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientType = 20;</code>
     */
    public Builder setPatientType(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientType = 20;</code>
     */
    public Builder clearPatientType() {
      
      patientType_ = getDefaultInstance().getPatientType();
      onChanged();
      return this;
    }
    /**
     * <code>string patientType = 20;</code>
     */
    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>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <code>int32 status = 21;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 status = 21;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

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

    private Object guardian_ = "";
    /**
     * <code>string guardian = 23;</code>
     */
    public String getGuardian() {
      Object ref = guardian_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        guardian_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string guardian = 23;</code>
     */
    public com.google.protobuf.ByteString
        getGuardianBytes() {
      Object ref = guardian_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        guardian_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string guardian = 23;</code>
     */
    public Builder setGuardian(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      guardian_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string guardian = 23;</code>
     */
    public Builder clearGuardian() {
      
      guardian_ = getDefaultInstance().getGuardian();
      onChanged();
      return this;
    }
    /**
     * <code>string guardian = 23;</code>
     */
    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>
     */
    public int getCardId() {
      return cardId_;
    }
    /**
     * <code>int32 cardId = 24;</code>
     */
    public Builder setCardId(int value) {
      
      cardId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 cardId = 24;</code>
     */
    public Builder clearCardId() {
      
      cardId_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    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 GetMedicalCardInfoByPatientIdResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new GetMedicalCardInfoByPatientIdResponse();
  }

  public static GetMedicalCardInfoByPatientIdResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<GetMedicalCardInfoByPatientIdResponse>
      PARSER = new com.google.protobuf.AbstractParser<GetMedicalCardInfoByPatientIdResponse>() {
    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;
  }

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

  public GetMedicalCardInfoByPatientIdResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

