// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: his_medic_data.proto
package com.fs.watch.protobuf;
public final class HisMedicData {
  private HisMedicData() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface HisDataMedicOrBuilder extends
      // @@protoc_insertion_point(interface_extends:HisDataMedic)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>required .DateTime time_stamp = 1;</code>
     * @return Whether the timeStamp field is set.
     */
    boolean hasTimeStamp();
    /**
     * <code>required .DateTime time_stamp = 1;</code>
     * @return The timeStamp.
     */
    RealtimeData.DateTime getTimeStamp();
    /**
     * <code>required .DateTime time_stamp = 1;</code>
     */
    RealtimeData.DateTimeOrBuilder getTimeStampOrBuilder();

    /**
     * <code>optional fixed32 pain_level = 2;</code>
     * @return Whether the painLevel field is set.
     */
    boolean hasPainLevel();
    /**
     * <code>optional fixed32 pain_level = 2;</code>
     * @return The painLevel.
     */
    int getPainLevel();

    /**
     * <code>optional fixed32 fatigue_level = 3;</code>
     * @return Whether the fatigueLevel field is set.
     */
    boolean hasFatigueLevel();
    /**
     * <code>optional fixed32 fatigue_level = 3;</code>
     * @return The fatigueLevel.
     */
    int getFatigueLevel();

    /**
     * <code>optional fixed32 stiff_level = 4;</code>
     * @return Whether the stiffLevel field is set.
     */
    boolean hasStiffLevel();
    /**
     * <code>optional fixed32 stiff_level = 4;</code>
     * @return The stiffLevel.
     */
    int getStiffLevel();

