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

package com.ywt.gapi.user;

/**
 * <pre>
 *病历详情
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.user.MedicalRecordsDetail}
 */
public  final class MedicalRecordsDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.MedicalRecordsDetail)
    MedicalRecordsDetailOrBuilder {
  // Use MedicalRecordsDetail.newBuilder() to construct.
  private MedicalRecordsDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MedicalRecordsDetail() {
    recordId_ = 0;
    typeName_ = "";
    desc_ = "";
    imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    doctorId_ = 0;
    patientId_ = 0;
    createTime_ = 0L;
    mobile_ = "";
    age_ = 0;
    sex_ = 0;
    patientName_ = "";
    userId_ = 0;
    admTime_ = "";
    hospitalName_ = "";
    doctorName_ = "";
    selfReport_ = "";
    phyExam_ = "";
    diagnose_ = "";
    suggestion_ = "";
    advice_ = "";
    laboratoryReport_ = java.util.Collections.emptyList();
    inspectionReport_ = java.util.Collections.emptyList();
    idNo_ = "";
  }

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

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

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

            desc_ = s;
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              imageUrl_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            imageUrl_.add(s);
            break;
          }
          case 40: {

            doctorId_ = input.readInt32();
            break;
          }
          case 48: {

            patientId_ = input.readInt32();
            break;
          }
          case 56: {

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

            mobile_ = s;
            break;
          }
          case 72: {

            age_ = input.readInt32();
            break;
          }
          case 80: {

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

            patientName_ = s;
            break;
          }
          case 96: {

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

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

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

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

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

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

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

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

            advice_ = s;
            break;
          }
          case 170: {
            if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
              laboratoryReport_ = new java.util.ArrayList<com.ywt.gapi.user.LaboratoryReport>();
              mutable_bitField0_ |= 0x00100000;
            }
            laboratoryReport_.add(
                input.readMessage(com.ywt.gapi.user.LaboratoryReport.parser(), extensionRegistry));
            break;
          }
          case 178: {
            if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
              inspectionReport_ = new java.util.ArrayList<com.ywt.gapi.user.InspectionReport>();
              mutable_bitField0_ |= 0x00200000;
            }
            inspectionReport_.add(
                input.readMessage(com.ywt.gapi.user.InspectionReport.parser(), extensionRegistry));
            break;
          }
          case 186: {
            java.lang.String s = input.readStringRequireUtf8();

            idNo_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        imageUrl_ = imageUrl_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
        laboratoryReport_ = java.util.Collections.unmodifiableList(laboratoryReport_);
      }
      if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
        inspectionReport_ = java.util.Collections.unmodifiableList(inspectionReport_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDetail_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.user.MedicalRecordsDetail.class, com.ywt.gapi.user.MedicalRecordsDetail.Builder.class);
  }

  private int bitField0_;
  public static final int RECORDID_FIELD_NUMBER = 1;
  private int recordId_;
  /**
   * <code>int32 recordId = 1;</code>
   */
  public int getRecordId() {
    return recordId_;
  }

  public static final int TYPENAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object typeName_;
  /**
   * <code>string typeName = 2;</code>
   */
  public java.lang.String getTypeName() {
    java.lang.Object ref = typeName_;
    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();
      typeName_ = s;
      return s;
    }
  }
  /**
   * <code>string typeName = 2;</code>
   */
  public com.google.protobuf.ByteString
      getTypeNameBytes() {
    java.lang.Object ref = typeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      typeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESC_FIELD_NUMBER = 3;
  private volatile java.lang.Object desc_;
  /**
   * <code>string desc = 3;</code>
   */
  public java.lang.String getDesc() {
    java.lang.Object ref = desc_;
    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();
      desc_ = s;
      return s;
    }
  }
  /**
   * <code>string desc = 3;</code>
   */
  public com.google.protobuf.ByteString
      getDescBytes() {
    java.lang.Object ref = desc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      desc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IMAGEURL_FIELD_NUMBER = 4;
  private com.google.protobuf.LazyStringList imageUrl_;
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getImageUrlList() {
    return imageUrl_;
  }
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   */
  public int getImageUrlCount() {
    return imageUrl_.size();
  }
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   */
  public java.lang.String getImageUrl(int index) {
    return imageUrl_.get(index);
  }
  /**
   * <pre>
   *图片
   * </pre>
   *
   * <code>repeated string imageUrl = 4;</code>
   */
  public com.google.protobuf.ByteString
      getImageUrlBytes(int index) {
    return imageUrl_.getByteString(index);
  }

  public static final int DOCTORID_FIELD_NUMBER = 5;
  private int doctorId_;
  /**
   * <code>int32 doctorId = 5;</code>
   */
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int PATIENTID_FIELD_NUMBER = 6;
  private int patientId_;
  /**
   * <code>int32 patientId = 6;</code>
   */
  public int getPatientId() {
    return patientId_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 7;
  private long createTime_;
  /**
   * <code>int64 createTime = 7;</code>
   */
  public long getCreateTime() {
    return createTime_;
  }

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

  public static final int AGE_FIELD_NUMBER = 9;
  private int age_;
  /**
   * <code>int32 age = 9;</code>
   */
  public int getAge() {
    return age_;
  }

  public static final int SEX_FIELD_NUMBER = 10;
  private int sex_;
  /**
   * <code>int32 sex = 10;</code>
   */
  public int getSex() {
    return sex_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 11;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 11;</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;
    }
  }
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 11;</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 USERID_FIELD_NUMBER = 12;
  private int userId_;
  /**
   * <code>int32 userId = 12;</code>
   */
  public int getUserId() {
    return userId_;
  }

  public static final int ADMTIME_FIELD_NUMBER = 13;
  private volatile java.lang.Object admTime_;
  /**
   * <pre>
   *患者入院日期
   * </pre>
   *
   * <code>string admTime = 13;</code>
   */
  public java.lang.String getAdmTime() {
    java.lang.Object ref = admTime_;
    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();
      admTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者入院日期
   * </pre>
   *
   * <code>string admTime = 13;</code>
   */
  public com.google.protobuf.ByteString
      getAdmTimeBytes() {
    java.lang.Object ref = admTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int HOSPITALNAME_FIELD_NUMBER = 14;
  private volatile java.lang.Object hospitalName_;
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hospitalName = 14;</code>
   */
  public java.lang.String getHospitalName() {
    java.lang.Object ref = hospitalName_;
    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();
      hospitalName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医院名称
   * </pre>
   *
   * <code>string hospitalName = 14;</code>
   */
  public com.google.protobuf.ByteString
      getHospitalNameBytes() {
    java.lang.Object ref = hospitalName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      hospitalName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 15;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *医生名字
   * </pre>
   *
   * <code>string doctorName = 15;</code>
   */
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    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();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生名字
   * </pre>
   *
   * <code>string doctorName = 15;</code>
   */
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SELFREPORT_FIELD_NUMBER = 16;
  private volatile java.lang.Object selfReport_;
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string selfReport = 16;</code>
   */
  public java.lang.String getSelfReport() {
    java.lang.Object ref = selfReport_;
    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();
      selfReport_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string selfReport = 16;</code>
   */
  public com.google.protobuf.ByteString
      getSelfReportBytes() {
    java.lang.Object ref = selfReport_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      selfReport_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PHYEXAM_FIELD_NUMBER = 17;
  private volatile java.lang.Object phyExam_;
  /**
   * <pre>
   *体格检查
   * </pre>
   *
   * <code>string phyExam = 17;</code>
   */
  public java.lang.String getPhyExam() {
    java.lang.Object ref = phyExam_;
    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();
      phyExam_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *体格检查
   * </pre>
   *
   * <code>string phyExam = 17;</code>
   */
  public com.google.protobuf.ByteString
      getPhyExamBytes() {
    java.lang.Object ref = phyExam_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      phyExam_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSE_FIELD_NUMBER = 18;
  private volatile java.lang.Object diagnose_;
  /**
   * <pre>
   *诊断结果
   * </pre>
   *
   * <code>string diagnose = 18;</code>
   */
  public java.lang.String getDiagnose() {
    java.lang.Object ref = diagnose_;
    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();
      diagnose_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊断结果
   * </pre>
   *
   * <code>string diagnose = 18;</code>
   */
  public com.google.protobuf.ByteString
      getDiagnoseBytes() {
    java.lang.Object ref = diagnose_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnose_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SUGGESTION_FIELD_NUMBER = 19;
  private volatile java.lang.Object suggestion_;
  /**
   * <pre>
   *意见
   * </pre>
   *
   * <code>string suggestion = 19;</code>
   */
  public java.lang.String getSuggestion() {
    java.lang.Object ref = suggestion_;
    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();
      suggestion_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *意见
   * </pre>
   *
   * <code>string suggestion = 19;</code>
   */
  public com.google.protobuf.ByteString
      getSuggestionBytes() {
    java.lang.Object ref = suggestion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      suggestion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADVICE_FIELD_NUMBER = 20;
  private volatile java.lang.Object advice_;
  /**
   * <pre>
   *门急诊医嘱
   * </pre>
   *
   * <code>string advice = 20;</code>
   */
  public java.lang.String getAdvice() {
    java.lang.Object ref = advice_;
    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();
      advice_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门急诊医嘱
   * </pre>
   *
   * <code>string advice = 20;</code>
   */
  public com.google.protobuf.ByteString
      getAdviceBytes() {
    java.lang.Object ref = advice_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      advice_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LABORATORYREPORT_FIELD_NUMBER = 21;
  private java.util.List<com.ywt.gapi.user.LaboratoryReport> laboratoryReport_;
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
   */
  public java.util.List<com.ywt.gapi.user.LaboratoryReport> getLaboratoryReportList() {
    return laboratoryReport_;
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.LaboratoryReportOrBuilder> 
      getLaboratoryReportOrBuilderList() {
    return laboratoryReport_;
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
   */
  public int getLaboratoryReportCount() {
    return laboratoryReport_.size();
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
   */
  public com.ywt.gapi.user.LaboratoryReport getLaboratoryReport(int index) {
    return laboratoryReport_.get(index);
  }
  /**
   * <pre>
   *化验报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
   */
  public com.ywt.gapi.user.LaboratoryReportOrBuilder getLaboratoryReportOrBuilder(
      int index) {
    return laboratoryReport_.get(index);
  }

  public static final int INSPECTIONREPORT_FIELD_NUMBER = 22;
  private java.util.List<com.ywt.gapi.user.InspectionReport> inspectionReport_;
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
   */
  public java.util.List<com.ywt.gapi.user.InspectionReport> getInspectionReportList() {
    return inspectionReport_;
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
   */
  public java.util.List<? extends com.ywt.gapi.user.InspectionReportOrBuilder> 
      getInspectionReportOrBuilderList() {
    return inspectionReport_;
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
   */
  public int getInspectionReportCount() {
    return inspectionReport_.size();
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
   */
  public com.ywt.gapi.user.InspectionReport getInspectionReport(int index) {
    return inspectionReport_.get(index);
  }
  /**
   * <pre>
   *检查报告
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
   */
  public com.ywt.gapi.user.InspectionReportOrBuilder getInspectionReportOrBuilder(
      int index) {
    return inspectionReport_.get(index);
  }

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

  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 (recordId_ != 0) {
      output.writeInt32(1, recordId_);
    }
    if (!getTypeNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeName_);
    }
    if (!getDescBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, desc_);
    }
    for (int i = 0; i < imageUrl_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, imageUrl_.getRaw(i));
    }
    if (doctorId_ != 0) {
      output.writeInt32(5, doctorId_);
    }
    if (patientId_ != 0) {
      output.writeInt32(6, patientId_);
    }
    if (createTime_ != 0L) {
      output.writeInt64(7, createTime_);
    }
    if (!getMobileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mobile_);
    }
    if (age_ != 0) {
      output.writeInt32(9, age_);
    }
    if (sex_ != 0) {
      output.writeInt32(10, sex_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, patientName_);
    }
    if (userId_ != 0) {
      output.writeInt32(12, userId_);
    }
    if (!getAdmTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, admTime_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, hospitalName_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, doctorName_);
    }
    if (!getSelfReportBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, selfReport_);
    }
    if (!getPhyExamBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 17, phyExam_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, diagnose_);
    }
    if (!getSuggestionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 19, suggestion_);
    }
    if (!getAdviceBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 20, advice_);
    }
    for (int i = 0; i < laboratoryReport_.size(); i++) {
      output.writeMessage(21, laboratoryReport_.get(i));
    }
    for (int i = 0; i < inspectionReport_.size(); i++) {
      output.writeMessage(22, inspectionReport_.get(i));
    }
    if (!getIdNoBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, idNo_);
    }
  }

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

    size = 0;
    if (recordId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, recordId_);
    }
    if (!getTypeNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeName_);
    }
    if (!getDescBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, desc_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < imageUrl_.size(); i++) {
        dataSize += computeStringSizeNoTag(imageUrl_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getImageUrlList().size();
    }
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, doctorId_);
    }
    if (patientId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, patientId_);
    }
    if (createTime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, createTime_);
    }
    if (!getMobileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mobile_);
    }
    if (age_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, age_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, sex_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, patientName_);
    }
    if (userId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, userId_);
    }
    if (!getAdmTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, admTime_);
    }
    if (!getHospitalNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, hospitalName_);
    }
    if (!getDoctorNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, doctorName_);
    }
    if (!getSelfReportBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, selfReport_);
    }
    if (!getPhyExamBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, phyExam_);
    }
    if (!getDiagnoseBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, diagnose_);
    }
    if (!getSuggestionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, suggestion_);
    }
    if (!getAdviceBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, advice_);
    }
    for (int i = 0; i < laboratoryReport_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(21, laboratoryReport_.get(i));
    }
    for (int i = 0; i < inspectionReport_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(22, inspectionReport_.get(i));
    }
    if (!getIdNoBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, idNo_);
    }
    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.user.MedicalRecordsDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.MedicalRecordsDetail other = (com.ywt.gapi.user.MedicalRecordsDetail) obj;

    boolean result = true;
    result = result && (getRecordId()
        == other.getRecordId());
    result = result && getTypeName()
        .equals(other.getTypeName());
    result = result && getDesc()
        .equals(other.getDesc());
    result = result && getImageUrlList()
        .equals(other.getImageUrlList());
    result = result && (getDoctorId()
        == other.getDoctorId());
    result = result && (getPatientId()
        == other.getPatientId());
    result = result && (getCreateTime()
        == other.getCreateTime());
    result = result && getMobile()
        .equals(other.getMobile());
    result = result && (getAge()
        == other.getAge());
    result = result && (getSex()
        == other.getSex());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && (getUserId()
        == other.getUserId());
    result = result && getAdmTime()
        .equals(other.getAdmTime());
    result = result && getHospitalName()
        .equals(other.getHospitalName());
    result = result && getDoctorName()
        .equals(other.getDoctorName());
    result = result && getSelfReport()
        .equals(other.getSelfReport());
    result = result && getPhyExam()
        .equals(other.getPhyExam());
    result = result && getDiagnose()
        .equals(other.getDiagnose());
    result = result && getSuggestion()
        .equals(other.getSuggestion());
    result = result && getAdvice()
        .equals(other.getAdvice());
    result = result && getLaboratoryReportList()
        .equals(other.getLaboratoryReportList());
    result = result && getInspectionReportList()
        .equals(other.getInspectionReportList());
    result = result && getIdNo()
        .equals(other.getIdNo());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + RECORDID_FIELD_NUMBER;
    hash = (53 * hash) + getRecordId();
    hash = (37 * hash) + TYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getTypeName().hashCode();
    hash = (37 * hash) + DESC_FIELD_NUMBER;
    hash = (53 * hash) + getDesc().hashCode();
    if (getImageUrlCount() > 0) {
      hash = (37 * hash) + IMAGEURL_FIELD_NUMBER;
      hash = (53 * hash) + getImageUrlList().hashCode();
    }
    hash = (37 * hash) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientId();
    hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCreateTime());
    hash = (37 * hash) + MOBILE_FIELD_NUMBER;
    hash = (53 * hash) + getMobile().hashCode();
    hash = (37 * hash) + AGE_FIELD_NUMBER;
    hash = (53 * hash) + getAge();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + USERID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId();
    hash = (37 * hash) + ADMTIME_FIELD_NUMBER;
    hash = (53 * hash) + getAdmTime().hashCode();
    hash = (37 * hash) + HOSPITALNAME_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalName().hashCode();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + SELFREPORT_FIELD_NUMBER;
    hash = (53 * hash) + getSelfReport().hashCode();
    hash = (37 * hash) + PHYEXAM_FIELD_NUMBER;
    hash = (53 * hash) + getPhyExam().hashCode();
    hash = (37 * hash) + DIAGNOSE_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnose().hashCode();
    hash = (37 * hash) + SUGGESTION_FIELD_NUMBER;
    hash = (53 * hash) + getSuggestion().hashCode();
    hash = (37 * hash) + ADVICE_FIELD_NUMBER;
    hash = (53 * hash) + getAdvice().hashCode();
    if (getLaboratoryReportCount() > 0) {
      hash = (37 * hash) + LABORATORYREPORT_FIELD_NUMBER;
      hash = (53 * hash) + getLaboratoryReportList().hashCode();
    }
    if (getInspectionReportCount() > 0) {
      hash = (37 * hash) + INSPECTIONREPORT_FIELD_NUMBER;
      hash = (53 * hash) + getInspectionReportList().hashCode();
    }
    hash = (37 * hash) + IDNO_FIELD_NUMBER;
    hash = (53 * hash) + getIdNo().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.user.MedicalRecordsDetail parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail 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.user.MedicalRecordsDetail parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail 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.user.MedicalRecordsDetail parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail 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.user.MedicalRecordsDetail parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail 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.user.MedicalRecordsDetail parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.user.MedicalRecordsDetail 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.user.MedicalRecordsDetail prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *病历详情
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.user.MedicalRecordsDetail}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.user.MedicalRecordsDetail)
      com.ywt.gapi.user.MedicalRecordsDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDetail_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.user.MedicalRecordsDetail.class, com.ywt.gapi.user.MedicalRecordsDetail.Builder.class);
    }

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

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

      typeName_ = "";

      desc_ = "";

      imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      doctorId_ = 0;

      patientId_ = 0;

      createTime_ = 0L;

      mobile_ = "";

      age_ = 0;

      sex_ = 0;

      patientName_ = "";

      userId_ = 0;

      admTime_ = "";

      hospitalName_ = "";

      doctorName_ = "";

      selfReport_ = "";

      phyExam_ = "";

      diagnose_ = "";

      suggestion_ = "";

      advice_ = "";

      if (laboratoryReportBuilder_ == null) {
        laboratoryReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00100000);
      } else {
        laboratoryReportBuilder_.clear();
      }
      if (inspectionReportBuilder_ == null) {
        inspectionReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00200000);
      } else {
        inspectionReportBuilder_.clear();
      }
      idNo_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_MedicalRecordsDetail_descriptor;
    }

    public com.ywt.gapi.user.MedicalRecordsDetail getDefaultInstanceForType() {
      return com.ywt.gapi.user.MedicalRecordsDetail.getDefaultInstance();
    }

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

    public com.ywt.gapi.user.MedicalRecordsDetail buildPartial() {
      com.ywt.gapi.user.MedicalRecordsDetail result = new com.ywt.gapi.user.MedicalRecordsDetail(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.recordId_ = recordId_;
      result.typeName_ = typeName_;
      result.desc_ = desc_;
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        imageUrl_ = imageUrl_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.imageUrl_ = imageUrl_;
      result.doctorId_ = doctorId_;
      result.patientId_ = patientId_;
      result.createTime_ = createTime_;
      result.mobile_ = mobile_;
      result.age_ = age_;
      result.sex_ = sex_;
      result.patientName_ = patientName_;
      result.userId_ = userId_;
      result.admTime_ = admTime_;
      result.hospitalName_ = hospitalName_;
      result.doctorName_ = doctorName_;
      result.selfReport_ = selfReport_;
      result.phyExam_ = phyExam_;
      result.diagnose_ = diagnose_;
      result.suggestion_ = suggestion_;
      result.advice_ = advice_;
      if (laboratoryReportBuilder_ == null) {
        if (((bitField0_ & 0x00100000) == 0x00100000)) {
          laboratoryReport_ = java.util.Collections.unmodifiableList(laboratoryReport_);
          bitField0_ = (bitField0_ & ~0x00100000);
        }
        result.laboratoryReport_ = laboratoryReport_;
      } else {
        result.laboratoryReport_ = laboratoryReportBuilder_.build();
      }
      if (inspectionReportBuilder_ == null) {
        if (((bitField0_ & 0x00200000) == 0x00200000)) {
          inspectionReport_ = java.util.Collections.unmodifiableList(inspectionReport_);
          bitField0_ = (bitField0_ & ~0x00200000);
        }
        result.inspectionReport_ = inspectionReport_;
      } else {
        result.inspectionReport_ = inspectionReportBuilder_.build();
      }
      result.idNo_ = idNo_;
      result.bitField0_ = to_bitField0_;
      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.user.MedicalRecordsDetail) {
        return mergeFrom((com.ywt.gapi.user.MedicalRecordsDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.MedicalRecordsDetail other) {
      if (other == com.ywt.gapi.user.MedicalRecordsDetail.getDefaultInstance()) return this;
      if (other.getRecordId() != 0) {
        setRecordId(other.getRecordId());
      }
      if (!other.getTypeName().isEmpty()) {
        typeName_ = other.typeName_;
        onChanged();
      }
      if (!other.getDesc().isEmpty()) {
        desc_ = other.desc_;
        onChanged();
      }
      if (!other.imageUrl_.isEmpty()) {
        if (imageUrl_.isEmpty()) {
          imageUrl_ = other.imageUrl_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureImageUrlIsMutable();
          imageUrl_.addAll(other.imageUrl_);
        }
        onChanged();
      }
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (other.getPatientId() != 0) {
        setPatientId(other.getPatientId());
      }
      if (other.getCreateTime() != 0L) {
        setCreateTime(other.getCreateTime());
      }
      if (!other.getMobile().isEmpty()) {
        mobile_ = other.mobile_;
        onChanged();
      }
      if (other.getAge() != 0) {
        setAge(other.getAge());
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (other.getUserId() != 0) {
        setUserId(other.getUserId());
      }
      if (!other.getAdmTime().isEmpty()) {
        admTime_ = other.admTime_;
        onChanged();
      }
      if (!other.getHospitalName().isEmpty()) {
        hospitalName_ = other.hospitalName_;
        onChanged();
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getSelfReport().isEmpty()) {
        selfReport_ = other.selfReport_;
        onChanged();
      }
      if (!other.getPhyExam().isEmpty()) {
        phyExam_ = other.phyExam_;
        onChanged();
      }
      if (!other.getDiagnose().isEmpty()) {
        diagnose_ = other.diagnose_;
        onChanged();
      }
      if (!other.getSuggestion().isEmpty()) {
        suggestion_ = other.suggestion_;
        onChanged();
      }
      if (!other.getAdvice().isEmpty()) {
        advice_ = other.advice_;
        onChanged();
      }
      if (laboratoryReportBuilder_ == null) {
        if (!other.laboratoryReport_.isEmpty()) {
          if (laboratoryReport_.isEmpty()) {
            laboratoryReport_ = other.laboratoryReport_;
            bitField0_ = (bitField0_ & ~0x00100000);
          } else {
            ensureLaboratoryReportIsMutable();
            laboratoryReport_.addAll(other.laboratoryReport_);
          }
          onChanged();
        }
      } else {
        if (!other.laboratoryReport_.isEmpty()) {
          if (laboratoryReportBuilder_.isEmpty()) {
            laboratoryReportBuilder_.dispose();
            laboratoryReportBuilder_ = null;
            laboratoryReport_ = other.laboratoryReport_;
            bitField0_ = (bitField0_ & ~0x00100000);
            laboratoryReportBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getLaboratoryReportFieldBuilder() : null;
          } else {
            laboratoryReportBuilder_.addAllMessages(other.laboratoryReport_);
          }
        }
      }
      if (inspectionReportBuilder_ == null) {
        if (!other.inspectionReport_.isEmpty()) {
          if (inspectionReport_.isEmpty()) {
            inspectionReport_ = other.inspectionReport_;
            bitField0_ = (bitField0_ & ~0x00200000);
          } else {
            ensureInspectionReportIsMutable();
            inspectionReport_.addAll(other.inspectionReport_);
          }
          onChanged();
        }
      } else {
        if (!other.inspectionReport_.isEmpty()) {
          if (inspectionReportBuilder_.isEmpty()) {
            inspectionReportBuilder_.dispose();
            inspectionReportBuilder_ = null;
            inspectionReport_ = other.inspectionReport_;
            bitField0_ = (bitField0_ & ~0x00200000);
            inspectionReportBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInspectionReportFieldBuilder() : null;
          } else {
            inspectionReportBuilder_.addAllMessages(other.inspectionReport_);
          }
        }
      }
      if (!other.getIdNo().isEmpty()) {
        idNo_ = other.idNo_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private int recordId_ ;
    /**
     * <code>int32 recordId = 1;</code>
     */
    public int getRecordId() {
      return recordId_;
    }
    /**
     * <code>int32 recordId = 1;</code>
     */
    public Builder setRecordId(int value) {
      
      recordId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 recordId = 1;</code>
     */
    public Builder clearRecordId() {
      
      recordId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object typeName_ = "";
    /**
     * <code>string typeName = 2;</code>
     */
    public java.lang.String getTypeName() {
      java.lang.Object ref = typeName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        typeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string typeName = 2;</code>
     */
    public com.google.protobuf.ByteString
        getTypeNameBytes() {
      java.lang.Object ref = typeName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        typeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string typeName = 2;</code>
     */
    public Builder setTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      typeName_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string typeName = 2;</code>
     */
    public Builder clearTypeName() {
      
      typeName_ = getDefaultInstance().getTypeName();
      onChanged();
      return this;
    }
    /**
     * <code>string typeName = 2;</code>
     */
    public Builder setTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      typeName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object desc_ = "";
    /**
     * <code>string desc = 3;</code>
     */
    public java.lang.String getDesc() {
      java.lang.Object ref = desc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        desc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string desc = 3;</code>
     */
    public com.google.protobuf.ByteString
        getDescBytes() {
      java.lang.Object ref = desc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        desc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string desc = 3;</code>
     */
    public Builder setDesc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      desc_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string desc = 3;</code>
     */
    public Builder clearDesc() {
      
      desc_ = getDefaultInstance().getDesc();
      onChanged();
      return this;
    }
    /**
     * <code>string desc = 3;</code>
     */
    public Builder setDescBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      desc_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureImageUrlIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        imageUrl_ = new com.google.protobuf.LazyStringArrayList(imageUrl_);
        bitField0_ |= 0x00000008;
       }
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getImageUrlList() {
      return imageUrl_.getUnmodifiableView();
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public int getImageUrlCount() {
      return imageUrl_.size();
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public java.lang.String getImageUrl(int index) {
      return imageUrl_.get(index);
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public com.google.protobuf.ByteString
        getImageUrlBytes(int index) {
      return imageUrl_.getByteString(index);
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public Builder setImageUrl(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureImageUrlIsMutable();
      imageUrl_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public Builder addImageUrl(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureImageUrlIsMutable();
      imageUrl_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public Builder addAllImageUrl(
        java.lang.Iterable<java.lang.String> values) {
      ensureImageUrlIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, imageUrl_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public Builder clearImageUrl() {
      imageUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <pre>
     *图片
     * </pre>
     *
     * <code>repeated string imageUrl = 4;</code>
     */
    public Builder addImageUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureImageUrlIsMutable();
      imageUrl_.add(value);
      onChanged();
      return this;
    }

    private int doctorId_ ;
    /**
     * <code>int32 doctorId = 5;</code>
     */
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <code>int32 doctorId = 5;</code>
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 doctorId = 5;</code>
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

    private int patientId_ ;
    /**
     * <code>int32 patientId = 6;</code>
     */
    public int getPatientId() {
      return patientId_;
    }
    /**
     * <code>int32 patientId = 6;</code>
     */
    public Builder setPatientId(int value) {
      
      patientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 patientId = 6;</code>
     */
    public Builder clearPatientId() {
      
      patientId_ = 0;
      onChanged();
      return this;
    }

    private long createTime_ ;
    /**
     * <code>int64 createTime = 7;</code>
     */
    public long getCreateTime() {
      return createTime_;
    }
    /**
     * <code>int64 createTime = 7;</code>
     */
    public Builder setCreateTime(long value) {
      
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int64 createTime = 7;</code>
     */
    public Builder clearCreateTime() {
      
      createTime_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object mobile_ = "";
    /**
     * <code>string mobile = 8;</code>
     */
    public java.lang.String getMobile() {
      java.lang.Object ref = mobile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mobile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string mobile = 8;</code>
     */
    public com.google.protobuf.ByteString
        getMobileBytes() {
      java.lang.Object ref = mobile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mobile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string mobile = 8;</code>
     */
    public Builder setMobile(
        java.lang.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 age_ ;
    /**
     * <code>int32 age = 9;</code>
     */
    public int getAge() {
      return age_;
    }
    /**
     * <code>int32 age = 9;</code>
     */
    public Builder setAge(int value) {
      
      age_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 age = 9;</code>
     */
    public Builder clearAge() {
      
      age_ = 0;
      onChanged();
      return this;
    }

    private int sex_ ;
    /**
     * <code>int32 sex = 10;</code>
     */
    public int getSex() {
      return sex_;
    }
    /**
     * <code>int32 sex = 10;</code>
     */
    public Builder setSex(int value) {
      
      sex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 sex = 10;</code>
     */
    public Builder clearSex() {
      
      sex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object patientName_ = "";
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 11;</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;
      }
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 11;</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;
      }
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 11;</code>
     */
    public Builder setPatientName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 11;</code>
     */
    public Builder clearPatientName() {
      
      patientName_ = getDefaultInstance().getPatientName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者姓名
     * </pre>
     *
     * <code>string patientName = 11;</code>
     */
    public Builder setPatientNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientName_ = value;
      onChanged();
      return this;
    }

    private int userId_ ;
    /**
     * <code>int32 userId = 12;</code>
     */
    public int getUserId() {
      return userId_;
    }
    /**
     * <code>int32 userId = 12;</code>
     */
    public Builder setUserId(int value) {
      
      userId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 userId = 12;</code>
     */
    public Builder clearUserId() {
      
      userId_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object admTime_ = "";
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     */
    public java.lang.String getAdmTime() {
      java.lang.Object ref = admTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     */
    public com.google.protobuf.ByteString
        getAdmTimeBytes() {
      java.lang.Object ref = admTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     */
    public Builder setAdmTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     */
    public Builder clearAdmTime() {
      
      admTime_ = getDefaultInstance().getAdmTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admTime = 13;</code>
     */
    public Builder setAdmTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object hospitalName_ = "";
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 14;</code>
     */
    public java.lang.String getHospitalName() {
      java.lang.Object ref = hospitalName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        hospitalName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 14;</code>
     */
    public com.google.protobuf.ByteString
        getHospitalNameBytes() {
      java.lang.Object ref = hospitalName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        hospitalName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 14;</code>
     */
    public Builder setHospitalName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      hospitalName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 14;</code>
     */
    public Builder clearHospitalName() {
      
      hospitalName_ = getDefaultInstance().getHospitalName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医院名称
     * </pre>
     *
     * <code>string hospitalName = 14;</code>
     */
    public Builder setHospitalNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      hospitalName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorName_ = "";
    /**
     * <pre>
     *医生名字
     * </pre>
     *
     * <code>string doctorName = 15;</code>
     */
    public java.lang.String getDoctorName() {
      java.lang.Object ref = doctorName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生名字
     * </pre>
     *
     * <code>string doctorName = 15;</code>
     */
    public com.google.protobuf.ByteString
        getDoctorNameBytes() {
      java.lang.Object ref = doctorName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生名字
     * </pre>
     *
     * <code>string doctorName = 15;</code>
     */
    public Builder setDoctorName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名字
     * </pre>
     *
     * <code>string doctorName = 15;</code>
     */
    public Builder clearDoctorName() {
      
      doctorName_ = getDefaultInstance().getDoctorName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生名字
     * </pre>
     *
     * <code>string doctorName = 15;</code>
     */
    public Builder setDoctorNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object selfReport_ = "";
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     */
    public java.lang.String getSelfReport() {
      java.lang.Object ref = selfReport_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        selfReport_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     */
    public com.google.protobuf.ByteString
        getSelfReportBytes() {
      java.lang.Object ref = selfReport_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selfReport_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     */
    public Builder setSelfReport(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      selfReport_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     */
    public Builder clearSelfReport() {
      
      selfReport_ = getDefaultInstance().getSelfReport();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 16;</code>
     */
    public Builder setSelfReportBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      selfReport_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object phyExam_ = "";
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     */
    public java.lang.String getPhyExam() {
      java.lang.Object ref = phyExam_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        phyExam_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     */
    public com.google.protobuf.ByteString
        getPhyExamBytes() {
      java.lang.Object ref = phyExam_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        phyExam_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     */
    public Builder setPhyExam(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      phyExam_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     */
    public Builder clearPhyExam() {
      
      phyExam_ = getDefaultInstance().getPhyExam();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 17;</code>
     */
    public Builder setPhyExamBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      phyExam_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnose_ = "";
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     */
    public java.lang.String getDiagnose() {
      java.lang.Object ref = diagnose_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnose_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     */
    public com.google.protobuf.ByteString
        getDiagnoseBytes() {
      java.lang.Object ref = diagnose_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnose_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断结果
     * </pre>
     *
     * <code>string diagnose = 18;</code>
     */
    public Builder setDiagnoseBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnose_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object suggestion_ = "";
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     */
    public java.lang.String getSuggestion() {
      java.lang.Object ref = suggestion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        suggestion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     */
    public com.google.protobuf.ByteString
        getSuggestionBytes() {
      java.lang.Object ref = suggestion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        suggestion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     */
    public Builder setSuggestion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      suggestion_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     */
    public Builder clearSuggestion() {
      
      suggestion_ = getDefaultInstance().getSuggestion();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggestion = 19;</code>
     */
    public Builder setSuggestionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      suggestion_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object advice_ = "";
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     */
    public java.lang.String getAdvice() {
      java.lang.Object ref = advice_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        advice_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     */
    public com.google.protobuf.ByteString
        getAdviceBytes() {
      java.lang.Object ref = advice_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        advice_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     */
    public Builder setAdvice(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      advice_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     */
    public Builder clearAdvice() {
      
      advice_ = getDefaultInstance().getAdvice();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string advice = 20;</code>
     */
    public Builder setAdviceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      advice_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.user.LaboratoryReport> laboratoryReport_ =
      java.util.Collections.emptyList();
    private void ensureLaboratoryReportIsMutable() {
      if (!((bitField0_ & 0x00100000) == 0x00100000)) {
        laboratoryReport_ = new java.util.ArrayList<com.ywt.gapi.user.LaboratoryReport>(laboratoryReport_);
        bitField0_ |= 0x00100000;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.LaboratoryReport, com.ywt.gapi.user.LaboratoryReport.Builder, com.ywt.gapi.user.LaboratoryReportOrBuilder> laboratoryReportBuilder_;

    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public java.util.List<com.ywt.gapi.user.LaboratoryReport> getLaboratoryReportList() {
      if (laboratoryReportBuilder_ == null) {
        return java.util.Collections.unmodifiableList(laboratoryReport_);
      } else {
        return laboratoryReportBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public int getLaboratoryReportCount() {
      if (laboratoryReportBuilder_ == null) {
        return laboratoryReport_.size();
      } else {
        return laboratoryReportBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.user.LaboratoryReport getLaboratoryReport(int index) {
      if (laboratoryReportBuilder_ == null) {
        return laboratoryReport_.get(index);
      } else {
        return laboratoryReportBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder setLaboratoryReport(
        int index, com.ywt.gapi.user.LaboratoryReport value) {
      if (laboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.set(index, value);
        onChanged();
      } else {
        laboratoryReportBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder setLaboratoryReport(
        int index, com.ywt.gapi.user.LaboratoryReport.Builder builderForValue) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.set(index, builderForValue.build());
        onChanged();
      } else {
        laboratoryReportBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(com.ywt.gapi.user.LaboratoryReport value) {
      if (laboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(value);
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(
        int index, com.ywt.gapi.user.LaboratoryReport value) {
      if (laboratoryReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(index, value);
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(
        com.ywt.gapi.user.LaboratoryReport.Builder builderForValue) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(builderForValue.build());
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addLaboratoryReport(
        int index, com.ywt.gapi.user.LaboratoryReport.Builder builderForValue) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.add(index, builderForValue.build());
        onChanged();
      } else {
        laboratoryReportBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder addAllLaboratoryReport(
        java.lang.Iterable<? extends com.ywt.gapi.user.LaboratoryReport> values) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, laboratoryReport_);
        onChanged();
      } else {
        laboratoryReportBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder clearLaboratoryReport() {
      if (laboratoryReportBuilder_ == null) {
        laboratoryReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00100000);
        onChanged();
      } else {
        laboratoryReportBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public Builder removeLaboratoryReport(int index) {
      if (laboratoryReportBuilder_ == null) {
        ensureLaboratoryReportIsMutable();
        laboratoryReport_.remove(index);
        onChanged();
      } else {
        laboratoryReportBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.user.LaboratoryReport.Builder getLaboratoryReportBuilder(
        int index) {
      return getLaboratoryReportFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.user.LaboratoryReportOrBuilder getLaboratoryReportOrBuilder(
        int index) {
      if (laboratoryReportBuilder_ == null) {
        return laboratoryReport_.get(index);  } else {
        return laboratoryReportBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.LaboratoryReportOrBuilder> 
         getLaboratoryReportOrBuilderList() {
      if (laboratoryReportBuilder_ != null) {
        return laboratoryReportBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(laboratoryReport_);
      }
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.user.LaboratoryReport.Builder addLaboratoryReportBuilder() {
      return getLaboratoryReportFieldBuilder().addBuilder(
          com.ywt.gapi.user.LaboratoryReport.getDefaultInstance());
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public com.ywt.gapi.user.LaboratoryReport.Builder addLaboratoryReportBuilder(
        int index) {
      return getLaboratoryReportFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.LaboratoryReport.getDefaultInstance());
    }
    /**
     * <pre>
     *化验报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.LaboratoryReport laboratoryReport = 21;</code>
     */
    public java.util.List<com.ywt.gapi.user.LaboratoryReport.Builder> 
         getLaboratoryReportBuilderList() {
      return getLaboratoryReportFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.LaboratoryReport, com.ywt.gapi.user.LaboratoryReport.Builder, com.ywt.gapi.user.LaboratoryReportOrBuilder> 
        getLaboratoryReportFieldBuilder() {
      if (laboratoryReportBuilder_ == null) {
        laboratoryReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.LaboratoryReport, com.ywt.gapi.user.LaboratoryReport.Builder, com.ywt.gapi.user.LaboratoryReportOrBuilder>(
                laboratoryReport_,
                ((bitField0_ & 0x00100000) == 0x00100000),
                getParentForChildren(),
                isClean());
        laboratoryReport_ = null;
      }
      return laboratoryReportBuilder_;
    }

    private java.util.List<com.ywt.gapi.user.InspectionReport> inspectionReport_ =
      java.util.Collections.emptyList();
    private void ensureInspectionReportIsMutable() {
      if (!((bitField0_ & 0x00200000) == 0x00200000)) {
        inspectionReport_ = new java.util.ArrayList<com.ywt.gapi.user.InspectionReport>(inspectionReport_);
        bitField0_ |= 0x00200000;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.InspectionReport, com.ywt.gapi.user.InspectionReport.Builder, com.ywt.gapi.user.InspectionReportOrBuilder> inspectionReportBuilder_;

    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public java.util.List<com.ywt.gapi.user.InspectionReport> getInspectionReportList() {
      if (inspectionReportBuilder_ == null) {
        return java.util.Collections.unmodifiableList(inspectionReport_);
      } else {
        return inspectionReportBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public int getInspectionReportCount() {
      if (inspectionReportBuilder_ == null) {
        return inspectionReport_.size();
      } else {
        return inspectionReportBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.user.InspectionReport getInspectionReport(int index) {
      if (inspectionReportBuilder_ == null) {
        return inspectionReport_.get(index);
      } else {
        return inspectionReportBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder setInspectionReport(
        int index, com.ywt.gapi.user.InspectionReport value) {
      if (inspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInspectionReportIsMutable();
        inspectionReport_.set(index, value);
        onChanged();
      } else {
        inspectionReportBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder setInspectionReport(
        int index, com.ywt.gapi.user.InspectionReport.Builder builderForValue) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.set(index, builderForValue.build());
        onChanged();
      } else {
        inspectionReportBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(com.ywt.gapi.user.InspectionReport value) {
      if (inspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInspectionReportIsMutable();
        inspectionReport_.add(value);
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(
        int index, com.ywt.gapi.user.InspectionReport value) {
      if (inspectionReportBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInspectionReportIsMutable();
        inspectionReport_.add(index, value);
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(
        com.ywt.gapi.user.InspectionReport.Builder builderForValue) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.add(builderForValue.build());
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addInspectionReport(
        int index, com.ywt.gapi.user.InspectionReport.Builder builderForValue) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.add(index, builderForValue.build());
        onChanged();
      } else {
        inspectionReportBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder addAllInspectionReport(
        java.lang.Iterable<? extends com.ywt.gapi.user.InspectionReport> values) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, inspectionReport_);
        onChanged();
      } else {
        inspectionReportBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder clearInspectionReport() {
      if (inspectionReportBuilder_ == null) {
        inspectionReport_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00200000);
        onChanged();
      } else {
        inspectionReportBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public Builder removeInspectionReport(int index) {
      if (inspectionReportBuilder_ == null) {
        ensureInspectionReportIsMutable();
        inspectionReport_.remove(index);
        onChanged();
      } else {
        inspectionReportBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.user.InspectionReport.Builder getInspectionReportBuilder(
        int index) {
      return getInspectionReportFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.user.InspectionReportOrBuilder getInspectionReportOrBuilder(
        int index) {
      if (inspectionReportBuilder_ == null) {
        return inspectionReport_.get(index);  } else {
        return inspectionReportBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public java.util.List<? extends com.ywt.gapi.user.InspectionReportOrBuilder> 
         getInspectionReportOrBuilderList() {
      if (inspectionReportBuilder_ != null) {
        return inspectionReportBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(inspectionReport_);
      }
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.user.InspectionReport.Builder addInspectionReportBuilder() {
      return getInspectionReportFieldBuilder().addBuilder(
          com.ywt.gapi.user.InspectionReport.getDefaultInstance());
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public com.ywt.gapi.user.InspectionReport.Builder addInspectionReportBuilder(
        int index) {
      return getInspectionReportFieldBuilder().addBuilder(
          index, com.ywt.gapi.user.InspectionReport.getDefaultInstance());
    }
    /**
     * <pre>
     *检查报告
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.user.InspectionReport inspectionReport = 22;</code>
     */
    public java.util.List<com.ywt.gapi.user.InspectionReport.Builder> 
         getInspectionReportBuilderList() {
      return getInspectionReportFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.user.InspectionReport, com.ywt.gapi.user.InspectionReport.Builder, com.ywt.gapi.user.InspectionReportOrBuilder> 
        getInspectionReportFieldBuilder() {
      if (inspectionReportBuilder_ == null) {
        inspectionReportBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.user.InspectionReport, com.ywt.gapi.user.InspectionReport.Builder, com.ywt.gapi.user.InspectionReportOrBuilder>(
                inspectionReport_,
                ((bitField0_ & 0x00200000) == 0x00200000),
                getParentForChildren(),
                isClean());
        inspectionReport_ = null;
      }
      return inspectionReportBuilder_;
    }

    private java.lang.Object idNo_ = "";
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idNo = 23;</code>
     */
    public java.lang.String getIdNo() {
      java.lang.Object ref = idNo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        idNo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idNo = 23;</code>
     */
    public com.google.protobuf.ByteString
        getIdNoBytes() {
      java.lang.Object ref = idNo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        idNo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idNo = 23;</code>
     */
    public Builder setIdNo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      idNo_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idNo = 23;</code>
     */
    public Builder clearIdNo() {
      
      idNo_ = getDefaultInstance().getIdNo();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *身份证号
     * </pre>
     *
     * <code>string idNo = 23;</code>
     */
    public Builder setIdNoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      idNo_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

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


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.user.MedicalRecordsDetail)
  }

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

  public static com.ywt.gapi.user.MedicalRecordsDetail getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ywt.gapi.user.MedicalRecordsDetail getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

