// 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.ClinicInfo}
 */
public final class ClinicInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.ClinicInfo)
    ClinicInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ClinicInfo.newBuilder() to construct.
  private ClinicInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ClinicInfo() {
    patientID_ = "";
    admLoc_ = "";
    admDoc_ = "";
    admitDate_ = "";
    diagnosis_ = "";
  }

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

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

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

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

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

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

            diagnosis_ = 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_ClinicInfo_descriptor;
  }

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

  public static final int PATIENTID_FIELD_NUMBER = 1;
  private volatile java.lang.Object patientID_;
  /**
   * <pre>
   *ID号
   * </pre>
   *
   * <code>string patientID = 1;</code>
   * @return The patientID.
   */
  @java.lang.Override
  public java.lang.String getPatientID() {
    java.lang.Object ref = patientID_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      patientID_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *ID号
   * </pre>
   *
   * <code>string patientID = 1;</code>
   * @return The bytes for patientID.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPatientIDBytes() {
    java.lang.Object ref = patientID_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      patientID_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMLOC_FIELD_NUMBER = 2;
  private volatile java.lang.Object admLoc_;
  /**
   * <pre>
   *就诊科室
   * </pre>
   *
   * <code>string admLoc = 2;</code>
   * @return The admLoc.
   */
  @java.lang.Override
  public java.lang.String getAdmLoc() {
    java.lang.Object ref = admLoc_;
    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();
      admLoc_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊科室
   * </pre>
   *
   * <code>string admLoc = 2;</code>
   * @return The bytes for admLoc.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdmLocBytes() {
    java.lang.Object ref = admLoc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admLoc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMDOC_FIELD_NUMBER = 3;
  private volatile java.lang.Object admDoc_;
  /**
   * <pre>
   *就诊医生
   * </pre>
   *
   * <code>string admDoc = 3;</code>
   * @return The admDoc.
   */
  @java.lang.Override
  public java.lang.String getAdmDoc() {
    java.lang.Object ref = admDoc_;
    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();
      admDoc_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊医生
   * </pre>
   *
   * <code>string admDoc = 3;</code>
   * @return The bytes for admDoc.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdmDocBytes() {
    java.lang.Object ref = admDoc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admDoc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ADMITDATE_FIELD_NUMBER = 4;
  private volatile java.lang.Object admitDate_;
  /**
   * <pre>
   *就诊日期(YYYY-MM-DD)
   * </pre>
   *
   * <code>string admitDate = 4;</code>
   * @return The admitDate.
   */
  @java.lang.Override
  public java.lang.String getAdmitDate() {
    java.lang.Object ref = admitDate_;
    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();
      admitDate_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *就诊日期(YYYY-MM-DD)
   * </pre>
   *
   * <code>string admitDate = 4;</code>
   * @return The bytes for admitDate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAdmitDateBytes() {
    java.lang.Object ref = admitDate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      admitDate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DIAGNOSIS_FIELD_NUMBER = 5;
  private volatile java.lang.Object diagnosis_;
  /**
   * <pre>
   *诊断描述
   * </pre>
   *
   * <code>string diagnosis = 5;</code>
   * @return The diagnosis.
   */
  @java.lang.Override
  public java.lang.String getDiagnosis() {
    java.lang.Object ref = diagnosis_;
    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();
      diagnosis_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *诊断描述
   * </pre>
   *
   * <code>string diagnosis = 5;</code>
   * @return The bytes for diagnosis.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDiagnosisBytes() {
    java.lang.Object ref = diagnosis_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      diagnosis_ = 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(patientID_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patientID_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admLoc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, admLoc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admDoc_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, admDoc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitDate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, admitDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosis_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, diagnosis_);
    }
    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(patientID_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, patientID_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admLoc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, admLoc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admDoc_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, admDoc_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admitDate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, admitDate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosis_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, diagnosis_);
    }
    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.ClinicInfo)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nfyy.ClinicInfo other = (com.ywt.gapi.nfyy.ClinicInfo) obj;

    if (!getPatientID()
        .equals(other.getPatientID())) return false;
    if (!getAdmLoc()
        .equals(other.getAdmLoc())) return false;
    if (!getAdmDoc()
        .equals(other.getAdmDoc())) return false;
    if (!getAdmitDate()
        .equals(other.getAdmitDate())) return false;
    if (!getDiagnosis()
        .equals(other.getDiagnosis())) 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) + PATIENTID_FIELD_NUMBER;
    hash = (53 * hash) + getPatientID().hashCode();
    hash = (37 * hash) + ADMLOC_FIELD_NUMBER;
    hash = (53 * hash) + getAdmLoc().hashCode();
    hash = (37 * hash) + ADMDOC_FIELD_NUMBER;
    hash = (53 * hash) + getAdmDoc().hashCode();
    hash = (37 * hash) + ADMITDATE_FIELD_NUMBER;
    hash = (53 * hash) + getAdmitDate().hashCode();
    hash = (37 * hash) + DIAGNOSIS_FIELD_NUMBER;
    hash = (53 * hash) + getDiagnosis().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.ywt.gapi.nfyy.ClinicInfo.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();
      patientID_ = "";

      admLoc_ = "";

      admDoc_ = "";

      admitDate_ = "";

      diagnosis_ = "";

      return this;
    }

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

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

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

    @java.lang.Override
    public com.ywt.gapi.nfyy.ClinicInfo buildPartial() {
      com.ywt.gapi.nfyy.ClinicInfo result = new com.ywt.gapi.nfyy.ClinicInfo(this);
      result.patientID_ = patientID_;
      result.admLoc_ = admLoc_;
      result.admDoc_ = admDoc_;
      result.admitDate_ = admitDate_;
      result.diagnosis_ = diagnosis_;
      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.ClinicInfo) {
        return mergeFrom((com.ywt.gapi.nfyy.ClinicInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.nfyy.ClinicInfo other) {
      if (other == com.ywt.gapi.nfyy.ClinicInfo.getDefaultInstance()) return this;
      if (!other.getPatientID().isEmpty()) {
        patientID_ = other.patientID_;
        onChanged();
      }
      if (!other.getAdmLoc().isEmpty()) {
        admLoc_ = other.admLoc_;
        onChanged();
      }
      if (!other.getAdmDoc().isEmpty()) {
        admDoc_ = other.admDoc_;
        onChanged();
      }
      if (!other.getAdmitDate().isEmpty()) {
        admitDate_ = other.admitDate_;
        onChanged();
      }
      if (!other.getDiagnosis().isEmpty()) {
        diagnosis_ = other.diagnosis_;
        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.ClinicInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.nfyy.ClinicInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object patientID_ = "";
    /**
     * <pre>
     *ID号
     * </pre>
     *
     * <code>string patientID = 1;</code>
     * @return The patientID.
     */
    public java.lang.String getPatientID() {
      java.lang.Object ref = patientID_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        patientID_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *ID号
     * </pre>
     *
     * <code>string patientID = 1;</code>
     * @return The bytes for patientID.
     */
    public com.google.protobuf.ByteString
        getPatientIDBytes() {
      java.lang.Object ref = patientID_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        patientID_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *ID号
     * </pre>
     *
     * <code>string patientID = 1;</code>
     * @param value The patientID to set.
     * @return This builder for chaining.
     */
    public Builder setPatientID(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      patientID_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *ID号
     * </pre>
     *
     * <code>string patientID = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearPatientID() {
      
      patientID_ = getDefaultInstance().getPatientID();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *ID号
     * </pre>
     *
     * <code>string patientID = 1;</code>
     * @param value The bytes for patientID to set.
     * @return This builder for chaining.
     */
    public Builder setPatientIDBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      patientID_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admLoc_ = "";
    /**
     * <pre>
     *就诊科室
     * </pre>
     *
     * <code>string admLoc = 2;</code>
     * @return The admLoc.
     */
    public java.lang.String getAdmLoc() {
      java.lang.Object ref = admLoc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admLoc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊科室
     * </pre>
     *
     * <code>string admLoc = 2;</code>
     * @return The bytes for admLoc.
     */
    public com.google.protobuf.ByteString
        getAdmLocBytes() {
      java.lang.Object ref = admLoc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admLoc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊科室
     * </pre>
     *
     * <code>string admLoc = 2;</code>
     * @param value The admLoc to set.
     * @return This builder for chaining.
     */
    public Builder setAdmLoc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admLoc_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊科室
     * </pre>
     *
     * <code>string admLoc = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdmLoc() {
      
      admLoc_ = getDefaultInstance().getAdmLoc();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊科室
     * </pre>
     *
     * <code>string admLoc = 2;</code>
     * @param value The bytes for admLoc to set.
     * @return This builder for chaining.
     */
    public Builder setAdmLocBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admLoc_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admDoc_ = "";
    /**
     * <pre>
     *就诊医生
     * </pre>
     *
     * <code>string admDoc = 3;</code>
     * @return The admDoc.
     */
    public java.lang.String getAdmDoc() {
      java.lang.Object ref = admDoc_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admDoc_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊医生
     * </pre>
     *
     * <code>string admDoc = 3;</code>
     * @return The bytes for admDoc.
     */
    public com.google.protobuf.ByteString
        getAdmDocBytes() {
      java.lang.Object ref = admDoc_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admDoc_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊医生
     * </pre>
     *
     * <code>string admDoc = 3;</code>
     * @param value The admDoc to set.
     * @return This builder for chaining.
     */
    public Builder setAdmDoc(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admDoc_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊医生
     * </pre>
     *
     * <code>string admDoc = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdmDoc() {
      
      admDoc_ = getDefaultInstance().getAdmDoc();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊医生
     * </pre>
     *
     * <code>string admDoc = 3;</code>
     * @param value The bytes for admDoc to set.
     * @return This builder for chaining.
     */
    public Builder setAdmDocBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admDoc_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object admitDate_ = "";
    /**
     * <pre>
     *就诊日期(YYYY-MM-DD)
     * </pre>
     *
     * <code>string admitDate = 4;</code>
     * @return The admitDate.
     */
    public java.lang.String getAdmitDate() {
      java.lang.Object ref = admitDate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        admitDate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *就诊日期(YYYY-MM-DD)
     * </pre>
     *
     * <code>string admitDate = 4;</code>
     * @return The bytes for admitDate.
     */
    public com.google.protobuf.ByteString
        getAdmitDateBytes() {
      java.lang.Object ref = admitDate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        admitDate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *就诊日期(YYYY-MM-DD)
     * </pre>
     *
     * <code>string admitDate = 4;</code>
     * @param value The admitDate to set.
     * @return This builder for chaining.
     */
    public Builder setAdmitDate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      admitDate_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊日期(YYYY-MM-DD)
     * </pre>
     *
     * <code>string admitDate = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearAdmitDate() {
      
      admitDate_ = getDefaultInstance().getAdmitDate();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *就诊日期(YYYY-MM-DD)
     * </pre>
     *
     * <code>string admitDate = 4;</code>
     * @param value The bytes for admitDate to set.
     * @return This builder for chaining.
     */
    public Builder setAdmitDateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      admitDate_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object diagnosis_ = "";
    /**
     * <pre>
     *诊断描述
     * </pre>
     *
     * <code>string diagnosis = 5;</code>
     * @return The diagnosis.
     */
    public java.lang.String getDiagnosis() {
      java.lang.Object ref = diagnosis_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        diagnosis_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *诊断描述
     * </pre>
     *
     * <code>string diagnosis = 5;</code>
     * @return The bytes for diagnosis.
     */
    public com.google.protobuf.ByteString
        getDiagnosisBytes() {
      java.lang.Object ref = diagnosis_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnosis_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *诊断描述
     * </pre>
     *
     * <code>string diagnosis = 5;</code>
     * @param value The diagnosis to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnosis(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      diagnosis_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断描述
     * </pre>
     *
     * <code>string diagnosis = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDiagnosis() {
      
      diagnosis_ = getDefaultInstance().getDiagnosis();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *诊断描述
     * </pre>
     *
     * <code>string diagnosis = 5;</code>
     * @param value The bytes for diagnosis to set.
     * @return This builder for chaining.
     */
    public Builder setDiagnosisBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      diagnosis_ = 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.ClinicInfo)
  }

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

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

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

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

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

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

}