    /**
     * <code>optional fixed32 stiff_time = 5;</code>
     * @return Whether the stiffTime field is set.
     */
    boolean hasStiffTime();
    /**
     * <code>optional fixed32 stiff_time = 5;</code>
     * @return The stiffTime.
     */
    int getStiffTime();
  }
  /**
   * Protobuf type {@code HisDataMedic}
   */
  public  static final class HisDataMedic extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisDataMedic)
      HisDataMedicOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisDataMedic.newBuilder() to construct.
    private HisDataMedic(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisDataMedic() {
    }

    @Override
    @SuppressWarnings({"unused"})
    protected Object newInstance(
        UnusedPrivateParameter unused) {
      return new HisDataMedic();
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisDataMedic(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new 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: {
              RealtimeData.DateTime.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) != 0)) {
                subBuilder = timeStamp_.toBuilder();
              }
              timeStamp_ = input.readMessage(RealtimeData.DateTime.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(timeStamp_);
                timeStamp_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 21: {
              bitField0_ |= 0x00000002;
              painLevel_ = input.readFixed32();
              break;
            }
            case 29: {
              bitField0_ |= 0x00000004;
              fatigueLevel_ = input.readFixed32();
              break;
            }
            case 37: {
              bitField0_ |= 0x00000008;
              stiffLevel_ = input.readFixed32();
              break;
            }
            case 45: {
              bitField0_ |= 0x00000010;
              stiffTime_ = input.readFixed32();
              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 HisMedicData.internal_static_HisDataMedic_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisMedicData.internal_static_HisDataMedic_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisDataMedic.class, Builder.class);
    }

    private int bitField0_;
    public static final int TIME_STAMP_FIELD_NUMBER = 1;
    private RealtimeData.DateTime timeStamp_;
    /**
     * <code>required .DateTime time_stamp = 1;</code>
     * @return Whether the timeStamp field is set.
     */
    public boolean hasTimeStamp() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .DateTime time_stamp = 1;</code>
     * @return The timeStamp.
     */
    public RealtimeData.DateTime getTimeStamp() {
      return timeStamp_ == null ? RealtimeData.DateTime.getDefaultInstance() : timeStamp_;
    }
    /**
     * <code>required .DateTime time_stamp = 1;</code>
     */
    public RealtimeData.DateTimeOrBuilder getTimeStampOrBuilder() {
      return timeStamp_ == null ? RealtimeData.DateTime.getDefaultInstance() : timeStamp_;
    }

    public static final int PAIN_LEVEL_FIELD_NUMBER = 2;
    private int painLevel_;
    /**
     * <code>optional fixed32 pain_level = 2;</code>
     * @return Whether the painLevel field is set.
     */
    public boolean hasPainLevel() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional fixed32 pain_level = 2;</code>
     * @return The painLevel.
     */
    public int getPainLevel() {
      return painLevel_;
    }

    public static final int FATIGUE_LEVEL_FIELD_NUMBER = 3;
    private int fatigueLevel_;
    /**
     * <code>optional fixed32 fatigue_level = 3;</code>
     * @return Whether the fatigueLevel field is set.
     */
    public boolean hasFatigueLevel() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional fixed32 fatigue_level = 3;</code>
     * @return The fatigueLevel.
     */
    public int getFatigueLevel() {
      return fatigueLevel_;
    }

    public static final int STIFF_LEVEL_FIELD_NUMBER = 4;
    private int stiffLevel_;
    /**
     * <code>optional fixed32 stiff_level = 4;</code>
     * @return Whether the stiffLevel field is set.
     */
    public boolean hasStiffLevel() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional fixed32 stiff_level = 4;</code>
     * @return The stiffLevel.
     */
    public int getStiffLevel() {
      return stiffLevel_;
    }

    public static final int STIFF_TIME_FIELD_NUMBER = 5;
    private int stiffTime_;
    /**
     * <code>optional fixed32 stiff_time = 5;</code>
     * @return Whether the stiffTime field is set.
     */
    public boolean hasStiffTime() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>optional fixed32 stiff_time = 5;</code>
     * @return The stiffTime.
     */
    public int getStiffTime() {
      return stiffTime_;
    }

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

      if (!hasTimeStamp()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTimeStamp().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getTimeStamp());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFixed32(2, painLevel_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeFixed32(3, fatigueLevel_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeFixed32(4, stiffLevel_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeFixed32(5, stiffTime_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getTimeStamp());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(2, painLevel_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(3, fatigueLevel_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(4, stiffLevel_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(5, stiffTime_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @Override
    public boolean equals(final Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof HisDataMedic)) {
        return super.equals(obj);
      }
      HisDataMedic other = (HisDataMedic) obj;

      if (hasTimeStamp() != other.hasTimeStamp()) return false;
      if (hasTimeStamp()) {
        if (!getTimeStamp()
            .equals(other.getTimeStamp())) return false;
      }
      if (hasPainLevel() != other.hasPainLevel()) return false;
      if (hasPainLevel()) {
        if (getPainLevel()
            != other.getPainLevel()) return false;
      }
      if (hasFatigueLevel() != other.hasFatigueLevel()) return false;
      if (hasFatigueLevel()) {
        if (getFatigueLevel()
            != other.getFatigueLevel()) return false;
      }
      if (hasStiffLevel() != other.hasStiffLevel()) return false;
      if (hasStiffLevel()) {
        if (getStiffLevel()
            != other.getStiffLevel()) return false;
      }
      if (hasStiffTime() != other.hasStiffTime()) return false;
      if (hasStiffTime()) {
        if (getStiffTime()
            != other.getStiffTime()) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasTimeStamp()) {
        hash = (37 * hash) + TIME_STAMP_FIELD_NUMBER;
        hash = (53 * hash) + getTimeStamp().hashCode();
      }
      if (hasPainLevel()) {
        hash = (37 * hash) + PAIN_LEVEL_FIELD_NUMBER;
        hash = (53 * hash) + getPainLevel();
      }
      if (hasFatigueLevel()) {
        hash = (37 * hash) + FATIGUE_LEVEL_FIELD_NUMBER;
        hash = (53 * hash) + getFatigueLevel();
      }
      if (hasStiffLevel()) {
        hash = (37 * hash) + STIFF_LEVEL_FIELD_NUMBER;
        hash = (53 * hash) + getStiffLevel();
      }
      if (hasStiffTime()) {
        hash = (37 * hash) + STIFF_TIME_FIELD_NUMBER;
        hash = (53 * hash) + getStiffTime();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    @Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(HisDataMedic prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @Override
    protected Builder newBuilderForType(
        BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code HisDataMedic}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:HisDataMedic)
        HisDataMedicOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return HisMedicData.internal_static_HisDataMedic_descriptor;
      }

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisMedicData.internal_static_HisDataMedic_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisDataMedic.class, Builder.class);
      }

      // Construct using HisMedicData.HisDataMedic.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTimeStampFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (timeStampBuilder_ == null) {
          timeStamp_ = null;
        } else {
          timeStampBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        painLevel_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        fatigueLevel_ = 0;
        bitField0_ = (bitField0_ & ~0x00000004);
        stiffLevel_ = 0;
        bitField0_ = (bitField0_ & ~0x00000008);
        stiffTime_ = 0;
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

      @Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return HisMedicData.internal_static_HisDataMedic_descriptor;
      }

      @Override
      public HisDataMedic getDefaultInstanceForType() {
        return HisDataMedic.getDefaultInstance();
      }

      @Override
      public HisDataMedic build() {
        HisDataMedic result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @Override
      public HisDataMedic buildPartial() {
        HisDataMedic result = new HisDataMedic(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          if (timeStampBuilder_ == null) {
            result.timeStamp_ = timeStamp_;
          } else {
            result.timeStamp_ = timeStampBuilder_.build();
          }
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.painLevel_ = painLevel_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.fatigueLevel_ = fatigueLevel_;
          to_bitField0_ |= 0x00000004;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.stiffLevel_ = stiffLevel_;
          to_bitField0_ |= 0x00000008;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.stiffTime_ = stiffTime_;
          to_bitField0_ |= 0x00000010;
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(HisDataMedic other) {
        if (other == HisDataMedic.getDefaultInstance()) return this;
        if (other.hasTimeStamp()) {
          mergeTimeStamp(other.getTimeStamp());
        }
        if (other.hasPainLevel()) {
          setPainLevel(other.getPainLevel());
        }
        if (other.hasFatigueLevel()) {
          setFatigueLevel(other.getFatigueLevel());
        }
        if (other.hasStiffLevel()) {
          setStiffLevel(other.getStiffLevel());
        }
        if (other.hasStiffTime()) {
          setStiffTime(other.getStiffTime());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        if (!hasTimeStamp()) {
          return false;
        }
        if (!getTimeStamp().isInitialized()) {
          return false;
        }
        return true;
      }

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

      private RealtimeData.DateTime timeStamp_;
      private com.google.protobuf.SingleFieldBuilderV3<
          RealtimeData.DateTime, RealtimeData.DateTime.Builder, RealtimeData.DateTimeOrBuilder> timeStampBuilder_;
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       * @return Whether the timeStamp field is set.
       */
      public boolean hasTimeStamp() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       * @return The timeStamp.
       */
      public RealtimeData.DateTime getTimeStamp() {
        if (timeStampBuilder_ == null) {
          return timeStamp_ == null ? RealtimeData.DateTime.getDefaultInstance() : timeStamp_;
        } else {
          return timeStampBuilder_.getMessage();
        }
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      public Builder setTimeStamp(RealtimeData.DateTime value) {
        if (timeStampBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          timeStamp_ = value;
          onChanged();
        } else {
          timeStampBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      public Builder setTimeStamp(
          RealtimeData.DateTime.Builder builderForValue) {
        if (timeStampBuilder_ == null) {
          timeStamp_ = builderForValue.build();
          onChanged();
        } else {
          timeStampBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      public Builder mergeTimeStamp(RealtimeData.DateTime value) {
        if (timeStampBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
              timeStamp_ != null &&
              timeStamp_ != RealtimeData.DateTime.getDefaultInstance()) {
            timeStamp_ =
              RealtimeData.DateTime.newBuilder(timeStamp_).mergeFrom(value).buildPartial();
          } else {
            timeStamp_ = value;
          }
          onChanged();
        } else {
          timeStampBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      public Builder clearTimeStamp() {
        if (timeStampBuilder_ == null) {
          timeStamp_ = null;
          onChanged();
        } else {
          timeStampBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      public RealtimeData.DateTime.Builder getTimeStampBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getTimeStampFieldBuilder().getBuilder();
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      public RealtimeData.DateTimeOrBuilder getTimeStampOrBuilder() {
        if (timeStampBuilder_ != null) {
          return timeStampBuilder_.getMessageOrBuilder();
        } else {
          return timeStamp_ == null ?
              RealtimeData.DateTime.getDefaultInstance() : timeStamp_;
        }
      }
      /**
       * <code>required .DateTime time_stamp = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          RealtimeData.DateTime, RealtimeData.DateTime.Builder, RealtimeData.DateTimeOrBuilder>
          getTimeStampFieldBuilder() {
        if (timeStampBuilder_ == null) {
          timeStampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              RealtimeData.DateTime, RealtimeData.DateTime.Builder, RealtimeData.DateTimeOrBuilder>(
                  getTimeStamp(),
                  getParentForChildren(),
                  isClean());
          timeStamp_ = null;
        }
        return timeStampBuilder_;
      }

      private int painLevel_ ;
      /**
       * <code>optional fixed32 pain_level = 2;</code>
       * @return Whether the painLevel field is set.
       */
      public boolean hasPainLevel() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional fixed32 pain_level = 2;</code>
       * @return The painLevel.
       */
      public int getPainLevel() {
        return painLevel_;
      }
      /**
       * <code>optional fixed32 pain_level = 2;</code>
       * @param value The painLevel to set.
       * @return This builder for chaining.
       */
      public Builder setPainLevel(int value) {
        bitField0_ |= 0x00000002;
        painLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional fixed32 pain_level = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearPainLevel() {
        bitField0_ = (bitField0_ & ~0x00000002);
        painLevel_ = 0;
        onChanged();
        return this;
      }

      private int fatigueLevel_ ;
      /**
       * <code>optional fixed32 fatigue_level = 3;</code>
       * @return Whether the fatigueLevel field is set.
       */
      public boolean hasFatigueLevel() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional fixed32 fatigue_level = 3;</code>
       * @return The fatigueLevel.
       */
      public int getFatigueLevel() {
        return fatigueLevel_;
      }
      /**
       * <code>optional fixed32 fatigue_level = 3;</code>
       * @param value The fatigueLevel to set.
       * @return This builder for chaining.
       */
      public Builder setFatigueLevel(int value) {
        bitField0_ |= 0x00000004;
        fatigueLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional fixed32 fatigue_level = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearFatigueLevel() {
        bitField0_ = (bitField0_ & ~0x00000004);
        fatigueLevel_ = 0;
        onChanged();
        return this;
      }

      private int stiffLevel_ ;
      /**
       * <code>optional fixed32 stiff_level = 4;</code>
       * @return Whether the stiffLevel field is set.
       */
      public boolean hasStiffLevel() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>optional fixed32 stiff_level = 4;</code>
       * @return The stiffLevel.
       */
      public int getStiffLevel() {
        return stiffLevel_;
      }
      /**
       * <code>optional fixed32 stiff_level = 4;</code>
       * @param value The stiffLevel to set.
       * @return This builder for chaining.
       */
      public Builder setStiffLevel(int value) {
        bitField0_ |= 0x00000008;
        stiffLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional fixed32 stiff_level = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearStiffLevel() {
        bitField0_ = (bitField0_ & ~0x00000008);
        stiffLevel_ = 0;
        onChanged();
        return this;
      }

      private int stiffTime_ ;
      /**
       * <code>optional fixed32 stiff_time = 5;</code>
       * @return Whether the stiffTime field is set.
       */
      public boolean hasStiffTime() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <code>optional fixed32 stiff_time = 5;</code>
       * @return The stiffTime.
       */
      public int getStiffTime() {
        return stiffTime_;
      }
      /**
       * <code>optional fixed32 stiff_time = 5;</code>
       * @param value The stiffTime to set.
       * @return This builder for chaining.
       */
      public Builder setStiffTime(int value) {
        bitField0_ |= 0x00000010;
        stiffTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional fixed32 stiff_time = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearStiffTime() {
        bitField0_ = (bitField0_ & ~0x00000010);
        stiffTime_ = 0;
        onChanged();
        return this;
      }
      @Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:HisDataMedic)
    }

    // @@protoc_insertion_point(class_scope:HisDataMedic)
    private static final HisDataMedic DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new HisDataMedic();
    }

    public static HisDataMedic getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @Override
    public HisDataMedic getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisDataMedic_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisDataMedic_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\024his_medic_data.proto\032\023realtime_data.pr" +
      "oto\"\201\001\n\014HisDataMedic\022\035\n\ntime_stamp\030\001 \002(\013" +
      "2\t.DateTime\022\022\n\npain_level\030\002 \001(\007\022\025\n\rfatig" +
      "ue_level\030\003 \001(\007\022\023\n\013stiff_level\030\004 \001(\007\022\022\n\ns" +
      "tiff_time\030\005 \001(\007B\tZ\007./iwown"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          RealtimeData.getDescriptor(),
        });
    internal_static_HisDataMedic_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_HisDataMedic_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisDataMedic_descriptor,
        new String[] { "TimeStamp", "PainLevel", "FatigueLevel", "StiffLevel", "StiffTime", });
    RealtimeData.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
