// 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.YiDaDoctorStatsData}
 */
public final class YiDaDoctorStatsData extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.YiDaDoctorStatsData)
    YiDaDoctorStatsDataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use YiDaDoctorStatsData.newBuilder() to construct.
  private YiDaDoctorStatsData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private YiDaDoctorStatsData() {
    doctorId_ = "";
    disease_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private YiDaDoctorStatsData(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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();

            doctorId_ = s;
            break;
          }
          case 16: {

            totalTreat_ = input.readInt32();
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              disease_ = new java.util.ArrayList<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease>();
              mutable_bitField0_ |= 0x00000001;
            }
            disease_.add(
                input.readMessage(com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.parser(), extensionRegistry));
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        disease_ = java.util.Collections.unmodifiableList(disease_);
      }
      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_YiDaDoctorStatsData_descriptor;
  }

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

  public interface DiseaseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     *疾病ID
     * </pre>
     *
     * <code>string id = 1;</code>
     * @return The id.
     */
    java.lang.String getId();
    /**
     * <pre>
     *疾病ID
     * </pre>
     *
     * <code>string id = 1;</code>
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * <pre>
     *疾病名称
     * </pre>
     *
     * <code>string name = 2;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <pre>
     *疾病名称
     * </pre>
     *
     * <code>string name = 2;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <pre>
     *疾病数量
     * </pre>
     *
     * <code>int32 treatCount = 3;</code>
     * @return The treatCount.
     */
    int getTreatCount();
  }
  /**
   * <pre>
   *治疗疾病
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease}
   */
  public static final class Disease extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease)
      DiseaseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Disease.newBuilder() to construct.
    private Disease(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Disease() {
      id_ = "";
      name_ = "";
    }

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

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

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

              name_ = s;
              break;
            }
            case 24: {

              treatCount_ = input.readInt32();
              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_YiDaDoctorStatsData_Disease_descriptor;
    }

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

    public static final int ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object id_;
    /**
     * <pre>
     *疾病ID
     * </pre>
     *
     * <code>string id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      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();
        id_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *疾病ID
     * </pre>
     *
     * <code>string id = 1;</code>
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     * <pre>
     *疾病名称
     * </pre>
     *
     * <code>string name = 2;</code>
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <pre>
     *疾病名称
     * </pre>
     *
     * <code>string name = 2;</code>
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TREATCOUNT_FIELD_NUMBER = 3;
    private int treatCount_;
    /**
     * <pre>
     *疾病数量
     * </pre>
     *
     * <code>int32 treatCount = 3;</code>
     * @return The treatCount.
     */
    @java.lang.Override
    public int getTreatCount() {
      return treatCount_;
    }

    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(id_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (treatCount_ != 0) {
        output.writeInt32(3, treatCount_);
      }
      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(id_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (treatCount_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, treatCount_);
      }
      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.YiDaDoctorStatsData.Disease)) {
        return super.equals(obj);
      }
      com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease other = (com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease) obj;

      if (!getId()
          .equals(other.getId())) return false;
      if (!getName()
          .equals(other.getName())) return false;
      if (getTreatCount()
          != other.getTreatCount()) 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) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + TREATCOUNT_FIELD_NUMBER;
      hash = (53 * hash) + getTreatCount();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

        name_ = "";

        treatCount_ = 0;

        return this;
      }

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

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

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

      @java.lang.Override
      public com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease buildPartial() {
        com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease result = new com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease(this);
        result.id_ = id_;
        result.name_ = name_;
        result.treatCount_ = treatCount_;
        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.YiDaDoctorStatsData.Disease) {
          return mergeFrom((com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease other) {
        if (other == com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          onChanged();
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (other.getTreatCount() != 0) {
          setTreatCount(other.getTreatCount());
        }
        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.YiDaDoctorStatsData.Disease parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object id_ = "";
      /**
       * <pre>
       *疾病ID
       * </pre>
       *
       * <code>string id = 1;</code>
       * @return The id.
       */
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          id_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *疾病ID
       * </pre>
       *
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *疾病ID
       * </pre>
       *
       * <code>string id = 1;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *疾病ID
       * </pre>
       *
       * <code>string id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *疾病ID
       * </pre>
       *
       * <code>string id = 1;</code>
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        id_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <pre>
       *疾病名称
       * </pre>
       *
       * <code>string name = 2;</code>
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       *疾病名称
       * </pre>
       *
       * <code>string name = 2;</code>
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       *疾病名称
       * </pre>
       *
       * <code>string name = 2;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *疾病名称
       * </pre>
       *
       * <code>string name = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <pre>
       *疾病名称
       * </pre>
       *
       * <code>string name = 2;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private int treatCount_ ;
      /**
       * <pre>
       *疾病数量
       * </pre>
       *
       * <code>int32 treatCount = 3;</code>
       * @return The treatCount.
       */
      @java.lang.Override
      public int getTreatCount() {
        return treatCount_;
      }
      /**
       * <pre>
       *疾病数量
       * </pre>
       *
       * <code>int32 treatCount = 3;</code>
       * @param value The treatCount to set.
       * @return This builder for chaining.
       */
      public Builder setTreatCount(int value) {
        
        treatCount_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       *疾病数量
       * </pre>
       *
       * <code>int32 treatCount = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearTreatCount() {
        
        treatCount_ = 0;
        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.YiDaDoctorStatsData.Disease)
    }

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

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

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

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

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

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

  }

  public static final int DOCTORID_FIELD_NUMBER = 1;
  private volatile java.lang.Object doctorId_;
  /**
   * <pre>
   *医生ID
   * </pre>
   *
   * <code>string doctorId = 1;</code>
   * @return The doctorId.
   */
  @java.lang.Override
  public java.lang.String getDoctorId() {
    java.lang.Object ref = doctorId_;
    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();
      doctorId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *医生ID
   * </pre>
   *
   * <code>string doctorId = 1;</code>
   * @return The bytes for doctorId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDoctorIdBytes() {
    java.lang.Object ref = doctorId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      doctorId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOTALTREAT_FIELD_NUMBER = 2;
  private int totalTreat_;
  /**
   * <pre>
   *治疗总数
   * </pre>
   *
   * <code>int32 totalTreat = 2;</code>
   * @return The totalTreat.
   */
  @java.lang.Override
  public int getTotalTreat() {
    return totalTreat_;
  }

  public static final int DISEASE_FIELD_NUMBER = 3;
  private java.util.List<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease> disease_;
  /**
   * <pre>
   *疾病列表
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease> getDiseaseList() {
    return disease_;
  }
  /**
   * <pre>
   *疾病列表
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder> 
      getDiseaseOrBuilderList() {
    return disease_;
  }
  /**
   * <pre>
   *疾病列表
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
   */
  @java.lang.Override
  public int getDiseaseCount() {
    return disease_.size();
  }
  /**
   * <pre>
   *疾病列表
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease getDisease(int index) {
    return disease_.get(index);
  }
  /**
   * <pre>
   *疾病列表
   * </pre>
   *
   * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder getDiseaseOrBuilder(
      int index) {
    return disease_.get(index);
  }

  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(doctorId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, doctorId_);
    }
    if (totalTreat_ != 0) {
      output.writeInt32(2, totalTreat_);
    }
    for (int i = 0; i < disease_.size(); i++) {
      output.writeMessage(3, disease_.get(i));
    }
    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(doctorId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, doctorId_);
    }
    if (totalTreat_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, totalTreat_);
    }
    for (int i = 0; i < disease_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, disease_.get(i));
    }
    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.YiDaDoctorStatsData)) {
      return super.equals(obj);
    }
    com.ywt.gapi.nfyy.YiDaDoctorStatsData other = (com.ywt.gapi.nfyy.YiDaDoctorStatsData) obj;

    if (!getDoctorId()
        .equals(other.getDoctorId())) return false;
    if (getTotalTreat()
        != other.getTotalTreat()) return false;
    if (!getDiseaseList()
        .equals(other.getDiseaseList())) 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().hashCode();
    hash = (37 * hash) + TOTALTREAT_FIELD_NUMBER;
    hash = (53 * hash) + getTotalTreat();
    if (getDiseaseCount() > 0) {
      hash = (37 * hash) + DISEASE_FIELD_NUMBER;
      hash = (53 * hash) + getDiseaseList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

      totalTreat_ = 0;

      if (diseaseBuilder_ == null) {
        disease_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        diseaseBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public com.ywt.gapi.nfyy.YiDaDoctorStatsData buildPartial() {
      com.ywt.gapi.nfyy.YiDaDoctorStatsData result = new com.ywt.gapi.nfyy.YiDaDoctorStatsData(this);
      int from_bitField0_ = bitField0_;
      result.doctorId_ = doctorId_;
      result.totalTreat_ = totalTreat_;
      if (diseaseBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          disease_ = java.util.Collections.unmodifiableList(disease_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.disease_ = disease_;
      } else {
        result.disease_ = diseaseBuilder_.build();
      }
      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.YiDaDoctorStatsData) {
        return mergeFrom((com.ywt.gapi.nfyy.YiDaDoctorStatsData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.nfyy.YiDaDoctorStatsData other) {
      if (other == com.ywt.gapi.nfyy.YiDaDoctorStatsData.getDefaultInstance()) return this;
      if (!other.getDoctorId().isEmpty()) {
        doctorId_ = other.doctorId_;
        onChanged();
      }
      if (other.getTotalTreat() != 0) {
        setTotalTreat(other.getTotalTreat());
      }
      if (diseaseBuilder_ == null) {
        if (!other.disease_.isEmpty()) {
          if (disease_.isEmpty()) {
            disease_ = other.disease_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDiseaseIsMutable();
            disease_.addAll(other.disease_);
          }
          onChanged();
        }
      } else {
        if (!other.disease_.isEmpty()) {
          if (diseaseBuilder_.isEmpty()) {
            diseaseBuilder_.dispose();
            diseaseBuilder_ = null;
            disease_ = other.disease_;
            bitField0_ = (bitField0_ & ~0x00000001);
            diseaseBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDiseaseFieldBuilder() : null;
          } else {
            diseaseBuilder_.addAllMessages(other.disease_);
          }
        }
      }
      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.YiDaDoctorStatsData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.nfyy.YiDaDoctorStatsData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object doctorId_ = "";
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>string doctorId = 1;</code>
     * @return The doctorId.
     */
    public java.lang.String getDoctorId() {
      java.lang.Object ref = doctorId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        doctorId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>string doctorId = 1;</code>
     * @return The bytes for doctorId.
     */
    public com.google.protobuf.ByteString
        getDoctorIdBytes() {
      java.lang.Object ref = doctorId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        doctorId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>string doctorId = 1;</code>
     * @param value The doctorId to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      doctorId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>string doctorId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDoctorId() {
      
      doctorId_ = getDefaultInstance().getDoctorId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *医生ID
     * </pre>
     *
     * <code>string doctorId = 1;</code>
     * @param value The bytes for doctorId to set.
     * @return This builder for chaining.
     */
    public Builder setDoctorIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      doctorId_ = value;
      onChanged();
      return this;
    }

    private int totalTreat_ ;
    /**
     * <pre>
     *治疗总数
     * </pre>
     *
     * <code>int32 totalTreat = 2;</code>
     * @return The totalTreat.
     */
    @java.lang.Override
    public int getTotalTreat() {
      return totalTreat_;
    }
    /**
     * <pre>
     *治疗总数
     * </pre>
     *
     * <code>int32 totalTreat = 2;</code>
     * @param value The totalTreat to set.
     * @return This builder for chaining.
     */
    public Builder setTotalTreat(int value) {
      
      totalTreat_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *治疗总数
     * </pre>
     *
     * <code>int32 totalTreat = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotalTreat() {
      
      totalTreat_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease> disease_ =
      java.util.Collections.emptyList();
    private void ensureDiseaseIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        disease_ = new java.util.ArrayList<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease>(disease_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder, com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder> diseaseBuilder_;

    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public java.util.List<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease> getDiseaseList() {
      if (diseaseBuilder_ == null) {
        return java.util.Collections.unmodifiableList(disease_);
      } else {
        return diseaseBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public int getDiseaseCount() {
      if (diseaseBuilder_ == null) {
        return disease_.size();
      } else {
        return diseaseBuilder_.getCount();
      }
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease getDisease(int index) {
      if (diseaseBuilder_ == null) {
        return disease_.get(index);
      } else {
        return diseaseBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder setDisease(
        int index, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease value) {
      if (diseaseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDiseaseIsMutable();
        disease_.set(index, value);
        onChanged();
      } else {
        diseaseBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder setDisease(
        int index, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder builderForValue) {
      if (diseaseBuilder_ == null) {
        ensureDiseaseIsMutable();
        disease_.set(index, builderForValue.build());
        onChanged();
      } else {
        diseaseBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder addDisease(com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease value) {
      if (diseaseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDiseaseIsMutable();
        disease_.add(value);
        onChanged();
      } else {
        diseaseBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder addDisease(
        int index, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease value) {
      if (diseaseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDiseaseIsMutable();
        disease_.add(index, value);
        onChanged();
      } else {
        diseaseBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder addDisease(
        com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder builderForValue) {
      if (diseaseBuilder_ == null) {
        ensureDiseaseIsMutable();
        disease_.add(builderForValue.build());
        onChanged();
      } else {
        diseaseBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder addDisease(
        int index, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder builderForValue) {
      if (diseaseBuilder_ == null) {
        ensureDiseaseIsMutable();
        disease_.add(index, builderForValue.build());
        onChanged();
      } else {
        diseaseBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder addAllDisease(
        java.lang.Iterable<? extends com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease> values) {
      if (diseaseBuilder_ == null) {
        ensureDiseaseIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, disease_);
        onChanged();
      } else {
        diseaseBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder clearDisease() {
      if (diseaseBuilder_ == null) {
        disease_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        diseaseBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public Builder removeDisease(int index) {
      if (diseaseBuilder_ == null) {
        ensureDiseaseIsMutable();
        disease_.remove(index);
        onChanged();
      } else {
        diseaseBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder getDiseaseBuilder(
        int index) {
      return getDiseaseFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder getDiseaseOrBuilder(
        int index) {
      if (diseaseBuilder_ == null) {
        return disease_.get(index);  } else {
        return diseaseBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public java.util.List<? extends com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder> 
         getDiseaseOrBuilderList() {
      if (diseaseBuilder_ != null) {
        return diseaseBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(disease_);
      }
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder addDiseaseBuilder() {
      return getDiseaseFieldBuilder().addBuilder(
          com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.getDefaultInstance());
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder addDiseaseBuilder(
        int index) {
      return getDiseaseFieldBuilder().addBuilder(
          index, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.getDefaultInstance());
    }
    /**
     * <pre>
     *疾病列表
     * </pre>
     *
     * <code>repeated .com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease disease = 3;</code>
     */
    public java.util.List<com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder> 
         getDiseaseBuilderList() {
      return getDiseaseFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder, com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder> 
        getDiseaseFieldBuilder() {
      if (diseaseBuilder_ == null) {
        diseaseBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease, com.ywt.gapi.nfyy.YiDaDoctorStatsData.Disease.Builder, com.ywt.gapi.nfyy.YiDaDoctorStatsData.DiseaseOrBuilder>(
                disease_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        disease_ = null;
      }
      return diseaseBuilder_;
    }
    @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.YiDaDoctorStatsData)
  }

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

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

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

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

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

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

}

