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

package com.ywt.gapi.third.taihe;

/**
 * Protobuf type {@code com.ywt.gapi.third.taihe.GetInPatInfoResponse}
 */
public  final class GetInPatInfoResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.third.taihe.GetInPatInfoResponse)
    GetInPatInfoResponseOrBuilder {
  // Use GetInPatInfoResponse.newBuilder() to construct.
  private GetInPatInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetInPatInfoResponse() {
    code_ = 0;
    msg_ = "";
    patientId_ = "";
    patientName_ = "";
    sex_ = "";
    dOB_ = "";
    medical_ = "";
    credType_ = "";
    credNo_ = "";
    admNo_ = "";
    admDate_ = "";
    admDept_ = "";
    billNo_ = "";
    admReason_ = "";
    nationalCode_ = "";
    totalAmount_ = 0;
    depositAmount_ = 0;
    depositBalance_ = 0;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            nationalCode_ = s;
            break;
          }
          case 128: {

            totalAmount_ = input.readInt32();
            break;
          }
          case 136: {

            depositAmount_ = input.readInt32();
            break;
          }
          case 144: {

            depositBalance_ = 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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_GetInPatInfoResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_GetInPatInfoResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.third.taihe.GetInPatInfoResponse.class, com.ywt.gapi.third.taihe.GetInPatInfoResponse.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 java.lang.Object msg_;
  /**
   * <code>string msg = 2;</code>
   */
  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>
   */
  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 PATIENTID_FIELD_NUMBER = 3;
  private volatile java.lang.Object patientId_;
  /**
   * <code>string patientId = 3;</code>
   */
  public java.lang.String getPatientId() {
    java.lang.Object ref = patientId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientId_ = s;
      return s;
    }
  }
  /**
   * <code>string patientId = 3;</code>
   */
  public com.google.protobuf.ByteString
      getPatientIdBytes() {
    java.lang.Object ref = patientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 4;
  private volatile java.lang.Object patientName_;
  /**
   * <code>string patientName = 4;</code>
   */
  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 = 4;</code>
   */
  public com.google.protobuf.ByteString
      getPatientNameBytes() {
    java.lang.Object ref = patientName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SEX_FIELD_NUMBER = 5;
  private volatile java.lang.Object sex_;
  /**
   * <code>string sex = 5;</code>
   */
  public java.lang.String getSex() {
    java.lang.Object ref = sex_;
    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();
      sex_ = s;
      return s;
    }
  }
  /**
   * <code>string sex = 5;</code>
   */
  public com.google.protobuf.ByteString
      getSexBytes() {
    java.lang.Object ref = sex_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      sex_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOB_FIELD_NUMBER = 6;
  private volatile java.lang.Object dOB_;
  /**
   * <code>string dOB = 6;</code>
   */
  public java.lang.String getDOB() {
    java.lang.Object ref = dOB_;
    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();
      dOB_ = s;
      return s;
    }
  }
  /**
   * <code>string dOB = 6;</code>
   */
  public com.google.protobuf.ByteString
      getDOBBytes() {
    java.lang.Object ref = dOB_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dOB_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MEDICAL_FIELD_NUMBER = 7;
  private volatile java.lang.Object medical_;
  /**
   * <code>string medical = 7;</code>
   */
  public java.lang.String getMedical() {
    java.lang.Object ref = medical_;
    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();
      medical_ = s;
      return s;
    }
  }
  /**
   * <code>string medical = 7;</code>
   */
  public com.google.protobuf.ByteString
      getMedicalBytes() {
    java.lang.Object ref = medical_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      medical_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREDTYPE_FIELD_NUMBER = 8;
  private volatile java.lang.Object credType_;
  /**
   * <code>string credType = 8;</code>
   */
  public java.lang.String getCredType() {
    java.lang.Object ref = credType_;
    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();
      credType_ = s;
      return s;
    }
  }
  /**
   * <code>string credType = 8;</code>
   */
  public com.google.protobuf.ByteString
      getCredTypeBytes() {
    java.lang.Object ref = credType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      credType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CREDNO_FIELD_NUMBER = 9;
  private volatile java.lang.Object credNo_;
  /**
   * <code>string credNo = 9;</code>
   */
  public java.lang.String getCredNo() {
    java.lang.Object ref = credNo_;
    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();
      credNo_ = s;
      return s;
    }
  }
  /**
   * <code>string credNo = 9;</code>
   */
  public com.google.protobuf.ByteString
      getCredNoBytes() {
    java.lang.Object ref = credNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      credNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMNO_FIELD_NUMBER = 10;
  private volatile java.lang.Object admNo_;
  /**
   * <code>string admNo = 10;</code>
   */
  public java.lang.String getAdmNo() {
    java.lang.Object ref = admNo_;
    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();
      admNo_ = s;
      return s;
    }
  }
  /**
   * <code>string admNo = 10;</code>
   */
  public com.google.protobuf.ByteString
      getAdmNoBytes() {
    java.lang.Object ref = admNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMDATE_FIELD_NUMBER = 11;
  private volatile java.lang.Object admDate_;
  /**
   * <code>string admDate = 11;</code>
   */
  public java.lang.String getAdmDate() {
    java.lang.Object ref = admDate_;
    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();
      admDate_ = s;
      return s;
    }
  }
  /**
   * <code>string admDate = 11;</code>
   */
  public com.google.protobuf.ByteString
      getAdmDateBytes() {
    java.lang.Object ref = admDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMDEPT_FIELD_NUMBER = 12;
  private volatile java.lang.Object admDept_;
  /**
   * <code>string admDept = 12;</code>
   */
  public java.lang.String getAdmDept() {
    java.lang.Object ref = admDept_;
    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();
      admDept_ = s;
      return s;
    }
  }
  /**
   * <code>string admDept = 12;</code>
   */
  public com.google.protobuf.ByteString
      getAdmDeptBytes() {
    java.lang.Object ref = admDept_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admDept_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BILLNO_FIELD_NUMBER = 13;
  private volatile java.lang.Object billNo_;
  /**
   * <code>string billNo = 13;</code>
   */
  public java.lang.String getBillNo() {
    java.lang.Object ref = billNo_;
    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();
      billNo_ = s;
      return s;
    }
  }
  /**
   * <code>string billNo = 13;</code>
   */
  public com.google.protobuf.ByteString
      getBillNoBytes() {
    java.lang.Object ref = billNo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      billNo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMREASON_FIELD_NUMBER = 14;
  private volatile java.lang.Object admReason_;
  /**
   * <code>string admReason = 14;</code>
   */
  public java.lang.String getAdmReason() {
    java.lang.Object ref = admReason_;
    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();
      admReason_ = s;
      return s;
    }
  }
  /**
   * <code>string admReason = 14;</code>
   */
  public com.google.protobuf.ByteString
      getAdmReasonBytes() {
    java.lang.Object ref = admReason_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admReason_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int NATIONALCODE_FIELD_NUMBER = 15;
  private volatile java.lang.Object nationalCode_;
  /**
   * <code>string nationalCode = 15;</code>
   */
  public java.lang.String getNationalCode() {
    java.lang.Object ref = nationalCode_;
    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();
      nationalCode_ = s;
      return s;
    }
  }
  /**
   * <code>string nationalCode = 15;</code>
   */
  public com.google.protobuf.ByteString
      getNationalCodeBytes() {
    java.lang.Object ref = nationalCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      nationalCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTALAMOUNT_FIELD_NUMBER = 16;
  private int totalAmount_;
  /**
   * <code>int32 totalAmount = 16;</code>
   */
  public int getTotalAmount() {
    return totalAmount_;
  }

  public static final int DEPOSITAMOUNT_FIELD_NUMBER = 17;
  private int depositAmount_;
  /**
   * <code>int32 depositAmount = 17;</code>
   */
  public int getDepositAmount() {
    return depositAmount_;
  }

  public static final int DEPOSITBALANCE_FIELD_NUMBER = 18;
  private int depositBalance_;
  /**
   * <code>int32 depositBalance = 18;</code>
   */
  public int getDepositBalance() {
    return depositBalance_;
  }

  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 (!getPatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patientId_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patientName_);
    }
    if (!getSexBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sex_);
    }
    if (!getDOBBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dOB_);
    }
    if (!getMedicalBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, medical_);
    }
    if (!getCredTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, credType_);
    }
    if (!getCredNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, credNo_);
    }
    if (!getAdmNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, admNo_);
    }
    if (!getAdmDateBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, admDate_);
    }
    if (!getAdmDeptBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, admDept_);
    }
    if (!getBillNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, billNo_);
    }
    if (!getAdmReasonBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, admReason_);
    }
    if (!getNationalCodeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, nationalCode_);
    }
    if (totalAmount_ != 0) {
      output.writeInt32(16, totalAmount_);
    }
    if (depositAmount_ != 0) {
      output.writeInt32(17, depositAmount_);
    }
    if (depositBalance_ != 0) {
      output.writeInt32(18, depositBalance_);
    }
  }

  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 (!getPatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patientId_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, patientName_);
    }
    if (!getSexBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sex_);
    }
    if (!getDOBBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dOB_);
    }
    if (!getMedicalBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, medical_);
    }
    if (!getCredTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, credType_);
    }
    if (!getCredNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, credNo_);
    }
    if (!getAdmNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, admNo_);
    }
    if (!getAdmDateBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, admDate_);
    }
    if (!getAdmDeptBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, admDept_);
    }
    if (!getBillNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, billNo_);
    }
    if (!getAdmReasonBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, admReason_);
    }
    if (!getNationalCodeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, nationalCode_);
    }
    if (totalAmount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, totalAmount_);
    }
    if (depositAmount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(17, depositAmount_);
    }
    if (depositBalance_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(18, depositBalance_);
    }
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && (getCode()
        == other.getCode());
    result = result && getMsg()
        .equals(other.getMsg());
    result = result && getPatientId()
        .equals(other.getPatientId());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getSex()
        .equals(other.getSex());
    result = result && getDOB()
        .equals(other.getDOB());
    result = result && getMedical()
        .equals(other.getMedical());
    result = result && getCredType()
        .equals(other.getCredType());
    result = result && getCredNo()
        .equals(other.getCredNo());
    result = result && getAdmNo()
        .equals(other.getAdmNo());
    result = result && getAdmDate()
        .equals(other.getAdmDate());
    result = result && getAdmDept()
        .equals(other.getAdmDept());
    result = result && getBillNo()
        .equals(other.getBillNo());
    result = result && getAdmReason()
        .equals(other.getAdmReason());
    result = result && getNationalCode()
        .equals(other.getNationalCode());
    result = result && (getTotalAmount()
        == other.getTotalAmount());
    result = result && (getDepositAmount()
        == other.getDepositAmount());
    result = result && (getDepositBalance()
        == other.getDepositBalance());
    return result;
  }

  @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) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId().hashCode();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex().hashCode();
    hash = (37 * hash) + DOB_FIELD_NUMBER;
    hash = (53 * hash) + getDOB().hashCode();
    hash = (37 * hash) + MEDICAL_FIELD_NUMBER;
    hash = (53 * hash) + getMedical().hashCode();
    hash = (37 * hash) + CREDTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getCredType().hashCode();
    hash = (37 * hash) + CREDNO_FIELD_NUMBER;
    hash = (53 * hash) + getCredNo().hashCode();
    hash = (37 * hash) + ADMNO_FIELD_NUMBER;
    hash = (53 * hash) + getAdmNo().hashCode();
    hash = (37 * hash) + ADMDATE_FIELD_NUMBER;
    hash = (53 * hash) + getAdmDate().hashCode();
    hash = (37 * hash) + ADMDEPT_FIELD_NUMBER;
    hash = (53 * hash) + getAdmDept().hashCode();
    hash = (37 * hash) + BILLNO_FIELD_NUMBER;
    hash = (53 * hash) + getBillNo().hashCode();
    hash = (37 * hash) + ADMREASON_FIELD_NUMBER;
    hash = (53 * hash) + getAdmReason().hashCode();
    hash = (37 * hash) + NATIONALCODE_FIELD_NUMBER;
    hash = (53 * hash) + getNationalCode().hashCode();
    hash = (37 * hash) + TOTALAMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getTotalAmount();
    hash = (37 * hash) + DEPOSITAMOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getDepositAmount();
    hash = (37 * hash) + DEPOSITBALANCE_FIELD_NUMBER;
    hash = (53 * hash) + getDepositBalance();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.third.taihe.GetInPatInfoResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.third.taihe.GetInPatInfoResponse)
      com.ywt.gapi.third.taihe.GetInPatInfoResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_GetInPatInfoResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_GetInPatInfoResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.third.taihe.GetInPatInfoResponse.class, com.ywt.gapi.third.taihe.GetInPatInfoResponse.Builder.class);
    }

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

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

      msg_ = "";

      patientId_ = "";

      patientName_ = "";

      sex_ = "";

      dOB_ = "";

      medical_ = "";

      credType_ = "";

      credNo_ = "";

      admNo_ = "";

      admDate_ = "";

      admDept_ = "";

      billNo_ = "";

      admReason_ = "";

      nationalCode_ = "";

      totalAmount_ = 0;

      depositAmount_ = 0;

      depositBalance_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.third.taihe.Taihe.internal_static_com_ywt_gapi_third_taihe_GetInPatInfoResponse_descriptor;
    }

    public com.ywt.gapi.third.taihe.GetInPatInfoResponse getDefaultInstanceForType() {
      return com.ywt.gapi.third.taihe.GetInPatInfoResponse.getDefaultInstance();
    }

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

    public com.ywt.gapi.third.taihe.GetInPatInfoResponse buildPartial() {
      com.ywt.gapi.third.taihe.GetInPatInfoResponse result = new com.ywt.gapi.third.taihe.GetInPatInfoResponse(this);
      result.code_ = code_;
      result.msg_ = msg_;
      result.patientId_ = patientId_;
      result.patientName_ = patientName_;
      result.sex_ = sex_;
      result.dOB_ = dOB_;
      result.medical_ = medical_;
      result.credType_ = credType_;
      result.credNo_ = credNo_;
      result.admNo_ = admNo_;
      result.admDate_ = admDate_;
      result.admDept_ = admDept_;
      result.billNo_ = billNo_;
      result.admReason_ = admReason_;
      result.nationalCode_ = nationalCode_;
      result.totalAmount_ = totalAmount_;
      result.depositAmount_ = depositAmount_;
      result.depositBalance_ = depositBalance_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.third.taihe.GetInPatInfoResponse other) {
      if (other == com.ywt.gapi.third.taihe.GetInPatInfoResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (!other.getMsg().isEmpty()) {
        msg_ = other.msg_;
        onChanged();
      }
      if (!other.getPatientId().isEmpty()) {
        patientId_ = other.patientId_;
        onChanged();
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getSex().isEmpty()) {
        sex_ = other.sex_;
        onChanged();
      }
      if (!other.getDOB().isEmpty()) {
        dOB_ = other.dOB_;
        onChanged();
      }
      if (!other.getMedical().isEmpty()) {
        medical_ = other.medical_;
        onChanged();
      }
      if (!other.getCredType().isEmpty()) {
        credType_ = other.credType_;
        onChanged();
      }
      if (!other.getCredNo().isEmpty()) {
        credNo_ = other.credNo_;
        onChanged();
      }
      if (!other.getAdmNo().isEmpty()) {
        admNo_ = other.admNo_;
        onChanged();
      }
      if (!other.getAdmDate().isEmpty()) {
        admDate_ = other.admDate_;
        onChanged();
      }
      if (!other.getAdmDept().isEmpty()) {
        admDept_ = other.admDept_;
        onChanged();
      }
      if (!other.getBillNo().isEmpty()) {
        billNo_ = other.billNo_;
        onChanged();
      }
      if (!other.getAdmReason().isEmpty()) {
        admReason_ = other.admReason_;
        onChanged();
      }
      if (!other.getNationalCode().isEmpty()) {
        nationalCode_ = other.nationalCode_;
        onChanged();
      }
      if (other.getTotalAmount() != 0) {
        setTotalAmount(other.getTotalAmount());
      }
      if (other.getDepositAmount() != 0) {
        setDepositAmount(other.getDepositAmount());
      }
      if (other.getDepositBalance() != 0) {
        setDepositBalance(other.getDepositBalance());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.third.taihe.GetInPatInfoResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.third.taihe.GetInPatInfoResponse) 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 java.lang.Object msg_ = "";
    /**
     * <code>string msg = 2;</code>
     */
    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>
     */
    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>
     */
    public Builder setMsg(
        java.lang.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 java.lang.Object patientId_ = "";
    /**
     * <code>string patientId = 3;</code>
     */
    public java.lang.String getPatientId() {
      java.lang.Object ref = patientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string patientId = 3;</code>
     */
    public com.google.protobuf.ByteString
        getPatientIdBytes() {
      java.lang.Object ref = patientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string patientId = 3;</code>
     */
    public Builder setPatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 3;</code>
     */
    public Builder clearPatientId() {
      
      patientId_ = getDefaultInstance().getPatientId();
      onChanged();
      return this;
    }
    /**
     * <code>string patientId = 3;</code>
     */
    public Builder setPatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <code>string patientName = 4;</code>
     */
    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 = 4;</code>
     */
    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 = 4;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 4;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <code>string patientName = 4;</code>
     */
    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 sex_ = "";
    /**
     * <code>string sex = 5;</code>
     */
    public java.lang.String getSex() {
      java.lang.Object ref = sex_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sex_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string sex = 5;</code>
     */
    public com.google.protobuf.ByteString
        getSexBytes() {
      java.lang.Object ref = sex_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sex_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string sex = 5;</code>
     */
    public Builder setSex(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string sex = 5;</code>
     */
    public Builder clearSex() {
      
      sex_ = getDefaultInstance().getSex();
      onChanged();
      return this;
    }
    /**
     * <code>string sex = 5;</code>
     */
    public Builder setSexBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      sex_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dOB_ = "";
    /**
     * <code>string dOB = 6;</code>
     */
    public java.lang.String getDOB() {
      java.lang.Object ref = dOB_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dOB_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string dOB = 6;</code>
     */
    public com.google.protobuf.ByteString
        getDOBBytes() {
      java.lang.Object ref = dOB_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dOB_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string dOB = 6;</code>
     */
    public Builder setDOB(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      dOB_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string dOB = 6;</code>
     */
    public Builder clearDOB() {
      
      dOB_ = getDefaultInstance().getDOB();
      onChanged();
      return this;
    }
    /**
     * <code>string dOB = 6;</code>
     */
    public Builder setDOBBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      dOB_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object medical_ = "";
    /**
     * <code>string medical = 7;</code>
     */
    public java.lang.String getMedical() {
      java.lang.Object ref = medical_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        medical_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string medical = 7;</code>
     */
    public com.google.protobuf.ByteString
        getMedicalBytes() {
      java.lang.Object ref = medical_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        medical_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string medical = 7;</code>
     */
    public Builder setMedical(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      medical_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string medical = 7;</code>
     */
    public Builder clearMedical() {
      
      medical_ = getDefaultInstance().getMedical();
      onChanged();
      return this;
    }
    /**
     * <code>string medical = 7;</code>
     */
    public Builder setMedicalBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      medical_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object credType_ = "";
    /**
     * <code>string credType = 8;</code>
     */
    public java.lang.String getCredType() {
      java.lang.Object ref = credType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        credType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string credType = 8;</code>
     */
    public com.google.protobuf.ByteString
        getCredTypeBytes() {
      java.lang.Object ref = credType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        credType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string credType = 8;</code>
     */
    public Builder setCredType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      credType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string credType = 8;</code>
     */
    public Builder clearCredType() {
      
      credType_ = getDefaultInstance().getCredType();
      onChanged();
      return this;
    }
    /**
     * <code>string credType = 8;</code>
     */
    public Builder setCredTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      credType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object credNo_ = "";
    /**
     * <code>string credNo = 9;</code>
     */
    public java.lang.String getCredNo() {
      java.lang.Object ref = credNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        credNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string credNo = 9;</code>
     */
    public com.google.protobuf.ByteString
        getCredNoBytes() {
      java.lang.Object ref = credNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        credNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string credNo = 9;</code>
     */
    public Builder setCredNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      credNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string credNo = 9;</code>
     */
    public Builder clearCredNo() {
      
      credNo_ = getDefaultInstance().getCredNo();
      onChanged();
      return this;
    }
    /**
     * <code>string credNo = 9;</code>
     */
    public Builder setCredNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      credNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admNo_ = "";
    /**
     * <code>string admNo = 10;</code>
     */
    public java.lang.String getAdmNo() {
      java.lang.Object ref = admNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admNo = 10;</code>
     */
    public com.google.protobuf.ByteString
        getAdmNoBytes() {
      java.lang.Object ref = admNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admNo = 10;</code>
     */
    public Builder setAdmNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admNo = 10;</code>
     */
    public Builder clearAdmNo() {
      
      admNo_ = getDefaultInstance().getAdmNo();
      onChanged();
      return this;
    }
    /**
     * <code>string admNo = 10;</code>
     */
    public Builder setAdmNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admDate_ = "";
    /**
     * <code>string admDate = 11;</code>
     */
    public java.lang.String getAdmDate() {
      java.lang.Object ref = admDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admDate = 11;</code>
     */
    public com.google.protobuf.ByteString
        getAdmDateBytes() {
      java.lang.Object ref = admDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admDate = 11;</code>
     */
    public Builder setAdmDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admDate = 11;</code>
     */
    public Builder clearAdmDate() {
      
      admDate_ = getDefaultInstance().getAdmDate();
      onChanged();
      return this;
    }
    /**
     * <code>string admDate = 11;</code>
     */
    public Builder setAdmDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admDept_ = "";
    /**
     * <code>string admDept = 12;</code>
     */
    public java.lang.String getAdmDept() {
      java.lang.Object ref = admDept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admDept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admDept = 12;</code>
     */
    public com.google.protobuf.ByteString
        getAdmDeptBytes() {
      java.lang.Object ref = admDept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admDept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admDept = 12;</code>
     */
    public Builder setAdmDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admDept_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admDept = 12;</code>
     */
    public Builder clearAdmDept() {
      
      admDept_ = getDefaultInstance().getAdmDept();
      onChanged();
      return this;
    }
    /**
     * <code>string admDept = 12;</code>
     */
    public Builder setAdmDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admDept_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object billNo_ = "";
    /**
     * <code>string billNo = 13;</code>
     */
    public java.lang.String getBillNo() {
      java.lang.Object ref = billNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        billNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string billNo = 13;</code>
     */
    public com.google.protobuf.ByteString
        getBillNoBytes() {
      java.lang.Object ref = billNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        billNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string billNo = 13;</code>
     */
    public Builder setBillNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      billNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string billNo = 13;</code>
     */
    public Builder clearBillNo() {
      
      billNo_ = getDefaultInstance().getBillNo();
      onChanged();
      return this;
    }
    /**
     * <code>string billNo = 13;</code>
     */
    public Builder setBillNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      billNo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admReason_ = "";
    /**
     * <code>string admReason = 14;</code>
     */
    public java.lang.String getAdmReason() {
      java.lang.Object ref = admReason_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admReason_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string admReason = 14;</code>
     */
    public com.google.protobuf.ByteString
        getAdmReasonBytes() {
      java.lang.Object ref = admReason_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admReason_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string admReason = 14;</code>
     */
    public Builder setAdmReason(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admReason_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string admReason = 14;</code>
     */
    public Builder clearAdmReason() {
      
      admReason_ = getDefaultInstance().getAdmReason();
      onChanged();
      return this;
    }
    /**
     * <code>string admReason = 14;</code>
     */
    public Builder setAdmReasonBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admReason_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object nationalCode_ = "";
    /**
     * <code>string nationalCode = 15;</code>
     */
    public java.lang.String getNationalCode() {
      java.lang.Object ref = nationalCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        nationalCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string nationalCode = 15;</code>
     */
    public com.google.protobuf.ByteString
        getNationalCodeBytes() {
      java.lang.Object ref = nationalCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nationalCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string nationalCode = 15;</code>
     */
    public Builder setNationalCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      nationalCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string nationalCode = 15;</code>
     */
    public Builder clearNationalCode() {
      
      nationalCode_ = getDefaultInstance().getNationalCode();
      onChanged();
      return this;
    }
    /**
     * <code>string nationalCode = 15;</code>
     */
    public Builder setNationalCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      nationalCode_ = value;
      onChanged();
      return this;
    }

    private int totalAmount_ ;
    /**
     * <code>int32 totalAmount = 16;</code>
     */
    public int getTotalAmount() {
      return totalAmount_;
    }
    /**
     * <code>int32 totalAmount = 16;</code>
     */
    public Builder setTotalAmount(int value) {
      
      totalAmount_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 totalAmount = 16;</code>
     */
    public Builder clearTotalAmount() {
      
      totalAmount_ = 0;
      onChanged();
      return this;
    }

    private int depositAmount_ ;
    /**
     * <code>int32 depositAmount = 17;</code>
     */
    public int getDepositAmount() {
      return depositAmount_;
    }
    /**
     * <code>int32 depositAmount = 17;</code>
     */
    public Builder setDepositAmount(int value) {
      
      depositAmount_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 depositAmount = 17;</code>
     */
    public Builder clearDepositAmount() {
      
      depositAmount_ = 0;
      onChanged();
      return this;
    }

    private int depositBalance_ ;
    /**
     * <code>int32 depositBalance = 18;</code>
     */
    public int getDepositBalance() {
      return depositBalance_;
    }
    /**
     * <code>int32 depositBalance = 18;</code>
     */
    public Builder setDepositBalance(int value) {
      
      depositBalance_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 depositBalance = 18;</code>
     */
    public Builder clearDepositBalance() {
      
      depositBalance_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.third.taihe.GetInPatInfoResponse)
  }

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

  public static com.ywt.gapi.third.taihe.GetInPatInfoResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.third.taihe.GetInPatInfoResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

