// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ACCelerometer_data.proto
package com.fs.watch.protobuf;
public final class ACCelerometerData {
  private ACCelerometerData() {}
  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 HisACCelerometerOrBuilder extends
      // @@protoc_insertion_point(interface_extends:HisACCelerometer)
      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>required fixed32 acc_data_count = 2;</code>
     * @return Whether the accDataCount field is set.
     */
    boolean hasAccDataCount();
    /**
     * <code>required fixed32 acc_data_count = 2;</code>
     * @return The accDataCount.
     */
    int getAccDataCount();

    /**
     * <code>required bytes acc_x = 3;</code>
     * @return Whether the accX field is set.
     */
    boolean hasAccX();
    /**
     * <code>required bytes acc_x = 3;</code>
     * @return The accX.
     */
    com.google.protobuf.ByteString getAccX();

    /**
     * <code>required bytes acc_y = 4;</code>
     * @return Whether the accY field is set.
     */
    boolean hasAccY();
    /**
     * <code>required bytes acc_y = 4;</code>
     * @return The accY.
     */
    com.google.protobuf.ByteString getAccY();

    /**
     * <code>required bytes acc_z = 5;</code>
     * @return Whether the accZ field is set.
     */
    boolean hasAccZ();
    /**
     * <code>required bytes acc_z = 5;</code>
     * @return The accZ.
     */
    com.google.protobuf.ByteString getAccZ();
  }
  /**
   * Protobuf type {@code HisACCelerometer}
   */
  public  static final class HisACCelerometer extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:HisACCelerometer)
      HisACCelerometerOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use HisACCelerometer.newBuilder() to construct.
    private HisACCelerometer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private HisACCelerometer() {
      accX_ = com.google.protobuf.ByteString.EMPTY;
      accY_ = com.google.protobuf.ByteString.EMPTY;
      accZ_ = com.google.protobuf.ByteString.EMPTY;
    }

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

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private HisACCelerometer(
        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;
              accDataCount_ = input.readFixed32();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              accX_ = input.readBytes();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              accY_ = input.readBytes();
              break;
            }
            case 42: {
              bitField0_ |= 0x00000010;
              accZ_ = input.readBytes();
              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 ACCelerometerData.internal_static_HisACCelerometer_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return ACCelerometerData.internal_static_HisACCelerometer_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              HisACCelerometer.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_DATA_COUNT_FIELD_NUMBER = 2;
    private int accDataCount_;
    /**
     * <code>required fixed32 acc_data_count = 2;</code>
     * @return Whether the accDataCount field is set.
     */
    public boolean hasAccDataCount() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required fixed32 acc_data_count = 2;</code>
     * @return The accDataCount.
     */
    public int getAccDataCount() {
      return accDataCount_;
    }

    public static final int ACC_X_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString accX_;
    /**
     * <code>required bytes acc_x = 3;</code>
     * @return Whether the accX field is set.
     */
    public boolean hasAccX() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>required bytes acc_x = 3;</code>
     * @return The accX.
     */
    public com.google.protobuf.ByteString getAccX() {
      return accX_;
    }

    public static final int ACC_Y_FIELD_NUMBER = 4;
    private com.google.protobuf.ByteString accY_;
    /**
     * <code>required bytes acc_y = 4;</code>
     * @return Whether the accY field is set.
     */
    public boolean hasAccY() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>required bytes acc_y = 4;</code>
     * @return The accY.
     */
    public com.google.protobuf.ByteString getAccY() {
      return accY_;
    }

    public static final int ACC_Z_FIELD_NUMBER = 5;
    private com.google.protobuf.ByteString accZ_;
    /**
     * <code>required bytes acc_z = 5;</code>
     * @return Whether the accZ field is set.
     */
    public boolean hasAccZ() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>required bytes acc_z = 5;</code>
     * @return The accZ.
     */
    public com.google.protobuf.ByteString getAccZ() {
      return accZ_;
    }

    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 (!hasAccDataCount()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAccX()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAccY()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasAccZ()) {
        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, accDataCount_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeBytes(3, accX_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeBytes(4, accY_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeBytes(5, accZ_);
      }
      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, accDataCount_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, accX_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, accY_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, accZ_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

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

      if (hasTimeStamp() != other.hasTimeStamp()) return false;
      if (hasTimeStamp()) {
        if (!getTimeStamp()
            .equals(other.getTimeStamp())) return false;
      }
      if (hasAccDataCount() != other.hasAccDataCount()) return false;
      if (hasAccDataCount()) {
        if (getAccDataCount()
            != other.getAccDataCount()) return false;
      }
      if (hasAccX() != other.hasAccX()) return false;
      if (hasAccX()) {
        if (!getAccX()
            .equals(other.getAccX())) return false;
      }
      if (hasAccY() != other.hasAccY()) return false;
      if (hasAccY()) {
        if (!getAccY()
            .equals(other.getAccY())) return false;
      }
      if (hasAccZ() != other.hasAccZ()) return false;
      if (hasAccZ()) {
        if (!getAccZ()
            .equals(other.getAccZ())) 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 (hasAccDataCount()) {
        hash = (37 * hash) + ACC_DATA_COUNT_FIELD_NUMBER;
        hash = (53 * hash) + getAccDataCount();
      }
      if (hasAccX()) {
        hash = (37 * hash) + ACC_X_FIELD_NUMBER;
        hash = (53 * hash) + getAccX().hashCode();
      }
      if (hasAccY()) {
        hash = (37 * hash) + ACC_Y_FIELD_NUMBER;
        hash = (53 * hash) + getAccY().hashCode();
      }
      if (hasAccZ()) {
        hash = (37 * hash) + ACC_Z_FIELD_NUMBER;
        hash = (53 * hash) + getAccZ().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @Override
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return ACCelerometerData.internal_static_HisACCelerometer_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                HisACCelerometer.class, Builder.class);
      }

      // Construct using ACCelerometerData.HisACCelerometer.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);
        accDataCount_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        accX_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        accY_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000008);
        accZ_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

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

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

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

      @Override
      public HisACCelerometer buildPartial() {
        HisACCelerometer result = new HisACCelerometer(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.accDataCount_ = accDataCount_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          to_bitField0_ |= 0x00000004;
        }
        result.accX_ = accX_;
        if (((from_bitField0_ & 0x00000008) != 0)) {
          to_bitField0_ |= 0x00000008;
        }
        result.accY_ = accY_;
        if (((from_bitField0_ & 0x00000010) != 0)) {
          to_bitField0_ |= 0x00000010;
        }
        result.accZ_ = accZ_;
        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 HisACCelerometer) {
          return mergeFrom((HisACCelerometer)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(HisACCelerometer other) {
        if (other == HisACCelerometer.getDefaultInstance()) return this;
        if (other.hasTimeStamp()) {
          mergeTimeStamp(other.getTimeStamp());
        }
        if (other.hasAccDataCount()) {
          setAccDataCount(other.getAccDataCount());
        }
        if (other.hasAccX()) {
          setAccX(other.getAccX());
        }
        if (other.hasAccY()) {
          setAccY(other.getAccY());
        }
        if (other.hasAccZ()) {
          setAccZ(other.getAccZ());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @Override
      public final boolean isInitialized() {
        if (!hasTimeStamp()) {
          return false;
        }
        if (!hasAccDataCount()) {
          return false;
        }
        if (!hasAccX()) {
          return false;
        }
        if (!hasAccY()) {
          return false;
        }
        if (!hasAccZ()) {
          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 {
        HisACCelerometer parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (HisACCelerometer) 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 accDataCount_ ;
      /**
       * <code>required fixed32 acc_data_count = 2;</code>
       * @return Whether the accDataCount field is set.
       */
      public boolean hasAccDataCount() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required fixed32 acc_data_count = 2;</code>
       * @return The accDataCount.
       */
      public int getAccDataCount() {
        return accDataCount_;
      }
      /**
       * <code>required fixed32 acc_data_count = 2;</code>
       * @param value The accDataCount to set.
       * @return This builder for chaining.
       */
      public Builder setAccDataCount(int value) {
        bitField0_ |= 0x00000002;
        accDataCount_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required fixed32 acc_data_count = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearAccDataCount() {
        bitField0_ = (bitField0_ & ~0x00000002);
        accDataCount_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString accX_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>required bytes acc_x = 3;</code>
       * @return Whether the accX field is set.
       */
      public boolean hasAccX() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>required bytes acc_x = 3;</code>
       * @return The accX.
       */
      public com.google.protobuf.ByteString getAccX() {
        return accX_;
      }
      /**
       * <code>required bytes acc_x = 3;</code>
       * @param value The accX to set.
       * @return This builder for chaining.
       */
      public Builder setAccX(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        accX_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bytes acc_x = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearAccX() {
        bitField0_ = (bitField0_ & ~0x00000004);
        accX_ = getDefaultInstance().getAccX();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString accY_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>required bytes acc_y = 4;</code>
       * @return Whether the accY field is set.
       */
      public boolean hasAccY() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <code>required bytes acc_y = 4;</code>
       * @return The accY.
       */
      public com.google.protobuf.ByteString getAccY() {
        return accY_;
      }
      /**
       * <code>required bytes acc_y = 4;</code>
       * @param value The accY to set.
       * @return This builder for chaining.
       */
      public Builder setAccY(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        accY_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bytes acc_y = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearAccY() {
        bitField0_ = (bitField0_ & ~0x00000008);
        accY_ = getDefaultInstance().getAccY();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString accZ_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>required bytes acc_z = 5;</code>
       * @return Whether the accZ field is set.
       */
      public boolean hasAccZ() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <code>required bytes acc_z = 5;</code>
       * @return The accZ.
       */
      public com.google.protobuf.ByteString getAccZ() {
        return accZ_;
      }
      /**
       * <code>required bytes acc_z = 5;</code>
       * @param value The accZ to set.
       * @return This builder for chaining.
       */
      public Builder setAccZ(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        accZ_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bytes acc_z = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearAccZ() {
        bitField0_ = (bitField0_ & ~0x00000010);
        accZ_ = getDefaultInstance().getAccZ();
        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:HisACCelerometer)
    }

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

    public static HisACCelerometer getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_HisACCelerometer_descriptor;
  private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_HisACCelerometer_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    String[] descriptorData = {
      "\n\030ACCelerometer_data.proto\032\023realtime_dat" +
      "a.proto\"v\n\020HisACCelerometer\022\035\n\ntime_stam" +
      "p\030\001 \002(\0132\t.DateTime\022\026\n\016acc_data_count\030\002 \002" +
      "(\007\022\r\n\005acc_x\030\003 \002(\014\022\r\n\005acc_y\030\004 \002(\014\022\r\n\005acc_" +
      "z\030\005 \002(\014B\tZ\007./iwown"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          RealtimeData.getDescriptor(),
        });
    internal_static_HisACCelerometer_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_HisACCelerometer_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_HisACCelerometer_descriptor,
        new String[] { "TimeStamp", "AccDataCount", "AccX", "AccY", "AccZ", });
    RealtimeData.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
