// 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.InspectionReport}
 */
public  final class InspectionReport extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.user.InspectionReport)
    InspectionReportOrBuilder {
  // Use InspectionReport.newBuilder() to construct.
  private InspectionReport(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private InspectionReport() {
    reportId_ = "";
    reportTitle_ = "";
    reportDate_ = 0L;
    status_ = 0;
    patientName_ = "";
    patientAge_ = "";
    sex_ = 0;
    clinicalDiagnosis_ = "";
    clinicSeq_ = "";
    inpatientId_ = "";
    id_ = 0;
    hospitalId_ = 0;
    reportNum_ = "";
    reportType_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private InspectionReport(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

            reportTitle_ = s;
            break;
          }
          case 24: {

            reportDate_ = input.readInt64();
            break;
          }
          case 32: {

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

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

            patientAge_ = s;
            break;
          }
          case 56: {

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

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

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

            inpatientId_ = s;
            break;
          }
          case 88: {

            id_ = input.readInt32();
            break;
          }
          case 96: {

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

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

            reportType_ = 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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.user.UserOuterClass.internal_static_com_ywt_gapi_user_InspectionReport_descriptor;
  }

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

  public static final int REPORTID_FIELD_NUMBER = 1;
  private volatile java.lang.Object reportId_;
  /**
   * <pre>
   *检查报告单id
   * </pre>
   *
   * <code>string reportId = 1;</code>
   */
  public java.lang.String getReportId() {
    java.lang.Object ref = reportId_;
    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();
      reportId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检查报告单id
   * </pre>
   *
   * <code>string reportId = 1;</code>
   */
  public com.google.protobuf.ByteString
      getReportIdBytes() {
    java.lang.Object ref = reportId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      reportId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REPORTTITLE_FIELD_NUMBER = 2;
  private volatile java.lang.Object reportTitle_;
  /**
   * <pre>
   *检查报告单标题名称
   * </pre>
   *
   * <code>string reportTitle = 2;</code>
   */
  public java.lang.String getReportTitle() {
    java.lang.Object ref = reportTitle_;
    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();
      reportTitle_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检查报告单标题名称
   * </pre>
   *
   * <code>string reportTitle = 2;</code>
   */
  public com.google.protobuf.ByteString
      getReportTitleBytes() {
    java.lang.Object ref = reportTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      reportTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REPORTDATE_FIELD_NUMBER = 3;
  private long reportDate_;
  /**
   * <pre>
   *检查报告单审核日期（YYYY-MM-DD HH:MM:SS）
   * </pre>
   *
   * <code>int64 reportDate = 3;</code>
   */
  public long getReportDate() {
    return reportDate_;
  }

  public static final int STATUS_FIELD_NUMBER = 4;
  private int status_;
  /**
   * <pre>
   *报告状态 0 未审核 1已审核
   * </pre>
   *
   * <code>int32 status = 4;</code>
   */
  public int getStatus() {
    return status_;
  }

  public static final int PATIENTNAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object patientName_;
  /**
   * <pre>
   *患者姓名
   * </pre>
   *
   * <code>string patientName = 5;</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 = 5;</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 PATIENTAGE_FIELD_NUMBER = 6;
  private volatile java.lang.Object patientAge_;
  /**
   * <pre>
   *患者年龄
   * </pre>
   *
   * <code>string patientAge = 6;</code>
   */
  public java.lang.String getPatientAge() {
    java.lang.Object ref = patientAge_;
    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();
      patientAge_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者年龄
   * </pre>
   *
   * <code>string patientAge = 6;</code>
   */
  public com.google.protobuf.ByteString
      getPatientAgeBytes() {
    java.lang.Object ref = patientAge_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientAge_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int CLINICALDIAGNOSIS_FIELD_NUMBER = 8;
  private volatile java.lang.Object clinicalDiagnosis_;
  /**
   * <pre>
   *临床诊断
   * </pre>
   *
   * <code>string clinicalDiagnosis = 8;</code>
   */
  public java.lang.String getClinicalDiagnosis() {
    java.lang.Object ref = clinicalDiagnosis_;
    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();
      clinicalDiagnosis_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *临床诊断
   * </pre>
   *
   * <code>string clinicalDiagnosis = 8;</code>
   */
  public com.google.protobuf.ByteString
      getClinicalDiagnosisBytes() {
    java.lang.Object ref = clinicalDiagnosis_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicalDiagnosis_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CLINICSEQ_FIELD_NUMBER = 9;
  private volatile java.lang.Object clinicSeq_;
  /**
   * <pre>
   *门诊就诊流水号
   * </pre>
   *
   * <code>string clinicSeq = 9;</code>
   */
  public java.lang.String getClinicSeq() {
    java.lang.Object ref = clinicSeq_;
    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();
      clinicSeq_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门诊就诊流水号
   * </pre>
   *
   * <code>string clinicSeq = 9;</code>
   */
  public com.google.protobuf.ByteString
      getClinicSeqBytes() {
    java.lang.Object ref = clinicSeq_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicSeq_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INPATIENTID_FIELD_NUMBER = 10;
  private volatile java.lang.Object inpatientId_;
  /**
   * <pre>
   *住院流水号
   * </pre>
   *
   * <code>string inpatientId = 10;</code>
   */
  public java.lang.String getInpatientId() {
    java.lang.Object ref = inpatientId_;
    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();
      inpatientId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *住院流水号
   * </pre>
   *
   * <code>string inpatientId = 10;</code>
   */
  public com.google.protobuf.ByteString
      getInpatientIdBytes() {
    java.lang.Object ref = inpatientId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      inpatientId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ID_FIELD_NUMBER = 11;
  private int id_;
  /**
   * <pre>
   *主键Id
   * </pre>
   *
   * <code>int32 id = 11;</code>
   */
  public int getId() {
    return id_;
  }

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

  public static final int REPORTNUM_FIELD_NUMBER = 13;
  private volatile java.lang.Object reportNum_;
  /**
   * <pre>
   *检查单号
   * </pre>
   *
   * <code>string reportNum = 13;</code>
   */
  public java.lang.String getReportNum() {
    java.lang.Object ref = reportNum_;
    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();
      reportNum_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检查单号
   * </pre>
   *
   * <code>string reportNum = 13;</code>
   */
  public com.google.protobuf.ByteString
      getReportNumBytes() {
    java.lang.Object ref = reportNum_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      reportNum_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REPORTTYPE_FIELD_NUMBER = 14;
  private volatile java.lang.Object reportType_;
  /**
   * <pre>
   *检查类型，CT/MR 
   * </pre>
   *
   * <code>string reportType = 14;</code>
   */
  public java.lang.String getReportType() {
    java.lang.Object ref = reportType_;
    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();
      reportType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *检查类型，CT/MR 
   * </pre>
   *
   * <code>string reportType = 14;</code>
   */
  public com.google.protobuf.ByteString
      getReportTypeBytes() {
    java.lang.Object ref = reportType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      reportType_ = 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 (!getReportIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reportId_);
    }
    if (!getReportTitleBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reportTitle_);
    }
    if (reportDate_ != 0L) {
      output.writeInt64(3, reportDate_);
    }
    if (status_ != 0) {
      output.writeInt32(4, status_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patientAge_);
    }
    if (sex_ != 0) {
      output.writeInt32(7, sex_);
    }
    if (!getClinicalDiagnosisBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clinicalDiagnosis_);
    }
    if (!getClinicSeqBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clinicSeq_);
    }
    if (!getInpatientIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, inpatientId_);
    }
    if (id_ != 0) {
      output.writeInt32(11, id_);
    }
    if (hospitalId_ != 0) {
      output.writeInt32(12, hospitalId_);
    }
    if (!getReportNumBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reportNum_);
    }
    if (!getReportTypeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, reportType_);
    }
  }

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

    size = 0;
    if (!getReportIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reportId_);
    }
    if (!getReportTitleBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reportTitle_);
    }
    if (reportDate_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, reportDate_);
    }
    if (status_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, status_);
    }
    if (!getPatientNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, patientName_);
    }
    if (!getPatientAgeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patientAge_);
    }
    if (sex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, sex_);
    }
    if (!getClinicalDiagnosisBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clinicalDiagnosis_);
    }
    if (!getClinicSeqBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clinicSeq_);
    }
    if (!getInpatientIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, inpatientId_);
    }
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, id_);
    }
    if (hospitalId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, hospitalId_);
    }
    if (!getReportNumBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, reportNum_);
    }
    if (!getReportTypeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, reportType_);
    }
    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.InspectionReport)) {
      return super.equals(obj);
    }
    com.ywt.gapi.user.InspectionReport other = (com.ywt.gapi.user.InspectionReport) obj;

    boolean result = true;
    result = result && getReportId()
        .equals(other.getReportId());
    result = result && getReportTitle()
        .equals(other.getReportTitle());
    result = result && (getReportDate()
        == other.getReportDate());
    result = result && (getStatus()
        == other.getStatus());
    result = result && getPatientName()
        .equals(other.getPatientName());
    result = result && getPatientAge()
        .equals(other.getPatientAge());
    result = result && (getSex()
        == other.getSex());
    result = result && getClinicalDiagnosis()
        .equals(other.getClinicalDiagnosis());
    result = result && getClinicSeq()
        .equals(other.getClinicSeq());
    result = result && getInpatientId()
        .equals(other.getInpatientId());
    result = result && (getId()
        == other.getId());
    result = result && (getHospitalId()
        == other.getHospitalId());
    result = result && getReportNum()
        .equals(other.getReportNum());
    result = result && getReportType()
        .equals(other.getReportType());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + REPORTID_FIELD_NUMBER;
    hash = (53 * hash) + getReportId().hashCode();
    hash = (37 * hash) + REPORTTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getReportTitle().hashCode();
    hash = (37 * hash) + REPORTDATE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getReportDate());
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + getStatus();
    hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
    hash = (53 * hash) + getPatientName().hashCode();
    hash = (37 * hash) + PATIENTAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPatientAge().hashCode();
    hash = (37 * hash) + SEX_FIELD_NUMBER;
    hash = (53 * hash) + getSex();
    hash = (37 * hash) + CLINICALDIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getClinicalDiagnosis().hashCode();
    hash = (37 * hash) + CLINICSEQ_FIELD_NUMBER;
    hash = (53 * hash) + getClinicSeq().hashCode();
    hash = (37 * hash) + INPATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getInpatientId().hashCode();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
    hash = (53 * hash) + getHospitalId();
    hash = (37 * hash) + REPORTNUM_FIELD_NUMBER;
    hash = (53 * hash) + getReportNum().hashCode();
    hash = (37 * hash) + REPORTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getReportType().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

      reportTitle_ = "";

      reportDate_ = 0L;

      status_ = 0;

      patientName_ = "";

      patientAge_ = "";

      sex_ = 0;

      clinicalDiagnosis_ = "";

      clinicSeq_ = "";

      inpatientId_ = "";

      id_ = 0;

      hospitalId_ = 0;

      reportNum_ = "";

      reportType_ = "";

      return this;
    }

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

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

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

    public com.ywt.gapi.user.InspectionReport buildPartial() {
      com.ywt.gapi.user.InspectionReport result = new com.ywt.gapi.user.InspectionReport(this);
      result.reportId_ = reportId_;
      result.reportTitle_ = reportTitle_;
      result.reportDate_ = reportDate_;
      result.status_ = status_;
      result.patientName_ = patientName_;
      result.patientAge_ = patientAge_;
      result.sex_ = sex_;
      result.clinicalDiagnosis_ = clinicalDiagnosis_;
      result.clinicSeq_ = clinicSeq_;
      result.inpatientId_ = inpatientId_;
      result.id_ = id_;
      result.hospitalId_ = hospitalId_;
      result.reportNum_ = reportNum_;
      result.reportType_ = reportType_;
      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.InspectionReport) {
        return mergeFrom((com.ywt.gapi.user.InspectionReport)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.user.InspectionReport other) {
      if (other == com.ywt.gapi.user.InspectionReport.getDefaultInstance()) return this;
      if (!other.getReportId().isEmpty()) {
        reportId_ = other.reportId_;
        onChanged();
      }
      if (!other.getReportTitle().isEmpty()) {
        reportTitle_ = other.reportTitle_;
        onChanged();
      }
      if (other.getReportDate() != 0L) {
        setReportDate(other.getReportDate());
      }
      if (other.getStatus() != 0) {
        setStatus(other.getStatus());
      }
      if (!other.getPatientName().isEmpty()) {
        patientName_ = other.patientName_;
        onChanged();
      }
      if (!other.getPatientAge().isEmpty()) {
        patientAge_ = other.patientAge_;
        onChanged();
      }
      if (other.getSex() != 0) {
        setSex(other.getSex());
      }
      if (!other.getClinicalDiagnosis().isEmpty()) {
        clinicalDiagnosis_ = other.clinicalDiagnosis_;
        onChanged();
      }
      if (!other.getClinicSeq().isEmpty()) {
        clinicSeq_ = other.clinicSeq_;
        onChanged();
      }
      if (!other.getInpatientId().isEmpty()) {
        inpatientId_ = other.inpatientId_;
        onChanged();
      }
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (other.getHospitalId() != 0) {
        setHospitalId(other.getHospitalId());
      }
      if (!other.getReportNum().isEmpty()) {
        reportNum_ = other.reportNum_;
        onChanged();
      }
      if (!other.getReportType().isEmpty()) {
        reportType_ = other.reportType_;
        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.InspectionReport parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.user.InspectionReport) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object reportId_ = "";
    /**
     * <pre>
     *检查报告单id
     * </pre>
     *
     * <code>string reportId = 1;</code>
     */
    public java.lang.String getReportId() {
      java.lang.Object ref = reportId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        reportId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检查报告单id
     * </pre>
     *
     * <code>string reportId = 1;</code>
     */
    public com.google.protobuf.ByteString
        getReportIdBytes() {
      java.lang.Object ref = reportId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        reportId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检查报告单id
     * </pre>
     *
     * <code>string reportId = 1;</code>
     */
    public Builder setReportId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      reportId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查报告单id
     * </pre>
     *
     * <code>string reportId = 1;</code>
     */
    public Builder clearReportId() {
      
      reportId_ = getDefaultInstance().getReportId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查报告单id
     * </pre>
     *
     * <code>string reportId = 1;</code>
     */
    public Builder setReportIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      reportId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object reportTitle_ = "";
    /**
     * <pre>
     *检查报告单标题名称
     * </pre>
     *
     * <code>string reportTitle = 2;</code>
     */
    public java.lang.String getReportTitle() {
      java.lang.Object ref = reportTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        reportTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检查报告单标题名称
     * </pre>
     *
     * <code>string reportTitle = 2;</code>
     */
    public com.google.protobuf.ByteString
        getReportTitleBytes() {
      java.lang.Object ref = reportTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        reportTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检查报告单标题名称
     * </pre>
     *
     * <code>string reportTitle = 2;</code>
     */
    public Builder setReportTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      reportTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查报告单标题名称
     * </pre>
     *
     * <code>string reportTitle = 2;</code>
     */
    public Builder clearReportTitle() {
      
      reportTitle_ = getDefaultInstance().getReportTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查报告单标题名称
     * </pre>
     *
     * <code>string reportTitle = 2;</code>
     */
    public Builder setReportTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      reportTitle_ = value;
      onChanged();
      return this;
    }

    private long reportDate_ ;
    /**
     * <pre>
     *检查报告单审核日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>int64 reportDate = 3;</code>
     */
    public long getReportDate() {
      return reportDate_;
    }
    /**
     * <pre>
     *检查报告单审核日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>int64 reportDate = 3;</code>
     */
    public Builder setReportDate(long value) {
      
      reportDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查报告单审核日期（YYYY-MM-DD HH:MM:SS）
     * </pre>
     *
     * <code>int64 reportDate = 3;</code>
     */
    public Builder clearReportDate() {
      
      reportDate_ = 0L;
      onChanged();
      return this;
    }

    private int status_ ;
    /**
     * <pre>
     *报告状态 0 未审核 1已审核
     * </pre>
     *
     * <code>int32 status = 4;</code>
     */
    public int getStatus() {
      return status_;
    }
    /**
     * <pre>
     *报告状态 0 未审核 1已审核
     * </pre>
     *
     * <code>int32 status = 4;</code>
     */
    public Builder setStatus(int value) {
      
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *报告状态 0 未审核 1已审核
     * </pre>
     *
     * <code>int32 status = 4;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object patientAge_ = "";
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>string patientAge = 6;</code>
     */
    public java.lang.String getPatientAge() {
      java.lang.Object ref = patientAge_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientAge_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>string patientAge = 6;</code>
     */
    public com.google.protobuf.ByteString
        getPatientAgeBytes() {
      java.lang.Object ref = patientAge_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientAge_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>string patientAge = 6;</code>
     */
    public Builder setPatientAge(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientAge_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>string patientAge = 6;</code>
     */
    public Builder clearPatientAge() {
      
      patientAge_ = getDefaultInstance().getPatientAge();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者年龄
     * </pre>
     *
     * <code>string patientAge = 6;</code>
     */
    public Builder setPatientAgeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientAge_ = value;
      onChanged();
      return this;
    }

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

    private java.lang.Object clinicalDiagnosis_ = "";
    /**
     * <pre>
     *临床诊断
     * </pre>
     *
     * <code>string clinicalDiagnosis = 8;</code>
     */
    public java.lang.String getClinicalDiagnosis() {
      java.lang.Object ref = clinicalDiagnosis_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicalDiagnosis_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *临床诊断
     * </pre>
     *
     * <code>string clinicalDiagnosis = 8;</code>
     */
    public com.google.protobuf.ByteString
        getClinicalDiagnosisBytes() {
      java.lang.Object ref = clinicalDiagnosis_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicalDiagnosis_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *临床诊断
     * </pre>
     *
     * <code>string clinicalDiagnosis = 8;</code>
     */
    public Builder setClinicalDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicalDiagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *临床诊断
     * </pre>
     *
     * <code>string clinicalDiagnosis = 8;</code>
     */
    public Builder clearClinicalDiagnosis() {
      
      clinicalDiagnosis_ = getDefaultInstance().getClinicalDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *临床诊断
     * </pre>
     *
     * <code>string clinicalDiagnosis = 8;</code>
     */
    public Builder setClinicalDiagnosisBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicalDiagnosis_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object clinicSeq_ = "";
    /**
     * <pre>
     *门诊就诊流水号
     * </pre>
     *
     * <code>string clinicSeq = 9;</code>
     */
    public java.lang.String getClinicSeq() {
      java.lang.Object ref = clinicSeq_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicSeq_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门诊就诊流水号
     * </pre>
     *
     * <code>string clinicSeq = 9;</code>
     */
    public com.google.protobuf.ByteString
        getClinicSeqBytes() {
      java.lang.Object ref = clinicSeq_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicSeq_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门诊就诊流水号
     * </pre>
     *
     * <code>string clinicSeq = 9;</code>
     */
    public Builder setClinicSeq(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicSeq_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊就诊流水号
     * </pre>
     *
     * <code>string clinicSeq = 9;</code>
     */
    public Builder clearClinicSeq() {
      
      clinicSeq_ = getDefaultInstance().getClinicSeq();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊就诊流水号
     * </pre>
     *
     * <code>string clinicSeq = 9;</code>
     */
    public Builder setClinicSeqBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicSeq_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object inpatientId_ = "";
    /**
     * <pre>
     *住院流水号
     * </pre>
     *
     * <code>string inpatientId = 10;</code>
     */
    public java.lang.String getInpatientId() {
      java.lang.Object ref = inpatientId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        inpatientId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *住院流水号
     * </pre>
     *
     * <code>string inpatientId = 10;</code>
     */
    public com.google.protobuf.ByteString
        getInpatientIdBytes() {
      java.lang.Object ref = inpatientId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        inpatientId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *住院流水号
     * </pre>
     *
     * <code>string inpatientId = 10;</code>
     */
    public Builder setInpatientId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      inpatientId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *住院流水号
     * </pre>
     *
     * <code>string inpatientId = 10;</code>
     */
    public Builder clearInpatientId() {
      
      inpatientId_ = getDefaultInstance().getInpatientId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *住院流水号
     * </pre>
     *
     * <code>string inpatientId = 10;</code>
     */
    public Builder setInpatientIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      inpatientId_ = value;
      onChanged();
      return this;
    }

    private int id_ ;
    /**
     * <pre>
     *主键Id
     * </pre>
     *
     * <code>int32 id = 11;</code>
     */
    public int getId() {
      return id_;
    }
    /**
     * <pre>
     *主键Id
     * </pre>
     *
     * <code>int32 id = 11;</code>
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主键Id
     * </pre>
     *
     * <code>int32 id = 11;</code>
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object reportNum_ = "";
    /**
     * <pre>
     *检查单号
     * </pre>
     *
     * <code>string reportNum = 13;</code>
     */
    public java.lang.String getReportNum() {
      java.lang.Object ref = reportNum_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        reportNum_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检查单号
     * </pre>
     *
     * <code>string reportNum = 13;</code>
     */
    public com.google.protobuf.ByteString
        getReportNumBytes() {
      java.lang.Object ref = reportNum_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        reportNum_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检查单号
     * </pre>
     *
     * <code>string reportNum = 13;</code>
     */
    public Builder setReportNum(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      reportNum_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查单号
     * </pre>
     *
     * <code>string reportNum = 13;</code>
     */
    public Builder clearReportNum() {
      
      reportNum_ = getDefaultInstance().getReportNum();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查单号
     * </pre>
     *
     * <code>string reportNum = 13;</code>
     */
    public Builder setReportNumBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      reportNum_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object reportType_ = "";
    /**
     * <pre>
     *检查类型，CT/MR 
     * </pre>
     *
     * <code>string reportType = 14;</code>
     */
    public java.lang.String getReportType() {
      java.lang.Object ref = reportType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        reportType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *检查类型，CT/MR 
     * </pre>
     *
     * <code>string reportType = 14;</code>
     */
    public com.google.protobuf.ByteString
        getReportTypeBytes() {
      java.lang.Object ref = reportType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        reportType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *检查类型，CT/MR 
     * </pre>
     *
     * <code>string reportType = 14;</code>
     */
    public Builder setReportType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      reportType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查类型，CT/MR 
     * </pre>
     *
     * <code>string reportType = 14;</code>
     */
    public Builder clearReportType() {
      
      reportType_ = getDefaultInstance().getReportType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *检查类型，CT/MR 
     * </pre>
     *
     * <code>string reportType = 14;</code>
     */
    public Builder setReportTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      reportType_ = 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.InspectionReport)
  }

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

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

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

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

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

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

}

