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

package com.ywt.gapi.nfyy;

/**
 * <pre>
 *门诊病历纪录详情
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.nfyy.MedRecordDetail}
 */
public final class MedRecordDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.MedRecordDetail)
    MedRecordDetailOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MedRecordDetail.newBuilder() to construct.
  private MedRecordDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MedRecordDetail() {
    depId_ = "";
    depName_ = "";
    patId_ = "";
    feeType_ = "";
    feeTypeName_ = "";
    admData_ = "";
    clinicCount_ = "";
    selfReport_ = "";
    phyExam_ = "";
    diagnose_ = "";
    suggesion_ = "";
    docAdvice_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private MedRecordDetail(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

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

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

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

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

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

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

            docAdvice_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedRecordDetail_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedRecordDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.nfyy.MedRecordDetail.class, com.ywt.gapi.nfyy.MedRecordDetail.Builder.class);
  }

  public static final int DEPID_FIELD_NUMBER = 1;
  private volatile java.lang.Object depId_;
  /**
   * <pre>
   *科室id
   * </pre>
   *
   * <code>string depId = 1;</code>
   * @return The depId.
   */
  @java.lang.Override
  public java.lang.String getDepId() {
    java.lang.Object ref = depId_;
    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();
      depId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *科室id
   * </pre>
   *
   * <code>string depId = 1;</code>
   * @return The bytes for depId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDepIdBytes() {
    java.lang.Object ref = depId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      depId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEPNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object depName_;
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string depName = 2;</code>
   * @return The depName.
   */
  @java.lang.Override
  public java.lang.String getDepName() {
    java.lang.Object ref = depName_;
    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();
      depName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *科室名称
   * </pre>
   *
   * <code>string depName = 2;</code>
   * @return The bytes for depName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDepNameBytes() {
    java.lang.Object ref = depName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      depName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PATID_FIELD_NUMBER = 3;
  private volatile java.lang.Object patId_;
  /**
   * <pre>
   *患者ID
   * </pre>
   *
   * <code>string patId = 3;</code>
   * @return The patId.
   */
  @java.lang.Override
  public java.lang.String getPatId() {
    java.lang.Object ref = patId_;
    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();
      patId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者ID
   * </pre>
   *
   * <code>string patId = 3;</code>
   * @return The bytes for patId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatIdBytes() {
    java.lang.Object ref = patId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FEETYPE_FIELD_NUMBER = 4;
  private volatile java.lang.Object feeType_;
  /**
   * <pre>
   *费别代码
   * </pre>
   *
   * <code>string feeType = 4;</code>
   * @return The feeType.
   */
  @java.lang.Override
  public java.lang.String getFeeType() {
    java.lang.Object ref = feeType_;
    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();
      feeType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *费别代码
   * </pre>
   *
   * <code>string feeType = 4;</code>
   * @return The bytes for feeType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFeeTypeBytes() {
    java.lang.Object ref = feeType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      feeType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FEETYPENAME_FIELD_NUMBER = 5;
  private volatile java.lang.Object feeTypeName_;
  /**
   * <pre>
   *费别名称
   * </pre>
   *
   * <code>string feeTypeName = 5;</code>
   * @return The feeTypeName.
   */
  @java.lang.Override
  public java.lang.String getFeeTypeName() {
    java.lang.Object ref = feeTypeName_;
    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();
      feeTypeName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *费别名称
   * </pre>
   *
   * <code>string feeTypeName = 5;</code>
   * @return The bytes for feeTypeName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFeeTypeNameBytes() {
    java.lang.Object ref = feeTypeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      feeTypeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMDATA_FIELD_NUMBER = 6;
  private volatile java.lang.Object admData_;
  /**
   * <pre>
   *患者入院日期
   * </pre>
   *
   * <code>string admData = 6;</code>
   * @return The admData.
   */
  @java.lang.Override
  public java.lang.String getAdmData() {
    java.lang.Object ref = admData_;
    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();
      admData_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *患者入院日期
   * </pre>
   *
   * <code>string admData = 6;</code>
   * @return The bytes for admData.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdmDataBytes() {
    java.lang.Object ref = admData_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admData_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CLINICCOUNT_FIELD_NUMBER = 7;
  private volatile java.lang.Object clinicCount_;
  /**
   * <pre>
   *门诊次数
   * </pre>
   *
   * <code>string clinicCount = 7;</code>
   * @return The clinicCount.
   */
  @java.lang.Override
  public java.lang.String getClinicCount() {
    java.lang.Object ref = clinicCount_;
    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();
      clinicCount_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门诊次数
   * </pre>
   *
   * <code>string clinicCount = 7;</code>
   * @return The bytes for clinicCount.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClinicCountBytes() {
    java.lang.Object ref = clinicCount_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clinicCount_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SELFREPORT_FIELD_NUMBER = 8;
  private volatile java.lang.Object selfReport_;
  /**
   * <pre>
   *主诉
   * </pre>
   *
   * <code>string selfReport = 8;</code>
   * @return The selfReport.
   */
  @java.lang.Override
  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 = 8;</code>
   * @return The bytes for selfReport.
   */
  @java.lang.Override
  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 = 9;
  private volatile java.lang.Object phyExam_;
  /**
   * <pre>
   *体格检查
   * </pre>
   *
   * <code>string phyExam = 9;</code>
   * @return The phyExam.
   */
  @java.lang.Override
  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 = 9;</code>
   * @return The bytes for phyExam.
   */
  @java.lang.Override
  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 = 10;
  private volatile java.lang.Object diagnose_;
  /**
   * <pre>
   *门诊诊断
   * </pre>
   *
   * <code>string diagnose = 10;</code>
   * @return The diagnose.
   */
  @java.lang.Override
  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 = 10;</code>
   * @return The bytes for diagnose.
   */
  @java.lang.Override
  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 SUGGESION_FIELD_NUMBER = 11;
  private volatile java.lang.Object suggesion_;
  /**
   * <pre>
   *意见
   * </pre>
   *
   * <code>string suggesion = 11;</code>
   * @return The suggesion.
   */
  @java.lang.Override
  public java.lang.String getSuggesion() {
    java.lang.Object ref = suggesion_;
    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();
      suggesion_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *意见
   * </pre>
   *
   * <code>string suggesion = 11;</code>
   * @return The bytes for suggesion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSuggesionBytes() {
    java.lang.Object ref = suggesion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      suggesion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCADVICE_FIELD_NUMBER = 12;
  private volatile java.lang.Object docAdvice_;
  /**
   * <pre>
   *门急诊医嘱
   * </pre>
   *
   * <code>string docAdvice = 12;</code>
   * @return The docAdvice.
   */
  @java.lang.Override
  public java.lang.String getDocAdvice() {
    java.lang.Object ref = docAdvice_;
    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();
      docAdvice_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *门急诊医嘱
   * </pre>
   *
   * <code>string docAdvice = 12;</code>
   * @return The bytes for docAdvice.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDocAdviceBytes() {
    java.lang.Object ref = docAdvice_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      docAdvice_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, depId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, depName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, feeType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeTypeName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, feeTypeName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admData_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, admData_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCount_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clinicCount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfReport_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, selfReport_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phyExam_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, phyExam_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnose_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, diagnose_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggesion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, suggesion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docAdvice_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, docAdvice_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, depId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, depName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, feeType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feeTypeName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, feeTypeName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admData_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, admData_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clinicCount_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clinicCount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfReport_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, selfReport_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phyExam_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, phyExam_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnose_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, diagnose_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggesion_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, suggesion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docAdvice_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, docAdvice_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ywt.gapi.nfyy.MedRecordDetail)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nfyy.MedRecordDetail other = (com.ywt.gapi.nfyy.MedRecordDetail) obj;

    if (!getDepId()
        .equals(other.getDepId())) return false;
    if (!getDepName()
        .equals(other.getDepName())) return false;
    if (!getPatId()
        .equals(other.getPatId())) return false;
    if (!getFeeType()
        .equals(other.getFeeType())) return false;
    if (!getFeeTypeName()
        .equals(other.getFeeTypeName())) return false;
    if (!getAdmData()
        .equals(other.getAdmData())) return false;
    if (!getClinicCount()
        .equals(other.getClinicCount())) return false;
    if (!getSelfReport()
        .equals(other.getSelfReport())) return false;
    if (!getPhyExam()
        .equals(other.getPhyExam())) return false;
    if (!getDiagnose()
        .equals(other.getDiagnose())) return false;
    if (!getSuggesion()
        .equals(other.getSuggesion())) return false;
    if (!getDocAdvice()
        .equals(other.getDocAdvice())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DEPID_FIELD_NUMBER;
    hash = (53 * hash) + getDepId().hashCode();
    hash = (37 * hash) + DEPNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDepName().hashCode();
    hash = (37 * hash) + PATID_FIELD_NUMBER;
    hash = (53 * hash) + getPatId().hashCode();
    hash = (37 * hash) + FEETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getFeeType().hashCode();
    hash = (37 * hash) + FEETYPENAME_FIELD_NUMBER;
    hash = (53 * hash) + getFeeTypeName().hashCode();
    hash = (37 * hash) + ADMDATA_FIELD_NUMBER;
    hash = (53 * hash) + getAdmData().hashCode();
    hash = (37 * hash) + CLINICCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getClinicCount().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) + SUGGESION_FIELD_NUMBER;
    hash = (53 * hash) + getSuggesion().hashCode();
    hash = (37 * hash) + DOCADVICE_FIELD_NUMBER;
    hash = (53 * hash) + getDocAdvice().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ywt.gapi.nfyy.MedRecordDetail prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   *门诊病历纪录详情
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.nfyy.MedRecordDetail}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.nfyy.MedRecordDetail)
      com.ywt.gapi.nfyy.MedRecordDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedRecordDetail_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedRecordDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.nfyy.MedRecordDetail.class, com.ywt.gapi.nfyy.MedRecordDetail.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      depId_ = "";

      depName_ = "";

      patId_ = "";

      feeType_ = "";

      feeTypeName_ = "";

      admData_ = "";

      clinicCount_ = "";

      selfReport_ = "";

      phyExam_ = "";

      diagnose_ = "";

      suggesion_ = "";

      docAdvice_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.nfyy.NfyyProto.internal_static_com_ywt_gapi_nfyy_MedRecordDetail_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.nfyy.MedRecordDetail getDefaultInstanceForType() {
      return com.ywt.gapi.nfyy.MedRecordDetail.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.ywt.gapi.nfyy.MedRecordDetail buildPartial() {
      com.ywt.gapi.nfyy.MedRecordDetail result = new com.ywt.gapi.nfyy.MedRecordDetail(this);
      result.depId_ = depId_;
      result.depName_ = depName_;
      result.patId_ = patId_;
      result.feeType_ = feeType_;
      result.feeTypeName_ = feeTypeName_;
      result.admData_ = admData_;
      result.clinicCount_ = clinicCount_;
      result.selfReport_ = selfReport_;
      result.phyExam_ = phyExam_;
      result.diagnose_ = diagnose_;
      result.suggesion_ = suggesion_;
      result.docAdvice_ = docAdvice_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.ywt.gapi.nfyy.MedRecordDetail other) {
      if (other == com.ywt.gapi.nfyy.MedRecordDetail.getDefaultInstance()) return this;
      if (!other.getDepId().isEmpty()) {
        depId_ = other.depId_;
        onChanged();
      }
      if (!other.getDepName().isEmpty()) {
        depName_ = other.depName_;
        onChanged();
      }
      if (!other.getPatId().isEmpty()) {
        patId_ = other.patId_;
        onChanged();
      }
      if (!other.getFeeType().isEmpty()) {
        feeType_ = other.feeType_;
        onChanged();
      }
      if (!other.getFeeTypeName().isEmpty()) {
        feeTypeName_ = other.feeTypeName_;
        onChanged();
      }
      if (!other.getAdmData().isEmpty()) {
        admData_ = other.admData_;
        onChanged();
      }
      if (!other.getClinicCount().isEmpty()) {
        clinicCount_ = other.clinicCount_;
        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.getSuggesion().isEmpty()) {
        suggesion_ = other.suggesion_;
        onChanged();
      }
      if (!other.getDocAdvice().isEmpty()) {
        docAdvice_ = other.docAdvice_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

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

    private java.lang.Object depId_ = "";
    /**
     * <pre>
     *科室id
     * </pre>
     *
     * <code>string depId = 1;</code>
     * @return The depId.
     */
    public java.lang.String getDepId() {
      java.lang.Object ref = depId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        depId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *科室id
     * </pre>
     *
     * <code>string depId = 1;</code>
     * @return The bytes for depId.
     */
    public com.google.protobuf.ByteString
        getDepIdBytes() {
      java.lang.Object ref = depId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        depId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *科室id
     * </pre>
     *
     * <code>string depId = 1;</code>
     * @param value The depId to set.
     * @return This builder for chaining.
     */
    public Builder setDepId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      depId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室id
     * </pre>
     *
     * <code>string depId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDepId() {
      
      depId_ = getDefaultInstance().getDepId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室id
     * </pre>
     *
     * <code>string depId = 1;</code>
     * @param value The bytes for depId to set.
     * @return This builder for chaining.
     */
    public Builder setDepIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      depId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object depName_ = "";
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string depName = 2;</code>
     * @return The depName.
     */
    public java.lang.String getDepName() {
      java.lang.Object ref = depName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        depName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string depName = 2;</code>
     * @return The bytes for depName.
     */
    public com.google.protobuf.ByteString
        getDepNameBytes() {
      java.lang.Object ref = depName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        depName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string depName = 2;</code>
     * @param value The depName to set.
     * @return This builder for chaining.
     */
    public Builder setDepName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      depName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string depName = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearDepName() {
      
      depName_ = getDefaultInstance().getDepName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *科室名称
     * </pre>
     *
     * <code>string depName = 2;</code>
     * @param value The bytes for depName to set.
     * @return This builder for chaining.
     */
    public Builder setDepNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      depName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object patId_ = "";
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>string patId = 3;</code>
     * @return The patId.
     */
    public java.lang.String getPatId() {
      java.lang.Object ref = patId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>string patId = 3;</code>
     * @return The bytes for patId.
     */
    public com.google.protobuf.ByteString
        getPatIdBytes() {
      java.lang.Object ref = patId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>string patId = 3;</code>
     * @param value The patId to set.
     * @return This builder for chaining.
     */
    public Builder setPatId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>string patId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatId() {
      
      patId_ = getDefaultInstance().getPatId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者ID
     * </pre>
     *
     * <code>string patId = 3;</code>
     * @param value The bytes for patId to set.
     * @return This builder for chaining.
     */
    public Builder setPatIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object feeType_ = "";
    /**
     * <pre>
     *费别代码
     * </pre>
     *
     * <code>string feeType = 4;</code>
     * @return The feeType.
     */
    public java.lang.String getFeeType() {
      java.lang.Object ref = feeType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        feeType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *费别代码
     * </pre>
     *
     * <code>string feeType = 4;</code>
     * @return The bytes for feeType.
     */
    public com.google.protobuf.ByteString
        getFeeTypeBytes() {
      java.lang.Object ref = feeType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        feeType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *费别代码
     * </pre>
     *
     * <code>string feeType = 4;</code>
     * @param value The feeType to set.
     * @return This builder for chaining.
     */
    public Builder setFeeType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      feeType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *费别代码
     * </pre>
     *
     * <code>string feeType = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearFeeType() {
      
      feeType_ = getDefaultInstance().getFeeType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *费别代码
     * </pre>
     *
     * <code>string feeType = 4;</code>
     * @param value The bytes for feeType to set.
     * @return This builder for chaining.
     */
    public Builder setFeeTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      feeType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object feeTypeName_ = "";
    /**
     * <pre>
     *费别名称
     * </pre>
     *
     * <code>string feeTypeName = 5;</code>
     * @return The feeTypeName.
     */
    public java.lang.String getFeeTypeName() {
      java.lang.Object ref = feeTypeName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        feeTypeName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *费别名称
     * </pre>
     *
     * <code>string feeTypeName = 5;</code>
     * @return The bytes for feeTypeName.
     */
    public com.google.protobuf.ByteString
        getFeeTypeNameBytes() {
      java.lang.Object ref = feeTypeName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        feeTypeName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *费别名称
     * </pre>
     *
     * <code>string feeTypeName = 5;</code>
     * @param value The feeTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setFeeTypeName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      feeTypeName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *费别名称
     * </pre>
     *
     * <code>string feeTypeName = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearFeeTypeName() {
      
      feeTypeName_ = getDefaultInstance().getFeeTypeName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *费别名称
     * </pre>
     *
     * <code>string feeTypeName = 5;</code>
     * @param value The bytes for feeTypeName to set.
     * @return This builder for chaining.
     */
    public Builder setFeeTypeNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      feeTypeName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admData_ = "";
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admData = 6;</code>
     * @return The admData.
     */
    public java.lang.String getAdmData() {
      java.lang.Object ref = admData_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admData_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admData = 6;</code>
     * @return The bytes for admData.
     */
    public com.google.protobuf.ByteString
        getAdmDataBytes() {
      java.lang.Object ref = admData_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admData_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admData = 6;</code>
     * @param value The admData to set.
     * @return This builder for chaining.
     */
    public Builder setAdmData(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admData_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admData = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdmData() {
      
      admData_ = getDefaultInstance().getAdmData();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *患者入院日期
     * </pre>
     *
     * <code>string admData = 6;</code>
     * @param value The bytes for admData to set.
     * @return This builder for chaining.
     */
    public Builder setAdmDataBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admData_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object clinicCount_ = "";
    /**
     * <pre>
     *门诊次数
     * </pre>
     *
     * <code>string clinicCount = 7;</code>
     * @return The clinicCount.
     */
    public java.lang.String getClinicCount() {
      java.lang.Object ref = clinicCount_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        clinicCount_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门诊次数
     * </pre>
     *
     * <code>string clinicCount = 7;</code>
     * @return The bytes for clinicCount.
     */
    public com.google.protobuf.ByteString
        getClinicCountBytes() {
      java.lang.Object ref = clinicCount_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clinicCount_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门诊次数
     * </pre>
     *
     * <code>string clinicCount = 7;</code>
     * @param value The clinicCount to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCount(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      clinicCount_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊次数
     * </pre>
     *
     * <code>string clinicCount = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearClinicCount() {
      
      clinicCount_ = getDefaultInstance().getClinicCount();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊次数
     * </pre>
     *
     * <code>string clinicCount = 7;</code>
     * @param value The bytes for clinicCount to set.
     * @return This builder for chaining.
     */
    public Builder setClinicCountBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      clinicCount_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object selfReport_ = "";
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 8;</code>
     * @return The selfReport.
     */
    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 = 8;</code>
     * @return The bytes for selfReport.
     */
    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 = 8;</code>
     * @param value The selfReport to set.
     * @return This builder for chaining.
     */
    public Builder setSelfReport(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      selfReport_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearSelfReport() {
      
      selfReport_ = getDefaultInstance().getSelfReport();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *主诉
     * </pre>
     *
     * <code>string selfReport = 8;</code>
     * @param value The bytes for selfReport to set.
     * @return This builder for chaining.
     */
    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 = 9;</code>
     * @return The phyExam.
     */
    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 = 9;</code>
     * @return The bytes for phyExam.
     */
    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 = 9;</code>
     * @param value The phyExam to set.
     * @return This builder for chaining.
     */
    public Builder setPhyExam(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      phyExam_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearPhyExam() {
      
      phyExam_ = getDefaultInstance().getPhyExam();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *体格检查
     * </pre>
     *
     * <code>string phyExam = 9;</code>
     * @param value The bytes for phyExam to set.
     * @return This builder for chaining.
     */
    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 = 10;</code>
     * @return The diagnose.
     */
    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 = 10;</code>
     * @return The bytes for diagnose.
     */
    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 = 10;</code>
     * @param value The diagnose to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnose(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnose_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊诊断
     * </pre>
     *
     * <code>string diagnose = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearDiagnose() {
      
      diagnose_ = getDefaultInstance().getDiagnose();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门诊诊断
     * </pre>
     *
     * <code>string diagnose = 10;</code>
     * @param value The bytes for diagnose to set.
     * @return This builder for chaining.
     */
    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 suggesion_ = "";
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggesion = 11;</code>
     * @return The suggesion.
     */
    public java.lang.String getSuggesion() {
      java.lang.Object ref = suggesion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        suggesion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggesion = 11;</code>
     * @return The bytes for suggesion.
     */
    public com.google.protobuf.ByteString
        getSuggesionBytes() {
      java.lang.Object ref = suggesion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        suggesion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggesion = 11;</code>
     * @param value The suggesion to set.
     * @return This builder for chaining.
     */
    public Builder setSuggesion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      suggesion_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggesion = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearSuggesion() {
      
      suggesion_ = getDefaultInstance().getSuggesion();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *意见
     * </pre>
     *
     * <code>string suggesion = 11;</code>
     * @param value The bytes for suggesion to set.
     * @return This builder for chaining.
     */
    public Builder setSuggesionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      suggesion_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object docAdvice_ = "";
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string docAdvice = 12;</code>
     * @return The docAdvice.
     */
    public java.lang.String getDocAdvice() {
      java.lang.Object ref = docAdvice_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        docAdvice_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string docAdvice = 12;</code>
     * @return The bytes for docAdvice.
     */
    public com.google.protobuf.ByteString
        getDocAdviceBytes() {
      java.lang.Object ref = docAdvice_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        docAdvice_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string docAdvice = 12;</code>
     * @param value The docAdvice to set.
     * @return This builder for chaining.
     */
    public Builder setDocAdvice(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      docAdvice_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string docAdvice = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearDocAdvice() {
      
      docAdvice_ = getDefaultInstance().getDocAdvice();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *门急诊医嘱
     * </pre>
     *
     * <code>string docAdvice = 12;</code>
     * @param value The bytes for docAdvice to set.
     * @return This builder for chaining.
     */
    public Builder setDocAdviceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      docAdvice_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.nfyy.MedRecordDetail)
  }

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

  public static com.ywt.gapi.nfyy.MedRecordDetail getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.nfyy.MedRecordDetail getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

