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

package com.ywt.gapi.system;

/**
 * Protobuf type {@code com.ywt.gapi.system.Doctor}
 */
public final class Doctor extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.system.Doctor)
    DoctorOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Doctor.newBuilder() to construct.
  private Doctor(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Doctor() {
    doctorName_ = "";
    doctorTitle_ = "";
    doctorSpeciality_ = "";
    doctorIntro_ = "";
    doctorDept_ = "";
    doctorAvatar_ = "";
  }

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

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

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

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

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

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

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

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

            doctorAvatar_ = 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.system.SystemProto.internal_static_com_ywt_gapi_system_Doctor_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Doctor_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.system.Doctor.class, com.ywt.gapi.system.Doctor.Builder.class);
  }

  public static final int DOCTORID_FIELD_NUMBER = 1;
  private int doctorId_;
  /**
   * <pre>
   *医生ID
   * </pre>
   *
   * <code>int32 doctorId = 1;</code>
   * @return The doctorId.
   */
  @java.lang.Override
  public int getDoctorId() {
    return doctorId_;
  }

  public static final int DOCTORNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object doctorName_;
  /**
   * <pre>
   *医生名称
   * </pre>
   *
   * <code>string doctorName = 2;</code>
   * @return The doctorName.
   */
  @java.lang.Override
  public java.lang.String getDoctorName() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      doctorName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生名称
   * </pre>
   *
   * <code>string doctorName = 2;</code>
   * @return The bytes for doctorName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorNameBytes() {
    java.lang.Object ref = doctorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORTITLE_FIELD_NUMBER = 3;
  private volatile java.lang.Object doctorTitle_;
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 3;</code>
   * @return The doctorTitle.
   */
  @java.lang.Override
  public java.lang.String getDoctorTitle() {
    java.lang.Object ref = doctorTitle_;
    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();
      doctorTitle_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生职称
   * </pre>
   *
   * <code>string doctorTitle = 3;</code>
   * @return The bytes for doctorTitle.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorTitleBytes() {
    java.lang.Object ref = doctorTitle_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorTitle_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORSPECIALITY_FIELD_NUMBER = 4;
  private volatile java.lang.Object doctorSpeciality_;
  /**
   * <pre>
   *医生擅长
   * </pre>
   *
   * <code>string doctorSpeciality = 4;</code>
   * @return The doctorSpeciality.
   */
  @java.lang.Override
  public java.lang.String getDoctorSpeciality() {
    java.lang.Object ref = doctorSpeciality_;
    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();
      doctorSpeciality_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生擅长
   * </pre>
   *
   * <code>string doctorSpeciality = 4;</code>
   * @return The bytes for doctorSpeciality.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorSpecialityBytes() {
    java.lang.Object ref = doctorSpeciality_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorSpeciality_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORINTRO_FIELD_NUMBER = 5;
  private volatile java.lang.Object doctorIntro_;
  /**
   * <pre>
   *医生简介
   * </pre>
   *
   * <code>string doctorIntro = 5;</code>
   * @return The doctorIntro.
   */
  @java.lang.Override
  public java.lang.String getDoctorIntro() {
    java.lang.Object ref = doctorIntro_;
    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();
      doctorIntro_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生简介
   * </pre>
   *
   * <code>string doctorIntro = 5;</code>
   * @return The bytes for doctorIntro.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorIntroBytes() {
    java.lang.Object ref = doctorIntro_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorIntro_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORDEPT_FIELD_NUMBER = 6;
  private volatile java.lang.Object doctorDept_;
  /**
   * <pre>
   *医生科室
   * </pre>
   *
   * <code>string doctorDept = 6;</code>
   * @return The doctorDept.
   */
  @java.lang.Override
  public java.lang.String getDoctorDept() {
    java.lang.Object ref = doctorDept_;
    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();
      doctorDept_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生科室
   * </pre>
   *
   * <code>string doctorDept = 6;</code>
   * @return The bytes for doctorDept.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorDeptBytes() {
    java.lang.Object ref = doctorDept_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorDept_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DOCTORAVATAR_FIELD_NUMBER = 7;
  private volatile java.lang.Object doctorAvatar_;
  /**
   * <pre>
   *医生头像
   * </pre>
   *
   * <code>string doctorAvatar = 7;</code>
   * @return The doctorAvatar.
   */
  @java.lang.Override
  public java.lang.String getDoctorAvatar() {
    java.lang.Object ref = doctorAvatar_;
    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();
      doctorAvatar_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生头像
   * </pre>
   *
   * <code>string doctorAvatar = 7;</code>
   * @return The bytes for doctorAvatar.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorAvatarBytes() {
    java.lang.Object ref = doctorAvatar_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorAvatar_ = 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 (doctorId_ != 0) {
      output.writeInt32(1, doctorId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSpeciality_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, doctorSpeciality_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorIntro_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, doctorIntro_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorDept_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, doctorDept_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorAvatar_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, doctorAvatar_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (doctorId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, doctorId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, doctorName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorTitle_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, doctorTitle_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorSpeciality_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, doctorSpeciality_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorIntro_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, doctorIntro_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorDept_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, doctorDept_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(doctorAvatar_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, doctorAvatar_);
    }
    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.system.Doctor)) {
      return super.equals(obj);
    }
    com.ywt.gapi.system.Doctor other = (com.ywt.gapi.system.Doctor) obj;

    if (getDoctorId()
        != other.getDoctorId()) return false;
    if (!getDoctorName()
        .equals(other.getDoctorName())) return false;
    if (!getDoctorTitle()
        .equals(other.getDoctorTitle())) return false;
    if (!getDoctorSpeciality()
        .equals(other.getDoctorSpeciality())) return false;
    if (!getDoctorIntro()
        .equals(other.getDoctorIntro())) return false;
    if (!getDoctorDept()
        .equals(other.getDoctorDept())) return false;
    if (!getDoctorAvatar()
        .equals(other.getDoctorAvatar())) 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) + DOCTORID_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorId();
    hash = (37 * hash) + DOCTORNAME_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorName().hashCode();
    hash = (37 * hash) + DOCTORTITLE_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorTitle().hashCode();
    hash = (37 * hash) + DOCTORSPECIALITY_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorSpeciality().hashCode();
    hash = (37 * hash) + DOCTORINTRO_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorIntro().hashCode();
    hash = (37 * hash) + DOCTORDEPT_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorDept().hashCode();
    hash = (37 * hash) + DOCTORAVATAR_FIELD_NUMBER;
    hash = (53 * hash) + getDoctorAvatar().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Doctor_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.system.Doctor.class, com.ywt.gapi.system.Doctor.Builder.class);
    }

    // Construct using com.ywt.gapi.system.Doctor.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();
      doctorId_ = 0;

      doctorName_ = "";

      doctorTitle_ = "";

      doctorSpeciality_ = "";

      doctorIntro_ = "";

      doctorDept_ = "";

      doctorAvatar_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.system.SystemProto.internal_static_com_ywt_gapi_system_Doctor_descriptor;
    }

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

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

    @java.lang.Override
    public com.ywt.gapi.system.Doctor buildPartial() {
      com.ywt.gapi.system.Doctor result = new com.ywt.gapi.system.Doctor(this);
      result.doctorId_ = doctorId_;
      result.doctorName_ = doctorName_;
      result.doctorTitle_ = doctorTitle_;
      result.doctorSpeciality_ = doctorSpeciality_;
      result.doctorIntro_ = doctorIntro_;
      result.doctorDept_ = doctorDept_;
      result.doctorAvatar_ = doctorAvatar_;
      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.system.Doctor) {
        return mergeFrom((com.ywt.gapi.system.Doctor)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.system.Doctor other) {
      if (other == com.ywt.gapi.system.Doctor.getDefaultInstance()) return this;
      if (other.getDoctorId() != 0) {
        setDoctorId(other.getDoctorId());
      }
      if (!other.getDoctorName().isEmpty()) {
        doctorName_ = other.doctorName_;
        onChanged();
      }
      if (!other.getDoctorTitle().isEmpty()) {
        doctorTitle_ = other.doctorTitle_;
        onChanged();
      }
      if (!other.getDoctorSpeciality().isEmpty()) {
        doctorSpeciality_ = other.doctorSpeciality_;
        onChanged();
      }
      if (!other.getDoctorIntro().isEmpty()) {
        doctorIntro_ = other.doctorIntro_;
        onChanged();
      }
      if (!other.getDoctorDept().isEmpty()) {
        doctorDept_ = other.doctorDept_;
        onChanged();
      }
      if (!other.getDoctorAvatar().isEmpty()) {
        doctorAvatar_ = other.doctorAvatar_;
        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.system.Doctor parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.system.Doctor) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int doctorId_ ;
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     * @return The doctorId.
     */
    @java.lang.Override
    public int getDoctorId() {
      return doctorId_;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     * @param value The doctorId to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorId(int value) {
      
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>int32 doctorId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorId() {
      
      doctorId_ = 0;
      onChanged();
      return this;
    }

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

    private java.lang.Object doctorTitle_ = "";
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 3;</code>
     * @return The doctorTitle.
     */
    public java.lang.String getDoctorTitle() {
      java.lang.Object ref = doctorTitle_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorTitle_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 3;</code>
     * @return The bytes for doctorTitle.
     */
    public com.google.protobuf.ByteString
        getDoctorTitleBytes() {
      java.lang.Object ref = doctorTitle_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorTitle_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 3;</code>
     * @param value The doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitle(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorTitle_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorTitle() {
      
      doctorTitle_ = getDefaultInstance().getDoctorTitle();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生职称
     * </pre>
     *
     * <code>string doctorTitle = 3;</code>
     * @param value The bytes for doctorTitle to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorTitle_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorSpeciality_ = "";
    /**
     * <pre>
     *医生擅长
     * </pre>
     *
     * <code>string doctorSpeciality = 4;</code>
     * @return The doctorSpeciality.
     */
    public java.lang.String getDoctorSpeciality() {
      java.lang.Object ref = doctorSpeciality_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorSpeciality_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生擅长
     * </pre>
     *
     * <code>string doctorSpeciality = 4;</code>
     * @return The bytes for doctorSpeciality.
     */
    public com.google.protobuf.ByteString
        getDoctorSpecialityBytes() {
      java.lang.Object ref = doctorSpeciality_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorSpeciality_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生擅长
     * </pre>
     *
     * <code>string doctorSpeciality = 4;</code>
     * @param value The doctorSpeciality to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSpeciality(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorSpeciality_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生擅长
     * </pre>
     *
     * <code>string doctorSpeciality = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorSpeciality() {
      
      doctorSpeciality_ = getDefaultInstance().getDoctorSpeciality();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生擅长
     * </pre>
     *
     * <code>string doctorSpeciality = 4;</code>
     * @param value The bytes for doctorSpeciality to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorSpecialityBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorSpeciality_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorIntro_ = "";
    /**
     * <pre>
     *医生简介
     * </pre>
     *
     * <code>string doctorIntro = 5;</code>
     * @return The doctorIntro.
     */
    public java.lang.String getDoctorIntro() {
      java.lang.Object ref = doctorIntro_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorIntro_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生简介
     * </pre>
     *
     * <code>string doctorIntro = 5;</code>
     * @return The bytes for doctorIntro.
     */
    public com.google.protobuf.ByteString
        getDoctorIntroBytes() {
      java.lang.Object ref = doctorIntro_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorIntro_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生简介
     * </pre>
     *
     * <code>string doctorIntro = 5;</code>
     * @param value The doctorIntro to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorIntro(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorIntro_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生简介
     * </pre>
     *
     * <code>string doctorIntro = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorIntro() {
      
      doctorIntro_ = getDefaultInstance().getDoctorIntro();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生简介
     * </pre>
     *
     * <code>string doctorIntro = 5;</code>
     * @param value The bytes for doctorIntro to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorIntroBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorIntro_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorDept_ = "";
    /**
     * <pre>
     *医生科室
     * </pre>
     *
     * <code>string doctorDept = 6;</code>
     * @return The doctorDept.
     */
    public java.lang.String getDoctorDept() {
      java.lang.Object ref = doctorDept_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorDept_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生科室
     * </pre>
     *
     * <code>string doctorDept = 6;</code>
     * @return The bytes for doctorDept.
     */
    public com.google.protobuf.ByteString
        getDoctorDeptBytes() {
      java.lang.Object ref = doctorDept_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorDept_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生科室
     * </pre>
     *
     * <code>string doctorDept = 6;</code>
     * @param value The doctorDept to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorDept(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorDept_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生科室
     * </pre>
     *
     * <code>string doctorDept = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorDept() {
      
      doctorDept_ = getDefaultInstance().getDoctorDept();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生科室
     * </pre>
     *
     * <code>string doctorDept = 6;</code>
     * @param value The bytes for doctorDept to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorDeptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorDept_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object doctorAvatar_ = "";
    /**
     * <pre>
     *医生头像
     * </pre>
     *
     * <code>string doctorAvatar = 7;</code>
     * @return The doctorAvatar.
     */
    public java.lang.String getDoctorAvatar() {
      java.lang.Object ref = doctorAvatar_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorAvatar_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生头像
     * </pre>
     *
     * <code>string doctorAvatar = 7;</code>
     * @return The bytes for doctorAvatar.
     */
    public com.google.protobuf.ByteString
        getDoctorAvatarBytes() {
      java.lang.Object ref = doctorAvatar_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorAvatar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生头像
     * </pre>
     *
     * <code>string doctorAvatar = 7;</code>
     * @param value The doctorAvatar to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorAvatar(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorAvatar_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生头像
     * </pre>
     *
     * <code>string doctorAvatar = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorAvatar() {
      
      doctorAvatar_ = getDefaultInstance().getDoctorAvatar();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生头像
     * </pre>
     *
     * <code>string doctorAvatar = 7;</code>
     * @param value The bytes for doctorAvatar to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorAvatarBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorAvatar_ = 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.system.Doctor)
  }

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

  public static com.ywt.gapi.system.Doctor getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

