// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: his_swim_data.proto
package com.fs.watch.protobuf;
public final class HisSwimData {
  private HisSwimData() {}
  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 SensorVecOrBuilder extends
      // @@protoc_insertion_point(interface_extends:SensorVec)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>required fixed32 x = 1;</code>
     * @return Whether the x field is set.
     */
    boolean hasX();
    /**
     * <code>required fixed32 x = 1;</code>
     * @return The x.
     */
    int getX();

    /**
     * <code>required fixed32 y = 2;</code>
     * @return Whether the y field is set.
     */
    boolean hasY();
    /**
     * <code>required fixed32 y = 2;</code>
     * @return The y.
     */
    int getY();

    /**
     * <code>required fixed32 z = 3;</code>
     * @return Whether the z field is set.
     */
    boolean hasZ();
    /**
     * <code>required fixed32 z = 3;</code>
     * @return The z.
     */
    int getZ();
  }
  /**
   * Protobuf type {@code SensorVec}
   */
  public  static final class SensorVec extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:SensorVec)
      SensorVecOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SensorVec.newBuilder() to construct.
    private SensorVec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SensorVec() {
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SensorVec(
        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 13: {
              bitField0_ |= 0x00000001;
              x_ = input.readFixed32();
              break;
            }
            case 21: {
              bitField0_ |= 0x00000002;
              y_ = input.readFixed32();
              break;
            }
            case 29: {
              bitField0_ |= 0x00000004;
              z_ = 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 HisSwimData.internal_static_SensorVec_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisSwimData.internal_static_SensorVec_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              SensorVec.class, Builder.class);
    }

    private int bitField0_;
    public static final int X_FIELD_NUMBER = 1;
    private int x_;
    /**
     * <code>required fixed32 x = 1;</code>
     * @return Whether the x field is set.
     */
    public boolean hasX() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required fixed32 x = 1;</code>
     * @return The x.
     */
    public int getX() {
      return x_;
    }

    public static final int Y_FIELD_NUMBER = 2;
    private int y_;
    /**
     * <code>required fixed32 y = 2;</code>
     * @return Whether the y field is set.
     */
    public boolean hasY() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required fixed32 y = 2;</code>
     * @return The y.
     */
    public int getY() {
      return y_;
    }

    public static final int Z_FIELD_NUMBER = 3;
    private int z_;
    /**
     * <code>required fixed32 z = 3;</code>
     * @return Whether the z field is set.
     */
    public boolean hasZ() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>required fixed32 z = 3;</code>
     * @return The z.
     */
    public int getZ() {
      return z_;
    }

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

      if (!hasX()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasY()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasZ()) {
        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.writeFixed32(1, x_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFixed32(2, y_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeFixed32(3, z_);
      }
      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
          .computeFixed32Size(1, x_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(2, y_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed32Size(3, z_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (hasX() != other.hasX()) return false;
      if (hasX()) {
        if (getX()
            != other.getX()) return false;
      }
      if (hasY() != other.hasY()) return false;
      if (hasY()) {
        if (getY()
            != other.getY()) return false;
      }
      if (hasZ() != other.hasZ()) return false;
      if (hasZ()) {
        if (getZ()
            != other.getZ()) 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 (hasX()) {
        hash = (37 * hash) + X_FIELD_NUMBER;
        hash = (53 * hash) + getX();
      }
      if (hasY()) {
        hash = (37 * hash) + Y_FIELD_NUMBER;
        hash = (53 * hash) + getY();
      }
      if (hasZ()) {
        hash = (37 * hash) + Z_FIELD_NUMBER;
        hash = (53 * hash) + getZ();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisSwimData.internal_static_SensorVec_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                SensorVec.class, Builder.class);
      }

      // Construct using HisSwimData.SensorVec.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        x_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        y_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        z_ = 0;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

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

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

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

      @Override
      public SensorVec buildPartial() {
        SensorVec result = new SensorVec(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.x_ = x_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.y_ = y_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.z_ = z_;
          to_bitField0_ |= 0x00000004;
        }
        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 SensorVec) {
          return mergeFrom((SensorVec)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(SensorVec other) {
        if (other == SensorVec.getDefaultInstance()) return this;
        if (other.hasX()) {
          setX(other.getX());
        }
        if (other.hasY()) {
          setY(other.getY());
        }
        if (other.hasZ()) {
          setZ(other.getZ());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        if (!hasX()) {
          return false;
        }
        if (!hasY()) {
          return false;
        }
        if (!hasZ()) {
          return false;
        }
        return true;
      }

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

      private int x_ ;
      /**
       * <code>required fixed32 x = 1;</code>
       * @return Whether the x field is set.
       */
      public boolean hasX() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required fixed32 x = 1;</code>
       * @return The x.
       */
      public int getX() {
        return x_;
      }
      /**
       * <code>required fixed32 x = 1;</code>
       * @param value The x to set.
       * @return This builder for chaining.
       */
      public Builder setX(int value) {
        bitField0_ |= 0x00000001;
        x_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required fixed32 x = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearX() {
        bitField0_ = (bitField0_ & ~0x00000001);
        x_ = 0;
        onChanged();
        return this;
      }

      private int y_ ;
      /**
       * <code>required fixed32 y = 2;</code>
       * @return Whether the y field is set.
       */
      public boolean hasY() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required fixed32 y = 2;</code>
       * @return The y.
       */
      public int getY() {
        return y_;
      }
      /**
       * <code>required fixed32 y = 2;</code>
       * @param value The y to set.
       * @return This builder for chaining.
       */
      public Builder setY(int value) {
        bitField0_ |= 0x00000002;
        y_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required fixed32 y = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearY() {
        bitField0_ = (bitField0_ & ~0x00000002);
        y_ = 0;
        onChanged();
        return this;
      }

      private int z_ ;
      /**
       * <code>required fixed32 z = 3;</code>
       * @return Whether the z field is set.
       */
      public boolean hasZ() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>required fixed32 z = 3;</code>
       * @return The z.
       */
      public int getZ() {
        return z_;
      }
      /**
       * <code>required fixed32 z = 3;</code>
       * @param value The z to set.
       * @return This builder for chaining.
       */
      public Builder setZ(int value) {
        bitField0_ |= 0x00000004;
        z_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required fixed32 z = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearZ() {
        bitField0_ = (bitField0_ & ~0x00000004);
        z_ = 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:SensorVec)
    }

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

    public static SensorVec getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  public interface HisDataSwimOrBuilder extends
      // @@protoc_insertion_point(interface_extends:HisDataSwim)
      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>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    java.util.List<SensorVec>
        getAccGyroDataList();
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    SensorVec getAccGyroData(int index);
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    int getAccGyroDataCount();
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    java.util.List<? extends SensorVecOrBuilder>
        getAccGyroDataOrBuilderList();
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    SensorVecOrBuilder getAccGyroDataOrBuilder(
        int index);

    /**
     * <code>required .SensorVec mag_data = 3;</code>
     * @return Whether the magData field is set.
     */
    boolean hasMagData();
    /**
     * <code>required .SensorVec mag_data = 3;</code>
     * @return The magData.
     */
    SensorVec getMagData();
    /**
     * <code>required .SensorVec mag_data = 3;</code>
     */
    SensorVecOrBuilder getMagDataOrBuilder();
  }
  /**
   * Protobuf type {@code HisDataSwim}
   */
  public  static final class HisDataSwim extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisDataSwim)
      HisDataSwimOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisDataSwim.newBuilder() to construct.
    private HisDataSwim(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisDataSwim() {
      accGyroData_ = java.util.Collections.emptyList();
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisDataSwim(
        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 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                accGyroData_ = new java.util.ArrayList<SensorVec>();
                mutable_bitField0_ |= 0x00000002;
              }
              accGyroData_.add(
                  input.readMessage(SensorVec.PARSER, extensionRegistry));
              break;
            }
            case 26: {
              SensorVec.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) != 0)) {
                subBuilder = magData_.toBuilder();
              }
              magData_ = input.readMessage(SensorVec.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(magData_);
                magData_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              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_ & 0x00000002) != 0)) {
          accGyroData_ = java.util.Collections.unmodifiableList(accGyroData_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return HisSwimData.internal_static_HisDataSwim_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return HisSwimData.internal_static_HisDataSwim_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisDataSwim.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 ACC_GYRO_DATA_FIELD_NUMBER = 2;
    private java.util.List<SensorVec> accGyroData_;
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    public java.util.List<SensorVec> getAccGyroDataList() {
      return accGyroData_;
    }
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    public java.util.List<? extends SensorVecOrBuilder>
        getAccGyroDataOrBuilderList() {
      return accGyroData_;
    }
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    public int getAccGyroDataCount() {
      return accGyroData_.size();
    }
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    public SensorVec getAccGyroData(int index) {
      return accGyroData_.get(index);
    }
    /**
     * <code>repeated .SensorVec acc_gyro_data = 2;</code>
     */
    public SensorVecOrBuilder getAccGyroDataOrBuilder(
        int index) {
      return accGyroData_.get(index);
    }

    public static final int MAG_DATA_FIELD_NUMBER = 3;
    private SensorVec magData_;
    /**
     * <code>required .SensorVec mag_data = 3;</code>
     * @return Whether the magData field is set.
     */
    public boolean hasMagData() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required .SensorVec mag_data = 3;</code>
     * @return The magData.
     */
    public SensorVec getMagData() {
      return magData_ == null ? SensorVec.getDefaultInstance() : magData_;
    }
    /**
     * <code>required .SensorVec mag_data = 3;</code>
     */
    public SensorVecOrBuilder getMagDataOrBuilder() {
      return magData_ == null ? SensorVec.getDefaultInstance() : magData_;
    }

    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 (!hasMagData()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTimeStamp().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getAccGyroDataCount(); i++) {
        if (!getAccGyroData(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (!getMagData().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());
      }
      for (int i = 0; i < accGyroData_.size(); i++) {
        output.writeMessage(2, accGyroData_.get(i));
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(3, getMagData());
      }
      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());
      }
      for (int i = 0; i < accGyroData_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, accGyroData_.get(i));
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getMagData());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (hasTimeStamp() != other.hasTimeStamp()) return false;
      if (hasTimeStamp()) {
        if (!getTimeStamp()
            .equals(other.getTimeStamp())) return false;
      }
      if (!getAccGyroDataList()
          .equals(other.getAccGyroDataList())) return false;
      if (hasMagData() != other.hasMagData()) return false;
      if (hasMagData()) {
        if (!getMagData()
            .equals(other.getMagData())) 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 (getAccGyroDataCount() > 0) {
        hash = (37 * hash) + ACC_GYRO_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getAccGyroDataList().hashCode();
      }
      if (hasMagData()) {
        hash = (37 * hash) + MAG_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getMagData().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return HisSwimData.internal_static_HisDataSwim_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisDataSwim.class, Builder.class);
      }

      // Construct using HisSwimData.HisDataSwim.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTimeStampFieldBuilder();
          getAccGyroDataFieldBuilder();
          getMagDataFieldBuilder();
        }
      }
      @Override
      public Builder clear() {
        super.clear();
        if (timeStampBuilder_ == null) {
          timeStamp_ = null;
        } else {
          timeStampBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (accGyroDataBuilder_ == null) {
          accGyroData_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          accGyroDataBuilder_.clear();
        }
        if (magDataBuilder_ == null) {
          magData_ = null;
        } else {
          magDataBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

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

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

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

      @Override
      public HisDataSwim buildPartial() {
        HisDataSwim result = new HisDataSwim(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 (accGyroDataBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            accGyroData_ = java.util.Collections.unmodifiableList(accGyroData_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.accGyroData_ = accGyroData_;
        } else {
          result.accGyroData_ = accGyroDataBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          if (magDataBuilder_ == null) {
            result.magData_ = magData_;
          } else {
            result.magData_ = magDataBuilder_.build();
          }
          to_bitField0_ |= 0x00000002;
        }
        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 HisDataSwim) {
          return mergeFrom((HisDataSwim)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(HisDataSwim other) {
        if (other == HisDataSwim.getDefaultInstance()) return this;
        if (other.hasTimeStamp()) {
          mergeTimeStamp(other.getTimeStamp());
        }
        if (accGyroDataBuilder_ == null) {
          if (!other.accGyroData_.isEmpty()) {
            if (accGyroData_.isEmpty()) {
              accGyroData_ = other.accGyroData_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureAccGyroDataIsMutable();
              accGyroData_.addAll(other.accGyroData_);
            }
            onChanged();
          }
        } else {
          if (!other.accGyroData_.isEmpty()) {
            if (accGyroDataBuilder_.isEmpty()) {
              accGyroDataBuilder_.dispose();
              accGyroDataBuilder_ = null;
              accGyroData_ = other.accGyroData_;
              bitField0_ = (bitField0_ & ~0x00000002);
              accGyroDataBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getAccGyroDataFieldBuilder() : null;
            } else {
              accGyroDataBuilder_.addAllMessages(other.accGyroData_);
            }
          }
        }
        if (other.hasMagData()) {
          mergeMagData(other.getMagData());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        if (!hasTimeStamp()) {
          return false;
        }
        if (!hasMagData()) {
          return false;
        }
        if (!getTimeStamp().isInitialized()) {
          return false;
        }
        for (int i = 0; i < getAccGyroDataCount(); i++) {
          if (!getAccGyroData(i).isInitialized()) {
            return false;
          }
        }
        if (!getMagData().isInitialized()) {
          return false;
        }
        return true;
      }

      @Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        HisDataSwim parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (HisDataSwim) 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 java.util.List<SensorVec> accGyroData_ =
        java.util.Collections.emptyList();
      private void ensureAccGyroDataIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          accGyroData_ = new java.util.ArrayList<SensorVec>(accGyroData_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          SensorVec, SensorVec.Builder, SensorVecOrBuilder> accGyroDataBuilder_;

      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public java.util.List<SensorVec> getAccGyroDataList() {
        if (accGyroDataBuilder_ == null) {
          return java.util.Collections.unmodifiableList(accGyroData_);
        } else {
          return accGyroDataBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public int getAccGyroDataCount() {
        if (accGyroDataBuilder_ == null) {
          return accGyroData_.size();
        } else {
          return accGyroDataBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public SensorVec getAccGyroData(int index) {
        if (accGyroDataBuilder_ == null) {
          return accGyroData_.get(index);
        } else {
          return accGyroDataBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder setAccGyroData(
          int index, SensorVec value) {
        if (accGyroDataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAccGyroDataIsMutable();
          accGyroData_.set(index, value);
          onChanged();
        } else {
          accGyroDataBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder setAccGyroData(
          int index, SensorVec.Builder builderForValue) {
        if (accGyroDataBuilder_ == null) {
          ensureAccGyroDataIsMutable();
          accGyroData_.set(index, builderForValue.build());
          onChanged();
        } else {
          accGyroDataBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder addAccGyroData(SensorVec value) {
        if (accGyroDataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAccGyroDataIsMutable();
          accGyroData_.add(value);
          onChanged();
        } else {
          accGyroDataBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder addAccGyroData(
          int index, SensorVec value) {
        if (accGyroDataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAccGyroDataIsMutable();
          accGyroData_.add(index, value);
          onChanged();
        } else {
          accGyroDataBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder addAccGyroData(
          SensorVec.Builder builderForValue) {
        if (accGyroDataBuilder_ == null) {
          ensureAccGyroDataIsMutable();
          accGyroData_.add(builderForValue.build());
          onChanged();
        } else {
          accGyroDataBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder addAccGyroData(
          int index, SensorVec.Builder builderForValue) {
        if (accGyroDataBuilder_ == null) {
          ensureAccGyroDataIsMutable();
          accGyroData_.add(index, builderForValue.build());
          onChanged();
        } else {
          accGyroDataBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder addAllAccGyroData(
          Iterable<? extends SensorVec> values) {
        if (accGyroDataBuilder_ == null) {
          ensureAccGyroDataIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, accGyroData_);
          onChanged();
        } else {
          accGyroDataBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder clearAccGyroData() {
        if (accGyroDataBuilder_ == null) {
          accGyroData_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          accGyroDataBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public Builder removeAccGyroData(int index) {
        if (accGyroDataBuilder_ == null) {
          ensureAccGyroDataIsMutable();
          accGyroData_.remove(index);
          onChanged();
        } else {
          accGyroDataBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public SensorVec.Builder getAccGyroDataBuilder(
          int index) {
        return getAccGyroDataFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public SensorVecOrBuilder getAccGyroDataOrBuilder(
          int index) {
        if (accGyroDataBuilder_ == null) {
          return accGyroData_.get(index);  } else {
          return accGyroDataBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public java.util.List<? extends SensorVecOrBuilder>
           getAccGyroDataOrBuilderList() {
        if (accGyroDataBuilder_ != null) {
          return accGyroDataBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(accGyroData_);
        }
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public SensorVec.Builder addAccGyroDataBuilder() {
        return getAccGyroDataFieldBuilder().addBuilder(
            SensorVec.getDefaultInstance());
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public SensorVec.Builder addAccGyroDataBuilder(
          int index) {
        return getAccGyroDataFieldBuilder().addBuilder(
            index, SensorVec.getDefaultInstance());
      }
      /**
       * <code>repeated .SensorVec acc_gyro_data = 2;</code>
       */
      public java.util.List<SensorVec.Builder>
           getAccGyroDataBuilderList() {
        return getAccGyroDataFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          SensorVec, SensorVec.Builder, SensorVecOrBuilder>
          getAccGyroDataFieldBuilder() {
        if (accGyroDataBuilder_ == null) {
          accGyroDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              SensorVec, SensorVec.Builder, SensorVecOrBuilder>(
                  accGyroData_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          accGyroData_ = null;
        }
        return accGyroDataBuilder_;
      }

      private SensorVec magData_;
      private com.google.protobuf.SingleFieldBuilderV3<
          SensorVec, SensorVec.Builder, SensorVecOrBuilder> magDataBuilder_;
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       * @return Whether the magData field is set.
       */
      public boolean hasMagData() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       * @return The magData.
       */
      public SensorVec getMagData() {
        if (magDataBuilder_ == null) {
          return magData_ == null ? SensorVec.getDefaultInstance() : magData_;
        } else {
          return magDataBuilder_.getMessage();
        }
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      public Builder setMagData(SensorVec value) {
        if (magDataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          magData_ = value;
          onChanged();
        } else {
          magDataBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      public Builder setMagData(
          SensorVec.Builder builderForValue) {
        if (magDataBuilder_ == null) {
          magData_ = builderForValue.build();
          onChanged();
        } else {
          magDataBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      public Builder mergeMagData(SensorVec value) {
        if (magDataBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0) &&
              magData_ != null &&
              magData_ != SensorVec.getDefaultInstance()) {
            magData_ =
              SensorVec.newBuilder(magData_).mergeFrom(value).buildPartial();
          } else {
            magData_ = value;
          }
          onChanged();
        } else {
          magDataBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      public Builder clearMagData() {
        if (magDataBuilder_ == null) {
          magData_ = null;
          onChanged();
        } else {
          magDataBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      public SensorVec.Builder getMagDataBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getMagDataFieldBuilder().getBuilder();
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      public SensorVecOrBuilder getMagDataOrBuilder() {
        if (magDataBuilder_ != null) {
          return magDataBuilder_.getMessageOrBuilder();
        } else {
          return magData_ == null ?
              SensorVec.getDefaultInstance() : magData_;
        }
      }
      /**
       * <code>required .SensorVec mag_data = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          SensorVec, SensorVec.Builder, SensorVecOrBuilder>
          getMagDataFieldBuilder() {
        if (magDataBuilder_ == null) {
          magDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              SensorVec, SensorVec.Builder, SensorVecOrBuilder>(
                  getMagData(),
                  getParentForChildren(),
                  isClean());
          magData_ = null;
        }
        return magDataBuilder_;
      }
      @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:HisDataSwim)
    }

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

    public static HisDataSwim getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_SensorVec_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_SensorVec_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisDataSwim_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisDataSwim_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\023his_swim_data.proto\032\023realtime_data.pro" +
      "to\",\n\tSensorVec\022\t\n\001x\030\001 \002(\007\022\t\n\001y\030\002 \002(\007\022\t\n" +
      "\001z\030\003 \002(\007\"m\n\013HisDataSwim\022\035\n\ntime_stamp\030\001 " +
      "\002(\0132\t.DateTime\022!\n\racc_gyro_data\030\002 \003(\0132\n." +
      "SensorVec\022\034\n\010mag_data\030\003 \002(\0132\n.SensorVecB" +
      "\tZ\007./iwown"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          RealtimeData.getDescriptor(),
        });
    internal_static_SensorVec_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_SensorVec_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_SensorVec_descriptor,
        new String[] { "X", "Y", "Z", });
    internal_static_HisDataSwim_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_HisDataSwim_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisDataSwim_descriptor,
        new String[] { "TimeStamp", "AccGyroData", "MagData", });
    RealtimeData.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
